Skip to content

Instantly share code, notes, and snippets.

@caiges
Last active May 14, 2020 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caiges/7e904d3c6e4a3e055268a996cbdd9ac5 to your computer and use it in GitHub Desktop.
Save caiges/7e904d3c6e4a3e055268a996cbdd9ac5 to your computer and use it in GitHub Desktop.
OpenStack DevStack on Arch
yay -S --noconfirm libvirt ebtables dnsmasq bridge-utils
sudo virsh net-define /etc/libvirt/qemu/networks/default.xml
cat <<EOF>devstack-lxc.conf
# Permit access to /dev/loop*
lxc.cgroup.devices.allow = b 7:* rwm
# Setup access to /dev/net/tun and /dev/kvm
lxc.mount.entry = /dev/net/tun dev/net/tun none bind,create=file 0 0
lxc.mount.entry = /dev/kvm dev/kvm none bind,create=file 0 0
# Networking
lxc.net.0.type = veth
lxc.net.0.flags = up
lxc.net.0.link = lxcbr0
EOF
yay -S --noconfirm lxc lxc-templates
sudo lxc-create -n devstack -t ubuntu -f devstack-lxc.conf -- --packages=bsdmainutils,git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment