Last active
December 29, 2023 07:08
-
-
Save ajthemacboy/135b6a0deb5d8be007776f312659993a to your computer and use it in GitHub Desktop.
KVM in LXD
This file contains 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
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