Difference between revisions of "Libvirt"
Jump to navigation
Jump to search
(Created page with "libvirt<ref>https://libvirt.org/</ref> is a virtualization API with supports for KVM, QEMU, Xen, Virtuozzo, VMWare ESX, LXC, BHyve and more == Ubuntu pack...") |
|||
(67 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | libvirt<ref>https://libvirt.org/</ref> is a virtualization API with supports for [[KVM]], [[ | + | <code>libvirt</code><ref>https://libvirt.org/</ref> is a [[virtualization]] API with supports for [[KVM]], [[QEMU]], Xen, Virtuozzo, VMWare ESX, LXC, BHyve and more |
− | |||
− | |||
== Ubuntu packages == | == Ubuntu packages == | ||
At least the following packages compose libvirt in Ubuntu: | At least the following packages compose libvirt in Ubuntu: | ||
− | * libvirt-bin | + | * <code>[[libvirt-bin]]</code> (<code>dpkg -s</code> This is a transitional package. You can safely remove it) |
− | * libvirt-clients: virsh, [[virt-admin]] virt-host-validate virt-login-shell virt-pki-validate virt-xml-validate | + | |
− | * libvirt-daemon: | + | [[Ubuntu 20.04 LTS]] |
− | ::libvirtd: <code>/etc/libvirt/virtlogd.conf</code> | + | * <code>[[libvirt-clients]]</code>: <code>[[virsh]]</code>, <code>[[virt-admin]]</code>, <code>virt-host-validate</code>, <code>[[virt-login-shell]]</code>, <code>[[virt-pki-validate]]</code>, <code>[[virt-xml-validate]]</code> |
− | ::virt-sanlock-cleanup | + | * <code>[[libvirt-daemon]]</code>: |
− | ::virtlockd | + | ::<code>libvirtd</code>: <code>[[/etc/libvirt/virtlogd.conf]]</code> |
− | ::virtlogd | + | ::<code>virt-sanlock-cleanup</code> |
+ | ::<code>virtlockd</code> | ||
+ | ::<code>[[virtlogd]]</code> (<code>[[systemctl status libvirtd]]</code>) | ||
+ | ::<code>[[libvirt-guests.sh]]</code> | ||
+ | * <code>[[libvirt-daemon-system]]</code> | ||
+ | ::<code>[[systemctl status libvirt-guests]]</code> | ||
== Config files and directories == | == Config files and directories == | ||
* Config directories: | * Config directories: | ||
− | :: <code>/etc/[[ | + | :: <code>/etc/[[libvirt]]/</code> |
− | :: <code>/etc/[[ | + | :: <code>/etc/[[libvirt/storage/]]</code> (In Ubuntu there is no default pool. Folder will be automatically created with first pool) |
+ | :: <code>/etc/[[libvirt]]/[[qemu.conf]]</code> | ||
+ | :: <code>/etc/[[libvirt]]/[[qemu]]/XML_FILES_FROM_SERVERS.XML</code> | ||
+ | :: <code>/etc/[[libvirt]]/qemu/networks</code> | ||
* Config files: | * Config files: | ||
− | :: <code>/etc/libvirt/virtlogd.conf</code> | + | :: <code>/etc/libvirt/[[virtlogd.conf]]</code> |
::: Includes information about Unix Socket permissions: unix_sock_group, unix_sock_ro_perms, unix_sock_rw_perms, auth_unix_ro, auth_unix_rw | ::: Includes information about Unix Socket permissions: unix_sock_group, unix_sock_ro_perms, unix_sock_rw_perms, auth_unix_ro, auth_unix_rw | ||
+ | :: <code>[[/etc/libvirt/libvirtd.conf]]</code> | ||
− | |||
− | |||
− | |||
− | |||
− | + | * Images directory: <code>/var/lib/libvirt/images</code> (See: <code>[[virsh pool-define-as]]</code>) | |
− | <code> | + | * [[Journalctl -u libvirtd|Logs]]: |
+ | :<code>[[/var/log/libvirt/qemu/]]</code> | ||
+ | :<code>[[journalctl -r -u libvirtd]]</code> | ||
+ | :<code>[[systemctl status libvirtd]]</code> | ||
+ | :<code>[[systemctl restart libvirtd]]</code> | ||
+ | |||
+ | * Information | ||
+ | :<code>[[libvirtd --help]]</code>, the daemon will print out the paths of the Unix domain socket(s) that it listens on | ||
== Activities == | == Activities == | ||
Basic | Basic | ||
* Read Libvirt Changelog: https://libvirt.org/git/?p=libvirt.git;a=log | * Read Libvirt Changelog: https://libvirt.org/git/?p=libvirt.git;a=log | ||
− | * Read [[ | + | * Read [[Libvirt Release notes]]: https://libvirt.org/news.html |
* Read Libvirt FAQ: https://wiki.libvirt.org/page/FAQ | * Read Libvirt FAQ: https://wiki.libvirt.org/page/FAQ | ||
+ | * [[Install KVM in an Ubuntu Server]] following https://help.ubuntu.com/community/KVM/Installation instructions: | ||
Medium | Medium | ||
− | * Restart libvirtd daemon: <code>systemctl restart libvirtd</code> | + | * Restart libvirtd daemon: <code>[[systemctl restart libvirtd]]</code> |
− | + | Advanced: | |
* Read Libvirt code: https://github.com/libvirt/libvirt | * Read Libvirt code: https://github.com/libvirt/libvirt | ||
* Implement uptime functionality in libvirt code: https://www.spinics.net/linux/fedora/libvir/msg98027.html | * Implement uptime functionality in libvirt code: https://www.spinics.net/linux/fedora/libvir/msg98027.html | ||
− | * [[ | + | * [[Review libvirt error messages in journald]] |
* Understand different CPU model an topologies: https://libvirt.org/formatdomain.html#elementsCPU | * Understand different CPU model an topologies: https://libvirt.org/formatdomain.html#elementsCPU | ||
+ | * Review [[AppArmor]] configurations related to libvirt: <code>/etc/apparmor.d/libvirt</code> | ||
+ | |||
+ | |||
+ | == Related terms == | ||
+ | * <code>[[multipass set]] local.driver=libvirt</code> | ||
+ | * [[Ceph]] storage driver backend | ||
+ | * <code>[[prometheus-libvirt-exporter]]</code> | ||
== See also == | == See also == | ||
− | + | * [[MacVTap]] | |
− | * [[ | + | * {{libvirtd}} |
− | * | + | * {{libvirt}} |
+ | * {{virt-manager}} | ||
+ | * {{virsh}} | ||
+ | * {{QEMU}} | ||
+ | * {{KVM platforms}} | ||
+ | * {{KVM}} | ||
+ | |||
[[Category:Operating systems]] | [[Category:Operating systems]] | ||
+ | [[Category:KVM]] | ||
{{CC license}} | {{CC license}} | ||
Source: https://en.wikiversity.org/wiki/KVM/libvirt | Source: https://en.wikiversity.org/wiki/KVM/libvirt |
Latest revision as of 19:24, 4 June 2022
libvirt
[1] is a virtualization API with supports for KVM, QEMU, Xen, Virtuozzo, VMWare ESX, LXC, BHyve and more
Ubuntu packages[edit]
At least the following packages compose libvirt in Ubuntu:
libvirt-bin
(dpkg -s
This is a transitional package. You can safely remove it)
libvirt-clients
:virsh
,virt-admin
,virt-host-validate
,virt-login-shell
,virt-pki-validate
,virt-xml-validate
libvirt-daemon
:
libvirtd
:/etc/libvirt/virtlogd.conf
virt-sanlock-cleanup
virtlockd
virtlogd
(systemctl status libvirtd
)libvirt-guests.sh
Config files and directories[edit]
- Config directories:
- Config files:
/etc/libvirt/virtlogd.conf
- Includes information about Unix Socket permissions: unix_sock_group, unix_sock_ro_perms, unix_sock_rw_perms, auth_unix_ro, auth_unix_rw
/etc/libvirt/libvirtd.conf
- Images directory:
/var/lib/libvirt/images
(See:virsh pool-define-as
) - Logs:
/var/log/libvirt/qemu/
journalctl -r -u libvirtd
systemctl status libvirtd
systemctl restart libvirtd
- Information
libvirtd --help
, the daemon will print out the paths of the Unix domain socket(s) that it listens on
Activities[edit]
Basic
- Read Libvirt Changelog: https://libvirt.org/git/?p=libvirt.git;a=log
- Read Libvirt Release notes: https://libvirt.org/news.html
- Read Libvirt FAQ: https://wiki.libvirt.org/page/FAQ
- Install KVM in an Ubuntu Server following https://help.ubuntu.com/community/KVM/Installation instructions:
Medium
- Restart libvirtd daemon:
systemctl restart libvirtd
Advanced:
- Read Libvirt code: https://github.com/libvirt/libvirt
- Implement uptime functionality in libvirt code: https://www.spinics.net/linux/fedora/libvir/msg98027.html
- Review libvirt error messages in journald
- Understand different CPU model an topologies: https://libvirt.org/formatdomain.html#elementsCPU
- Review AppArmor configurations related to libvirt:
/etc/apparmor.d/libvirt
Related terms[edit]
multipass set local.driver=libvirt
- Ceph storage driver backend
prometheus-libvirt-exporter
See also[edit]
- MacVTap
- libvirtd:
systemctl status libvirtd
,systemctl status libvirt-guests
, Libvirt release notes, logs,libvirtd.conf
,/etc/libvirt/
,/var/log/libvirt/
libvirt
,virtlogd.conf
,/etc/libvirt/storage/
,libvirt-guests.sh
,/etc/libvirt/virtlogd.conf
,/var/lib/libvirt/images/
virt-manager
,virsh vncdisplay
,virt-install
virsh
: Storage information, Connecting, Operations, Memory, Snapshots, Networking, CPU, release notes,virsh nodedev-list
- QEMU:
qemu-img
,qemu-ga
,qemu.conf
,virsh qemu
, QEMU guest agent (qemu-ga
), qcow2,qemu-nbd, qemu-img map
,qemu-io
,/etc/libvirt/qemu.conf
, QEMU releases, VENOM,qemu-nbd --help, qemu-system
- KVM: RHV, oVirt, libvirtd
- KVM, Installation, QEMU,
virsh
,virtinst
,libguestfs-tools
, libvirt, qemu, Red Hat Virtualization (RHV), MacVTap, Virtio, oVirt, KVM services, KVM networking, KVM graphics, CPU, KVM on ARM
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.
Advertising: