User Tools

Site Tools


Sidebar

kvm:libvirt

Libvirt

  1. 􏰁libvirt is a virtualization abstraction layer that sits between the hypervisor and the management tools
  2. 􏰁Provides a uniform and extensible virtualization management api
  3. 􏰁Provides management interface to multiple hypervisors – Xen, KVM, Qemu, VirtualBox, LCX

Main Configuration Files and Directories

  1. 􏰁/etc/libvirt/ -Main libvirt configuration directory
  2. 􏰁/etc/libvirt/libvirtd.conf -Main configuration file for the libvirt daemon 􏰁
  3. /etc/libvirt/qemu.conf -Configuration file for the qemu driver 􏰁
  4. /etc/libvirt/lxc.conf -Configuration file for the LXC driver 􏰁
  5. /etc/libvirt/qemu/ -Managed configuration directory for KVM VMs
  6. 􏰁/etc/libvirt/storage/ -Managed configuration directory for storage 􏰁
  7. /var/lib/libvirt/ -Directory for transient libvirt configuration

Main Configuration Files and Directories

/etc/libvirt/

  1. qemu/autostart/ -Directory for VM's config file that are to be
  2. started automatically by libvirt
  3. qemu/networks/ -Directory for virtual network definition files qemu/networks/autostart/
  4. -Directory for virtual network definition files that should be started automatically
  5. storage/ -Directory for storage pool definition files storage/autostart/ -Directory for storage pool definition files
  6. that should be started automatically

/var/lib/libvirt/

  1. boot/ -Directory for transient
  2. dnsmasq/ -Directory for virtual network DHCP leases files -named NET_NAME.leases
  3. images/ -Generic directory for disk image files -A Libvirt storage pool is defined and active for this directory by default
  4. libxl/ -Directory for transient Libxenlight files
  5. lxc/ -Directory for transient LXC driver files
  6. network/ -Directory for transient virtual network files -a copy of the network's XML config file goes here while the network is started
  7. qemu/ -Directory for transient QEMU driver files -QEMU VM monitor socked files -dump, save an snapshot images

libvirtd

  1. Provides an interface to libvirt both locally and remotely
  2. Supports remote connections via TLS, SSH or TCP

Local URI

xen:///
qemu:///

TLS remote URI

xen://REMOTE_HOST/
qemu://REMOTE_HOST/system

SSH remote URI

xen+ssh://user@REMOTE_HOST/
qemu+ssh://user@REMOTE_HOST/system

TCP remote URI

xen+tcp://user@REMOTE_HOST/
qemu+tcp://user@REMOTE_HOST/system
kvm/libvirt.txt · Last modified: 2019/02/25 14:59 (external edit)