WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Xen 3.0.1, Debian Sarge: Swap file not recognized in guest

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Xen 3.0.1, Debian Sarge: Swap file not recognized in guest
From: "Jens-Christian Fischer" <jcfischer.lists@xxxxxxxxx>
Date: Sun, 19 Mar 2006 09:55:37 +0100
Delivery-date: Sun, 19 Mar 2006 08:56:58 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=dTWMFxistzXOeGJ+avILZnBfxvJrq24gOc3Ccf1lHkhX5e4INQvVkS/IShR6XFZUpVGWBfHCs/NCnhEr3N9Mm1KU7W1sQexv+y0S4DXbndQv1sanSndM8ahurnV5wrJ2Px9T29eMx7ggwlkHcxN1LBwK3YbjdTZxe7UJs4Cg2GI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I have installed Xen 3.0.1 on a Debian Sarge base system (see [1],
[2], [3] for details) with image files as drives for the guest
operating system.

My problem is, that the swap "device" on /dev/sda2 is not recognized
by the guest OS:

    INIT: version 2.86 booting
    * Files under mount point '/dev/shm' will be hidden.
    Will now activate swap.
    swapon on /dev/sda2
    swapon: cannot stat /dev/sda2: No such file or directory
    * Swap activation failed with error code 255.
    Will now check root file system.

the configuration file looks like this:

    kernel = "/boot/vmlinuz-2.6.12-xenU"
    memory = 512
    name   = "notes"
    root   = "/dev/sda1 ro"
    vif    = [ '' ]
    disk   = [ 'file:/home/xen/domains/notes/big.img,sda1,w',
'file:/home/xen/domains/notes/swap,sda2,w' ]

and /etc/fstab

    /dev/sda1       /       ext3    defaults,errors=remount-ro      0       1
    /dev/sda2       none    swap    sw
    proc            /proc   proc    defaults

I tried both "sda" and "hda" devices - with no change in behaviour.

/dev/sda2 is not visible in the guest operating system.

An older image with the debian base system (base-config not yet
executed) that the above image was evolved from works fine:

    INIT: version 2.86 booting
    Activating swap.
    EXT3 FS on sda1, internal journal

Any ideas? My Xen-fu is quite young :-)

thanks
Jens-Christian


[1]: http://blog.invisible.ch/2006/03/09/installing-xen-30-on-debian-sarge/
[2]: 
http://blog.invisible.ch/2006/03/14/installing-lotus-domino-654-in-debian-xen/
[3]: 
http://blog.invisible.ch/2006/03/18/configuring-x-and-domino-server-on-debian-sarge-xen/

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users