[libvirt-users] virsh domxml-to-native xen-xm request

Hello, I was looking at http://libvirt.org/drvxen.html And realized that "virsh domxml-to-native" may be used to convert the libvirt xml formatted domU configuration to native. The configuration is for stubdom-dm Xen guests. Syntax appears to be virsh domxml-to-native xen-xm new_vm1.xml > /etc/xen/new_vm1 but I get an error. error: invalid argument in unsupported config type xen-xm Can someone please post their output of the command: virsh domxml-to-native xen-xm new_vm1.xml The working libvirt XML formatted Xen DomU config (new_vm1.xml) <domain type='xen'> <name>test</name> <os> <type>hvm</type> <loader>/usr/lib/xen/boot/hvmloader</loader> <boot dev='hd'/> </os> <memory>7340032</memory> <vcpu>7</vcpu> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <features> <pae/> <acpi/> <apic/> </features> <clock offset='utc'/> <devices> <emulator>/usr/lib/xen/bin/stubdom-dm</emulator> <interface type='bridge'> <source bridge='eth0'/> <mac address='00:50:56:0f:dd:02'/> </interface> <disk type='block' device='disk'> <source dev='/dev/sys/lv0'/> <target dev='hda'/> </disk> <disk type='block' device='disk'> <source dev='/dev/sys/lv1'/> <target dev='hdb'/> </disk> <disk type='block' device='disk'> <source dev='/dev/sys/lv2'/> <target dev='hdc'/> </disk> <!-- stub domains don't have access to dom0's ptys, so this is not possible <serial type='pty'> </serial> --> <graphics type='vnc' autoport='yes'/> </devices> </domain> -M _________________________________________________________________ IM on the go with Messenger on your phone http://go.microsoft.com/?linkid=9712960

2010/3/20 Mike Viau <viaum@sheridanc.on.ca>:
Hello,
I was looking at http://libvirt.org/drvxen.html
And realized that "virsh domxml-to-native" may be used to convert the libvirt xml formatted domU configuration to native.
The configuration is for stubdom-dm Xen guests.
Syntax appears to be virsh domxml-to-native xen-xm new_vm1.xml > /etc/xen/new_vm1 but I get an error.
error: invalid argument in unsupported config type xen-xm
Can someone please post their output of the command: virsh domxml-to-native xen-xm new_vm1.xml
Do you just run this command? virsh domxml-to-native xen-xm new_vm1.xml > /etc/xen/new_vm1 If you don't specify an explicit connection URI, or have VIRSH_DEFAULT_CONNECT_URI set to to some Xen connection URI, then libvirt will try to autodetect your hypervisor and might find QEMU. In that case I can reproduce the reported error. To make it work you need to specify a proper connection URI, for example virsh -c xen:/// domxml-to-native xen-xm new_vm1.xml > /etc/xen/new_vm1 or whatever URI you need for your setup. Matthias

Sat, 20 Mar 2010 11:19:05 +0100 <matthias.bolte@googlemail.com>
2010/3/20 Mike Viau <viaum@sheridanc.on.ca>:
Hello,
I was looking at http://libvirt.org/drvxen.html
And realized that "virsh domxml-to-native" may be used to convert the libvirt xml formatted domU configuration to native.
The configuration is for stubdom-dm Xen guests.
Syntax appears to be virsh domxml-to-native xen-xm new_vm1.xml > /etc/xen/new_vm1 but I get an error.
error: invalid argument in unsupported config type xen-xm
Can someone please post their output of the command: virsh domxml-to-native xen-xm new_vm1.xml
Do you just run this command?
virsh domxml-to-native xen-xm new_vm1.xml > /etc/xen/new_vm1
If you don't specify an explicit connection URI, or have VIRSH_DEFAULT_CONNECT_URI set to to some Xen connection URI, then libvirt will try to autodetect your hypervisor and might find QEMU. In that case I can reproduce the reported error.
To make it work you need to specify a proper connection URI, for example
virsh -c xen:/// domxml-to-native xen-xm new_vm1.xml > /etc/xen/new_vm1
or whatever URI you need for your setup.
Matthias
I am still unable to get a native output file. Could someone please post the output of "virsh -c xen:/// domxml-to-native xen-xm new_vm1.xml > /etc/xen/new_vm1" On the libvirt XML formatted config below. <domain type='xen'> <name>test</name> <os> <type>hvm</type> <loader>/usr/lib/xen/boot/hvmloader</loader> <boot dev='hd'/> </os> <memory>7340032</memory> <vcpu>7</vcpu> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <features> <pae/> <acpi/> <apic/> </features> <clock offset='utc'/> <devices> <emulator>/usr/lib/xen/bin/stubdom-dm</emulator> <interface type='bridge'> <source bridge='eth0'/> <mac address='00:50:56:0f:dd:02'/> </interface> <disk type='block' device='disk'> <source dev='/dev/sys/lv0'/> <target dev='hda'/> </disk> <disk type='block' device='disk'> <source dev='/dev/sys/lv1'/> <target dev='hdb'/> </disk> <disk type='block' device='disk'> <source dev='/dev/sys/lv2'/> <target dev='hdc'/> </disk> <!-- stub domains don't have access to dom0's ptys, so this is not possible <serial type='pty'> </serial> --> <graphics type='vnc' autoport='yes'/> </devices> </domain> -M _________________________________________________________________ Stay in touch. http://go.microsoft.com/?linkid=9712959

name = "test" uuid = "287fe83e-8d9a-c935-6026-c9ea85b60e87" maxmem = 7168 memory = 7168 vcpus = 7 builder = "hvm" kernel = "/usr/lib/xen/boot/hvmloader" boot = "c" pae = 1 acpi = 1 apic = 1 localtime = 0 on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" device_model = "/usr/lib/xen/bin/stubdom-dm" vfb = [ "type=vnc,vncunused=1" ] disk = [ "phy:/dev/sys/lv0,hda,w", "phy:/dev/sys/lv1,hdb,w", "phy:/dev/sys/lv2,h dc,w" ] vif = [ "mac=00:50:56:0f:dd:02,bridge=eth0,script=vif-bridge" ] parallel = "none" serial = "none" Thanks it worked. -M
Date: Sat, 20 Mar 2010 11:19:05 +0100 Subject: Re: [libvirt-users] virsh domxml-to-native xen-xm request From: matthias.bolte@googlemail.com
2010/3/20 Mike Viau <viaum@sheridanc.on.ca>:
Hello,
I was looking at http://libvirt.org/drvxen.html
And realized that "virsh domxml-to-native" may be used to convert the libvirt xml formatted domU configuration to native.
The configuration is for stubdom-dm Xen guests.
Syntax appears to be virsh domxml-to-native xen-xm new_vm1.xml > /etc/xen/new_vm1 but I get an error.
error: invalid argument in unsupported config type xen-xm
Can someone please post their output of the command: virsh domxml-to-native xen-xm new_vm1.xml
Do you just run this command?
virsh domxml-to-native xen-xm new_vm1.xml > /etc/xen/new_vm1
If you don't specify an explicit connection URI, or have VIRSH_DEFAULT_CONNECT_URI set to to some Xen connection URI, then libvirt will try to autodetect your hypervisor and might find QEMU. In that case I can reproduce the reported error.
To make it work you need to specify a proper connection URI, for example
virsh -c xen:/// domxml-to-native xen-xm new_vm1.xml > /etc/xen/new_vm1
or whatever URI you need for your setup.
Matthias
_________________________________________________________________ Live connected with Messenger on your phone http://go.microsoft.com/?linkid=9712958
participants (2)
-
Matthias Bolte
-
Mike Viau