On Fri, Dec 26, 2008 at 08:58:06PM +1100, Christopher Vance wrote: > A while ago I asked about how to change the NIC model of an HVM > machine under xVM, since my OS didn't work properly with the default. > > Something in the xVM code explicitly sets the NIC model to rtl8139 > when invoking qemu-dm, so I had a look to see what alternatives there > might be, by comparing the man page for qemu on another OS with the > list of *.c filenames recorded in the qemu-dm binary.
Argh! I misled you, believing that we disabled the other NICs in qemu-dm, but they are still there. You should be able to achieve the below using something like: vif = ['mac=aa:1:2:3:4:5,type=ioemu,model=pcnet'] I'm not sure how to do this in the xml variant of the domain definition, but it should be possible. > I have found that changing the <emulator> field in the .xml file to a > shell script has enabled me to try the two alternative NIC types that > qemu-dm seems to know about, namely pcnet and ne2k_pci. (It might even > do ne2k_isa, but I couldn't be bothered checking.) > > - ->8- - > > #!/bin/ksh > > # Set HVM network device to something other than Solaris' default rtl8139. > > case $0 in > *qemu.*) NET=$(echo $0 | sed -e 's/.*qemu[.]//');; > esac > > exec /usr/lib/xen/bin/qemu-dm $(echo $* | sed -e "s/rtl8139/$NET/g") > > - ->8- - > _______________________________________________ xen-discuss mailing list [email protected]
