[fedora-virt] virt-manager/libvirtd beginner question: how to "convert" qemu-kvm image for use by virt-manager
selinux at gmail.com
Mon Apr 27 21:03:23 UTC 2009
On Mon, Apr 27, 2009 at 1:27 PM, Daniel P. Berrange <berrange at redhat.com> wrote:
> We are actally working on a command for virsh to perform 'import' of
> existing QEMU args, spitting back out a libvirt domain XML file.
> I've got a crude perl script proof of concept people can use in the
> meanwhile - it is far from complete & doesn't cover all QEMU args,
> but it may be of use in short term. It is attached to this mail. Run
> it with perl, giving the full list of QEMU args you have, eg
> # perl virt-xml-import-qemu-args qemu-kvm -localtime -vga std \
> -m 512 -usbdevice tablet -name "Windows XP" -hda \
> ~/VirtualMachines/raw.img -k en-us
> <domain type='kvm'>
> <name>Windows XP</name>
> <type arch='i686'>hvm</type>
> <boot dev='hd'/>
> <clock offset='localtime'/>
> <disk type='/home/berrange/VirtualMachines/raw.img' device='disk'>
> <source file='/home/berrange/VirtualMachines/raw.img'/>
> <target dev='hda' bus='ide'/>
> <graphics type='sdl' display=':0.0/>
> You'll likely still need to edit some things - particularly network
> config, but this will get you started in the right direction...
Thanks for this!
This appears to enter the '<acpi/>' that was missing from virt-install... :-)
I'll test this out a bit.
More information about the Fedora-virt