Project

General

Profile

Support #659

Updated by Daniel Curtis over 8 years ago

This is a simple guide for getting started with virt-manager on Arch Linux. 

 h2. Prepare the Environment 

 * Make sure the system is up to date: 
 <pre> 
 sudo pacman -Syu 
 </pre> 

 * Install libvirt: 
 <pre> 
 sudo pacman -S libvirt 
 </pre> 

 * Start and enable libvirtd.service at boot: 
 <pre> 
 systemctl enable libvirtd.service 
 systemctl start libvirtd.service 
 </pre> 

 * Change the group authorized to access the RW daemon socket, create the following file: 
 <pre> 
 /etc/polkit-1/rules.d/49-org.libvirt.unix.manager.rules 
 </pre> 
 #* And add the following: 
 <pre> 
 /* Allow users in kvm group to manage the libvirt 
 daemon without authentication */ 
 polkit.addRule(function(action, subject) { 
     if (action.id == "org.libvirt.unix.manage" && 
         subject.isInGroup("kvm")) { 
             return polkit.Result.YES; 
     } 
 }); 
 </pre> 

 * Then add the user bob to the kvm group: 
 <pre> 
 groupadd kvm 
 usermod -aG kvm bob 
 </pre>  

 * Log out and then log back in for the permissions to take effect. 

 h2. Install virt-manager 

 * Install virt-manager hypervisor: 
 <pre> 
 pacman -S virt-manager 
 </pre> 

 h2. Resources 

 * https://wiki.archlinux.org/index.php/Libvirt

Back