Installation guide

Change the device configuration to use the para-virtualized drivers (Section 13.3, “ Using KVM para-
virtualized drivers for existing devices ) or install a new device which uses the para-virtualized
drivers (Section 13.4, “Using KVM para-virtualized drivers for new devices ).
13.2. Inst alling drivers wit h a virt ualized floppy disk
This procedure covers installing the para-virtualized drivers during a Windows installation.
Upon installing the Windows VM for the first time using the run-once menu attach viostor.vfd
as a floppy
Win d ows Server 2003
When windows prompts to press F6 for third party drivers, do so and follow the onscreen
instructions.
Win d ows Server 2008
When the installer prompts you for the driver, click on Load Driver, point the installer to
drive A: and pick the driver that suits your guest operating system and architecture.
13.3. Using KVM para-virt ualized drivers for exist ing devices
Modify an existing hard disk device attached to the guest to use the virtio driver instead of
virtualized IDE driver. This example edits libvirt configuration files. Alternatively, virt-manager,
virsh attach-disk or virsh attach-interface can add a new device using the para-
virtualized drivers Section 13.4, “Using KVM para-virtualized drivers for new devices .
1. Below is a file-based block device using the virtualized IDE driver. This is a typical entry for a
guest not using the para-virtualized drivers.
<disk type='file' device='disk'>
<source file='/var/lib/libvirt/images/disk1.img'/>
<target dev='vda' bus='ide'/>
</disk>
2. Change the entry to use the para-virtualized device by modifying the b u s= entry to virtio.
<disk type='file' device='disk'>
<source file='/var/lib/libvirt/images/disk1.img'/>
<target dev='vda' bus='virtio'/>
</disk>
13.4 . Using KVM para-virt ualized drivers for new devices
This procedure covers creating new devices using the KVM para-virtualized drivers with virt-
manager.
Alternatively, the virsh attach-disk or virsh attach-interface commands can be used to
attach devices using the para-virtualized drivers.
Chapt er 1 3. KVM Para- virt ualized Drivers
177