Bug 217039

Summary: libvir does not support NAT configuration
Product: [Fedora] Fedora Reporter: Tomas Kouba <tomas>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-0.1.9-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-03-27 13:57:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomas Kouba 2006-11-23 11:31:24 UTC
Description of problem:
The libvir does not support NATed networks of domU (when xend uses vif-nat and
network-nat scripts).


Version-Release number of selected component (if applicable):
libvirt-0.1.7-2

How reproducible:
Try 'virsh dumpxml' when xend uses vif-nat and a domU is started.

Steps to Reproduce:
1.
2.
3.
  
Actual results:

Unimplemented block at xend_internal.c:1667
> <domain type='xen' id='1'>
>   <name>ce</name>
>   <uuid>400be3cf7cedc1d388de8796a85daff1</uuid>
>   <os>
>     <type>linux</type>
>     <kernel>/boot/vmlinuz-2.6.18-prep</kernel>
>     <initrd>/boot/initrd-2.6.18-prep.img</initrd>
>     <root>/dev/sda1</root>
>     <cmdline>fastboot ro root=/dev/sda1</cmdline>
>   </os>
>   <memory>131072</memory>
>   <vcpu>1</vcpu>
>   <on_poweroff>destroy</on_poweroff>
>   <on_reboot>restart</on_reboot>
>   <on_crash>restart</on_crash>
>   <devices>
> <!-- Failed to parse vif: (device (vif (backend 0) (script vif-nat) (ip 
> 10.0.9.1/24) (mac 00:16:3E:47:A1:09) (vifname cevif))) -->
>     <console tty='/dev/pts/2'/>
>   </devices>
> </domain>

Expected results:
Parsed XML without errors.

Additional info:

Comment 1 Daniel Berrangé 2006-11-23 14:59:20 UTC
Fix for this is in latest upstream CVS repo


Tue Nov 14 18:42:01 EST 2006 Daniel Berrange <berrange>

        * src/xend_internal.c: Added support for parsing non-bridge style
        networking configs for guests.
        * src/xml.c: Ensure the <ip address> element gets serialized to
        the SEXPR for non-bridged networks.
        * tests/xml2sexprtest.c, tests/sexpr2xmltest.c: Added new tests
        covering different networking configs
        * tests/xml2sexprdata/, tests/sexpr2xmldata/: Added more data
        files for new test cases

We need to push an errata with the fix to FC6/5.



Comment 2 Daniel Veillard 2006-11-23 18:21:36 UTC
Will do when I make a new libvirt release,

Daniel

Comment 3 Daniel Veillard 2007-03-27 13:57:06 UTC
We fixed that a long time ago, so closing,

Daniel