OpenVZ Forum


Home » Mailing lists » Users » Same as Physical PC
Same as Physical PC [message #13465] Sun, 27 May 2007 15:52 Go to next message
Jun OKAJIMA is currently offline  Jun OKAJIMA
Messages: 30
Registered: March 2006
Member
Cant I make a very same env as real one to VE?
It has just very same /dev as real Linux, and also same /proc as real Linux.
I know it is no meaning for server virtualization, which is the purpose
of OpenVZ, because it loses all of security. But it is convenient for
development, testing, or such purposes.

-------

I tried like below, in the OpenVZ live CD.

# mount --bind /dev /var/lib/vz/private/101/dev
# mount --proc /proc /var/lib/vz/private/101/proc
# vzctl start 101

But, it ended up with below.

------------
Starting VE ...
vzquota : (error) Quota on syscall for 101: Device or resource busy
vzquota on failed [3]
------------

To make the matters worse, something like this failed in same way.
I am sure that this must be possible, because the below URL did it.
http://forum.openvz.org/index.php?t=msg&goto=13000&# msg_13000
But I failed. Why?. The env I used is the live CD which downloaded
from your site.
Any help?

# mkdir /aaa
# mount -t tmpfs none /aaa
# echo "hello world" >/aaa/bbb
# mount --bind /aaa /var/lib/vz/private/101/tmp
# vzctl start 101
( and "vzquota" error happened. WHY??? and what I should do?)



Note: I know that adding "DEVICES=" lines to a config file is necessary to access
actual physical devices.


--- Okajima, Jun. Tokyo, Japan.
Re: Same as Physical PC [message #13493 is a reply to message #13465] Mon, 28 May 2007 10:48 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

It is a usual mistake. As described in the post you referenced to:
<snip>
You're mounting to __private__ directory, that is not right: in order to
see information on external mounted filesystem in VE, you should start
VE and then mount to __root__ directory:

mount --bind /mnt/testhome /vz/root/102/home/
</snip>

Otherwise quota will complain ;)

HTH,
Vasily

On Mon, 2007-05-28 at 00:52 +0900, Jun OKAJIMA wrote:
>
> Cant I make a very same env as real one to VE?
> It has just very same /dev as real Linux, and also same /proc as real Linux.
> I know it is no meaning for server virtualization, which is the purpose
> of OpenVZ, because it loses all of security. But it is convenient for
> development, testing, or such purposes.
>
> -------
>
> I tried like below, in the OpenVZ live CD.
>
> # mount --bind /dev /var/lib/vz/private/101/dev
> # mount --proc /proc /var/lib/vz/private/101/proc
> # vzctl start 101
>
> But, it ended up with below.
>
> ------------
> Starting VE ...
> vzquota : (error) Quota on syscall for 101: Device or resource busy
> vzquota on failed [3]
> ------------
>
> To make the matters worse, something like this failed in same way.
> I am sure that this must be possible, because the below URL did it.
> http://forum.openvz.org/index.php?t=msg&goto=13000&# msg_13000
> But I failed. Why?. The env I used is the live CD which downloaded
> from your site.
> Any help?
>
> # mkdir /aaa
> # mount -t tmpfs none /aaa
> # echo "hello world" >/aaa/bbb
> # mount --bind /aaa /var/lib/vz/private/101/tmp
> # vzctl start 101
> ( and "vzquota" error happened. WHY??? and what I should do?)
>
>
>
> Note: I know that adding "DEVICES=" lines to a config file is necessary to access
> actual physical devices.
>
>
> --- Okajima, Jun. Tokyo, Japan.
>
>
>
Previous Topic: Same as Physical PC
Next Topic: E: You don't have enough free space in /var/cache/apt/archives/
Goto Forum:
  


Current Time: Tue Aug 13 20:48:24 GMT 2024

Total time taken to generate the page: 0.02877 seconds