Skip to content

Instantly share code, notes, and snippets.

@WillMoggridge
Created January 25, 2018 12:23
Show Gist options
  • Save WillMoggridge/ac72fab28a5b6ee766f8ab8991053481 to your computer and use it in GitHub Desktop.
Save WillMoggridge/ac72fab28a5b6ee766f8ab8991053481 to your computer and use it in GitHub Desktop.
maas lxc deploy
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