This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
linux:virtualization:lxc [2020/11/19 16:57] tkilla |
linux:virtualization:lxc [2022/01/13 23:06] tkilla [Create new container] |
||
---|---|---|---|
Line 344: | Line 344: | ||
http:// | http:// | ||
- | | + | FIX: original keyserver is broken! add: --keyserver hkp:// |
+ | |||
+ | |||
+ | | ||
or | or | ||
- | lxc-create -n websrv -t debian-wheezy | + | lxc-create -n websrv -t debian-wheezy |
Start / Stop VS: | Start / Stop VS: | ||
Line 360: | Line 363: | ||
In Buster, use the lxc-download script: | In Buster, use the lxc-download script: | ||
- | / | + | / |
- | lxc-create -t / | + | lxc-create -t / |
Line 372: | Line 375: | ||
lxc-clone --backingstore btrfs --orig vs1 --new vs2 --snapshot | lxc-clone --backingstore btrfs --orig vs1 --new vs2 --snapshot | ||
+ | \\ | ||
+ | ===== Mount external Dirs in Container ===== | ||
+ | |||
+ | The recommended way is to add the mountpoint with a relative path in the VS config: | ||
+ | |||
+ | lxc.mount.entry=/ | ||
+ | |||
+ | |||
+ | Under some cicumstances it does not work (in unprivileged containers), | ||
+ | |||
+ | lxc.mount.entry = /home/test / | ||
+ | |||
+ | Also check Permissions and Ownership. chown to the root ID inside the container. | ||
\\ | \\ | ||
Line 381: | Line 397: | ||
lxc-create -B btrfs -n mycontainer -t ubuntu | lxc-create -B btrfs -n mycontainer -t ubuntu | ||
+ | |||
+ | |||