GUI-based KVM installs Windows XP and loads the Virtio drive at installation time. How to update sound usage

Source: Internet
Author: User
The use of KVM is actually a lot of, but the basic command line, for beginners is not intuitive, and there is no mention of virtio-driven installation. So I sent another one.
The performance of a virtual hard disk and a virtual network using the Virtio interface is not comparable to the default IDE interface.

From installing the virtual machine to running the virtual system, use it all three times to the command line.
Based on 10.04, the theory also applies to 9.10.
Below, start.

Ensure CPU support and turn on virtualization:
Code:Egrep ' (VMX|SVM) '/proc/cpuinfo
There are red characters (or other distinctive colors), and virtualization is turned on in the BIOS.
If there is no virtualization, give it up ...

Make sure the source is complete, and you can set the software source to select all the options on the first tab (the source code is not selected). Then the new, first in the preferences to select "The recommended package as a dependent software package", and then mark and install Virt-manager, Virt-viewer, the new stand will automatically take the KVM as a dependency tag.

Here's a word: KVM has been merged with QEMU, the source of "KVM" and "qemu" are pointing to the "QEMU-KVM" of the virtual package, the source version is enough new.

To give Virt-manager administrator permissions, you cannot create a virtual network yourself:
Code:sudo gedit/usr/bin/virt-manager
Of course you can replace gedit with any text editor you like.
Then put:
Code:exec python "/usr/share/virt-manager/virt-manager.py" "$@"
Modified into:
Code:exec gksu python "/usr/share/virt-manager/virt-manager.py" "$@"
Save, close.

Run "virtual System Manager" from "System Tools" in "Application" and should be able to see localhost (QEMU), right button, details, virtual network if it goes well.
Then you create the virtual network yourself. The settings for the previous pages remain the default, noting that the "Connect to Physical Network" page will select "forward to physical network" and that the pattern be NAT.
Do not select "routed" unless you are behind the route and know the meaning of the subnet mask of the route.
Select Automatic startup of the virtual network after completing the virtual network settings.
or right-click on localhost (QEMU) and create a new one.
Step 1: Enter the name of the virtual machine you want to create, next.
Step 2: Using the ISO image, this random selection, in fact, we do not use the image selected here to install the system.
Step 3 is done by default, and you can set it later anyway.
Step 4 is the focus. Select "Select managed or other existing storage" to browse to create a new volume. Note that the suffix of the name is removed (the program will automatically add a suffix, if not removed is two suffix ...) The format suggests selecting Qcow2, and of course you can default. The maximum capacity of the virtual machine is the size of the C-disk, see To do it yourself ... Other defaults are good. When you're done, select the file you just created, and then be sure to remove the check box, "Enable storage for virtual machines."
The advanced options in step 5 Select the virtual network you created just now to complete.
It then pops up a watch window for the virtual machine and throws it there.
Download the Virtio drive floppy image for Windows XP.
Http://www.linux-kvm.com/sites/default/files/viostor-31-03-2010-floppy.img
Download a virtio drive CD image to install the network driver for the virtual system.
Http://www.famzah.net/download/kvm/virtio-windows/24.09.2009/NetKVM-and-viostor.iso
The attachment is the packaging of these two.
Attachment: file Comments:32, 64-bit Windows XP, 2003 with Virtio Drive.
virtio-driver.7z [501.54 KiB]
was downloaded 15 times
Next, install the system into the virtual hard drive you just created:
Code:sudo kvm-boot d-cdrom [Full path and filename of the Windows installation disk Mirror]-drive file=[the full path and filename of the virtual hard disk],IF=VIRTIO,BOOT=ON-FDA [ Full path and filename for Virtio Drive diskette image]-M 600
The virtual hard disk is placed in the/var/lib/libvirt/images/folder by default, and the name of the virtual machine is the same. Drive Mirror is the one with IMG suffix, don't choose wrong.
Carriage return, F6 (i.e. load extra drive from floppy disk during installation), S, select Drive. Note that 64-bit XP uses a 64-bit 2003 driver.
The next step is to install XP. The middle will be prompted whether to continue to install the driver without the logo, the point continues to be OK.
Note that the KVM is ctrl+alt to control mouse capture, in addition, the KVM running has a problem with the transfer of key combinations (CTRL, SHIFT, and so on) (which will not be the problem with the Virtual System Manager later), so try to set the password as simple as possible, eight "1" ...
After the installation of the virtual XP directly shut down, and so the virtual machine window closed after the terminal can be turned off.
Go back to the monitor window of the virtual machine and select "Details" in "View". This is where you manage the hardware settings for your virtual machines. The number of CPUs and the size of the memory are still in their own eyes.
The next point is:
IDE CDROM 1, which is the virtual optical drive. Disconnect the original, connect, select the Virtio drive disc image (ISO suffix), application.
Deleting "NIC:xx:xx:xx" is also the default network interface. Yes, click "Delete" because we want to replace the interface of the virtual NIC.
The bottom of the "Add Hardware", as the name suggests.
We next want to add Virtual hardware: Hard disk, Nic.
Add Hardware, select "Storage" and go forward. Select File, browse, and select the virtual hard disk file you just created. Then the "target" of "Device Type", select "Virtio Disk", forward, complete.
Add Hardware, select "Network" and go forward. "Device Model" select "Virtio", "Host Device" Select the virtual network you just created, forward, complete.
"Boot Option" select "Hard Disk", Application.
When all is set, "Virtual machine", "Run".
The next step is to install the driver in XP, it should have a wizard, choose from the CD installation driver can be.

Tested for 32, 64-bit XP and 2003, the same method. No other versions of Windows are tested, I don't know if the driver will work (I can't ...)

By the way, if you want to have a virtual Linux system, The kernel is typically driven by virtio in 2.6.25. So as long as the new virtual machine in step 2 to choose Linux and then you want to install the release version, select the virtual hard drive without removing the check box directly forward can be installed system, the interface defaults directly is Virtio.
This shows win's pride ...

So KVM released the VMWAREVGA virtual graphics driver for Windows, although I didn't feel any change, but it is said to be improved on the optional resolution, so update.
First Download 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 packaging of these two:
Attachment: file Comments:VMWAREVGA Drive.
vmwarevga.7z [440.67 KiB]
was downloaded 7 times
Method:
First run virtual windows as before, then in the still Virtual machine monitoring window, "view" select "Details" in the IDE CDROM1 there to connect the corresponding version of ISO, so that the virtual system CD drive will have a drive disc, so that it automatically play, OK.
Then turn off the virtual computer, the "details" of the "model" in the "VMVGA" can be changed.
As for the virtual Linux, the direct change to "VMVGA" would be good.

Use sound:
Virt-viewer uses VNC to display virtual machines by default, but this VNC has no sound. Of course, the Remote Desktop to solve this problem, but I tested the Remote Desktop effect is not good, so I toss again.
First, replace the virtual sound card.
Delete "Details" of "sound:es1370", add "Sound" select "Ac97", then "show: VNC" Delete, add "Graphics", select "Local SDL window", OK.
Later, the virtual opportunity is displayed in a new window, and the sound can be used normally.

Several other reference sites:
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
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.