Skip to content

Tag: xen

Xen VM: Frag is bigger than frame

Our Xen VM's crashed at some point. This had to do with network traffic, apparently. My source link is dead. Only posting the workaround: Read More »

Creating a drbd for an existing Xen domain

I needed some VMs to be available on a backup node, which I accomplished with the distributed remote block device, or DRBD. My host machine is Debian 6. Read More »

Setting max memory of a Xen Dom0

I've had some issues with Xen crashing when I wanted to create a DomU for which the Dom0 had to shrink (see bug report). Therefore, it's better to force a memory limit on the dom0. That is done with a kernel param. Read More »

Fixing a broken Xen DomU after upgrading to Ubuntu 11.4 (Natty)

My Xen DomU's that I upgraded to 11.4 no longer booted, because the xen-blkfront module is missing from the initramfs. To fix, do this when you get the initramfs prompt: Read More »

Fixing a Xen DomU’s grub config

When you use xen-create-image to bootstrap an ubuntu, it sets up a grub config file menu.lst. However, this boot config is not kept up-to-date with newer ubuntu's because they use grub2 (which uses grub.cfg and not menu.lst). And Xen's pygrub first looks at menu.lst, so if you have a stale file, it will always boot an old kernel. Read More »

Tracking Xen domU’s with munin

To view statistics of your xen server with Munin (source): Read More »

Getting a Xen hvc0 on a stock Ubuntu

When you install Ubuntu in Xen with xen-create-image, the console is automatically handled. If you want to add a console to a stock-installed Ubuntu, add this file to /etc/init and call it hvc0.conf: Read More »

Ubuntu 10.10 with kernel 2.6.35-25 shutdown problem as Xen DomU

The current kernel in Ubuntu Maverick has a problem with shutting down when running as a Xen DomU (guest). When the VM has more than 1 VCPU, it won't reboot or shutdown. Read More »

Xen console name on different kernel versions

I've just been struggling to get a xen console working for Ubuntu 8.04 (hardy). By default, xen-create-image uses hvc0, but that's only since kernel 2.6.26 (don't know if that's only pv_ops or xen-patched). Hardy uses 2.6.24 and therefore it's xvc0. The xen-create-image command or xen-tools.conf config file therefore need a parameter serial_device=xvc0.

Read More »

Making a Debian Squeeze machine into a Xen virtual machine host

My attempts to get Xen working right on Debian stable (Lenny) were not really successful. Xen has had some interesting developments and the version in Lenny is just too old. Plus, the debian bootstrap scripts used to create images don't support Ubuntu Maverick... Squeeze (testing) has the newest Xen and deboostrap, so that's cool. I used the AMD64 architecture. Read More »