Hier beschreibe ich, wie ich LXD/LXC auf KDE Neon 18.04
in Betrieb nehme. Die ganze Aktion dauert grob 1 Stunde,
wenn man halbwegs weiß, was man zu erledigen hat.
Aktualisieren
1
sudo pkcon update
LXD installieren
1
sudo snap install lxd
Plattenbereich für LXC anlegen
123456789101112
$ sudo vgdisplay
--- Volume group ---
VG Name neon-vg
...
VG Size <465,04 GiB
PE Size 4,00 MiB
Total PE 119050
Alloc PE / Size 61684 / 240,95 GiB
Free PE / Size 57366 / <224,09 GiB
VG UUID CZfxss-UeDu-s1pZ-dwb6-Iffa-pOuO-84otnm
$ sudo lvcreate -n lxclv -L 50G neon-vg
Logical volume "lxclv" created.
$ sudo lxd init
Would you like to use LXD clustering? (yes/no) [default=no]:
Do you want to configure a new storage pool? (yes/no) [default=yes]:
Name of the new storage pool [default=default]:
Name of the storage backend to use (btrfs, ceph, dir, lvm, zfs) [default=zfs]: btrfs
Create a new BTRFS pool? (yes/no) [default=yes]: yes
Would you like to use an existing block device? (yes/no) [default=no]: yes
Path to the existing block device: /dev/mapper/neon--vg-lxclv
Would you like to connect to a MAAS server? (yes/no) [default=no]: no
Would you like to create a new local network bridge? (yes/no) [default=yes]:
What should the new bridge be called? [default=lxdbr0]:
What IPv4 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]:
What IPv6 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]:
Would you like LXD to be available over the network? (yes/no) [default=no]: no
Would you like stale cached images to be updated automatically? (yes/no) [default=yes]
Would you like a YAML "lxd init" preseed to be printed? (yes/no) [default=no]: yes
config: {}
networks: []
storage_pools:
- config:
source: /dev/mapper/neon--vg-lxclv
description: ""
name: default
driver: btrfs
profiles:
- config: {}
description: ""
devices:
eth0:
name: eth0
nictype: bridged
parent: lxdbr0
type: nic
root:
path: /
pool: default
type: disk
name: default
cluster: null