Здравствуйте!
Установленная система debian 10
# uname -a
Linux 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64 GNU/Linux
# 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)
sudo lxc-create -n forPSQL -t debian
его конфиг
# 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
до подключения флешки
на хосте:
# 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
в контейнере:
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
после подключения флешки
на хосте:
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
в контейнере:
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
Почему идет автоматический полупроброс? Как отключить ЭТО и сделать, чтоб работать можно было с usb? Где нормальная документация по lxc? https://linuxcontainers.org/lxc/manpages здесь её нет. Нормальная, подразумевает прочитать изминения между релизами, а именно когда исчезло lxc (т.к. у меня bash: lxc: команда не найдена
) и стало так
ls /usr/bin/lxc*
/usr/bin/lxc-attach /usr/bin/lxc-checkconfig /usr/bin/lxc-console /usr/bin/lxc-destroy /usr/bin/lxc-freeze /usr/bin/lxc-ls /usr/bin/lxc-start /usr/bin/lxc-unshare /usr/bin/lxc-wait
/usr/bin/lxc-autostart /usr/bin/lxc-checkpoint /usr/bin/lxc-copy /usr/bin/lxc-device /usr/bin/lxcfs /usr/bin/lxc-monitor /usr/bin/lxc-stop /usr/bin/lxc-update-config
/usr/bin/lxc-cgroup /usr/bin/lxc-config /usr/bin/lxc-create /usr/bin/lxc-execute /usr/bin/lxc-info /usr/bin/lxc-snapshot /usr/bin/lxc-unfreeze /usr/bin/lxc-usernsexec