KVM - The Linux Kernel-Based Virtual Machine
News, Blogs and Resources on the Linux (KVM) Kernel-Based Virtual Machine

windows 2008 and 7 don't create partition and boot from

1 reply [Last post]
ion-ral
User offline. Last seen 31 weeks 6 days ago. Offline
Joined: Aug 26 2009
Points: 3

hallo,

I can not install Windows 2008 or Windows 7 (32bit)

I'm using debian lenny with kvm-85 and LVM partitions in raw form, the windows installer gives me the following error after the detection of the drive (IDE only recognized natively ...):

Windows cannot be installed to this disk. this computer's hardware may not support booting to this disk. Ensure that the disk's controller is enabled in the computer's BIOS menu

if I try to use a file in raw form rather not have this error.

if I want to use LVM  I don't set the cache=none

This is the command I use to start the VM:

kvm -cpu qemu32 -smp 1 -m 1500 -drive file=/dev/mapper/drbdvg-win7,media=disk,cache=none,if=ide,index=0,boot=on -name win7 -cdrom /dev/cdrom -boot d -usb -usbdevice tablet -net nic,macaddr=00:16:3e:4:00:01,model=rtl8139 -net tap,ifname=tap4 -k it -monitor unix:/var/VMGUEST/win7/monitor,server,nowait -pidfile /var/VMGUEST/win7/pid -vnc :3400 -daemonize -localtime -alt-grab

may depend on what? LVM is a problem or QEMU / KVM?

David L (not verified)
I have noticed this with

I have noticed this with qcow2 images and virtio. The solution was to delete the qcow2 image and create a new one. Try wiping the LVM partition and all its settings using fdisk.

Post new comment

The content of this field is kept private and will not be shown publicly.