Installation guide
Virtualization Guide
iv
III. Configuration 73
10. Network Configuration 75
10.1. Network Address Translation (NAT) with libvirt .................................................... 75
10.2. Bridged networking with libvirt ........................................................................... 76
11. KVM Para-virtualized Drivers 79
11.1. Using the para-virtualized drivers with Red Hat Enterprise Linux 3.9 guests ........... 79
11.2. Installing the KVM Windows para-virtualized drivers ............................................ 82
11.2.1. Installing the drivers on an installed Windows guest .................................. 82
11.2.2. Installing drivers during the Windows installation ...................................... 92
11.3. Using KVM para-virtualized drivers for existing devices ....................................... 99
11.4. Using KVM para-virtualized drivers for new devices ........................................... 100
12. PCI passthrough 107
12.1. Adding a PCI device with virsh ........................................................................ 108
12.2. Adding a PCI device with virt-manager ............................................................. 110
12.3. PCI passthrough with virt-install ....................................................................... 114
13. SR-IOV 117
13.1. Introduction .................................................................................................... 117
13.2. Using SR-IOV ................................................................................................. 118
13.3. Troubleshooting SR-IOV .................................................................................. 121
14. KVM guest timing management 123
IV. Administration 127
15. Server best practices 129
16. Security for virtualization 131
16.1. Storage security issues ................................................................................... 131
16.2. SELinux and virtualization ............................................................................... 131
16.3. SELinux ......................................................................................................... 133
16.4. Virtualization firewall information ...................................................................... 133
17. sVirt 135
17.1. Security and Virtualization ............................................................................... 136
17.2. sVirt labeling ................................................................................................... 136
18. KVM live migration 139
18.1. Live migration requirements ............................................................................ 139
18.2. Shared storage example: NFS for a simple migration ........................................ 140
18.3. Live KVM migration with virsh ......................................................................... 141
18.4. Migrating with virt-manager ............................................................................. 142
19. Remote management of virtualized guests 155
19.1. Remote management with SSH ....................................................................... 155
19.2. Remote management over TLS and SSL ......................................................... 156
19.3. Transport modes ............................................................................................. 157
20. Overcommitting with KVM 161
21. KSM 165
22. Advanced virtualization administration 169
22.1. Guest scheduling ............................................................................................ 169
22.2. Advanced memory management ...................................................................... 169
22.3. Guest block I/O throttling ................................................................................. 169
22.4. Guest network I/O throttling ............................................................................. 169