LXC: "Failed getting root disk: No root device could be found" beheben
English
Deutsch
Problem:
Beim Versuch, einen LXC-Container mit einem Befehl wie dem folgenden zu starten:
fix_lxc_launch.sh
lxc launch ubuntu:22.04 mycontainerwird folgende Fehlermeldung angezeigt:
lxc_launch_error.txt
Creating mycontainer
Error: Failed instance creation: Failed creating instance record: Failed initialising instance: Failed getting root disk: No root device could be foundLösung
Du hast deinen LXD-Speicher nicht richtig initialisiert. Führe
lxd_init.sh
lxd initaus, um den Speicher für lxd zu konfigurieren. Für die meisten Setups — mit Ausnahme von performance-kritischen Produktions-Setups — empfehle ich, das dir-Storage-Backend zu verwenden, da es keine weitere Konfiguration erfordert. Alle anderen Optionen kannst du auf ihren Standardwerten belassen.
lxd_init_example.txt
Name of the storage backend to use (zfs, btrfs, ceph, cephobject, dir, lvm) [default=zfs]: dirIf this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow