Skip to content

Instantly share code, notes, and snippets.

@kgersen
Created February 28, 2019 04:24
Show Gist options
  • Save kgersen/133ebfef23ce1df024fb066af6ad0126 to your computer and use it in GitHub Desktop.
Save kgersen/133ebfef23ce1df024fb066af6ad0126 to your computer and use it in GitHub Desktop.
setup lxd client in penguin crostini vm (requires ChromeOS linux apps)
source: https://discuss.linuxcontainers.org/t/using-lxd-on-your-chromebook/3823
ctrl-alt-t to access crosh
vsh termina (or vmc start termina)
lxc config set core.https_address :8443
lxc config set core.trust_password some-password
# create an Ubuntu container
lxc launch ubuntu:18.04 c1
# copy the lxc command from it
lxc file pull c1/usr/bin/lxc /tmp/lxc
# copy it to penguin
lxc file push /tmp/lxc penguin/usr/local/bin/
rm /tmp/lxc
lxc delete c1
# note the host ip (HOSTIP here after) in the ipv4.address line
lxc network show lxdbr0
open termina
lxc remote add chromeos HOSTIP
(use the password some-password used for lxc config...)
lxc remote set default chromeos
all done.
test if it works:
lxc list
@DarkevilPT
Copy link

lxc file pull c1/usr/bin/lxc /tmp/lxc
doesnt work and.. idk how to see the listings of the lxc containers.. any guess?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment