Skip to content

Commit 6eaead8

Browse files
committed
containers-and-vms/index,libvirt: Add sections.
Also move `lxc` into `containers-and-vms`.
1 parent a800196 commit 6eaead8

File tree

4 files changed

+45
-2
lines changed

4 files changed

+45
-2
lines changed

src/SUMMARY.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@
6060
- [TeX Live](./config/texlive.md)
6161
- [External Applications](./config/external-applications.md)
6262
- [Printing](./config/print/index.md)
63-
- [LXC](./config/lxc.md)
63+
- [Containers and Virtual Machines](./config/containers-and-vms/index.md)
64+
- [libvirt](./config/containers-and-vms/libvirt.md)
65+
- [LXC](./config/containers-and-vms/lxc.md)
6466
- [XBPS Package Manager](./xbps/index.md)
6567
- [Advanced Usage](./xbps/advanced-usage.md)
6668
- [Repositories](./xbps/repositories/index.md)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Containers and Virtual Machines
2+
3+
This section describes how to set up some of the container and virtual machine
4+
software available on Void.
5+
6+
## Section Contents
7+
8+
- [libvirt](./libvirt.md)
9+
- [LXC](./lxc.md)
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# libvirt
2+
3+
[libvirt](https://libvirt.org/) is an API and daemon for managing platform
4+
virtualization, supporting virtualization technologies such as LXC, KVM, QEMU,
5+
Bhyve, Xen, VMWare, and Hyper-V.
6+
7+
To use libvirt, install the `libvirt` package and
8+
[enable](../services/index.md#enabling-services) the `libvirtd`, `virtlockd` and
9+
`virtlogd` services. The `libvirtd` daemon can be reconfigured at runtime via
10+
[virt-admin(1)](https://man.voidlinux.org/virt-admin.1).
11+
12+
The `libvirt` package provides the [virsh(1)](https://man.voidlinux.org/virsh.1)
13+
interface to libvirtd. `virsh` is an interactive shell and batch-scriptable tool
14+
for performing management tasks, including creating, configuring and running
15+
virtual machines, and managing networks and storage. Note that `virsh` usually
16+
needs to be run as root, as described in the `virsh` man page:
17+
18+
> Most virsh commands require root privileges to run due to the communications
19+
> channels used to talk to the hypervisor. Running as non root will return an
20+
> error.
21+
22+
However, if you have the `polkit` and `dbus` packages installed and you enable
23+
the `dbus` service, `libvirtd` will grant necessary privileges to any user added
24+
to the `libvirt` group.
25+
26+
An alternative to `virsh` is provided by the `virt-manager` and
27+
`virt-manager-tools` packages.
28+
29+
For general information on libvirt, refer to [the libvirt
30+
wiki](https://wiki.libvirt.org/page/Main_Page) and [the wiki's
31+
FAQ](https://wiki.libvirt.org/page/FAQ). For an introduction to libvirt usage,
32+
refer to [the "VM lifecycle" page](https://wiki.libvirt.org/page/VM_lifecycle).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ wrong map is possible, but inconvenient.
119119
LXD provides an alternative interface to LXC's `lxc-*` utilities. However, it
120120
does not require the configuration described in [the previous section](#lxc).
121121

122-
Install the `lxd` package, and [enable](./services/index.md#enabling-services)
122+
Install the `lxd` package, and [enable](../services/index.md#enabling-services)
123123
the `lxd` service.
124124

125125
LXD users must belong to the `lxd` group.

0 commit comments

Comments
 (0)