Wie kann ich einen Ordner des Hosts im LXC Guest mounten?

Sharky04

Active Member
Oct 30, 2018
11
0
41
44
Ich hab unter Proxmox 5.2-10 einen Container mit Debian 9.5. Das Volume des Containers liegt auf dem local-lvm.

Ich würde gerne in dem Debian Guest auf /tmp des Hosts zugreifen. Wie stelle ich den Mount an?
 
Zum testen habe auf dem Host den Ordner /temp erzeugt und wollte ich nun auf dem Gast mounten.

Code:
pct stop 104
pct set 104 -mp0 /mnt/bindmounts/temp,mp=/temp
pct start 104

Ergebnis:
Job for pve-container@104.service failed because the control process exited with error code.
See "systemctl status pve-container@104.service" and "journalctl -xe" for details.

Code:
-- Unit pve-container@104.service has begun starting up.
Oct 30 11:55:01 proxmox CRON[25956]: pam_unix(cron:session): session opened for user root by (uid=0)
Oct 30 11:55:01 proxmox CRON[25957]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Oct 30 11:55:01 proxmox CRON[25956]: pam_unix(cron:session): session closed for user root
Oct 30 11:55:01 proxmox kernel: EXT4-fs (dm-14): mounted filesystem with ordered data mode. Opts: (null)
Oct 30 11:55:01 proxmox systemd[1]: pve-container@104.service: Control process exited, code=exited status=1
Oct 30 11:55:01 proxmox systemd[1]: Failed to start PVE LXC Container: 104.
-- Subject: Unit pve-container@104.service has failed
 
Gibt es den Order in den Path?
/temp != /mnt/bindmounts/temp
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!