From c2875816e724405f128af105f02c443c712e4f31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Jochum?= Date: Fri, 17 Jul 2015 00:15:18 +0200 Subject: [PATCH] Small typo. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: René Jochum --- content/post/lxd-getting-started.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/content/post/lxd-getting-started.md b/content/post/lxd-getting-started.md index 238c734..f46bdc8 100644 --- a/content/post/lxd-getting-started.md +++ b/content/post/lxd-getting-started.md @@ -21,12 +21,12 @@ Install **lxd**: Give root one subuid and subgid: - sudo usermod --add-subuids 1000000-165536 root - sudo usermod --add-subgids 1000000-165536 root + sudo usermod --add-subuids 100000-165536 root + sudo usermod --add-subgids 100000-165536 root OR give root 99 subuid's/subgid's: - for i in {100..199}; do sudo usermod --add-subuids ${i}00000-${i}65536 root; sudo usermod --add-subgids ${i}00000-${i}65536 root; done # This takes a while + for i in {1..99}; do sudo usermod --add-subuids ${i}00000-${i}65536 root; sudo usermod --add-subgids ${i}00000-${i}65536 root; done # This takes a while Restart **lxd**: @@ -84,7 +84,7 @@ You need to delete the image first if you already have one with one of that alia Now publish your container (make it available as image): - lxc publish : : --alias ubuntu/trusty -- alias ubuntu/trusty/amd64 + lxc publish : : --alias ubuntu/trusty --alias ubuntu/trusty/amd64 Delete the image container if needed: @@ -94,6 +94,16 @@ Launch a new container from the image you created: lxc launch :ubuntu/trusty : +You can also do: + + lxc init :ubuntu/trusty : + lxc start : + +Start a shell in the new container: + + lxc exec srv01: /bin/bash + Usefull Links: - [LXD README.md](https://github.com/lxc/lxd#machine-setup) - [LXD CMD specs](https://github.com/lxc/lxd/blob/master/specs/command-line-user-experience.md) +- [LXD config specs (all configuration variables)](https://github.com/lxc/lxd/blob/master/specs/configuration.md)