I''m running snv_101b as dom0. Hardware nic is rge0. What is the approved working way to set the nic model on an hvm domu? (My domu OS dislikes the apparently incomplete 8139 emulation, and I haven''t succeeded in getting xvm to try anything else.) I''m happier using virsh dumpxml, emacs, and virsh define to fiddle things, although I could use xm if necessary. I haven''t found any documentation of the complete syntax of either .xml or .sxp description of a machine, and xVM doesn''t seem to use the older .py stuff either. -- Christopher Vance
On Tue, Dec 16, 2008 at 09:37:54PM +1100, Christopher Vance wrote:> I''m running snv_101b as dom0. Hardware nic is rge0. > > What is the approved working way to set the nic model on an hvm domu? > (My domu OS dislikes the apparently incomplete 8139 emulation, and I > haven''t succeeded in getting xvm to try anything else.)There is no way to do this. Our bits don''t provide an alternate emulation. What is your domU OS? Are there any PV driver savailable? Some of the rge chipsets have hardware checksum offload problems. Try disabling checksum offload in your guest (disabling it in dom0 isn''t enough).
On Tue, Dec 16, 2008 at 09:37:54PM +1100, Christopher Vance wrote:> I haven''t found any documentation of the complete syntax of either > .xmlIt won''t help you much with your query, but: http://libvirt.org/libvirt.rng regards john
On Tue, Dec 16, 2008 at 11:18 PM, David Edmondson <dme@sun.com> wrote:> What is your domU OS? Are there any PV driver savailable?OpenBSD. I have had trouble with its re device even on bare metal, although this has been fixed recently. Symptom in all cases is repeated watchdog timeouts. I understand OpenBSD people have told Citrix what''s broken in their qemu build.> Some of the rge chipsets have hardware checksum offload problems. Try > disabling checksum offload in your guest (disabling it in dom0 isn''t > enough).I''ll investigate this. Thanks. -- Christopher Vance
On Wed, Dec 17, 2008 at 12:13 AM, John Levon <john.levon@sun.com> wrote:> It won''t help you much with your query, but: > > http://libvirt.org/libvirt.rngThanks. -- Christopher Vance
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. 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- - -- Christopher Vance
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- - >