On Mon, Apr 20, 2009 at 12:06:16PM -0700, Kaitlin Rupert wrote: > Daniel P. Berrange wrote: > >On Fri, Apr 17, 2009 at 01:29:12PM -0700, Kaitlin Rupert wrote: > >>Hi, > >> > >>I'm using libvirt 0.6.2 to create a Xen guest with a network type > >>interface (see XML below). When the guest is defined, the interface is > >>converted to an ethernet type interface. If the guest is started, the > >>interface is then converted to a bridge type interface. > > > >This sounds bad :-) Can you provide the output of 'xm list --long > >hd_domain' > >immediately after defining it, and then again immediately after starting > >the guest. > > > > Here's the whole create process. Probably more than you needed, but > included for clarity ;) > > > # virsh list --all > Id Name State > ---------------------------------- > 0 Domain-0 running > > # virsh define hd_domain > Domain hd_domain defined from hd_domain > > # xm list --long hd_domain > Error: Domain 'hd_domain' does not exist. > Usage: xm list [options] [Domain, ...] > > List information about all/some domains. > -l, --long Output all VM details in SXP > > --label Include security labels I guess you muyst be using an old Xen without inactive domain support ? Would this be RHEL-5 Xen by chance ? If so, can you also provide the /etc/xen/$GUESTNAME config file at this point > # virsh dumpxml hd_domain > <domain type='xen'> > <name>hd_domain</name> > <uuid>f99fd6b6-1434-4bc2-88e0-1ed9c8c6f8e9</uuid> > <memory>131072</memory> > <currentMemory>131072</currentMemory> > <vcpu>1</vcpu> > <os> > <type arch='x86_64' machine='xenpv'>linux</type> > <kernel>/tmp/default-xen-kernel</kernel> > <initrd>/tmp/default-xen-initrd</initrd> > </os> > <clock offset='utc'/> > <on_poweroff>destroy</on_poweroff> > <on_reboot>restart</on_reboot> > <on_crash>destroy</on_crash> > <devices> > <disk type='file' device='disk'> > <driver name='file'/> > <source file='/tmp/default-xen-dimage'/> > <target dev='xvda' bus='xen'/> > </disk> > <interface type='ethernet'> > <mac address='00:11:22:33:44:aa'/> > </interface> > <console type='pty'> > <target port='0'/> > </console> > <input type='mouse' bus='xen'/> > <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' > keymap='en-us'/> > </devices> > </domain> > > # virsh start hd_domain > Domain hd_domain started > > # xm list --long hd_domain > (domain > (domid 2) > (uuid f99fd6b6-1434-4bc2-88e0-1ed9c8c6f8e9) > (vcpus 1) > (cpu_weight 1.0) > (memory 128) > (shadow_memory 0) > (maxmem 128) > (features ) > (name hd_domain) > (on_poweroff destroy) > (on_reboot restart) > (on_crash destroy) > (image > (linux > (kernel /tmp/default-xen-kernel) > (ramdisk /tmp/default-xen-initrd) > ) > ) > (device (vif (backend 0) (script vif-bridge) (mac 00:11:22:33:44:aa))) > (device > (vbd > (backend 0) > (dev xvda:disk) > (uname file:/tmp/default-xen-dimage) > (mode w) > ) > ) > (device (vkbd (backend 0))) > (device > (vfb > (backend 0) > (type vnc) > (vnclisten 127.0.0.1) > (vncunused 1) > (keymap en-us) > ) > ) > (state -b----) > (shutdown_reason poweroff) > (cpu_time 0.1553082) > (online_vcpus 1) > (up_time 3.70654201508) > (start_time 1240255648.33) > (store_mfn 61756) > (console_mfn 61755) > ) > > [root@elm3b25 ~]# virsh dumpxml hd_domain > <domain type='xen' id='2'> > <name>hd_domain</name> > <uuid>f99fd6b6-1434-4bc2-88e0-1ed9c8c6f8e9</uuid> > <memory>131072</memory> > <currentMemory>131072</currentMemory> > <vcpu>1</vcpu> > <os> > <type>linux</type> > <kernel>/tmp/default-xen-kernel</kernel> > <initrd>/tmp/default-xen-initrd</initrd> > </os> > <clock offset='utc'/> > <on_poweroff>destroy</on_poweroff> > <on_reboot>restart</on_reboot> > <on_crash>destroy</on_crash> > <devices> > <disk type='file' device='disk'> > <driver name='file'/> > <source file='/tmp/default-xen-dimage'/> > <target dev='xvda' bus='xen'/> > </disk> > <interface type='bridge'> > <mac address='00:11:22:33:44:aa'/> > <script path='vif-bridge'/> > <target dev='vif2.0'/> > </interface> > <console type='pty' tty='/dev/pts/3'> > <source path='/dev/pts/3'/> > <target port='0'/> > </console> > <input type='mouse' bus='xen'/> > <graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1' > keymap='en-us'/> > </devices> > </domain> Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :| -- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list