[virt-tools-list] virt-convert from libvirt to vmware
Cole Robinson
crobinso at redhat.com
Tue Apr 13 21:15:52 UTC 2010
On 04/13/2010 02:45 PM, Brian Pitts wrote:
> Hi,
>
> I'm running Ubuntu 9.10. I'd like to export a virtual machine managed by
> libvirt for use in vmware. I thought virt-convert was the right tool for
> this. I tried pointing virt-convert at the domain configuration like so.
>
> $ sudo virt-convert --os-type=linux -i virt-image -o vmx -D vmdk
> /etc/libvirt/qemu/rhel5.xml ~/rhel5-vmware/
>
> but this complained that the root element is not 'image'. I compared
> this file to the virt-image(5) man page and realized that libvirt used a
> different flavor of xml than virt-convert wanted. How am I supposed to
> get the description of a virtual machine from libvirt into the
> virt-image format so that virt-convert can work with it?
>
> I don't see anything in virsh or any virt-* tools that can do this.
> Googling bring ups few results and they recommend hand-editing. I didn't
> see anything relevant in the virt-tools-list archives. I apologize if
> there is relevant documentation out there and I just missed it.
>
virt-convert should be able to do everything you want, it just hasn't
been implemented yet. There is currently no programmatic way to go from
libvirt XML -> VMWare (unless using the libvirt ESX driver), or from
libvirt XML to virt-image.
Once we make virt-convert able to input and output libvirt XML, this
should do what you want.
- Cole
More information about the virt-tools-list
mailing list