Project

General

Profile

Support #659

Install Qemu and Virt-Manager on Arch

Added by Daniel Curtis over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Virtualization
Target version:
Start date:
09/20/2015
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:

Description

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

Prepare the Environment

  • Make sure the system is up to date:
    sudo pacman -Syu
    
  • Install libvirt and a few dependencies:
    sudo pacman -S libvirt qemu ebtables dnsmasq bridge-utils openbsd-netcat
    
    • NOTE: Extra architectures can be installed by installing the qemu-arch-extra package
      sudo pacman -S qemu-arch-extra
      
  • Create the qemu user and added it to kvm group:
    sudo groupadd kvm
    sudo useradd -MrG kvm qemu
    
  • Edit the qemu config:
    sudo nano /etc/libvirt/qemu.conf
    
    • And set the user and groups that qemu will use:
      user = "qemu" 
      group = "kvm" 
      
  • Start and enable libvirtd.service at boot:
    sudo systemctl enable libvirtd
    sudo systemctl start libvirtd
    
  • Change the group authorized to access the RW daemon socket, create the following file:
    sudo nano /etc/polkit-1/rules.d/49-org.libvirt.unix.manager.rules
    
    • And add the following:
      /* 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;
          }
      });
      
  • Then add the bob user to the kvm group:
    usermod -aG kvm bob
    
  • Log out and then log back in for the permissions to take effect.

Install virt-manager

  • Install virt-manager hypervisor:
    pacman -S virt-manager
    
  • Create a new QEMU/KVM Session connection

Resources

#1

Updated by Daniel Curtis over 8 years ago

  • Description updated (diff)
#2

Updated by Daniel Curtis over 8 years ago

  • Description updated (diff)
  • Status changed from New to In Progress
  • % Done changed from 0 to 20
#3

Updated by Daniel Curtis over 8 years ago

  • Description updated (diff)
  • Status changed from In Progress to Resolved
  • % Done changed from 20 to 100
#4

Updated by Daniel Curtis over 8 years ago

  • Description updated (diff)
#5

Updated by Daniel Curtis over 8 years ago

  • Status changed from Resolved to Closed
#6

Updated by Daniel Curtis over 8 years ago

  • Description updated (diff)
  • Subject changed from Install virt-manager on Arch to Install Qemu and Virt-Manager on Arch

Also available in: Atom PDF