Public bug reported:
Using Ubuntu Hardy 8.04, KVM-72 (from ubuntu-virt PPA - but same
symptoms on a KVM-62 host).
By default, the image created by virt-install isn't in qcow2 format:
[EMAIL PROTECTED]:/var/lib/kvm/licenceserver$ file root.qcow2
root.qcow2: x86 boot sector, Microsoft Windows XP MBR, Serial 0x7c48cabd
This has very, very weird side effects. Windows usually installs in two
steps: formatting, then reboot, and the rest of the install. With the
current file format, the first step doesn't work accelerated,. To get
acceleration, it is necessary to create the VM in non accelerated mode
(using qemu), and after the reboot, to change qemu to kvm in the
configuration files.
The second side effect is that this "hack" works for VMs that are only
smaller than a definite size. While this sounds weird, I got this
working perfectly fine for VMs from 5, 8, 10, 12GB - but the windows VM
won't boot if the disk is 20 or 30GB (exact same arguments passed to
virt-install).
My current workaround is to convert the disk do QCOW2 after it is
created by virt-install, before starting the install. This is the virt-
install command I use:
sudo virt-install -n accounts2 -r 512 -f "accounts2/windows.qcow2" -s 30
-c /home/yhamon/win2000server.iso --vnc --noautoconsole --os-type
windows --os-variant win2k
This is the command I use to convert it to qcow2:
sudo qemu-img convert windows.qcow2 -O qcow2 windows2.qcow2
Once converted to qcow2, I can even start the install of windows in
accelerated mode.
** Affects: virtinst (Ubuntu)
Importance: Undecided
Status: New
--
Virt-install doesn't create QCOW2 images
https://bugs.launchpad.net/bugs/291106
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs