Created
December 19, 2019 11:49
-
-
Save yvesh/64ec1f64e3c7c26497282b776348f662 to your computer and use it in GitHub Desktop.
Proxmox LXC Arch Linux Container with passed through GPU, KVM, sound, keyboard etc. (Xorg with amdgpu working), Looking Glass Host - Linux Main OS in a container
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
arch: amd64 | |
cores: 24 | |
features: fuse=1,mount=nfs;cifs,nesting=1 | |
hostname: archxorg | |
memory: 64000 | |
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=XX:XX:XX:XX:XX.XX,ip=dhcp,type=veth | |
ostype: archlinux | |
rootfs: local-zfs:subvol-100-disk-0,size=500G | |
swap: 512 | |
lxc.autodev: 1 | |
lxc.hook.autodev: sh -c 'mkdir -p "$LXC_ROOTFS_MOUNT"/dev/dri && mount --bind /dev/dri "$LXC_ROOTFS_MOUNT"/dev/dri && mknod "$LXC_ROOTFS_MOUNT"/dev/kvm c 10 232' | |
lxc.cgroup.devices.allow: c 4:7 rwm | |
lxc.hook.autodev: sh -c 'mknod "$LXC_ROOTFS_MOUNT"/dev/tty7 c 4 7' | |
lxc.cgroup.devices.allow: c 13:* rwm | |
lxc.mount.entry: /dev/input mnt/dev/input none bind,create=dir | |
lxc.cgroup.devices.allow: c 116:* rwm | |
lxc.mount.entry: /dev/snd mnt/dev/snd none bind,create=dir | |
lxc.cgroup.devices.allow: c 226:* rwm | |
lxc.mount.entry: /dev/dri mnt/dev/dri none bind,create=dir | |
lxc.mount.entry: /run/udev mnt/run/udev none bind,create=dir | |
lxc.cgroup.devices.allow: c 10:232 rwm | |
lxc.cgroup.devices.allow: c 10:200 rwm | |
lxc.mount.entry: /dev/net mnt/dev/net none bind,create=dir | |
lxc.mount.entry: /dev/shm mnt/dev/shm none bind,create=dir | |
lxc.mount.entry: /nfs/profiles/myuser mnt/myuser none bind,create=dir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment