Installation guide

# ethtool -K interface gso off
# ethtool -K interface tso off
Virt io d river swap p art it io n issu e
After activating the virtio block device driver the swap partition may not be available. This issue is
may be caused by a change in disk device name. To fix this issue, open the /etc/fstab file and
locate the lines containing swap partitions, for example:
/dev/hda3 swap swap defaults 0 0
The virtio drivers use the /d ev/vd * naming convention, not the /d ev/hd * naming convention. To
resolve this issue modify the incorrect swap entries in the /etc/fstab file to use the /d ev/vd *
convention, for the example above:
/dev/vda3 swap swap defaults 0 0
Save the changes and reboot the guest virtual machine. The virtual machine should now have swap
partitions.
10.5. Using KVM virt io drivers for exist ing devices
You can modify an existing hard disk device attached to the guest to use the vi rti o driver instead
of the virtualized IDE driver. The example shown in this section edits libvirt configuration files. Note
that the guest virtual machine does not need to be shut down to perform these steps, however the
change will not be applied until the guest is completely shut down and rebooted.
Pro ced u re 10.4 . Usin g KVM virt io d rivers f o r exist in g d evices
1. Ensure that you have installed the appropriate driver (vi o sto r), as described in
Section 10.1, “Installing the KVM Windows virtio drivers , before continuing with this
procedure.
2. Run the vi rsh ed i t <g uestname> command as root to edit the XML configuration file for
your device. For example, vi rsh ed i t g uest1. The configuration files are located in
/etc/l i bvi rt/q emu.
3. Below is a file-based block device using the virtualized IDE driver. This is a typical entry for a
virtual machine not using the virtio drivers.
<disk type='file' device='disk'>
<source file='/var/lib/libvirt/images/disk1.img'/>
<target dev='hda' bus='ide'/>
</disk>
4. Change the entry to use the virtio device by modifying the bu s= entry to vi rti o. Note that if
the disk was previously IDE it will have a target similar to hda, hdb, or hdc and so on. When
changing to b u s= virt io the target needs to be changed to vda, vdb, or vdc accordingly.
<disk type='file' device='disk'>
<source file='/var/lib/libvirt/images/disk1.img'/>
<target d ev= 'vd a' bus= ' vi rti o ' />
</disk>
Chapt er 1 0 . KVM Para- virt ualiz ed (virt io) Drivers
85