Proxmox

Passing Storage to a Container Getting Started with Proxmox 8



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

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

Links in our description may be affiliate links which help our channel grow.

Become a Patreon:

Check out our new merch store:

Gear we use:

Fuel our coffee cravings:
BTC: bc1qmqe5n7pnep95dzknh48yf3x3c70wcf0r3jvd0x

[ad_2]

source

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button