Running the same Windows both in KVM and physical
I have kind of an advanced question for you, I would like to install Windows on my hard drive (which is GPT formatted) but I would like to be also able to run it in KVM. To clarify, the same Windows installation should be able to be booted physical (without any host) and virtually in KVM, using Arch Linux as the host. I used to do this with my old laptop, however the disk it was using was formatted using an MS-DOS partition table.
How can I accomplish this?
My PC has an UEFI-capable motherboard.
Thanks in advance.
EDIT: One can use the custom BIOS images from the OVMF project to boot KVM with UEFI support: http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=OVMF However, Windows installer isn't working yet. It goes through the 'Loading files' and then fails.
Solution 1:
You can easily do this, just specify hard disk (using kvm or virt-install), for ex.:
kvm -hdd /dev/sda -m 1024
will boot OS from specified disk and allocate 1024 MB ofRAM.
You also may install it on hard disk using kvm or xen, but installer need access to full drive (/dev/sd$), so if you have one physical drive on ore computer installing OS from virtual mashine is a BAD idea.
Good Luck.