LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-17-2013, 12:33 AM   #1
rajorcldba
LQ Newbie
 
Registered: Apr 2013
Posts: 3

Rep: Reputation: Disabled
Unable ssh the VM from Xen Hypervisor


Hi Experts,

I am creating a VM under Xen Hypervisor.
I could login to the VM from "xm console <vm name>".
However the SSH is not working.

Did some research and seems like its a routing issue.
Routing at Hypervisor:
[root@node1 ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
202.56.249.66 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
10.191.192.0 0.0.0.0 255.255.224.0 U 0 0 0 cscotun0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 10.191.208.91 0.0.0.0 UG 0 0 0 cscotun0
[root@node1 ~]#

Routing at VM is blank.
[root@dbnode1 ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
[root@dbnode1 ~]#

Network configuration:
Hypervisor Config Details:
[root@node1 ~]# grep GATEWAY /etc/sysconfig/network
GATEWAY=192.168.1.1
[root@node1 ~]# grep NETMASK /etc/sysconfig/network-scripts/ifcfg-eth0
NETMASK=255.255.255.0
[root@node1 ~]# hostname -i
192.168.1.15
[root@node1 ~]#

Configured VM as per the above:
[root@dbnode1 ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=dbnode1.arun.com
[root@dbnode1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# generated by /usr/sbin/oraclevm-template
DEVICE=eth0
ONBOOT=yes
#BOOTPROTO=dhcp
BOOTPROTO=static
#HWADDR=00:16:36:6c:af:a5
HWADDR=00:16:3E:2A:59:4C
IPADDR=192.168.1.31
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
TYPE=Ethernet
[root@dbnode1 ~]#

[root@dbnode1 ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:16:3E:2A:59:4C
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

[root@dbnode1 ~]#

[root@dbnode1 ~]# route add -net 192.168.1.0/24 gw 192.168.1.1
SIOCADDRT: Network is unreachable
[root@dbnode1 ~]#

[root@dbnode1 ~]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.1.31 dbnode1.arun.com dbnode1
[root@dbnode1 ~]#


Please suggest where I am missing.

Last edited by rajorcldba; 04-17-2013 at 12:35 AM.
 
Old 04-17-2013, 01:36 AM   #2
dctw
LQ Newbie
 
Registered: Oct 2009
Posts: 27

Rep: Reputation: 0
If there is another Xen instance running at the same server, probably you can try to ping from this vm to the other vm or vice versa.

My guess would be the network misconfiguration at the Xen Bridge. Probably you can paste the output of brctl command and also the xen instance configuration file and we can troubleshoot from there.
 
Old 04-17-2013, 04:11 AM   #3
rajorcldba
LQ Newbie
 
Registered: Apr 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the quick reply.

This is first VM I am configuring on this Xen environment.

[root@node1 ~]# xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 11935 4 r----- 5597.1
[root@node1 ~]#

Other than Privileged Domain, there are no other domains to cross-check the configuration.

Here are the details:
[root@node1 ~]# brctl show
bridge name bridge id STP enabled interfaces
virbr0 8000.000000000000 yes
xenbr0 8000.feffffffffff no peth0
vif0.0
[root@node1 ~]#
[root@node1 ~]# cat /u01/VM1/vm.cfg
bootloader = '/usr/bin/pygrub'
disk = ['file:/u01/VM1/System.img,xvda,w',
]
memory = '2048'
name = 'OVM_EL5U5_X86_64_11201RAC_1'
on_crash = 'restart'
on_reboot = 'restart'
vcpus = 1
vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0']
vif = ['bridge=xenbr0,type=netfront',]
vif_other_config = []
[root@node1 ~]#
 
Old 04-17-2013, 11:33 PM   #4
dctw
LQ Newbie
 
Registered: Oct 2009
Posts: 27

Rep: Reputation: 0
I see....
Not sure whether it helps ... My configuration for Xen client is much simpler.

You can try this and see whether it works??

***************************************
name = 'OVM_EL5U5_X86_64_11201RAC_1'
memory = '2048'
disk = ['file:/u01/VM1/System.img,xvda,w',
]
vif = ['bridge=xenbr0', ]
bootloader = '/usr/bin/pygrub'
vcpus = 1
on_crash = 'restart'
on_reboot = 'restart'
********************************
 
Old 04-17-2013, 11:35 PM   #5
dctw
LQ Newbie
 
Registered: Oct 2009
Posts: 27

Rep: Reputation: 0
Of course I'd presume the client is running and firewall for the Xen client is off.
From the Xen client, are the network interface up? What is the ifconfig output for the client and server? Are they pingable from server to client and vice versa ...
Is the sshd running at the client and stuff....

These are some of the questions I should have asked earlier before biting on Xen being the cause. LOL

From your output earlier, I didn't see indication that the client is running from your 'xm list' output. Maybe I'm wrong ...

Last edited by dctw; 04-17-2013 at 11:40 PM.
 
Old 04-17-2013, 11:42 PM   #6
rajorcldba
LQ Newbie
 
Registered: Apr 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi,

I could access the VM from the Xen without any issue using the "xm console".

However unable to ping/ssh between the Hypervisor and VM.

Seems like the issue could be with bridge/routing setup.

Regards,
Raj.
 
Old 04-17-2013, 11:55 PM   #7
dctw
LQ Newbie
 
Registered: Oct 2009
Posts: 27

Rep: Reputation: 0
Have you tried the client config file I suggested?
Also can we take a look at the output for the following for both Hypervisor and Client?

route -n
ifconfig

Last edited by dctw; 04-17-2013 at 11:57 PM.
 
Old 04-18-2013, 12:05 AM   #8
dctw
LQ Newbie
 
Registered: Oct 2009
Posts: 27

Rep: Reputation: 0
I was looking at the output you posted earlier and noticed there isn't an IP assigned to eth0. Probably you can start troubleshoot from there.

******************************
[root@dbnode1 ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:16:3E:2A:59:4C
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

[root@dbnode1 ~]#

******************************
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to assign devices with VT-d in (fedora with Xen hypervisor) 8613133 Linux - Virtualization and Cloud 0 12-12-2012 02:44 PM
Unable to open connection to XEN hypervisor/deamon anil98433 Linux - Virtualization and Cloud 0 07-19-2012 11:40 AM
Unable to open a connection to the Xen hypervisor/daemon albie17 Linux - Virtualization and Cloud 1 08-05-2010 06:47 PM
LXer: Backport Intrepid Xen 3.3 Hypervisor to Ubuntu Hardy Dom0 (2.6.24-21-xen) LXer Syndicated Linux News 0 11-13-2008 06:11 PM
LXer: Xen.org Delivers Version 3.3 of the Xen Hypervisor LXer Syndicated Linux News 0 08-29-2008 10:50 PM


All times are GMT -5. The time now is 03:08 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration