Hi. Unofficial solution.
From this post, but slightly edited - https://forum.proxmox.com/threads/looking-for-rootfs-tar-xz.108821/post-564530
There is no file /etc/network/interfaces. rootfs from https://jenkins.linuxcontainers.org/job/image-debian/ use systemd-networkd as network settins...
Hi.
To correctly mount inside container any block device you need at least two devices:
- "physical" device (/dev/sda for example)
- "partitioned and fs-formatted" device of the mentioned above "physical" device (/dev/sda1 for example).
Do you have /dev/sdc and /dev/sdc1 in container?
Hi.
To add /dev/fuse to a container you need additional line in mount-hook.sh
...
mknod -m 777 ${LXC_ROOTFS_MOUNT}/dev/fuse c 10 229
...
let me show:
ls -la /dev/sd*
from yours proxmox
and also:
ls -la /dev/sd*
inside container
UPDATE for installation of OMV into LXC container.
1. Install OpenMediaVault NAS into Debian 9 LXC container on ProxmoxVE server with hardware RAID controller card.
2. Provide to OpenMediaVault in LXC container as a storage LSI MegaRAID RAID1 - /dev/sda1.
3. Also continue to use /dev/sda1 as a...
It seems to me that this is not a good idea to format and mount any partition inside lxc container. lxc has only minimal /dev. When you creating any new lxc container, the host script create and format it by itself, there is no fsck or other partition tools inside lxc.
On my host /dev/dm-0 is...
Hi.
Described below steps notes that you has:
1. mounted /dev/sdb1 to /mnt/dane2 on the host machine with ext4 file system type;
2. mounted /dev/sdc1 to /mnt/dane1 on the host machine with ext4 file system type;
3. OpenMediaVault container has id = 100 on the host.
After you installed OMV in...
Hi.
Hi.
You can use any drive name in non-aphanumeric order. you should use only block devices type via mknod.
you can provide via such hook an lvm volume also.
You can format drive via OMV or via host - as you like.
Hi.
The main idea of my manipulations is like this:
Container can't mount correctly due to limitations of lxc.
so, you can mount all needed partions via lxc.mount in config.
But OMV uses many configs (not only via fstab). So after you mknodes (/dev/sd*) in OMV lxc, you should mount file system...
OMV changed pathnames. you should use:
....
xc.mount.entry: /media/dane1 srv/sda1 none bind,create=dir,optional 0 0
lxc.mount.entry: /media/dane2 srv/sdb1 none bind,create=dir,optional 0 0
....
if "/media/dane1" mounted via hook as "sda" and "sda1" and "/media/dane2" mounted via hook as "sdb"...
Hi.
Did you added something like this line:
....
lxc.mount.entry: /raid srv/dev-sdb1 none bind,create=dir,optional 0 0
....
to the container conf file.
Seems that you forget to add lxc.mount.entry and OMV trying to mount inside container. But mount operations is impossible. You should mount...
Hi.
You didn't created via hook correctly /dev/sd*
If you need to attach /dev/sdb2 and /dev/sdc2, you should attach:
/dev/sdb
/dev/sdb1
/dev/sdb2
/dev/sdc
/dev/sdc1
/dev/sdc2
<container_id>.conf
.....
lxc.cgroup.devices.allow: b 8:16 rwm
lxc.cgroup.devices.allow: b 8:17 rwm...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.