Jens-Christian Fischer
2006-Mar-19 08:55 UTC
[Xen-users] Xen 3.0.1, Debian Sarge: Swap file not recognized in guest
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@lists.xensource.com http://lists.xensource.com/xen-users
Rene Kogels
2006-Mar-19 20:48 UTC
Re: [Xen-users] Xen 3.0.1, Debian Sarge: Swap file not recognized in guest
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@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rene Kogels
2006-Mar-20 14:56 UTC
Re: [Xen-users] Xen 3.0.1, Debian Sarge: Swap file not recognized in guest
Hi jc, I tried it myself using Sarge and indeed it didn''t work. When I used the following command it did work: #Create swap image dd if=/dev/zero of=/root/swap.dat bs=1k seek=768k count=1 mkswap /root/swap.dat Hope this helps, Rene On Mon, 2006-03-20 at 06:27 +0100, Jens-Christian Fischer wrote:> Hi Rene > > > 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: > >> > >> My problem is, that the swap "device" on /dev/sda2 is not recognized > >> by the guest OS: > > > I see nothing swap specific in the above URL (save for creating the > swap image file in itself). I have performed the same steps in my > installation ans get the above mentioned failure... > > cheers jc_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jared Rhine
2006-Mar-20 15:54 UTC
Re: [Xen-users] Xen 3.0.1, Debian Sarge: Swap file not recognized in guest
Jens-Christian Fischer wrote:> My problem is, that the swap "device" on /dev/sda2 is not recognized > by the guest OS:My similar problem recently was solved by investigation of the /dev/sda2 device node; in my case, installing udev was my preferred solution to arranging for the dom0-exported device to be mountable by the domU. -- Jared _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jens-Christian Fischer
2006-Mar-20 23:11 UTC
Re: [Xen-users] Xen 3.0.1, Debian Sarge: Swap file not recognized in guest
>> My problem is, that the swap "device" on /dev/sda2 is not recognized >> by the guest OS: > > My similar problem recently was solved by investigation of the /dev/ > sda2 device node; in my case, installing udev was my preferred > solution to arranging for the dom0-exported device to be mountable > by the domU. >I installed udev (apt-get install udev) first in the domU, then in dom0 and now I''m left with a non-working system... :-( When I create the guest, I get this: Error: Device 0 (vif) could not be connected. Hotplug scripts not working. googling tells me to remove the "vif= ['''']" line in the config file for the guest. next time I try to create the vm I get: Error: Device 2049 (vbd) could not be connected. Hotplug scripts not working. I tried to remove udev (apt-get remove udev) but I''m left with the same error messages. Of course, this is getting critical because I need the server in the guest environment asap. I have looked at the /etc/udev files but don''t grok what I see there. I''m running a 2.16.12 kernel: Linux sauron 2.6.12.6-xen0 #1 Tue Jan 31 16:03:21 GMT 2006 i686 GNU/Linux What can I do to either get my system back to before I started messing with udev, or to a working setup with udev? thanks jc _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jens-Christian Fischer
2006-Mar-21 00:13 UTC
Re: [Xen-users] Xen 3.0.1, Debian Sarge: Swap file not recognized in guest
dohh - i needed to reinstall Xen (sh ./install.sh) to get a Xen kernel that understand udev... now the filesystem in my guest OS is fscked up, but I can rebuild that... thanks jc _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users