Last active
May 14, 2020 16:16
-
-
Save caiges/7e904d3c6e4a3e055268a996cbdd9ac5 to your computer and use it in GitHub Desktop.
OpenStack DevStack on Arch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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