Choose the right kvm & kernel version: Difference between revisions
From KVM
m (typo in category name) |
m (→Linux Module) |
||
Line 9: | Line 9: | ||
== Linux Module == | == Linux Module == | ||
KVM requires a | KVM requires a few kernel modules in order to support full virtualization. Most distributions contain these modules by default, but they may need to be loaded manually. You can check if the KVM module is currently loaded with: | ||
lsmod | grep kvm | |||
If | If the module is not loaded, simply issue: | ||
modprobe kvm | modprobe kvm | ||
You may also need to load the appropriate module for your processor: | |||
modprobe kvm_intel # Intel processors | |||
modprobe kvm_amd # AMD processors | |||
=== Guest virtio driver === | === Guest virtio driver === | ||
Generally, there are no special requirements for the guest operating system. If you are using para-virtualized disks or network adapters however, make sure you have loaded the virtio_pci.ko, virtio_rng.ko, virtio_blk.ko, and virtio_net.ko modules (available since kernel version 2.6.25). | |||
Refer to [[Virtio]] for more information | Refer to [[Virtio]] for more information | ||
[[Category:Architecture]][[Category:Docs]][[Category:Historical]][[Category:HowTo]] | [[Category:Architecture]][[Category:Docs]][[Category:Historical]][[Category:HowTo]] |
Revision as of 22:16, 19 January 2017
Three Components
To make it work, you need to get the right version for three components:
- Linux Module
- User Space Application
- Guest Virtio Driver
Linux Module
KVM requires a few kernel modules in order to support full virtualization. Most distributions contain these modules by default, but they may need to be loaded manually. You can check if the KVM module is currently loaded with:
lsmod | grep kvm
If the module is not loaded, simply issue:
modprobe kvm
You may also need to load the appropriate module for your processor:
modprobe kvm_intel # Intel processors modprobe kvm_amd # AMD processors
Guest virtio driver
Generally, there are no special requirements for the guest operating system. If you are using para-virtualized disks or network adapters however, make sure you have loaded the virtio_pci.ko, virtio_rng.ko, virtio_blk.ko, and virtio_net.ko modules (available since kernel version 2.6.25).
Refer to Virtio for more information