O'Reilly logo

KVM Virtualization Cookbook by Konstantin Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

To install libvirt from packages and source follow the following steps:

  1. On Ubuntu, install the package by running:
root@kvm:~# apt update && apt install libvirt-binroot@kvm:~#





 

 

  1. Ensure that the libvirt daemon is running by executing:
root@kvm:~# pgrep -lfa libvirtd36667 /usr/sbin/libvirtdroot@kvm:~#
  1. Examine the default configuration:
root@kvm:~# cat /etc/libvirt/libvirtd.conf | grep -vi "#"   | sed '/^$/d'  unix_sock_group = "libvirtd"  unix_sock_ro_perms = "0777"  unix_sock_rw_perms = "0770"  auth_unix_ro = "none"  auth_unix_rw = "none"  root@kvm:~#
  1. Disable the security driver in QEMU by editing the qemu configuration file as follows:
root@kvm:~# vim /etc/libvirt/qemu.conf...security_driver = "none"...root@kvm:~# ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required