malat
malat

Reputation: 12510

Create virtual machine using qcow2 as storage (virt-manager)

I am running debian wheezy. virt-manager is version 0.9.1. As per online documentation it should be possible to create a virtual machine using qcow2 storage, as per this link.

However from my version the dialog box looks rather like this:

enter image description here

And during install process it is not possible to select anything but 'raw' storage:

enter image description here

I have tried creating the the qcow2 image outside of the interface using:

# qemu-img create -f qcow2 guest.qcow2  8192
Formatting 'guest.qcow2', fmt=qcow2 size=8192 encryption=off cluster_size=65536 

For some reason the file size does look kind of odd:

# ls -altr guest.qcow2
-rw-r--r-- 1 root root 197120 juil. 24 15:13 guest.qcow2

If I select this storage and then pursue with a regular Window 7 pro installation, the installer report that the disk size is simply 0 and cannot continue.

Any recommendation on where to do from here ?

Upvotes: 0

Views: 10922

Answers (1)

malat
malat

Reputation: 12510

Looks like this was a simple typo from the link I used:

The line:

# qemu-img create -f qcow2 /var/lib/libvirt/images/guest.qcow2 8192

should really read (missing trailing 'M'):

# qemu-img create -f qcow2 /var/lib/libvirt/images/guest.qcow2 8192M

Just for reference, using qcow2 (even with virtio) is terribly slow for a Windows 7 VM, as per link, so I ended up using raw storage.

Upvotes: 1

Related Questions