[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] newbie in trouble with CentOS Xen



Quoting Alexandre Kouznetsov <alk@xxxxxxxxxx>:

Hello.

El 03/04/13 15:38, Dave Stevens escribió:
I have a server I basically inherited that has been performing well for
several years but is now not working. So I have ssh access from offsite.
When I log in I am in dom0. This is wrong; the unit was set up so that
dom0 would have no direct internet connection quite intentionally as a
security feature. There is one hosted domain, Centos 5.8 the same as
dom0. Up until yesterday I got the hosted domain when I logged in.

At the moment I can ssh to dom0 but when logged in can't ping out. So
that's a problem.

I can use xm console hostdomain to see the VM, which appears to be fine
on its own but which is disconnected.

I don't know enough about xen networking to know where to look, but it
seems reasonable that being unable to ping out would be indicative of
something, I just don't know what. Any suggestions welcome, will even
RTFM if someone will point me to it.

In order to make a reliable fix, you will need to get a better idea how it is supposed to work. Check this reference:
http://wiki.xen.org/wiki/Xen_Networking

Thanks for the reference, it seems well written and makes sense.


While this, please provide some output of the current status of your system, with the output of this commands:
xm list
brctl show
ifconfig
iptables -L -v


ok, here in order:

[root@skeena ~]# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0     9879     8 r-----    870.8
bulkley                                    1     2048     4 -b----   3283.0
[root@skeena ~]#

[root@skeena ~]# brctl show
bridge name     bridge id               STP enabled     interfaces
virbr0          8000.000000000000       yes
xenbr0          8000.feffffffffff       no              vif1.0
                                                        vif0.0
                                                        peth0
xenbr1          8000.feffffffffff       no              vif1.1
                                                        vif0.1
                                                        peth1
[root@skeena ~]#

[root@skeena ~]# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:30:48:CE:84:7F
          inet addr:10.10.254.240  Bcast:10.10.254.255  Mask:255.255.255.0
          inet6 addr: fe80::230:48ff:fece:847f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:81102 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34828 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:10772813 (10.2 MiB)  TX bytes:2721383 (2.5 MiB)

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:3086 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3086 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4816900 (4.5 MiB)  TX bytes:4816900 (4.5 MiB)

peth0     Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST NOARP  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)
          Interrupt:250 Base address:0xc000

peth1     Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:42346 errors:0 dropped:0 overruns:0 frame:0
          TX packets:73652 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9145360 (8.7 MiB)  TX bytes:5504883 (5.2 MiB)
          Interrupt:251 Base address:0xe000

vif0.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:2562 (2.5 KiB)

vif0.1    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:34830 errors:0 dropped:0 overruns:0 frame:0
          TX packets:81102 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2721787 (2.5 MiB)  TX bytes:10772813 (10.2 MiB)

vif1.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:56 (56.0 b)  TX bytes:2520 (2.4 KiB)

vif1.1    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:38756 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21268 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:1085168 (1.0 MiB)  TX bytes:7679247 (7.3 MiB)

virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:3077 (3.0 KiB)

xenbr0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:13 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2380 (2.3 KiB)  TX bytes:0 (0.0 b)

xenbr1    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:60059 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8474417 (8.0 MiB)  TX bytes:0 (0.0 b)

[root@skeena ~]#

[root@skeena ~]# iptables -L -v
Chain INPUT (policy ACCEPT 19688 packets, 3488K bytes)
pkts bytes target prot opt in out source destination

    0     0 ACCEPT     udp  --  virbr0 any     anywhere             anywhere
        udp dpt:domain
    0     0 ACCEPT     tcp  --  virbr0 any     anywhere             anywhere
        tcp dpt:domain
    0     0 ACCEPT     udp  --  virbr0 any     anywhere             anywhere
        udp dpt:bootps
    0     0 ACCEPT     tcp  --  virbr0 any     anywhere             anywhere
        tcp dpt:bootps

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

0 0 ACCEPT all -- any virbr0 anywhere 192.168.122.0/24 state RELATED,ESTABLISHED
    0     0 ACCEPT     all  --  virbr0 any     192.168.122.0/24     anywhere
    0     0 ACCEPT     all  --  virbr0 virbr0  anywhere             anywhere
0 0 REJECT all -- any virbr0 anywhere anywhere reject-with icmp-port-unreachable 0 0 REJECT all -- virbr0 any anywhere anywhere reject-with icmp-port-unreachable 0 0 ACCEPT all -- any any anywhere anywhere PHYSDEV match --physdev-in vif1.1 0 0 ACCEPT all -- any any anywhere anywhere PHYSDEV match --physdev-in vif1.0

Chain OUTPUT (policy ACCEPT 33423 packets, 4609K bytes)
pkts bytes target prot opt in out source destination
[root@skeena ~]#




--
Alexandre Kouznetsov


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users




--
The problem with being cynical is you can't keep up!

-- anon. philosopher



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.