Mount a drive into LXC

Whitehawk

New Member
Dec 18, 2016
1
0
1
32
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
 

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!