Crostini: setup lxd client in penguin container - DennisLfromGA/CBC-Projects GitHub Wiki
- Signed-in to Chromebook
- 'Linux (Beta)' enabled in Settings
Get into a crosh session and get things going -
- Press ctrl+alt+t
-
vsh termina
(or vmc start termina
if it's not running)
-
lxc start penguin
(if it's not running)
Enable LXD to listen to the network and setup a trust password -
lxc config set core.https_address :8443
lxc config set core.trust_password [some-password]
Create an Ubuntu container (if not existing) -
lxc launch ubuntu:18.04 c1
Copy the lxc command from it -
lxc file pull c1/usr/bin/lxc /tmp/lxc
lxc file push /tmp/lxc penguin/usr/local/bin/
rm /tmp/lxc
-
lxc delete c1
(if you don't want it any longer)
Get termina address, note the host ip ([HOSTIP] here after) in the ipv4.address line -
Make it the default remote so all LXD commands go to it by default -
-
lxc remote add chromeos [HOSTIP]
(use the password [some-password] used for lxc config...)
lxc remote set-default chromeos
- Launch 'Terminal' app
lxc list
⚠️ **GitHub.com Fallback** ⚠️