[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [fedora-virt] virt-manager/libvirtd beginner question: how to "convert" qemu-kvm image for use by virt-manager
- From: Tom London <selinux gmail com>
- To: "Daniel P. Berrange" <berrange redhat com>
- Cc: fedora-virt redhat com
- Subject: Re: [fedora-virt] virt-manager/libvirtd beginner question: how to "convert" qemu-kvm image for use by virt-manager
- Date: Mon, 27 Apr 2009 14:03:23 -0700
On Mon, Apr 27, 2009 at 1:27 PM, Daniel P. Berrange <berrange 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>
> <memory>524288</memory>
> <vcpu>1</vcpu>
> <os>
> <type arch='i686'>hvm</type>
> <boot dev='hd'/>
> </os>
> <features>
> <acpi/>
> </features>
> <clock offset='localtime'/>
> <on_reboot>restart</on_reboot>
> <devices>
> <emulator>qemu-kvm</emulator>
> <disk type='/home/berrange/VirtualMachines/raw.img' device='disk'>
> <source file='/home/berrange/VirtualMachines/raw.img'/>
> <target dev='hda' bus='ide'/>
> </disk>
> <graphics type='sdl' display=':0.0/>
> </devices>
> </domain>
>
> You'll likely still need to edit some things - particularly network
> config, but this will get you started in the right direction...
>
> Daniel
Thanks for this!
This appears to enter the '<acpi/>' that was missing from virt-install... :-)
I'll test this out a bit.
Thanks again!
tom
--
Tom London
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]