Dies ist eine alte Version des Dokuments!
snapcraft installieren: Debian(10), Ubuntu (20.04)
apt install snapd snap install core
abmelden und wieder anmelden ($PATH wird erweitert)
snap install lxd
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)
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
… hosts: mymachines resolve [!UNAVAIL=return] files myhostname dns …
[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