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

Mike Viau viaum at sheridanc.on.ca
Fri Mar 19 23:15:54 UTC 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20100319/d3670daa/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00001
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20100319/d3670daa/attachment.ksh>


More information about the libvirt-users mailing list