ユーザ用ツール

サイト用ツール


kvmでqemuパラメータ

リンク

内容 

Environment

    
 *KVM Host
 *Windows 7 Virtual Machine 

Solution

 
 * First, check out the SLIC patch for the Seabios:
 Code:
 # cd /usr/src
 # git clone git://github.com/ghuntley/seaslic

Now, download, unpack and put in the right place seaBIOS 0.6.1:

 Code:
 # wget -O seabios.zip code.coreboot.org/p/seabios/source/download/0.6.1-stable/
 # unzip seabios.zip
 # rmdir seaslic/seabios.submodule
 # mv seabios-0.6.1-stable seaslic/seabios.submodule

Now, we will import your activation table and build an SeaBIOS containing this table.

NOTICE: If your host system don't have an COA (Certificate of Authenticity) and, thus, an eligible license for your target Windows 7 install, you can download an SLIC blob (pick the correct one from the post “Default Win 7 & Server 08 R2 SLIC 2.1 Bin Collection”, edit patch.sh and make the matching OEM BIN file as source for the SLIC table instead of the system ACPI firmware table.

 Code:
 # cd seaslic
 # ./patch.sh

Your patched BIOS is now located at /usr/src/seabios.submodule/out/bios.bin

Now, it's time to make libvirt boot your VM using your new BIOS:

 Code:
  # virsh edit <VM Name>

In the first line, where reads:

 Code:
   <domain type='kvm'>

Change it to:

 Code:
   <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>

NOTICE. There's missing the “h” from “http” in the schema above. Put http. The H is missing, because the forum prevents me for pasting links with less than 20 posts. Oh, well.

Go to the bottom of your file. Right after the </devices> section, add the block:

 Code:
    <qemu:commandline>
     <qemu:arg value='-bios'/>
     <qemu:arg value='/usr/src/seaslic/seabios.submodule/out/bios.bin'/>
    </qemu:commandline>

Save and close your XML file.

Run your VM.

When your Install reach the part where ask for your product key, please pick a key that matches your system's hardware vendor (i.e.: Dell, HP, IBM, etc.) and Windows Version that's on your stick (Windows 7 Standard, Ultimate, etc.) from post “Windows 7 OEM SLP Key Collection”. If you don't get a perfect system match (i.e.: Dell & Windows 7 Ultimate), I've heard that they don't need to match exactly. So grab any SLP key for Datacenter Edition and you'll be fine. However, for Windows 7 it is required to be an perfect match. Finish your Windows Install.

After Windows is installed, download an certificate collection from “The Official Windows 7 Repository”, item F-A, Mirror 2. Unzip it and extract to your Desktop the Certificate that matches your hardware OEM. Now we will install your certifcate. Open cmd and import your certificate. For example, for an Dell system:

 Code:
 C:\Users\Administrator> cd Desktop
 C:\Users\Administrator> slmgr -ilc DELL.xrm-ms

Restart your system and that's all! Now you have an active system. Last edited by Katia Mercaro; 01 May 2012 at 06:14. Reason: adding the slic binary source

kvmでqemuパラメータ.txt · 最終更新: 2019/06/30 12:22 by 127.0.0.1