Hello!
The installed system debian 10.
uname -a
Linux 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64 GNU/Linux
installed lxc
dpkg -l|grep lxc
ii liblxc1 1:3.1.0+really3.0.3-8 amd64 Linux Containers userspace tools (library)
ii lxc 1:3.1.0+really3.0.3-8 amd64 Linux Containers userspace tools
ii lxc-templates 3.0.3-1 amd64 Linux Containers userspace tools (templates)
ii lxcfs 3.0.3-2 amd64 FUSE based filesystem for LXC
ii python3-lxc 1:3.0.3-1 amd64 Linux Containers userspace tools (Python3 bindings)
my container
sudo lxc-create -n forPSQL -t debian
and its configuration file
cat /var/lib/lxc/forPSQL/config
lxc.net.0.type = veth
lxc.net.0.flags = up
lxc.net.0.link = br0
lxc.net.0.ipv4.gateway = 10.0.0.1
lxc.net.0.hwaddr = 00:16:3e:6b:c7:5b
lxc.net.0.ipv4.address = 10.0.0.3/24
lxc.apparmor.profile = generated
lxc.apparmor.allow_nesting = 1
lxc.rootfs.path = dir:/var/lib/lxc/forPSQL/rootfs
lxc.include = /usr/share/lxc/config/debian.common.conf
lxc.tty.max = 4
lxc.uts.name = forPSQL
lxc.arch = amd64
lxc.pty.max = 1024
before connecting the flash drive on the host
lsusb|nl
1 Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
2 Bus 004 Device 002: ID 04f2:b40e Chicony Electronics Co., Ltd HP Truevision HD camera
3 Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
4 Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
5 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
6 Bus 006 Device 002: ID 0bda:b001 Realtek Semiconductor Corp.
7 Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
8 Bus 007 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
9 Bus 005 Device 017: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
10 Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
11 Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
12 Bus 002 Device 002: ID 04f2:0833 Chicony Electronics Co., Ltd KU-0833 Keyboard
13 Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
before connecting the flash drive on the container
lsusb|nl
1 Bus 009 Device 001: ID 1d6b:0001
2 Bus 004 Device 002: ID 04f2:b40e
3 Bus 004 Device 001: ID 1d6b:0002
4 Bus 008 Device 001: ID 1d6b:0001
5 Bus 001 Device 001: ID 1d6b:0002
6 Bus 006 Device 002: ID 0bda:b001
7 Bus 006 Device 001: ID 1d6b:0001
8 Bus 007 Device 001: ID 1d6b:0003
9 Bus 005 Device 017: ID 093a:2510
10 Bus 005 Device 001: ID 1d6b:0002
11 Bus 003 Device 001: ID 1d6b:0003
12 Bus 002 Device 002: ID 04f2:0833
13 Bus 002 Device 001: ID 1d6b:0002
inserted the flash drive into the usb port
after connecting the flash drive on the host
lsusb|nl
1 Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
2 Bus 004 Device 002: ID 04f2:b40e Chicony Electronics Co., Ltd HP Truevision HD camera
3 Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
4 Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
5 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
6 Bus 006 Device 002: ID 0bda:b001 Realtek Semiconductor Corp.
7 Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
8 Bus 007 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
9 Bus 005 Device 017: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
10 Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
11 Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
12 Bus 002 Device 002: ID 04f2:0833 Chicony Electronics Co., Ltd KU-0833 Keyboard
13 Bus 002 Device 006: ID 13fe:4300 Kingston Technology Company Inc.
14 Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
after connecting the flash drive on the container
lsusb|nl
1 Bus 009 Device 001: ID 1d6b:0001
2 Bus 004 Device 002: ID 04f2:b40e
3 Bus 004 Device 001: ID 1d6b:0002
4 Bus 008 Device 001: ID 1d6b:0001
5 Bus 001 Device 001: ID 1d6b:0002
6 Bus 006 Device 002: ID 0bda:b001
7 Bus 006 Device 001: ID 1d6b:0001
8 Bus 007 Device 001: ID 1d6b:0003
9 Bus 005 Device 017: ID 093a:2510
10 Bus 005 Device 001: ID 1d6b:0002
11 Bus 003 Device 001: ID 1d6b:0003
12 Bus 002 Device 002: ID 04f2:0833
13 Bus 002 Device 006: ID 13fe:4300
14 Bus 002 Device 001: ID 1d6b:0002
Who knows why these things happen? How can I work with a flash drive in a container.