Mount a drive into LXC

Whitehawk

New Member
Dec 18, 2016
1
0
1
33
Hi all,

Sorry for this question but i'm new with proxmox & container ..

I want to mount a hard drive (/dev/sdc3) into a ubuntu container.

Please someone could tell me how to do that ?
I tried to add lxc.mount into /var/lib/lxc/101/config without success :D

Best regards
 
Hi all,

Sorry for this question but i'm new with proxmox & container ..

I want to mount a hard drive (/dev/sdc3) into a ubuntu container.

Please someone could tell me how to do that ?
I tried to add lxc.mount into /var/lib/lxc/101/config without success :D

Best regards


Hi
I have been trying to use mountpoint PMx by editing th LXC config file with out success

Code:
101.conf

arch: amd64
cores: 2
hostname: thomas
memory: 1024
net0: name=eth0,bridge=vmbr0,hwaddr=BE:04:7D:00:95:F1,ip=dhcp,type=veth
ostype: ubuntu
rootfs: local-lvm:vm-101-disk-0,size=8G
swap: 0 
unprivileged: 1
mp0: /dev/sdb1,mp=/mnt/ext,backup=0

where /dev/sb1 is an existing partition containing data
/mnt/ext is the mount point in the LXC container
with the last line added the ubuntu 18 LXC doe not start

regards Finnboat