PBS not showing ZFS

Linseed6258

New Member
Jun 1, 2024
1
0
1
I have a proxmox ve with a single ZFS, named zpool.

Inside that proxmox ve node, I have a privileged lxc container with PBS installed via proxmox scripts.

When I go into the PBS into storage, I don't see the ZFS storage and I get this error:

Bad Request (400)
command "zpool" "list" "-H" "-p" "-P" failed - status code: 1 - /dev/zfs and /proc/self/mounts are required. Try running 'udevadm trigger' and 'mount -t proc proc /proc' as root.

I have tried with this config
arch: amd64
cores: 4
features: nesting=1
hostname: pbs
memory: 4096
net0: name=eth0,bridge=vmbr0,hwaddr=BC:24:11:51:37:FC,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: local-zfs:subvol-103-disk-0,size=10G
swap: 512
tags: proxmox-helper-scripts
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
lxc.cgroup2.devices.allow: c 188:* rwm
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/serial/by-id dev/serial/by-id none bind,optional,create=dir
lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file
lxc.mount.entry: /dev/ttyUSB1 dev/ttyUSB1 none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM1 dev/ttyACM1 none bind,optional,create=file
lxc.mount.entry: /rpool rpool none bind,create=dir
lxc.cgroup2.devices.allow: c 10:231 rwm
# lxc.mount.entry: /dev/zfs dev/zfs none bind,optional,create=file

But the last line causes problems, it makes the container do nothing


This was added to /etc/pve/nodes/pve01/lxc/103.conf
 
Getting the same thing after setting up a PBS LXC:

"
Bad Request (400)
command "zpool" "list" "-H" "-p" "-P" failed - status code: 1 - /dev/zfs and /proc/self/mounts are required. Try running 'udevadm trigger' and 'mount -t proc proc /proc' as root."

Something not set up correctly with the Proxmox PBS LXC script I think. No solutions so far.
 

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!