View Single Post
  #1  
Old 30th November 2006, 12:52
Merc Merc is offline
Junior Member
 
Join Date: Nov 2006
Location: Chemnitz, Germany
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Xen 3.0.2 /3.0.3 | No Swap in DomU

Hello.

I have set up Xen 3.0.2 and 3.0.3 using the howto "http://www.howtoforge.com/debian_sarge_xen_3.0.3".

The Dom0-system and the DomU-system are running on Debian 3.1.

So far it works, except for some (minor) problems.

First:
If I use the compiled xen-kernel (the one created with "make world" and "make install"), the host system works fine, no problems at all.

If I use the xen0-kernel, created by using "make linux-2.6-xen0-config CONFIGMODE=menuconfig KERNELS="linux-2.6-xen0"" (step 4.2 in the above mentioned howto), i get some ugly load-problems using the host system.
I.e. copying a file from /dev/hdc1 to /dev/hda4 takes forever, the kjournald takes 99,9% of cpu time (the same happens if I use ftp to copy anything to the host machine).
So working with the xen0-kernel is not possible.


Second:
I ran into some problems with my virtual machines.
They start up ok and run without problems as long as I don't do anything that requires a large amount of memory.

The problem: the VM's don't use swap memory. The config file looks like this:

Code:
name="vm01"
kernel="/boot/vmlinuz-2.6.16.29-xenU"
root="/dev/sda1"
memory=128
disk=['file:/mnt/storage/vserver/vm01.img,sda1,w','file:/mnt/storage/vserver/vm01-swap.img,sda2,w']

# network
#vif = ['mac=00:00:00:00:00:01' ,'bridge=xenintbr']
vif = ['ip=10.80.0.2']
dhcp ="off"
ip="10.80.0.2"
netmask="255.0.0.0"
gateway="10.80.0.254"
hostname="vm01"

extra="3"
So the VM should be able to use swap.

Output of "cat /proc/partitions" inside the VM:

major minor #blocks name

8 1 1024000 sda1
8 2 512000 sda2

I honestly don't understand why the virtual machines don't use swap at all.

I recently purged hotplug, replacing it with udev, but that didn't change a thing (even compiled a new kernel).

I would appreciate any help.

Regards,
Merc


ps:
I searched the xen-source-forum but didn't find a solution to the above mentioned problems.
The swap-problem was mentioned there, but no solution (it was said using udev instead of hotplug would solve the problem, but it didn't, at least not for me).
Reply With Quote
Sponsored Links