OpenVZ Forum


Home » Mailing lists » Devel » Can a VE contain the root filesystem?
Can a VE contain the root filesystem? [message #30179] Wed, 14 May 2008 13:57 Go to next message
duyuyang is currently offline  duyuyang
Messages: 4
Registered: April 2008
Junior Member
Hi,

Can VE use the root filesystem as private filesystem?

Scenario: I first installed Oracle without OpenVz, then I installed OpenVz, but I do not want to install Oracle again in a VE, I wonder if I can let a VE use the original root FS as private FS, then I can use Oracle in VE.


Y. D.


2008-05-14 



¶ΕΣκΡτ
Re: Can a VE contain the root filesystem? [message #30190 is a reply to message #30179] Thu, 15 May 2008 06:47 Go to previous message
Vasily Averin is currently offline  Vasily Averin
Messages: 17
Registered: April 2008
Junior Member
¶ΕΣκΡτ wrote:
> Can VE use the root filesystem as private filesystem?
> 
> Scenario: I first installed Oracle without OpenVz, then I installed OpenVz,
> but I do not want to install Oracle again in a VE, I wonder if I can let a VE
> use the original root FS as private FS, then I can use Oracle in VE.

You can bind-mount any parts of host filesystem into VE.
For example you can use per-ve mount script to bind-mount /opt directory to the
/vz/root/<VEID>/opt.

Moreover I think you can try to bind-mount / to some directory inside VE (for
example to /vz/root/<VEID>/hostroot/), then call chroot inside VE.

thank you,
	Vasily Averin
Previous Topic: suspend/resume instead of stop/start from vz init script
Next Topic: user namespace semantics (may 16)
Goto Forum:
  


Current Time: Mon Sep 16 14:02:57 GMT 2024

Total time taken to generate the page: 0.04460 seconds