Passing Storage to a Container Getting Started with Proxmox 8
Автор: virtualize everything
Загружено: 2023-08-17
Просмотров: 49644
Описание:
This video shows the viewer how to use a Proxmox tool called Blind Mount to pass storage from the host Proxmox system to a Container ( LXC ) ( CT )
File for ct conf
/etc/pve/lxc/1234.conf
Mount point line
mp0: /mnt/bindmounts/shared,mp=/shared
uid map: from uid 0 map 1005 uids (in the ct) to the range starting 100000 (on the host), so 0..1004 (ct) → 100000..101004 (host)
lxc.idmap = u 0 100000 1005
lxc.idmap = g 0 100000 1005
we map 1 uid starting from uid 1005 onto 1005, so 1005 → 1005
lxc.idmap = u 1005 1005 1
lxc.idmap = g 1005 1005 1
we map the rest of 65535 from 1006 upto 101006, so 1006..65535 → 101006..165535
lxc.idmap = u 1006 101006 64530
lxc.idmap = g 1006 101006 64530
File and map for user and group id
/etc/subuid
/etc/subgid
root:1005:1
command to set 1005 as user and group id
chown -R 1005:1005 /mnt/bindmounts/shared
Proxmox wright up
https://pve.proxmox.com/wiki/Unprivil...
Mount Command
mount -t exfat -o uid=1005,gid=1005 /dev/sdX1 /mnt/usb
fstab path
/etc/fstab
fstab command
/dev/sdX1 /mnt/usb exfat uid=1005,gid=1005 0 1
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: