Created
January 25, 2018 12:23
-
-
Save WillMoggridge/ac72fab28a5b6ee766f8ab8991053481 to your computer and use it in GitHub Desktop.
maas lxc deploy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export name="xenial-maas" | |
lxc init -p maas ubuntu:16.04 "${name}" | |
lxc config set "${name}" raw.idmap "both $(id -u) 1000" | |
lxc config device add "${name}" maas-src disk source="$(pwd)" path=/src/maas | |
lxc start "${name}" | |
lxc exec "${name}" --env=HOME=/src/maas -- sudo --login --user ubuntu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment