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

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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Xen 3.0.1, Debian Sarge: Swap file not recognized in guest
From: Rene Kogels <forumuser@xxxxxxxxxx>
Date: Sun, 19 Mar 2006 20:48:22 +0000
Delivery-date: Sun, 19 Mar 2006 20:57:37 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <81f9efe10603190055h314ad853v8d321b0cb3cb12bd@xxxxxxxxxxxxxx>
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>
References: <81f9efe10603190055h314ad853v8d321b0cb3cb12bd@xxxxxxxxxxxxxx>
Reply-to: forumuser@xxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Jens-Christian,

You might want to check the following URL:
http://usefulthings.org.uk/operating-systems/linux/suse/xen-and-suse-93

Although it's focused on Suse, it could be useful.

Rene

On Sun, 2006-03-19 at 09:55 +0100, Jens-Christian Fischer wrote:
> 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


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