Home » Mailing lists » Users » creating partition for VE and networking
creating partition for VE and networking [message #12205] |
Fri, 20 April 2007 09:14 |
Markus Hardiyanto
Messages: 27 Registered: April 2007
|
Junior Member |
|
|
Hello,
I'm new in openvz. yesterday I'm succeeded installing openvz on centos 4.4 and can make openvz run. my question is how to make partition inside the VE? when i execute this commands:
# vzctl enter 101
# entered into VE 101
# df -h
Filesystem Size Used Avail Use% Mounted on
simfs 1.0G 95M 930M 10% /
you see there is only one partition /, how can i make /boot, /, /home, /tmp partition separately inside the VE?
next question is how to make the VE accessible from the internet? while i already supply a public IP for the VE:
# vzctl set 101 --ipadd xxx.xxx.xxx.xxx --save
but when i try to ping it from my laptop, it can't be reached. i do can ping the physical node. what should i configure?
i saw in the wiki about creating NAT, but that is for private IP while in my case i want to use public IP for my VEs. please advise.
thanks
Best Regards,
Markus
Send instant messages to your online friends http://uk.messenger.yahoo.com
|
|
|
Re: creating partition for VE and networking [message #12207 is a reply to message #12205] |
Fri, 20 April 2007 10:44 |
Vasily Tarasov
Messages: 1345 Registered: January 2006
|
Senior Member |
|
|
Hello,
Markus Hardiyanto wrote:
> Hello,
>
> I'm new in openvz. yesterday I'm succeeded installing openvz on centos 4.4 and can make openvz run. my question is how to make partition inside the VE? when i execute this commands:
>
> # vzctl enter 101
> # entered into VE 101
> # df -h
> Filesystem Size Used Avail Use% Mounted on
> simfs 1.0G 95M 930M 10% /
>
> you see there is only one partition /, how can i make /boot, /, /home, /tmp partition separately inside the VE?
I don't quite understand what do you want? =) In order to mount some
filesystem on any directory in VE just use usual mount. However the list
of filesystems, that you can use in VE is limited (look at
/proc/filesystems in VE, sysfs and nfs can be added via `vzctl set
<veid> --features` command).
Every real fs is deployed on some device. Usually VE doesn't use such
devices (like /dev/sda1, ...). But you can give VE an access to the
device via `vzctl set <veid> --devnodes`. Note, that this is the same
device, that is on your host node: some partion on your HN for example,
so deleting files from it will remove files from the host.
>
> next question is how to make the VE accessible from the internet? while i already supply a public IP for the VE:
> # vzctl set 101 --ipadd xxx.xxx.xxx.xxx --save
>
> but when i try to ping it from my laptop, it can't be reached. i do can ping the physical node. what should i configure?
> i saw in the wiki about creating NAT, but that is for private IP while in my case i want to use public IP for my VEs. please advise.
check, that /proc/sys/net/ipv4/ip_forwarding contents "1"
>
> thanks
>
>
> Best Regards,
> Markus
>
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
|
|
|
Re: creating partition for VE and networking [message #12209 is a reply to message #12205] |
Fri, 20 April 2007 11:05 |
Markus Hardiyanto
Messages: 27 Registered: April 2007
|
Junior Member |
|
|
i want to make separate partitions inside the VE, is that possible?
so instead of getting this:
> Filesystem Size Used Avail Use% Mounted on
> simfs 1.0G 95M 930M 10% /
i would like to see something like:
Filesystem Size Used Avail Use% Mounted on
simfs 1.0G 95M 930M 10% /
<something> 2.0G 20M 1.9G 1% /home
<something> 75M 8M 67M 1% /boot
virtual partition i say.. this is not the hardware node partition, but in the VE
> check, that /proc/sys/net/ipv4/ip_forwarding contents "1"
i check it and can't find it. but i found: /proc/sys/net/ipv4/ip_forward and it have contents "1"
but still the VE can't be pinged from other computer.
Best Regards,
Markus
----- Original Message ----
From: Vasily Tarasov <vtaras@openvz.org>
To: informatics2k1@yahoo.com
Cc: users@openvz.org
Sent: Friday, April 20, 2007 5:44:35 PM
Subject: Re: [Users] creating partition for VE and networking
Hello,
Markus Hardiyanto wrote:
> Hello,
>
> I'm new in openvz. yesterday I'm succeeded installing openvz on centos 4.4 and can make openvz run. my question is how to make partition inside the VE? when i execute this commands:
>
> # vzctl enter 101
> # entered into VE 101
> # df -h
> Filesystem Size Used Avail Use% Mounted on
> simfs 1.0G 95M 930M 10% /
>
> you see there is only one partition /, how can i make /boot, /, /home, /tmp partition separately inside the VE?
I don't quite understand what do you want? =) In order to mount some
filesystem on any directory in VE just use usual mount. However the list
of filesystems, that you can use in VE is limited (look at
/proc/filesystems in VE, sysfs and nfs can be added via `vzctl set
<veid> --features` command).
Every real fs is deployed on some device. Usually VE doesn't use such
devices (like /dev/sda1, ...). But you can give VE an access to the
device via `vzctl set <veid> --devnodes`. Note, that this is the same
device, that is on your host node: some partion on your HN for example,
so deleting files from it will remove files from the host.
>
> next question is how to make the VE accessible from the internet? while i already supply a public IP for the VE:
> # vzctl set 101 --ipadd xxx.xxx.xxx.xxx --save
>
> but when i try to ping it from my laptop, it can't be reached. i do can ping the physical node. what should i configure?
> i saw in the wiki about creating NAT, but that is for private IP while in my case i want to use public IP for my VEs. please advise.
check, that /proc/sys/net/ipv4/ip_forwarding contents "1"
>
> thanks
>
>
> Best Regards,
> Markus
>
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
Send instant messages to your online friends http://uk.messenger.yahoo.com
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Thu Oct 17 03:27:35 GMT 2024
Total time taken to generate the page: 0.05441 seconds
|