I am having conceptual trouble with mounting a usb hard drive for use with
an LXC guest.
Version is:
~$ pveversion
pve-manager/7.1-8/5b267f33 (running kernel: 5.13.19-2-pve)
The main references I'm using are:
https://forum.proxmox.com/threads/mount-external-hdd-in-lxc-container.50897/
https://pve.proxmox.com/wiki/Linux_Container#_bind_mount_points
https://pve.proxmox.com/wiki/Unprivileged_LXC_containers
I have installed userbindmount (no one ever actually said to, I just guessed it was necessary)
~$ apt search bindmount
Sorting... Done
Full Text Search... Done
libuserbindmount-dev/stable,now 0.1-2+b1 amd64 [installed]
bind-mount in user namespaces (devel)
libuserbindmount0/stable,now 0.1-2+b1 amd64 [installed,automatic]
bind-mount in user namespaces (library)
userbindmount/stable,now 0.1-2+b1 amd64 [installed]
bind-mount in user namespaces (command)
My first set of questions:
* Is the host-side location /mnt/bindmounts/shared that is
always referred to in the pages above a 'magic' location that
has special properties or otherwise must have that name? or
is it simply a normal directory structure and everyone has
agreed to use that name?
* Is the host-side location /mnt/bindmounts/shared created
automagically some way? Maybe by simply installing
userbindmount (I'm guessing 'no')? Or calling something? Or by enabling and starting
some systemctl something? or...what? Or does the admin have to create it
and manually do the permissions and acls?
* Do I (manually or fstab) mount the usb drive directly to /mnt/bindmounts/shared? e.g.
something like
# mount LABEL=USB2TB /mnt/bindmounts/shared
or do I (manually) mount it to 'somewhere else' say /media/camthingy/USB32 and then bind mount it
to /mnt/bindmounts/shared, e.g.
# mount -o bind /media/camthingy/USB32 /mnt/bindmounts/shared
I think that's enough questions to start with 8).
Thanks very much in advance.
an LXC guest.
Version is:
~$ pveversion
pve-manager/7.1-8/5b267f33 (running kernel: 5.13.19-2-pve)
The main references I'm using are:
https://forum.proxmox.com/threads/mount-external-hdd-in-lxc-container.50897/
https://pve.proxmox.com/wiki/Linux_Container#_bind_mount_points
https://pve.proxmox.com/wiki/Unprivileged_LXC_containers
I have installed userbindmount (no one ever actually said to, I just guessed it was necessary)
~$ apt search bindmount
Sorting... Done
Full Text Search... Done
libuserbindmount-dev/stable,now 0.1-2+b1 amd64 [installed]
bind-mount in user namespaces (devel)
libuserbindmount0/stable,now 0.1-2+b1 amd64 [installed,automatic]
bind-mount in user namespaces (library)
userbindmount/stable,now 0.1-2+b1 amd64 [installed]
bind-mount in user namespaces (command)
My first set of questions:
* Is the host-side location /mnt/bindmounts/shared that is
always referred to in the pages above a 'magic' location that
has special properties or otherwise must have that name? or
is it simply a normal directory structure and everyone has
agreed to use that name?
* Is the host-side location /mnt/bindmounts/shared created
automagically some way? Maybe by simply installing
userbindmount (I'm guessing 'no')? Or calling something? Or by enabling and starting
some systemctl something? or...what? Or does the admin have to create it
and manually do the permissions and acls?
* Do I (manually or fstab) mount the usb drive directly to /mnt/bindmounts/shared? e.g.
something like
# mount LABEL=USB2TB /mnt/bindmounts/shared
or do I (manually) mount it to 'somewhere else' say /media/camthingy/USB32 and then bind mount it
to /mnt/bindmounts/shared, e.g.
# mount -o bind /media/camthingy/USB32 /mnt/bindmounts/shared
I think that's enough questions to start with 8).
Thanks very much in advance.