Booting physically installed Windows while in Arch (AHCI support in OVMF?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all, My situation is the following:
My PC (x64) has an UEFI capable motherboard (ASRock Z77). On my hard
drive (which is GPT formatted ofc), I have Windows 7 installed on
/dev/sda3 and Arch Linux on /dev/sda2. I can boot both OS'es. However,
I would like to boot Windows while in Arch, using KVM. I'm using the
OVMF images. I tried it right away with this command:

qemu-system-x86_64 -enable-kvm -smp 4 -cpu host -m 4096 -hda /dev/sda
-L /path/to/ovmf/

It doesn't work. When booting in safe mode in windows, I can see that
windows fails when trying to load CLASSPNP.sys . After some googling I
found out that it might be because qemu 'mounts' the drive in IDE
mode, while windows expects it to be in AHCI mode (because it was
installed in AHCI mode). Then, after some more googling, I tried this
command, which should (correct me if I'm wrong) mount the drive in
AHCI mode.

qemu-system-x86_64 -enable-kvm -smp 4 -cpu host -m 4096 -L
/path/to/ovmf -device ahci,id=ahci0 -drive
if=none,file=/dev/sda,format=raw,id=drive-sata0-0-0 -device
driver=ide-drive,bus=ahci0.0,drive=drive-sata0-0-0,id=sata0-0-0

However, with this command OVMF doesn't seem to recognise any drive at
all, the 'Boot from file' screen is empty.

So, I would like to know if OVMF supports AHCI, and if it doesn't, do
you have any other ideas?
I know it's generally not a good idea to boot a physically installed
OS in a vm, but I want to try it anyway.

Thanks,
Evert
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux