Mount of CT raw file to rootfs

vince_122

New Member
Apr 10, 2012
29
0
1
Hi there !

Sine I've moved to LXC, I am unable to access to the rootfs of my Containers from my host when they are started.

My containers are stored in ".raw" files, containing the partition table, and this files are stored in this directory : /var/lib/vz/images/<CT.ID>/<CT.ID>.raw

I want this file to be mounted in the rootfs directory here : /var/lib/lxc/<CT.ID>/rootfs when my containers are started. How can I do that ?

When I'm starting the Container in foreground mode, I get this log line :
Filesystem type 'fuse.lxcfs' is not supported. Skipping mount.

Thanks for helping,
Vincent.
 
Last edited:
you can temporarily mount the volumes of a container with "pct mount ID" - but this takes a lock on the config, so you should use it when needed an "pct unmount ID" after you are done.
 
Thanks fabian for the solution.

But when I start my CT I have this log line :

Filesystem type 'fuse.lxcfs' is not supported. Skipping mount.

Is it normal ?
 
no, it's not. please post your container configuration ("/etc/pve/lxc/ID.conf") and installed packages ("pveversion -v")
 
Here is my ("/etc/pve/lxc/ID.conf") file :

arch: i386
cpulimit: 2
cpuunits: 1024
hostname: myCT
memory: 512
net0: name=eth0,bridge=vmbr0,gw=192.168.0.10,hwaddr=96:33:1B:89:F6:B6,ip=192.168.0.29/24,type=veth
ostype: debian
rootfs: local:101/vm-101-disk-1.raw,size=20G
swap: 1024


And ("pveversion -v") :

proxmox-ve: 4.3-71 (running kernel: 4.4.21-1-pve)
pve-manager: 4.3-10 (running version: 4.3-10/7230e60f)
pve-kernel-4.4.21-1-pve: 4.4.21-71
lvm2: 2.02.116-pve3
corosync-pve: 2.4.0-1
libqb0: 1.0-1
pve-cluster: 4.0-47
qemu-server: 4.0-94
pve-firmware: 1.1-10
libpve-common-perl: 4.0-80
libpve-access-control: 4.0-19
libpve-storage-perl: 4.0-68
pve-libspice-server1: 0.12.8-1
vncterm: 1.2-1
pve-docs: 4.3-14
pve-qemu-kvm: 2.7.0-8
pve-container: 1.0-81
pve-firewall: 2.0-31
pve-ha-manager: 1.0-35
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u2
lxc-pve: 2.0.5-1
lxcfs: 2.0.4-pve2
criu: 1.6.0-1
novnc-pve: 0.5-8
smartmontools: 6.5+svn4324-1~pve80
 

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!