public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Booting physically installed Windows while in Arch (AHCI support in OVMF?)
@ 2013-04-28 16:29 Evert Heylen
  2013-04-30 20:16 ` Evert Heylen
  0 siblings, 1 reply; 4+ messages in thread
From: Evert Heylen @ 2013-04-28 16:29 UTC (permalink / raw)
  To: kvm

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-07  4:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-28 16:29 Booting physically installed Windows while in Arch (AHCI support in OVMF?) Evert Heylen
2013-04-30 20:16 ` Evert Heylen
2013-05-05 20:42   ` Fwd: " Evert Heylen
2013-05-07  4:11     ` Michael Tokarev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox