Skip to content

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 init
  • lxc launch images:archlinux tmp-container
  • lxc exec tmp-container -- /bin/bash
  • pacman -S python python-pip
  • pip install numpy scipy
  • pacman -S nodejs
  • pacman -S julia
  • julia -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) under Properties
  • lxc image export lovelace-image lovelace-image-20190105
  • scp lovelace-image-20190105.tar.gz [email protected]:/root/
  • ssh [email protected]
  • lxc image import /root/lovelace-image-20190105.tar.gz
  • lxc image alias delete lovelace-container
  • lxc image list
  • lxc image alias create lovelace-image <new-image-fingerprint>
  • lxc image delete <old-image-fingerprint>
  • lxc launch lovelace-image tmp-container
  • lxc exec tmp-container -- /bin/bash
  • python3 --version
  • node --version
  • julia --version
  • python -c 'import numpy'
  • python -c "import julia; julia.Julia()"
  • ping google.com
Clone this wiki locally