Using KVM to create the Widnwos image template, the mirror template is already activated by default is a genuine system, but the use of the program copy deployed to different machines found that the activated system becomes inactive, we need to copy to different machines can also display a genuine system
I've been looking for some information on the Internet. By modifying the configuration of the Virsh and modifying the BIOS files can successfully achieve our needs, below to do some simple steps to explain
1. Preparatory work
SLIC 2.1 BINS 1-31-2011.7z Download
Download the above file and unzip it under "SLIC 2.1 bins/dell/2.1 Bin & 2.0 certificate/" to find the appropriate. BIN file as the BIOS file for subsequent virtual machines
I'm using Dell[dell-pe_sc3-dell]2.1.bin as my BIOS file
2. Virsh Configuration file Modification
Below we will modify the Virsh configuration file, set Dell[dell-pe_sc3-dell]2.1.bin as our virtual host BIOS information, after </device> add the following content
< Qemu:commandline > < = ' -bios '/>< = '/export/ Kvmtest/run/config/dell[dell-pe_sc3-dell]2.1.bin '/></qemu:commandline >
Start virtual machine with Virsh create templete.xml after modification
3. Windows System Activation
After starting the virtual machine in the system using the command to activate the system, you can change it to the correct serial number, and then save to Active.bat execution can activate the system
cscript%windir%/system32/slmgr.vbs-ipk xxxx-xxxx-xxxx-%windir%/system32/slmgr.vbs-%windir%/ System32/slmgr.vbs-dlv
After activating the system, the system can be used as a system template, which needs to keep the BIOS settings in the Virsh configuration file. The bin file must use the BIOS file that we use when activating, so that the system is active regardless of the copy of the image template file anywhere.
But there's a problem here. Note that the computer name is the same when using the system template, if you install the database service may cause problems, computer name modification here no longer do a detailed explanation, to ask the degree Niang can
Subtotal Windows activation mode under KVM