[fedora-virt] F12: How to add VM with virt-manager?

sean darcy seandarcy2 at gmail.com
Sun Jan 10 20:18:53 UTC 2010


I have a qcow Windows 7 image created from VBox with qemu-img.

VBoxManage clonehd --format RAW Windows-7-32bit-copy.vdi
Windows-7-32bit-raw.img
VirtualBox Command Line Management Interface Version 3.1.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'RAW'. UUID:
45b51467-5b5f-491b-bfbb-14d9a61cd503

Then:

qemu-img convert -O qcow2 Windows-7-32bit-raw.img Windows-7-32bit.qcow
qemu-img info Windows-7-32bit.qcow
image: Windows-7-32bit.qcow
file format: qcow2
virtual size: 20G (21474836480 bytes)
disk size: 18G
cluster_size: 65536


I've got qemu/kvm installed an F12 machine.

With virt-manager the dialog to install Create a new VM only allows
DVD, iso, ftp, etc. Not a local .qcow image.

I tried restore saved machine and got:

image magic is incorrect

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/manager.py", line 652, in
restore_saved_callback
    newconn.restore(file_to_load)
  File "/usr/share/virt-manager/virtManager/connection.py", line 657, in restore
    self.vmm.restore(frm)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1420, in restore
    if ret == -1: raise libvirtError ('virDomainRestore() failed', conn=self)
libvirtError: operation failed: image magic is incorrect

So how do I add this image to kvm?

Jay


More information about the virt mailing list