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

Re: [Xen-users] No network on VM after migrating to another xcp server on the same pool



In case anyone has a similar problem in the future: In my new server, there was only one cable connected in one of the 4 ethernet card available. The active network was number 3, while i had the VMs configured to use Network 1. You can change those settings in the Networking tab of your VM.

This article helped me understand what was going on:Âhttp://wiki.xenproject.org/wiki/Xen_Networking


2015-07-22 9:00 GMT-03:00 Gabriel Queiroz Silva <gabriel@xxxxxxxxxxxxxxxxx>:
Hi,
Â
I have migrated one ubuntu VM from one XCP 1.6 server to another. After doing this, this VM is not able to connect to the networks as before. I have kept IP and MAC Addresses the same.
Â
After running ifconfig, i can see the interface as follows:
Â
eth0 Â Â ÂLink encap:Ethernet ÂHWaddr YYY Â
     inet addr:XXXX ÂBcast:XXXX ÂMask:255.255.255.192
     inet6 addr: XXXXXX/64 Scope:Link
     UP BROADCAST RUNNING MULTICAST ÂMTU:1500 ÂMetric:1
     RX packets:0 errors:0 dropped:0 overruns:0 frame:0
     TX packets:319 errors:0 dropped:0 overruns:0 carrier:0
     collisions:0 txqueuelen:1000Â
     RX bytes:0 (0.0 B) ÂTX bytes:13614 (13.6 KB)
     Interrupt:68Â
Â
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:679 errors:0 dropped:0 overruns:0 frame:0
     TX packets:679 errors:0 dropped:0 overruns:0 carrier:0
     collisions:0 txqueuelen:0Â
     RX bytes:3985002 (3.9 MB) ÂTX bytes:3985002 (3.9 MB)
Â
Â
Bringing down and up the eth0 interface works, as follows:
Â
root@xx:~# ifdown -v eth0
Configuring interface eth0=eth0 (inet)
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolvconf
run-parts: executing /etc/network/if-down.d/sendmail
run-parts: executing /etc/network/if-down.d/upstart
run-parts: executing /etc/network/if-down.d/wpasupplicant
ip route del default via XXX metric 100 dev eth0 2>&1 1>/dev/null || trueÂ
ip -4 addr flush dev eth0 label eth0
ip link set dev eth0 down
run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/sendmail
run-parts: executing /etc/network/if-post-down.d/wireless-tools
run-parts: executing /etc/network/if-post-down.d/wpasupplicant
Â
root@xx:~# ifup -v eth0
Configuring interface eth0=eth0 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/ethtool
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
ip addr add XXXX/255.255.255.192 broadcast + Â dev eth0 label eth0
ip link set dev eth0 Â up
Âip route add default via XXXX metric 100 dev eth0Â
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/ethtool
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
Â
Routes seem to be in order:
Â
Destination   Gateway     Genmask     Flags Metric Ref  ÂUse Iface
0.0.0.0 Â Â Â Â XXX 0.0.0.0 Â Â Â Â UG Â Â100 Â Â0 Â Â Â Â0 eth0
XXX 0.0.0.0 Â Â Â Â 255.255.255.192 U Â Â 0 Â Â Â0 Â Â Â Â0 eth0
Â
Â
But i still can't start the networking service...
Â
root@xxx:~# service networking start
networking stop/waiting

No error messages are shown anywhere.

Is there some point to the migration i could be missing? What could differ from one server to another to cause the networking to fail on the new host?
Â
Thanks,
Gabriel

_______________________________________________
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®.