🐒
0

libvirtd

Linux Virtualization Management Daemon

LIBVIRTD(8)
System Manager's Manual
libvirtd(8)

VIRTUAL MACHINE MANAGEMENT

libvirtd manages virtual machines through various hypervisors:

  • QEMU/KVM: Full virtualization on x86_64 and other architectures
  • Xen: Paravirtualization and full virtualization
  • LXC: Linux containers
  • OpenVZ: Container-based virtualization

Common Commands

VM Management

virsh list --all virsh start <domain> virsh shutdown <domain> virsh destroy <domain>

Network Management

virsh net-list --all virsh net-start <network> virsh net-destroy <network>

Storage Management

virsh pool-list --all virsh vol-list <pool> virsh pool-start <pool>

NETWORKING

libvirtd provides several networking options:

  • NAT: Network Address Translation for VM internet access
  • Bridge: Direct bridge to physical network interface
  • Routed: Static routing for VM networks
  • Isolated: Internal-only networks

STORAGE

Storage pools can be configured for various backends:

  • Directory: File-based storage in directories
  • LVM: Logical Volume Manager volumes
  • NFS: Network File System shares
  • iSCSI: Internet Small Computer Systems Interface

SECURITY

libvirtd implements several security features:

  • SELinux: Mandatory access control integration
  • AppArmor: Application-level access control
  • TLS: Encrypted communication channels
  • Authentication: SASL and polkit integration

LOGGING

Logging can be configured through the configuration file. Common log levels:

  • 1: Errors only
  • 2: Warnings and errors
  • 3: Information, warnings, and errors
  • 4: Debug information

FILES

/etc/libvirt/libvirtd.conf
Main configuration file
/var/run/libvirt/libvirt-sock
Unix domain socket
/var/log/libvirt/libvirtd.log
Log file
/var/run/libvirt/libvirtd.pid
PID file

SEE ALSO

virsh(1), virt-manager(1), libvirt(3), libvirtd.conf(5)

BUGS

Please report bugs to the libvirt mailing list: [email protected]

AUTHOR

libvirtd was written by the libvirt project team.

COPYRIGHT

Copyright © 2006-2024 Red Hat, Inc. and others. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.