Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
KVM in LXD
lxc launch ubuntu:16.04 ubu1
apt install qemu-kvm libvirt-bin bridge-utils
lxc config set ubu1 security.privileged true
lxc config device add ubu1 kvm disk path=/dev/kvm source=/dev/kvm
---
lxc config device add ubu1 tun unix-char path=/dev/net/tun
lxc config set ubu1 linux.kernel_modules openvswitch,nbd,ip_tables,ip6_tables,kvm
lxc config set ubu1 security.nesting true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment