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