-
Notifications
You must be signed in to change notification settings - Fork 3
Creating an Arch Linux LXC lovelace image from scratch
Ali Ramadhan edited this page Jan 6, 2019
·
2 revisions
Instructions assume you're on Ubuntu 18.10. We currently do this on the Discourse droplet.
lxd initlxc launch images:archlinux tmp-containerlxc exec tmp-container -- /bin/bashpacman -S python python-pippip install numpy scipypacman -S nodejspacman -S juliajulia -e "using Pkg; Pkg.add("PyCall");"pip install julia- Make sure that
python -c "import julia; julia.Julia()"works. lxc publish tmp-container --alias lovelace-image-
lxc image edit lovelace-image- Add
description: Project Lovelace Image (20190105)underProperties
- Add
lxc image export lovelace-image lovelace-image-20190105scp lovelace-image-20190105.tar.gz [email protected]:/root/ssh [email protected]lxc image import /root/lovelace-image-20190105.tar.gzlxc image alias delete lovelace-containerlxc image listlxc image alias create lovelace-image <new-image-fingerprint>lxc image delete <old-image-fingerprint>lxc launch lovelace-image tmp-containerlxc exec tmp-container -- /bin/bashpython3 --versionnode --versionjulia --versionpython -c 'import numpy'python -c "import julia; julia.Julia()"ping google.com