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

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

 



06.05.2013 00:42, Evert Heylen wrote:
> Please, any help?

I think the easiest way is to convert your existing system from UEFI
back to regular bios + MBR.  For that, you need to disable UEFI boot
in bios and convert GPT to MBR on the HDD.

This is because, as you figured, ahci support in OVMF isn't exactly
working, and because generally, UEFI emulation and UEFI support as
whole is a bit too young still.

/mjt

> I'm currently in such a state I won't be able to sleep well before I
> make some progress on this.
> I've already described my situation quite precisly, if one needs even
> more information, just ask.
> 
> I've now also tried with a separate img containing DUET, so I can use
> the default seabios to boot DUET, which can  boot Windows in UEFI
> mode. However, DUET just doesn't see my disk at all, be it in IDE or
> AHCI mode. If I boot the same img *physically* (from a usb), I can
> enter DUET and I can see my physical disk (which is running in AHCI
> mode). So I guess this is an issue with KVM/QEMU.
> 
> Any ideas would be greatly appreciated.
> 
> On Sun, Apr 28, 2013 at 6:29 PM, Evert Heylen <evertheylen@xxxxxxxxx> wrote:
>> 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
> 

--
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