Slime: KVM installs Windows Server R2 using Virtio hard drive

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.