Hello i just setup a fresh dedicated server i'm trying to make a vps. I successfully created the vps and i can enter it via vzctl enter but i cannot access the server from the ip that i allocated it. I dont think that the ip configuration on the node is setup for the ips that i will be using to make the vps. Is there a specific file where i need to add the ips that i own so that they will work correctly when im creating vps's?
Quote: but i cannot access the server from the ip that i allocated it. Sorry, I don't quite undestand you... What is "server" in your post? Is it host node or VE? Can you descibe please what do you do in details and what fails? Quote: I dont think that the ip configuration on the node is setup for the ips that i will be using to make the vps. Is there a specific file where i need to add the ips that i own so that they will work correctly when im creating vps's? You have to give only the following command: # vzctl set <VEID> --ipadd <IPADDRESS> --save to start network inside VE. This <IPADDRESS> will be stored in <VEID>.conf file in /etc/vz/conf/ directory. HTH, vass.
-bash: cd: /vz/conf: No such file or directory And sorry i was referring to a server as a ve sorry for the confusion
Sorry, I meant /etc/vz/conf/ directory!
another thing is my block of ips last subnet digits are .224 How can i specify the subnet for the ip that i gave my server -bash: cd: /etc/vz/conf/: No such file or directory
In older versions of vzctl .conf files reside in /etc/sysconfig/vz-scripts/ directory. In this I suggest to you to upgrade to newer version. You didn't answer my question concerning how you can't connect to VE. Please, describe your network configuration, what do you do to test connection. Provide /proc/sys/net/ipv4/ip_forward output, ifconfig inside VE and on HN. Thanks.
I'm pretty new at linux and im trying to learn can you explain how to do these?
Chris, you don't need to specify subnet mask for the IPs you are giving to your VEs as it is point-to-point connection with your HW node. Just add them to VE using "vzctl set <VPSID> --ipadd x.y.z.w --save" and check the connectivity. If that doesn't work, provide outputs of the following commands on HW node (server): # ip a l # vzctl exec <VPSID> ip a l # cat /proc/sys/net/ipv4/ip_forward
[root@175 ~]# ip a l 2: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 brd 127.255.255.255 scope host lo 4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:50:2c:a8:2b:ab brd ff:ff:ff:ff:ff:ff inet 64.9.105.175/26 brd 64.9.105.191 scope global eth0 1: venet0: <BROADCAST,POINTOPOINT,NOARP,UP> mtu 1500 qdisc noqueue link/void [root@175 ~]# vzctl exec 200 ip a l 1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 brd 127.255.255.255 scope host lo 3: venet0: <BROADCAST,POINTOPOINT,NOARP,UP> mtu 1500 qdisc noqueue link/void inet 127.0.0.1/32 scope host venet0 inet 64.9.105.122/32 brd 64.9.105.122 scope global venet0:0 inet 64.9.105.123/32 brd 64.9.105.123 scope global venet0:1 [root@175 ~]# cat /proc/sys/net/ipv4/ip_forward 0
it looks like you forgot to apply systctl changes which are described in installation guide. particularly, ip_forward should be 1.
i did change it mabe i did it wrong. Can someone send me their sysctl config file for centos 4?
Yay!! I got it to work but i logged in and did a dir and i got no response
Hi Chris maybe you forgot to : vzctl set <VEID> --nameserver <YOUR-NS-IP> --save