This article starts in the slime row World .
In the previous article, we introduced the use of the IDE hard disk to install Windows Server R2, which we described using the Virtio hard disk to install Windows Server R2.
Description: The default hard drive format used by KVM is virtio.
using the Virtio interface of the hard drive, we must load the virtio hard drive. If you do not load the drive, Windows Installer will not be able to find the virtual disk , such as:
Now install the virtual machine installation steps, first create the virtual machine's hard disk, using the following command:
Qemu-img create-f qcow2 lanni02.img 15G
To create a virtual machine, use the following command:
Virt-install-n ilanni02-r 2048--vcpus=2--os-type=windows--accelerate-c/iso/windows_server_2008_r2/win_server_ 2008_r2_sp1_33in1.iso --disk path=/iso/virtio-win-0.1-81.iso,device=cdrom --disk path=/vhost/ilanni02.img , Format=qcow2,bus=virtio --network bridge=br0--vnc--vncport=5992--vnclisten=0.0.0.0--force--autostart
Note the above command:
-disk Path=/iso/virtio-win-0.1-81.iso,device=cdrom indicates that the Virtio-win-0.1-81.iso image file is mounted to the system in the form of an optical drive. Virtio-win-0.1-81.iso is a driver file for Virtio.
After executing the above command, we can use the VNC client to install the OS on the virtual machine.
When you install to a hard disk, you will see such as:
You can see that there are no hard drives, click "Load Drivers", such as:
Click "Browse"
in the optical drive, we can see that there are two CD-ROM D-drives and e-drives. where D disk system image files, and e-drive is the Virtio driver. Click on the E-disk-"WLH"-"AMD64", such as:
Note Because I am installing a 64bit OS here, so the choice is AMD64, if you install the OS is 32bit, it is recommended that you choose X86.
Select the driver to install
Start installation
Once the installation is complete, we can see that the hard drive has been identified.
After the system is installed, see the hard drive in the system.
PS: For the Virtio driver, we can download the following connection:
http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
Https://www.linuxwind.org/html/kvm-windows-2008-virtion-driver.html