Results 1 to 19 of 19
-
06-11-2012, 04:31 PM #1Junior Guru Wannabe
- Join Date
- Jan 2011
- Posts
- 41
Installed Openz slave can't ssh into a vps
I've been trying to figure this out for a solid 5 hours now and I'm at my wits end so I thought I would post here and hopefully find some answers.
I have purchased a new dedicated server and installed an OpenVZ Slave for SolusVM.
Everything appears to install fine, I've done this twenty times with no issues. The only difference with the current server is I'm trying a new provider.
When I add a vps everything also appears to go fine. In SolusVM it shows the vps running.
However I cannot ssh into the vps. I can ping the ip but if I try:
telnet xxx.xxx.xxx 22 I just get "Could not connect etc.."
I can ping the vps from the host node and if I login to the vps via the SolusVM console I can ping the host node. However on the vps I cannot resolve any domains.
I've checked my settings in: http://wiki.openvz.org/Quick_installation#sysctl and everything seems fine.
If anyone could offer any assistance it would really be appreciated.
If more details are needed, please let me know.
-
06-11-2012, 09:23 PM #2Web Hosting Master
- Join Date
- Sep 2010
- Location
- /usr/bin/fail
- Posts
- 859
You might try downgrading the version of vzctl.. I know in the past it caused issues if a newer version of vzctl was used.
http://wiki.solusvm.com/index.php?title=OpenVZ_Bugs
Not sure if this still applies since the recent updates but your issue sounds similar to one I ran into a while back and basically it was not setting the gateway correctly. If I manually set the gateway in the vps via console it would work until I rebooted the vps.
Hope this helps.
-
06-11-2012, 10:31 PM #3Web Hosting Master
- Join Date
- Jun 2010
- Location
- Grand Rapids, Mi
- Posts
- 1,200
Can you SSH into the OVz Slave node, then use vzctl enter ### where ### is the number of the VPS container (i.e.: do vzlist to see what it's number is) and then check to see if SSHd is even running on the VPS you are running. Can probably even vzctl restart ### to see if that does the trick either.
IonVz - Nginx/FreeBSD/VPS Consulting | VPSNodeBox - Managed Support Representative
-
06-11-2012, 11:35 PM #4Junior Guru Wannabe
- Join Date
- Jan 2011
- Posts
- 41
Thanks for the replies, the vzctl version is the name version I'm using on other nodes so I trust it works.
I entered the vps from the node and checked sshd and it appeared to be running.
However when I restarted the node I got the following error:
[root@108 private]# vzctl restart 1861
Restarting container
Stopping container ...
Container was stopped
Container is unmounted
Starting container ...
Container is mounted
Adding IP address(es): xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx
arpsend: xxx.xxx.xxx.xxx is detected on another computer : 00:0f:f8:41:fc:00
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e xxx.xxx.xxx.xxx eth0 FAILED
arpsend: xxx.xxx.xxx.xxx is detected on another computer : 00:0f:f8:41:fc:00
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e xxx.xxx.xxx.xxx eth0 FAILED
Setting CPU limit: 300
Setting CPU units: 1000
Setting CPUs: 3
Container start in progress...
Getting ready to throw in the towel at this point.
-
06-12-2012, 05:36 AM #5Disabled
- Join Date
- Aug 2011
- Location
- London
- Posts
- 172
it looks as if another server (or VPS) has the VPS' IP in question assigned, one that allows icmp but not ssh. Are you on your own subnet or using a range of a subnet only? Checked ifconfig -a and did a traceroute to the IP that has issues?
cheers
oz.
-
06-12-2012, 01:56 PM #6Junior Guru Wannabe
- Join Date
- Jan 2011
- Posts
- 41
Last edited by captain_squash; 06-12-2012 at 02:09 PM.
-
06-12-2012, 01:59 PM #7Web Hosting Master
- Join Date
- Jun 2010
- Location
- Grand Rapids, Mi
- Posts
- 1,200
It's possible that the host node has the full IP range assigned and bound, as opposed to only having the first IP bound (thus leaving the rest usable by any new VPS)
When you do a ifconfig from the slave node, do you see a full range of IP addresses or just your first one? The error seems to imply that you have them all pre-setup on the slave node as it mentions eth0 as the possible interface already having it bound.IonVz - Nginx/FreeBSD/VPS Consulting | VPSNodeBox - Managed Support Representative
-
06-12-2012, 02:09 PM #8Junior Guru Wannabe
- Join Date
- Jan 2011
- Posts
- 41
Here's the output of my ifconfig, I hope this helps:
[root@108 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 54:04:A6:3C1:1D
inet addr:108.171.212.210 Bcast:108.171.212.223 Mask:255.255.255.224
inet6 addr: fe80::5604:a6ff:fe3c:d11d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:42563 errors:0 dropped:0 overruns:0 frame:0
TX packets:15779 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3430136 (3.2 MiB) TX bytes:2636661 (2.5 MiB)
Interrupt:130 Memory:fb400000-fb420000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:19 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2418 (2.3 KiB) TX bytes:2418 (2.3 KiB)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 -00
inet6 addr: fe80::1/128 Scope:Link
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:4058 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:215314 (210.2 KiB) TX bytes:1863 (1.8 KiB)
Thanks again for the replies.
-
06-12-2012, 02:13 PM #9Web Hosting Master
- Join Date
- Jun 2010
- Location
- Grand Rapids, Mi
- Posts
- 1,200
And the IP you're attempting to add/use with the VPS is one that belongs to that physical machine (and is not the primary IP listed there) ?
IonVz - Nginx/FreeBSD/VPS Consulting | VPSNodeBox - Managed Support Representative
-
06-12-2012, 02:26 PM #10Junior Guru Wannabe
- Join Date
- Jan 2011
- Posts
- 41
-
06-12-2012, 02:29 PM #11Web Hosting Master
- Join Date
- Jun 2010
- Location
- Grand Rapids, Mi
- Posts
- 1,200
It does matter if the IP you're trying to use was not assigned to that physical slave server. i.e.: You could have 2 physical servers (I don't know if you're just using one or not, but usually you have 2 or more if you're installing an Ovz Slave node), and if you tried to migrate a VPS from Node #1 to the Slave node and did not update it's IP, it may be trying to use an IP that isn't assigned to that physical node.
IonVz - Nginx/FreeBSD/VPS Consulting | VPSNodeBox - Managed Support Representative
-
06-12-2012, 02:57 PM #12Junior Guru Wannabe
- Join Date
- Jan 2011
- Posts
- 41
-
06-12-2012, 03:04 PM #13Web Hosting Master
- Join Date
- Jun 2010
- Location
- Grand Rapids, Mi
- Posts
- 1,200
So:
New Node -> Specific block of IPs they gave you for that exact node -> Trying on VPS
Now how are you going about creating the VPS? Did you make sure to specify the new node in the drop down when adding the VPS and you made sure to add the IP block in solusvm assigned to the new node as well?IonVz - Nginx/FreeBSD/VPS Consulting | VPSNodeBox - Managed Support Representative
-
06-12-2012, 03:14 PM #14Junior Guru Wannabe
- Join Date
- Jan 2011
- Posts
- 41
-
06-12-2012, 03:16 PM #15Web Hosting Master
- Join Date
- Jun 2010
- Location
- Grand Rapids, Mi
- Posts
- 1,200
Hrm... weird. I'm assuming the new node is pretty empty other than the VPS you're trying to create, maybe try to bind something (say a simple web process or some quick python app) on the IP and see if you still get the problem, least it would verify it's not just a OpenVz thing.
IonVz - Nginx/FreeBSD/VPS Consulting | VPSNodeBox - Managed Support Representative
-
06-12-2012, 03:33 PM #16Junior Guru Wannabe
- Join Date
- Jan 2011
- Posts
- 41
No luck, I tried setting up a minecraft server and tested a few ips from the block and just got the following:
2012-06-12 12:31:31 [WARNING] **** FAILED TO BIND TO PORT!
2012-06-12 12:31:31 [WARNING] The exception was: java.net.BindException: Cannot assign requested address
2012-06-12 12:31:31 [WARNING] Perhaps a server is already running on that port?
-
06-12-2012, 04:43 PM #17Web Hosting Master
- Join Date
- Jun 2010
- Location
- Grand Rapids, Mi
- Posts
- 1,200
try netstat -tlpn to see all interfaces being listened on.
IonVz - Nginx/FreeBSD/VPS Consulting | VPSNodeBox - Managed Support Representative
-
06-12-2012, 05:12 PM #18Junior Guru Wannabe
- Join Date
- Jan 2011
- Posts
- 41
Here's what I get:
[root@108 ~]# netstat -tlpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 129053/sendmail: MT
tcp 0 0 127.0.0.1:587 0.0.0.0:* LISTEN 49382/sendmail: MTA
tcp 0 0 0.0.0.0:6767 0.0.0.0:* LISTEN 45443/lighttpd
tcp 0 0 0.0.0.0:911 0.0.0.0:* LISTEN 8785/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 8724/portmap
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 49374/apache2
tcp 0 0 0.0.0.0:2200 0.0.0.0:* LISTEN 9097/sshd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 48059/sshd
tcp 0 0 :::2200 :::* LISTEN 9097/sshd
tcp 0 0 :::80 :::* LISTEN 141745/httpd
tcp 0 0 :::22 :::* LISTEN 48059/sshd
-
06-12-2012, 10:25 PM #19Junior Guru Wannabe
- Join Date
- Jan 2011
- Posts
- 41
@kbeezie thanks again for the help.
The good news is I contacted my DC again and it turns out there was a mistake with my ip block. I've been assigned a new one and know everything is okay
Similar Threads
-
Cheap VPS slave.
By bijan588 in forum Dedicated ServerReplies: 3Last Post: 02-17-2012, 02:21 PM -
Installed OpenVZ; can't SSH into VPS?
By WootWoot in forum VPS HostingReplies: 18Last Post: 11-07-2010, 02:40 PM -
Need shared hosting with free ssh and git installed
By w84me in forum Web HostingReplies: 11Last Post: 01-07-2010, 09:23 PM -
i need to backup my remote dedicated server with centos installed over ssh
By indoadeptcreations in forum Hosting Security and TechnologyReplies: 4Last Post: 07-05-2009, 12:30 PM -
Installed PAM, config'd ssh now I cannot login
By Rclark in forum Hosting Security and TechnologyReplies: 5Last Post: 09-11-2003, 06:36 PM