Skip to content

Instantly share code, notes, and snippets.

@ajthemacboy
Last active December 29, 2023 07:08
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ajthemacboy/135b6a0deb5d8be007776f312659993a to your computer and use it in GitHub Desktop.
Save ajthemacboy/135b6a0deb5d8be007776f312659993a to your computer and use it in GitHub Desktop.
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