Install Windows XP Based on gui kvm and load the virtio driver during installation. Update sound usage

Source: Internet
Author: User
There are a lot of instructions on KVM, but it is basically a command line. It is not intuitive for new users, and it is not mentioned about virtio driver installation. So I sent another article.
The performance of the virtual hard disk and virtual network using the virtio interface is not comparable to that of the default ide interface.

From Installing a virtual machine to running a virtual system, you only need to use the command line three times.
Based on 10.04, it is also applicable in theory to 9.10.
Start.

Ensure that the CPU supports and enables Virtualization:Code:Egrep '(vmx | SVM)'/proc/cpuinfo

There are red letters (or other distinctive colors) and virtualization is enabled in the BIOS.
If there is no virtualization, give up ......

Make sure that the source is complete. You can set "software source" and select all the options on the first tab (Source codeDo not select ). Then, you must first select "treat recommended software packages as dependent software packages" in your preferences, and then Mark and install virt-manager, virt-viewer, the new version automatically uses KVM as the dependency tag.

Here we insert a sentence: KVM has been merged with qemu. In the source, "KVM" and "qemu" both point to the "qemu-KVM" virtual package, and the version in the source is new enough.

You must grant virt-manager administrator permissions. Otherwise, you cannot create your own VPC:Code:Sudo gedit/usr/bin/virt-Manager

Of course, you can replace gedit with any text editor you like.
Then:Code:Exec Python "/usr/share/virt-Manager/virt-manager.py" "$ @"

Modify:Code:Exec gksu Python "/usr/share/virt-Manager/virt-manager.py" "$ @"

Save and close.

From "Application Program Run "Virtual System Manager" in "System Tools". If it succeeds, you should be able to see localhost (qemu), right-click, details, and virtual network.
Then you can create a virtual network. The settings on the previous pages can be kept by default. Note that you must select "forward to physical network" on the "connect to physical network" Page. In this mode, Nat is used.
Do not select "Route" unless you know the meaning of the subnet mask of the route after the route.
After setting the virtual network, select "auto start" of the virtual network ".
Or right-click localhost (qemu) to create a new one.
In Step 1: Enter the name of the VM to be created, and click Next.
In Step 2: Use an ISO image. If you select this image, we do not actually use the image selected here to install the system.
Step 3 is set by default. You can set it later.
Step 4 is important. Select "select managed or other existing storage", browse, and create a volume. Note: remove the Suffix from the name (the program will automatically add a suffix. If it is not removed, it will be two suffixes ......) We recommend that you select qcow2 as the format, which can also be the default format. The maximum capacity is the size of the C disk of the Virtual Machine. Let's take a look at it ...... By default, you can use other methods. Select the file you just created, and thenBe sure to remove the "enable storage for virtual machines" check box .
Select the created virtual network as the advanced option in step 5.
Then a monitoring window for the virtual machine will pop up, and you can leave it there.
Download the virtio drive disk image for Windows XP.
Http://www.linux-kvm.com/sites/default/files/viostor-31-03-2010-floppy.img
Download a virtio drive disc image to install the Network Driver of the virtual system.
Http://www.famzah.net/download/kvm/virtio-windows/24.09.2009/NetKVM-and-viostor.iso
The attachment is the two packages. Attachment: File notes:32, 64-bit Windows XP, 2003 with virtio driver.
Virtio-driver.7z [501.54 kib]
Downloaded for 15 times

install the system to the virtual hard disk you just created: code: sudo KVM-boot D-CDROM [full path and file name of the Windows installation disk image]-drive file = [full path and file name of the Virtual Disk], if = virtio, boot = on-FDA [full path and file name of the virtio drive disk image]-m 600

the virtual hard disk is stored in the/var/lib/libvirt/images/folder by default, and the file name is the same as the Virtual Machine name by default. the driver image is suffixed with an IMG. Do not select an incorrect image!
press enter, F6 (that is, attach an additional driver from the floppy disk during installation), S, and select the driver. Note that 64-bit XP uses a 64-bit 2003 driver.
the next step is to install XP. There will be a prompt in the middle to determine whether to continue to install the driver without a logo. Click continue.
note that KVM uses CTRL + ALT to control Mouse capture. In addition, the KVM key combinations (such as CTRL and shift) there is a problem with the transfer of (this problem will not occur when using the Virtual System Manager in the future) , so it is easier to set the password, eight "1" and so on ......
shut down the virtual XP directly after installation, and close the terminal after closing the window of the virtual machine.
Go Back To The monitoring window of the VM and select "details" in "View ". This is the place to manage Virtual Machine Hardware settings. You can check the number of CPUs and memory size on your own.
focus:
ide CDROM 1, that is, the virtual Optical Drive. Disconnect and connect the original virtio drive disc image (ISO suffix) for application.
Delete NIC: XX, which is the default network interface. Yes, click "delete" because we need to replace the interface of the virtual Nic.
Add hardware at the bottom, as the name suggests.
next we will add Virtual Hardware: hard disk and nic.
Add hardware, select "Storage", and move forward. Select "file", browse, and select the virtual hard disk file you just created. Then, select "device type" of "target", and select "virtio disk" .
Add hardware, select "network", and move forward. select "virtio" for "device model" and select the virtual network you just created for "host device" to go forward, complete.
select "Hard Disk" from "Boot option" and apply it.
after all settings are completed, "Virtual Machine" and "run ".
the next step is to install the driver in xp. It should have a wizard and select to install the driver from the CD.

The 32-and 64-bit XP and 2003 are tested. The method is the same. I didn't test other versions of Windows, and I don't know if the driver can be used (probably not ......)

By the way, if you want to use a virtual Linux system, virtio drivers are usually provided for kernels later than 2.6.25, therefore, you only need to select Linux and the release version you want to install in step 2 of creating a new virtual machine. After you select the virtual hard disk, you do not need to remove the check box and directly move forward to install the system, by default, the interface is directly virtio.
From this we can see that win is proud ......

Therefore, KVM released the vmwarevga virtual graphics card driver for Windows. Although I don't feel any changes, it is said that there are improvements in the optional resolution, so I will update it.
First download the driver:
32-bit:
Http://www.linux-kvm.com/sites/default/files/vmwarevga32-kvm.iso
64-bit:
Http://www.linux-kvm.com/sites/default/files/vmwarevga64-kvm-2.iso
The attachment is the two packages: attachment:File notes:Vmwarevga driver.
Vmwarevga.7z[ 440.67 kib]
Downloaded 7 times

Method:
First, run the virtual Windows as before, and then select "details" in "View" in the monitoring window that is still a virtual machine, and connect the corresponding version of ISO in IDE cdrom1, in this way, the drive disc will appear in the optical drive of the virtual system, so that it can be played automatically.
Disable the virtual computer and change the "model" in "video" of "details" to "vmvga.
For virtual Linux, simply change it to "vmvga.

Sound usage:
Virt-Viewer uses VNC by default to display virtual machines, but this VNC has no sound. Of course, this problem can be solved through the Remote Desktop, But I tested the poor effect of the Remote Desktop, so I went over again.
First, replace the Virtual Sound Card.
Delete "sound: es1370" of "details", add "sound" and select "ac97", delete "display: VNC", and add "graphics ", select "Local SDL window" and click OK.
In the future, the virtual opportunity will be displayed in a new window, and the sound can be used normally.

Other reference urls:
Http://open.eucalyptus.com/forum/how-create-windows-image
Http://kiranmurari.wordpress.com/2010/03/29/uec-bundling-windows-image/
Http://www.linux-kvm.org/page/Boot_from_virtio_block_device

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.