[Bug 581966] New: NAT does not work with HVM guests
http://bugzilla.novell.com/show_bug.cgi?id=581966 http://bugzilla.novell.com/show_bug.cgi?id=581966#c0 Summary: NAT does not work with HVM guests Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: openSUSE 11.2 Status: NEW Severity: Major Priority: P5 - None Component: Xen AssignedTo: jdouglas@novell.com ReportedBy: erik@brakkee.org QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=343904) --> (http://bugzilla.novell.com/attachment.cgi?id=343904) log file when the domU is started. User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.6) Gecko/20091210 SUSE/2.0.1-1.1.1 SeaMonkey/2.0.1 When a HVM guest is created with NAT networking, the tap device required for HVM network emulation cannot be created by the scripts. As a result, there is no networking support in the domU. The detailed message that is in /var/log/xen/qemu-dm-<domain>.log is as follows: WARNING! wlan1 is not a bridge. qemu-ifup exiting. VM may not have a functioning networking stack. The workaround that is provided on http://www.2virt.com/blog/?p=151 (see point d, "Custom solution for HVM guests") works but is not a full solution. Reproducible: Always Steps to Reproduce: 1. Configure xend-config.sxp to use nat. Specify the netdev in the network-nat configuration to be the external interface (in my case wlan1). 2. setup a HVM domain, specifying type=ioemu for the network card as well as an IP address 10.0.0.1, gateway, and netmask 3. xm new <domain> 4. xm start <domain> 5. From domU: ping -I <if> 10.0.0.2 6, On dom0 verify using ifconfig that only the vif device is created but no tap device 7. verify using tcpdump that the ping from domU does not result in any packets on the vif interface. Actual Results: 1. A log message in the /var/log/xen/qemu-dm-<domain>.log about that the qemu-ifup is exiting (see above). 2. no network traffic is possible. Expected Results: 1. I should have seen a tap interface using ifconfig . 2. tcpdump should have shown packets arriving on the tap interface when pinging from domU. I have given this bug major severity because basic functionality is broken. In particular, most laptop users will be affected as in those cases WIFI is often used for networking and bridge networking in general does not work with WIFI. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581966 http://bugzilla.novell.com/show_bug.cgi?id=581966#c1 --- Comment #1 from Erik Brakkee <erik@brakkee.org> 2010-02-22 21:16:49 UTC --- Created an attachment (id=343905) --> (http://bugzilla.novell.com/attachment.cgi?id=343905) Modified qemu-ifup script This replaces the current /etc/xen/qemu-ifup script. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581966 http://bugzilla.novell.com/show_bug.cgi?id=581966#c2 --- Comment #2 from Erik Brakkee <erik@brakkee.org> 2010-02-22 21:18:49 UTC --- Created an attachment (id=343906) --> (http://bugzilla.novell.com/attachment.cgi?id=343906) Modified vif-common script that also deals with tap interfaces Not sure if this is needed but I found this patch on the internet (see the source file for the URL). It is also related to emulated devices for HVM guests. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581966 http://bugzilla.novell.com/show_bug.cgi?id=581966#c3 --- Comment #3 from Erik Brakkee <erik@brakkee.org> 2010-02-22 21:20:12 UTC --- Created an attachment (id=343910) --> (http://bugzilla.novell.com/attachment.cgi?id=343910) Opensuse HVM guest image Unlike the name suggests, this image actually contains a Opensuse 11.2 32 bit installation. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581966 http://bugzilla.novell.com/show_bug.cgi?id=581966#c4 --- Comment #4 from Erik Brakkee <erik@brakkee.org> 2010-02-22 21:22:32 UTC --- Created an attachment (id=343911) --> (http://bugzilla.novell.com/attachment.cgi?id=343911) xend config file -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581966 http://bugzilla.novell.com/show_bug.cgi?id=581966#c5 Erik Brakkee <erik@brakkee.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #343910|Opensuse HVM guest image |Opensuse HVM guest image. description| |This is the working | |solution after applying the | |fix from the web site. --- Comment #5 from Erik Brakkee <erik@brakkee.org> 2010-02-22 21:23:37 UTC --- (From update of attachment 343910)
name="opensuse11-1" uuid="fa628e01-dab8-6932-00f2-d25d41bade55" memory=512 maxmem=512 vcpus=2 on_poweroff="destroy" on_reboot="destroy" on_crash="destroy" localtime=0 keymap="en-us"
builder="hvm" extid=0 device_model="/usr/lib/xen/bin/qemu-dm" kernel="/usr/lib/xen/boot/hvmloader" boot="c" disk=[ 'phy:/dev/system/linux32,hda,w', 'phy:/dev/sr0,hdc:cdrom,r', ] vif=[ 'type=ioemu, bridge=10.0.0.254/24', ]
stdvga=0 vnc=1 vncunused=1 apic=0 acpi=1 pae=1
serial="pty"
-- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581966 http://bugzilla.novell.com/show_bug.cgi?id=581966#c Jason Douglas <jdouglas@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jdouglas@novell.com AssignedTo|jdouglas@novell.com |jfehlig@novell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=581966 https://bugzilla.novell.com/show_bug.cgi?id=581966#c6 James Fehlig <jfehlig@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #6 from James Fehlig <jfehlig@suse.com> 2011-12-08 23:48:28 UTC --- Apologies for never responding to this bug :-(. I thought I had reviewed and commented on it long ago, but now question whether I even took a look! We couldn't replace qemu-ifup with the script in #1. It might be possible to have something like qemu-ifup-nat though. BTW, you can specify your custom scripts with 'script' stanza, e.g. vif=[ 'type=ioemu, bridge=10.0.0.254/24, script=/path/to/my/vif-nat', ] We no longer maintain 11.2, but I'd suspect issues might still exist in 11.4 and 12.1 with the Xen networking scripts. However, I'd suggest looking at /usr/share/doc/packages/sysconfig/README.virtualization and use the distro supported tools/scripts for configuring networking - which btw should work with both Xen and KVM. If you are still with us :-), try the distro networking tools in 11.4 or 12.1 and open a new bug if you still find issues. We won't let it collect dust this time. Regards. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com