/sys/... read-only in LXC container

DocMAX

Member
Jan 30, 2023
186
11
18
Bremen
I am getting this in my LXC container. How can i fix this? I can change values on Proxmox host directly but not in LXC.

Code:
[root@desktop ~]# echo 4 > /sys/class/drm/card1/device/pp_power_profile_mode
-bash: /sys/class/drm/card1/device/pp_power_profile_mode: Read-only file system

My config:

Code:
earch: amd64
cores: 16
features: nesting=1
hostname: desktop
memory: 16384
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=BA:43:FD:F7:63:A3,ip=dhcp,ip6=auto,type=veth
onboot: 0
ostype: archlinux
rootfs: zpool:subvol-106-disk-0,size=256G
swap: 4096
tags: arch
lxc.cgroup2.devices.allow: a
lxc.autodev: 1
lxc.hook.autodev: sh -c "mknod -m 0666 ${LXC_ROOTFS_MOUNT}/dev/fuse c 10 229"
lxc.mount.entry: /mnt/pve mnt/pve none rbind,optional,create=dir 0 0
lxc.mount.entry: /dev/video0 dev/video0 none bind,optional,create=file
lxc.mount.entry: /dev/dri dev/dri none rbind,optional,create=dir
lxc.mount.entry: /dev/snd dev/snd none rbind,optional,create=dir
lxc.mount.entry: /dev/input dev/input none rbind,optional,create=dir
lxc.cgroup2.devices.allow: c 10:223 rwm
lxc.mount.entry: /dev/uinput dev/uinput none bind,optional,create=file
lxc.mount.entry: /dev/dsp dev/dsp none bind,optional,create=file
lxc.mount.entry: /dev/hidraw3 dev/hidraw3 none bind,optional,create=file
lxc.mount.entry: /dev/nvme0n1 dev/nvme0n1 none bind,optional,create=file
lxc.mount.entry: /dev/nvme1n1 dev/nvme1n1 none bind,optional,create=file
lxc.mount.entry: /dev/sda dev/sda none bind,optional,create=file
lxc.cgroup2.devices.allow: c 116:* rwm
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!