I've configured some virtual machine under Xen on Debian Squeeze using libvirt with virsh. Now I want to get rid of the libvirt layer, because I need to configure some specific parameters on the DomUs that are not supported by libvirt.
- How can I export my config ?
- How can I import the native config file to Xen ?
Thank you for any suggestion !
You would export the xml config and then convert it to XEN Configs:
http://libvirt.org/drvxen.html#xmlexport
An update: Newer versions of Xen have a new toolstack: xen-light, so from xen 4.1 onwards the
xm
command is superceded byxl
.While
xl
's domain configuration files are backwards compatible, to make sure all domain parameters are correctly mapped into the latest configuration during conversion I would suggest to use:(note the use of
xen-xl
instead ofxen-xm
).Then, you can create the vm directly on Xen using the generated file:
(Documenting it here, as the
virsh
command reference section fordomxml-to-native
says "Options: Needs to be written")If u just want to edit domU's configuration, try below,
virsh edit vm-name
It will use vi to open xml by default