1, first need to download the hardware driver file Https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso
https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win_x86.vfd
https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win_amd64.vfd
2, install QEMU-KVM software on CENTOS7 can also use Virsh-install or Virsh-manager to create the image
Qemu-img create-f qcow2 Windows2003_x64.qcow2 20G
/USR/LIBEXEC/QEMU-KVM-SMP 2-m 2048-cdrom win2k3_sp2_chs.iso-drive FILE=WINDOWS2003_X64.QCOW2,IF=VIRTIO,BOOT=ON-FDA Virtio-win_x86.vfd-boot Order=d,menu=on-usbdevice Tablet-nographic-vnc 192.168.0.1:1
3. Quickly use the VNC client remote Connection terminal in the menu bar Select CD to boot the system after installation
4. Restart the virtual machine image, load the Virtio driver, install the NIC driver, execute the following command
/USR/LIBEXEC/QEMU-KVM-SMP 2-m 2048-cdrom virtio-win.iso-drive file=windows2003_x64.qcow2,-boot c-net Nic,model=virti O-net User-nographic-vnc 192.168.0.1:1
5. Package system to remove the same SID re-mount system disk
/USR/LIBEXEC/QEMU-KVM-SMP 2-m 2048-drive file=windows2003_x64.qcow2-cdrom win2k3_sp2_chs.iso-net nic,model=virtio-n ET user-boot order=c-usbdevice tablet-nographic-vnc 192.168.0.1:1
2) After you start the system, go to the Deploy.cab folder in the Support/tools directory on the disc
(3) Extract all files under the folder to the C:\sysgrep directory
(4) Create an answer file to execute Setupmgr.exe, create a new file--"Sysprep Installation-" is, fully automatic installation-"Fill the system configuration after the production file Sysprep.inf file
(5) to the C:\sysgrep directory, run the Sysprep.exe, in the warning point out of the "OK" 15s after the system automatically shut down
2008 production is no longer a fat
This article is from the "Let Me Men Grow Together" blog, please be sure to keep this source http://wujingfeng.blog.51cto.com/5725921/1859817
Qcow2 production of OpenStack's windows2003/08 system