Host can be a virtual machine or a physical machine
System:
ubuntu12.04
do not use ubuntu14.04, the keyboard can not be entered after the VNC connection problem
Software:
VNC Viewer 4
Putty
Driver files:
Virtio-win-1.1.16.vfd
Virtio-win-1.1.16.iso
Link: http://pan.baidu.com/s/1i3rGNn3 Password: QSJL
System Image:
Link:http://pan.baidu.com/s/1sjCzooX secret code: oa2d
only need CD1
1. If the host is a physical machine, turn on the CPU virtualization feature on the BIOS, and if the host is a virtual machine, as installed on VMware, check the virtualization capabilities of the processor.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/59/75/wKiom1TTNnShNKO4AAHlmy-ENec864.jpg "title=" 1.png " Style= "Float:none;" alt= "wkiom1ttnnshnko4aahlmy-enec864.jpg"/>
2. Installing KVM and Libvirt-bin
Apt-get install-y KVM Libvirt-bin
3, through the putty landing into the system, you can download the file directory mount to the machine or through the Sftp pass up.
4. Create image file
kvm-img create-f qcow2 windows2003.img 10G
The image format is Qcow2, the hard disk size is 10G, the image name is windows2003.img
650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M02/59/72/wKioL1TTN2GiY_TMAACs3grG3Yc281.jpg " Title= "2.png" style= "Float:none;" alt= "wkiol1ttn2giy_tmaacs3grg3yc281.jpg"/> 650) this.width=650; "Src="/e/u261/ Themes/default/images/spacer.gif "style=" border:1px solid rgb (221,221,221); background-position:50% 50%; background-repeat:no-repeat; "alt=" Spacer.gif "/>
5. Boot the system from the optical drive and load the floppy disk
kvm-m 1024-localtime-smp 1-cdrom windows2003_cd1.iso-drive FILE=WINDOWS2003.IMG,IF=VIRTIO-FDA virtio-win-1.1.16 . vfd-boot D-nographic-usbdevice tablet-vnc:0
-M 1024 Memory 1024M
-SMP 1 CPU count is 1
-localtime using local time
-cdrom Windows2003_cd1.iso Optical Drive loaded file is Windows2003_cd1.iso
-drive file=windows2003.img.img,if=virtio image file is windows2003.img, driver is virtio type
-fdavirtio-win-1.1.16.vfd floppy drive loaded files are virtio-win-1.1.16.vfd
-boot d booting from the optical drive
-usbdevice USB driver for tablet tablet type
The port number of the-vnc:0 VNC connection is 0
6, through the Vncviewer, enter the service address **.**.**.**:0 connected up
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/59/75/wKiom1TTNnWwg9qyAADpkgs2Ttg515.jpg "title=" 3.png " Style= "Float:none;" alt= "wkiom1ttnnwwg9qyaadpkgs2ttg515.jpg"/>650) this.width=650; src=/e/u261/themes/ Default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat Center; border:1px solid #ddd; "alt=" Spacer.gif "/>
Press F6
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/59/72/wKioL1TTN2GyJcZLAALj_ufPFB4555.jpg "title=" 4.png " Style= "Float:none;" alt= "wkiol1ttn2gyjczlaalj_ufpfb4555.jpg"/>
Press S
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/59/75/wKiom1TTNnXR_naSAAI6u8MSs1w727.jpg "title=" 5.png " Style= "Float:none;" alt= "wkiom1ttnnxr_nasaai6u8mss1w727.jpg"/>
Select the second item, load the hard drive from the floppy disk, and enter
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/59/72/wKioL1TTN2GSl3rBAAKOkOWoR5w601.jpg "title=" 6.png " Style= "Float:none;" alt= "wkiol1ttn2gsl3rbaakokowor5w601.jpg"/>
Press F8 (select Send F8 or convert in Options/input/menu keys)
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/59/75/wKiom1TTNnaCw3e5AAIjTCPytJY796.jpg "title=" 7.png " Style= "Float:none;" alt= "wkiom1ttnnacw3e5aaijtcpytjy796.jpg"/>
Enter
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/59/72/wKioL1TTN2Kjkv78AAJi6JD10HA316.jpg "title=" 8.png " Style= "Float:none;" alt= "wkiol1ttn2kjkv78aaji6jd10ha316.jpg"/>
Choose to use NTFS to quickly format a disk
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/59/75/wKiom1TTNnaCqujkAAG3NPIci94717.jpg "title=" 9.png " Style= "Float:none;" alt= "wkiom1ttnnacqujkaag3npici94717.jpg"/>
After lengthy formatting, copying files, and installing, the system finally ran up and shut down
7. Boot from hard drive and load virtio-win-1.1.16.iso with optical drive
kvm-m 1024-localtime-smp 1-cdrom virtio-win-1.1.16.iso-drive file=windows2003.img,if=virtio-net Nic,model=virtio-net user-boot c-nographic-usbdevice tablet-vnc:0
-cdrom Virtio-win-1.1.16.iso Optical drive load Virtio-win-1.1.16.iso mirror
-net Nic,model=virtio Creating a network card with model Virtio
-net User-mode network
-boot c booting from hard disk
8, again through the Vncviewer, enter the service address **.**.**.**:0 connected up
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/59/72/wKioL1TTN2ORt0dNAAGSZc-7hso965.jpg "title=" 10.png "Style=" Float:none; "alt=" wkiol1ttn2ort0dnaagszc-7hso965.jpg "/>
Right-click to send CTRL + ALT + Del Login System
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/59/75/wKiom1TTNneTK1X3AALqyN4mOzQ247.jpg "title=" 11.png "Style=" Float:none; "alt=" wkiom1ttnnetk1x3aalqyn4mozq247.jpg "/>
Tips for discovering new hardware, select "Yes, this time only"
650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M01/59/72/wKioL1TTN2Pz-xCoAAGVGhr8wxk260.jpg " Title= "12.png" style= "Float:none;" alt= "wkiol1ttn2pz-xcoaagvghr8wxk260.jpg"/>
Install from a list or make a location (advanced)
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/59/75/wKiom1TTNnfh5o1lAAGMofGxzQM944.jpg "title=" 13.png "Style=" Float:none; "alt=" wkiom1ttnnfh5o1laagmofgxzqm944.jpg "/>
Select "D:\NetKVM\XP\x86"
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/59/72/wKioL1TTN2SCCmYJAAF8A1q2bfE744.jpg "title=" 14.png "Style=" Float:none; "alt=" wkiol1ttn2sccmyjaaf8a1q2bfe744.jpg "/>
Still continue
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/59/75/wKiom1TTNnigJsYdAAFHHoL6Elk981.jpg "title=" 15.png "Style=" Float:none; "alt=" wkiom1ttnnigjsydaafhhol6elk981.jpg "/>
Select OK
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/59/72/wKioL1TTN2TAMRvpAAFoedRjDYI780.jpg "title=" 16.png "Style=" Float:none; "alt=" wkiol1ttn2tamrvpaafoedrjdyi780.jpg "/>
Browse D:\NetKVM\XP\x86\Netkvm.sys, and determine
650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M00/59/75/wKiom1TTNnihzXG_AAD_x1ZgQao433.jpg " Title= "17.png" style= "Float:none;" alt= "wkiom1ttnnihzxg_aad_x1zgqao433.jpg"/> 650) this.width=650; "Src="/e/u261 /themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/59/72/wKioL1TTN2Shb1DpAAFUDvjQQEA006.jpg "title=" 18.png "Style=" Float:none; "alt=" wkiol1ttn2shb1dpaafudvjqqea006.jpg "/>
Installation is successful, view Device Manager
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/59/75/wKiom1TTNnmCoE0tAALSD91c-hs144.jpg "title=" 19.png "Style=" Float:none; "alt=" wkiom1ttnnmcoe0taalsd91c-hs144.jpg "/>
Turn off the machine and the image is finished.
This article from "Broken Million book" blog, declined reprint!
Making a Windows Server 2003 image