[Users] creating partition for VE and networking
Vasily Tarasov
vtaras at openvz.org
Fri Apr 20 06:44:35 EDT 2007
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
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://openvz.org/mailman/listinfo/users
>
More information about the Users
mailing list