Difference between revisions of "KVM"

From Alpine Linux
Jump to: navigation, search
(Created page with "[https://www.linux-kvm.org/page/Main_Page KVM] is an open source virtualization solution in a kernel module. KVM can virtualize x86, PowerPC, and S390 guests. = Installing K...")
 
Line 4: Line 4:
 
= Installing KVM =
 
= Installing KVM =
 
It is possible to install just qemu and libvirt for local management, but most users will probably want libvirt-deamon and/or virt-manager for a GUI.  
 
It is possible to install just qemu and libvirt for local management, but most users will probably want libvirt-deamon and/or virt-manager for a GUI.  
{{Cmd|sudo apk add qemu-system-x86_64 libvirt libvirt-daemon}}
+
{{Cmd|sudo apk add qemu-system-x86_64 libvirt  
 +
sudo apk add libvirt-daemon dbus}}
  
 
Enable the KVM kernel module
 
Enable the KVM kernel module

Revision as of 20:24, 28 July 2017

KVM is an open source virtualization solution in a kernel module. KVM can virtualize x86, PowerPC, and S390 guests.


Installing KVM

It is possible to install just qemu and libvirt for local management, but most users will probably want libvirt-deamon and/or virt-manager for a GUI.

sudo apk add qemu-system-x86_64 libvirt sudo apk add libvirt-daemon dbus

Enable the KVM kernel module

sudo modprobe kvm-intel

or

sudo modprobe kvm-amd


Add your user to the follwing groups so you can mange the vms

sudo addgroup user kvm sudo addgroup user qemu sudo addgroup user libvirt