admin_grundlagen:lxd
Dies ist eine alte Version des Dokuments!
Inhaltsverzeichnis
LXD installieren
snapcraft installieren: Debian(10), Ubuntu (20.04)
apt install snapd snap install core
abmelden und wieder anmelden ($PATH wird erweitert)
snap install lxd
LXD einrichten
lxd init
Defaults lassen bis auf Name of the storage backend to use (ceph, btrfs, dir, lvm) [default=btrfs]:. Hier entweder dir eingeben oder (falls eine freie Partition oder ein freies Logical Volume vorhanden ist auf default btrfs lassen)
container inkl. Netzwerk
TODO: noch mal testen
lxc network set lxdbr0 dns.domain kurs.linuxhotel.de
lxc init images:debian/10 test1 lxc network attach lxdbr0 test1 eth0 eth0 lxc start test1
- /etc/nsswitch.conf
… hosts: mymachines resolve [!UNAVAIL=return] files myhostname dns …
- /etc/systemd/network/lxdbr0.network
[Match] Name=lxdbr0 [Network] DNS=10.20.42.1 Domains=~test
networkctl
- …
… lxdbr0 bridge routable configured
resolvectl
- …
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6 Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported Current DNS Server: 10.20.42.1 DNS Servers: 10.20.42.1 fe80::216:3eff:fe6a:88fd%21919 DNS Domain: ~test
lxc exec test1 -- /bin/bash
admin_grundlagen/lxd.1612995012.txt.gz · Zuletzt geändert: 2021/02/10 22:10 von ingo_wichmann
