Is there an equivalent lxc command for the old "vzctl set <vmid> devnodes <device>:rw"?
I have a somewhat unstable USB serial device I need passed to an LXC container. On PVE3.4, I used the above command in a udev rule to automatically reconnect the device each time it reinitialized on the host. I need to move that container to a PVE6 host now.
I've got the device passed already using a lxc.mount.entry line, and it works fine. But after a while, when it has one of it's unstable moments, it becomes inaccessible on the container (still shows up, but can't be accessed). I need to find a command that can force lxc to re-add it to the container.
Edit: I should add that I've tried "lxc-device -n <vmid> add /dev/ttyUSB0", but it just gives the following error (with or without the device already passed):
I have a somewhat unstable USB serial device I need passed to an LXC container. On PVE3.4, I used the above command in a udev rule to automatically reconnect the device each time it reinitialized on the host. I need to move that container to a PVE6 host now.
I've got the device passed already using a lxc.mount.entry line, and it works fine. But after a while, when it has one of it's unstable moments, it becomes inaccessible on the container (still shows up, but can't be accessed). I need to find a command that can force lxc to re-add it to the container.
Edit: I should add that I've tried "lxc-device -n <vmid> add /dev/ttyUSB0", but it just gives the following error (with or without the device already passed):
Code:
lxc-device: <vmid>: lxccontainer.c: do_add_remove_node: 4624 Value too large for defined data type - Failed to create device node at "/dev/ttyUSB0"