I can't see a way to do this with the libvirt XML.
You could switch to using .py files, in which case your 'vif = ...'
line will work.
A less clean alternative is to patch the default type, which is in
/usr/lib/python2.4/vendor-packages/xen/xend/image.py, but this will
get over-written by any upgrades.
On Thu, Jul 31, 2008 at 10:31:32PM -0700, Diego Righi wrote:
> I've searched all night long on google, discussions, threads, and the xen
> wiki... but I can't find how to do this:
> vif = ['type=ioemu,mac=XX:XX:XX:XX:XX:XX,model=ne2k_pci']
> where should I put this?
> I have sxce94, dom0 works nicely, and domUs too, but I'd like to select ne2k
> for an hvm openbsd dom0 that I've created because I've read that it doesn't
> to the annoying timeouts that the emulated realtek does.
> So long if I dump the xml configuration of my hvm domU it says (I had to swap
> <> with {} or this forum didn't let me post the config, but it's the same):
>
> {interface type='bridge'}
> {source bridge='nge0 '/}
> {target dev='vif-1.0'/}
> {mac address='00:16:3e:17:f4:46'/}
> {script path='vif-vnic'/}
> {/interface}
>
> if I try to add the model=ne2k_pci here in any way it doesn't want to
> reimport the xml, otherwise it works fine.
> If I look at the config.sxp (I know I shouldn't, but still...) it says:
>
> (device
> (vif
> (bridge 'nge0 ')
> (mac 00:16:3e:17:f4:46)
> (script vif-vnic)
> (uuid 54edd73e-27ec-7684-1101-f6e50807e9dd)
> (backend 0)
> )
>
> Is there a way to specify this with SXCE94 with the included xVM version
> 3.1.4-xvm ?
>
> tnx in advance
>
>
> This message posted from opensolaris.org
> _______________________________________________
> xen-discuss mailing list
> [email protected]
_______________________________________________
xen-discuss mailing list
[email protected]