Openvz and ext4

  • Thread starter Thread starter 0rinsb3lt
  • Start date Start date
0

0rinsb3lt

Guest
First hi I new here just like to say proxmox is awesome.

and Second.
I've been having an odd problem and have spent hours searching
and digging through the system to no avail maybe you could help

Setup a couple of guests OS's using Openvz templates one ubuntu 10.04 (101)
and the other centos 5.5(102).

The guests are running fine but I'd like to share an lvm (jbod) with ubuntu 10.04.

so I tried:
vzctl set 101 --save --devnodes lvm1/lvm:rw
which seems to work and gives 101 aka ubuntu access to that lvm enough so
to mount it (/dev/lvm1/lvm in ubuntu exists at this point).

Problem is the filesystem is ext4 and anytime I go to mount ubuntu claims
"mount: unknown filesystem type 'ext4'".
I've checked all the utils on ubuntu seem to support ext4 (ie mkfs.ext4).

Proxmox apparently supports ext4 I've checked this by mounting the lvm just fine.

tldr; Proxmox supports ext4, openvz OS's don't. Wondering if I missed a config somewhere or if this is just a limitation?
 
ok, this seems to be opening a whole new can of worms.

#modprobe ext4
results in not finding kernel module.

from my understaning the kernel and modules should be shared from proxmox's kernel/modules to the openvz OS.

not to add insult to injury it will mount ext3 even though ext3 module can't be loaded.
lsmod on proxmox shows ext3 and ext4 vs lsmod on guest ubuntu shows nothing loaded.
 
ok, after some more digging I found a way to accomplish what I sought out to do which was to simply give access to a physical hdd/lvm2 to an openvz OS.

The way i did so was with a mount bind and the instructions I used where here.