Linux / Xen Server freezes

linuxxen

An Ubuntu LTS server runs xen with dom0 and one virtual machine. The server is freezing permanently on a number of seemingly unrelated operations, such as:

  • Creation of a new file system with mkfs.ext3 on a LVM device. (this is consistent).
  • Restart of xend via /etc/init.d/xend restart
  • apt-get dist-upgrade on configuration phase of some fairly innocent stuff.

Also, yesterday I noticed that virtualized imagine had lost time synch and complained about backwards clock in dmesg.

Unfortunately, I don't have the screen shots on what happens actually on the console of the server (it is co-located).

I want to blame ram, but do You have other suggestions?

UPDATE: After further investigation, it appears that all those actions only kill network. When I visited the server in data center and logged onto console, I wasn't able to reach my router/gateway. How bizare.

Best Answer

for the network issue, xen works better if you don't let it set up the bridge...

for /etc/network/interfaces

auto xen-br0
iface xen-br0 inet static
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        address 10.2.2.2
        gateway 10.2.2.1
        netmask 255.255.255.0

/etc/xen/xend-config.sxp:

(vif-script vif-bridge bridge=xen-br0)

this way starting and stopping xen won't mess with your network interface.