M C
2008-Dec-23 10:54 UTC
[Xen-users] Newbie Xen + LVM issues for Debian DomU on Centos 5.2 DomO
Hi, I''m trying to install a Debian 4.0 DomU on a Centos 5.2 DomO but I''m having problems. Using the Debian image from jailtime.org with the following config file: kernel = "/boot/vmlinuz-2.6.18-92.1.22.el5xen" memory = 1024 name = "debian.4-0.64" vif = [ '''' ] disk = [''file:/srv/xen/debian.4-0.64.img,sdb1,w'',] vcpus=1 on_reboot = ''destroy'' on_crash = ''destroy'' root = "/dev/sdb1 ro" I end up with the following errors on trying to start up the image: attempt to access beyond end of device ram0: rw=0, want=18446744056529682440, limit=32768 isofs_fill_super: bread failed, dev=ram0, iso_blknum=17, block=-2147483648 No filesystem could mount root, tried: ext2 iso9660 Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0) Here''s what''s set up on the host machine: root% df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 143G 22G 114G 17% / /dev/sdb1 99M 36M 59M 38% /boot tmpfs 1.2G 0 1.2G 0% /dev/shm I should say that I have a guest Centos DomU running just fine on this DomO, but it''s the Debian image that''s giving me fun and games. This is the (autogenerated) config file that works for the Centos DomU: name = "vmserver" memory = "1024" disk = [ ''tap:aio:/srv/xen/vmserver.img,xvda,w'', ] vif = [ ''bridge=xenbr0'', ] bootloader="/usr/bin/pygrub" vcpus=1 on_reboot = ''restart'' on_crash = ''restart'' Any clues on how I can get the Debian image to work would be much appreciated! m _________________________________________________________________ Get Windows Live Messenger on your Mobile http://clk.atdmt.com/UKM/go/msnnkmgl0010000001ukm/direct/01/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thomas Halinka
2008-Dec-23 11:20 UTC
Re: [Xen-users] Newbie Xen + LVM issues for Debian DomU on Centos 5.2 DomO
Am Dienstag, den 23.12.2008, 10:54 +0000 schrieb M C:> Hi,Hi M C,> > I''m trying to install a Debian 4.0 DomU on a Centos 5.2 DomO but I''m > having problems. Using the Debian image from jailtime.org with the > following config file: > > kernel = "/boot/vmlinuz-2.6.18-92.1.22.el5xen"initrd/ramdisk-line is missing here!> memory = 1024 > name = "debian.4-0.64" > vif = [ '''' ] > disk = [''file:/srv/xen/debian.4-0.64.img,sdb1,w'',] > vcpus=1 > on_reboot = ''destroy'' > on_crash = ''destroy'' > root = "/dev/sdb1 ro" > > I end up with the following errors on trying to start up the image: > > attempt to access beyond end of device > ram0: rw=0, want=18446744056529682440, limit=32768 > isofs_fill_super: bread failed, dev=ram0, iso_blknum=17, > block=-2147483648 > No filesystem could mount root, tried: ext2 iso9660 > Kernel panic - not syncing: VFS: Unable to mount root fs on > unknown-block(1,0)i would guess that the needed modules are in initrd, which is not defined above.> > Here''s what''s set up on the host machine: > > root% df -h > Filesystem Size Used Avail Use% Mounted on > /dev/mapper/VolGroup00-LogVol00 > 143G 22G 114G 17% / > /dev/sdb1 99M 36M 59M 38% /boot > tmpfs 1.2G 0 1.2G 0% /dev/shm > > I should say that I have a guest Centos DomU running just fine on this > DomO, but it''s the Debian image that''s giving me fun and games. This > is the (autogenerated) config file that works for the Centos DomU: > > name = "vmserver" > memory = "1024" > disk = [ ''tap:aio:/srv/xen/vmserver.img,xvda,w'', ] > vif = [ ''bridge=xenbr0'', ] > bootloader="/usr/bin/pygrub" > vcpus=1 > on_reboot = ''restart'' > on_crash = ''restart'' > > Any clues on how I can get the Debian image to work would be much > appreciated!Wether say ramdisk= or use pygrub. BTW: I am using xen-tools for setting up debian-based-guest-systems, which runs very fine - also on centos5.> > m >hth, Thomas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
M C
2008-Dec-30 08:35 UTC
Re: [Xen-users] Newbie Xen + LVM issues for Debian DomU on Centos 5.2 DomO
Hi Thomas, Thanks for replying. So, I added the following line to my config file: ramdisk = "/boot/initrd-2.6.18-92.1.22.el5xen.img" and things do indeed go further, but still ultimately fail. The final error report now has: <lots of stuff deleted> Mounting proc filesystem Mounting sysfs filesystem Creating /dev Creating initial device nodes Setting up hotplug. Creating block device nodes. Loading ehci-hcd.ko module Loading ohci-hcd.ko module Loading uhci-hcd.ko module USB Universal Host Controller Interface driver v3.0 Loading jbd.ko module Loading ext3.ko module Loading scsi_mod.ko module SCSI subsystem initialized Loading sd_mod.ko module Loading libata.ko module Loading ata_piix.ko module Loading dm-mod.ko module device-mapper: uevent: version 1.0.3 device-mapper: ioctl: 4.11.5-ioctl (2007-12-12) initialised: dm-devel@redhat.com Loading dm-mirror.ko module Loading dm-zero.ko module Loading dm-snapshot.ko module Waiting for driver initialization. Scanning and configuring dmraid supported devices Scanning logical volumes Reading all physical volumes. This may take a while... No volume groups found Activating logical volumes Volume group "VolGroup00" not found Creating root device. Mounting root filesystem. mount: could not find filesystem ''/dev/root'' Setting up other filesystems. Setting up new root fs setuproot: moving /dev failed: No such file or directory no fstab.sys, mounting internal defaults setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory Any hints of how I can extricate myself from this mess would be much appreciated! Thanks, m> Subject: Re: [Xen-users] Newbie Xen + LVM issues for Debian DomU on Centos 5.2 DomO > From: lists@thohal.de > To: m_c_001@hotmail.com > Date: Tue, 23 Dec 2008 12:20:57 +0100 > CC: xen-users@lists.xensource.com > > Am Dienstag, den 23.12.2008, 10:54 +0000 schrieb M C: > > Hi, > > Hi M C, > > > > > I''m trying to install a Debian 4.0 DomU on a Centos 5.2 DomO but I''m > > having problems. Using the Debian image from jailtime.org with the > > following config file: > > > > kernel = "/boot/vmlinuz-2.6.18-92.1.22.el5xen" > > initrd/ramdisk-line is missing here! > > > > memory = 1024 > > name = "debian.4-0.64" > > vif = [ '''' ] > > disk = [''file:/srv/xen/debian.4-0.64.img,sdb1,w'',] > > vcpus=1 > > on_reboot = ''destroy'' > > on_crash = ''destroy'' > > root = "/dev/sdb1 ro" > > > > I end up with the following errors on trying to start up the image: > > > > attempt to access beyond end of device > > ram0: rw=0, want=18446744056529682440, limit=32768 > > isofs_fill_super: bread failed, dev=ram0, iso_blknum=17, > > block=-2147483648 > > No filesystem could mount root, tried: ext2 iso9660 > > Kernel panic - not syncing: VFS: Unable to mount root fs on > > unknown-block(1,0) > > i would guess that the needed modules are in initrd, which is not > defined above. > > > > > Here''s what''s set up on the host machine: > > > > root% df -h > > Filesystem Size Used Avail Use% Mounted on > > /dev/mapper/VolGroup00-LogVol00 > > 143G 22G 114G 17% / > > /dev/sdb1 99M 36M 59M 38% /boot > > tmpfs 1.2G 0 1.2G 0% /dev/shm > > > > I should say that I have a guest Centos DomU running just fine on this > > DomO, but it''s the Debian image that''s giving me fun and games. This > > is the (autogenerated) config file that works for the Centos DomU: > > > > name = "vmserver" > > memory = "1024" > > disk = [ ''tap:aio:/srv/xen/vmserver.img,xvda,w'', ] > > vif = [ ''bridge=xenbr0'', ] > > bootloader="/usr/bin/pygrub" > > vcpus=1 > > on_reboot = ''restart'' > > on_crash = ''restart'' > > > > Any clues on how I can get the Debian image to work would be much > > appreciated! > > Wether say ramdisk= or use pygrub. > > BTW: I am using xen-tools for setting up debian-based-guest-systems, > which runs very fine - also on centos5. > > > > > m > > > hth, > > Thomas > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-usersRead amazing stories to your kids on Messenger. Try it Now! _________________________________________________________________ Are you a PC? Upload your PC story and show the world http://clk.atdmt.com/UKM/go/122465942/direct/01/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
M C
2009-Jan-05 14:39 UTC
RE: [Xen-users] Newbie Xen + LVM issues for Debian DomU on Centos 5.2 DomO
Hi Eduardo, Thanks for your reply (and happy new year!). Using xen-tools certainly appears simpler, though I still can''t quite get there. If in the xen-tools.conf file I specify using logical volumes, then I get the error: "The LVM partition image creation failed to create <whatever> aborting" where for <whatever> I''ve tried using LogVol00, VolGroup00-LogVol00 and mapper/VolGroup00-LogVol00, all with no success. Here''s the output from "df -h" and "lvdisplay -C": root% df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 143G 24G 112G 18% / /dev/sdb1 99M 36M 59M 38% /boot tmpfs 1.2G 0 1.2G 0% /dev/shm root% lvdisplay -C LV VG Attr LSize Origin Snap% Move Log Copy% Convert LogVol00 VolGroup00 -wi-ao 146.97G LogVol01 VolGroup00 -wi-ao 1.94G Once again, any clues and/or hints as to where I''m going wrong would be much appreciated. Regards, mc> Date: Tue, 30 Dec 2008 11:03:09 -0300 > From: eduardo.grosclaude@gmail.com > To: m_c_001@hotmail.com > Subject: Re: [Xen-users] Newbie Xen + LVM issues for Debian DomU on Centos 5.2 DomO > > On Tue, Dec 30, 2008 at 5:35 AM, M C <m_c_001@hotmail.com> wrote: > > > > Hi Thomas, > > > > Thanks for replying. So, I added the following line to my config file: > > > > ramdisk = "/boot/initrd-2.6.18-92.1.22.el5xen.img" > > > > and things do indeed go further, but still ultimately fail. The final error > > report now has: > > > > <lots of stuff deleted> > (snip) > > Scanning logical volumes > > Reading all physical volumes. This may take a while... > > No volume groups found > > Activating logical volumes > > Volume group "VolGroup00" not found > (snip) > > Any hints of how I can extricate myself from this mess would be much > > appreciated! > > Your regular RedHat/CentOS initrd looks for a root file system on LVM > devices (if so chosen at install time, which is the default), whilst > your Debian image has no logical volumes defined. > > You can a) install your VM over LVM, b) edit your initrd by deleting > every reference to LVMs --but this is a rather messy procedure, or c) > create a custom initrd with something like (syntax, or even > correctness not guaranteed): > > DIR=/some/directory; mount -t ext3 -o loop debian.4-0.64.img $DIR > mkinitrd -v --preload xenblk --preload xennet --omit-lvm-modules > --omit-raid-modules \ > --fstab=$DIR/etc/fstab -f /boot/custom-initrd-xen.img 2.6.18-92.1.22.el5xen > > All in all, I''d follow Thomas''s suggestion to use xen-tools to setup your VMs. > HTH > > -- > Eduardo Grosclaude > Universidad Nacional del Comahue > Neuquen, Argentina_________________________________________________________________ Get a bird’s eye view of the world with Multimap http://clk.atdmt.com/GBL/go/115454059/direct/01/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2009-Jan-05 15:38 UTC
RE: [Xen-users] Newbie Xen + LVM issues for Debian DomU on Centos 5.2 DomO
Not sure it''s on topic :- http://lxer.com/module/newswire/view/114282/index.html --- On Mon, 1/5/09, M C <m_c_001@hotmail.com> wrote: From: M C <m_c_001@hotmail.com> Subject: RE: [Xen-users] Newbie Xen + LVM issues for Debian DomU on Centos 5.2 DomO To: eduardo.grosclaude@gmail.com, xen-users@lists.xensource.com Date: Monday, January 5, 2009, 9:39 AM #yiv161043621 .hmmessage P { margin:0px;padding:0px;} #yiv161043621 { font-size:10pt;font-family:Verdana;} Hi Eduardo, Thanks for your reply (and happy new year!). Using xen-tools certainly appears simpler, though I still can''t quite get there. If in the xen-tools.conf file I specify using logical volumes, then I get the error: "The LVM partition image creation failed to create <whatever> aborting" where for <whatever> I''ve tried using LogVol00, VolGroup00-LogVol00 and mapper/VolGroup00-LogVol00, all with no success. Here''s the output from "df -h" and "lvdisplay -C": root% df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 143G 24G 112G 18% / /dev/sdb1 99M 36M 59M 38% /boot tmpfs 1.2G 0 1.2G 0% /dev/shm root% lvdisplay -C LV VG Attr LSize Origin Snap% Move Log Copy% Convert LogVol00 VolGroup00 -wi-ao 146.97G LogVol01 VolGroup00 -wi-ao 1.94G Once again, any clues and/or hints as to where I''m going wrong would be much appreciated. Regards, mc> Date: Tue, 30 Dec 2008 11:03:09 -0300 > From: eduardo.grosclaude@gmail.com > To: m_c_001@hotmail.com > Subject: Re: [Xen-users] Newbie Xen + LVM issues for Debian DomU on Centos 5.2 DomO > > On Tue, Dec 30, 2008 at 5:35 AM, M C <m_c_001@hotmail.com> wrote: > > > > Hi Thomas, > > > > Thanks for replying. So, I added the following line to my config file: > > > > ramdisk = "/boot/initrd-2.6.18-92.1.22.el5xen.img" > > > > and things do indeed go further, but still ultimately fail. The final error > > report now has: > > > > <lots of stuff deleted> > (snip) > > Scanning logical volumes > > Reading all physical volumes. This may take a while... > > No volume groups found > > Activating logical volumes > > Volume group "VolGroup00" not found > (snip) > > Any hints of how I can extricate myself from this mess would be much > > appreciated! > > Your regular RedHat/CentOS initrd looks for a root file system on LVM > devices (if so chosen at install time, which is the default), whilst > your Debian image has no logical volumes defined. > > You can a) install your VM over LVM, b) edit your initrd by deleting > every reference to LVMs --but this is a rather messy procedure, or c) > create a custom initrd with something like (syntax, or even > correctness not guaranteed): > > DIR=/some/directory; mount -t ext3 -o loop debian.4-0.64.img $DIR > mkinitrd -v --preload xenblk --preload xennet --omit-lvm-modules > --omit-raid-modules \ > --fstab=$DIR/etc/fstab -f /boot/custom-initrd-xen.img 2.6.18-92.1.22.el5xen > > All in all, I''d follow Thomas''s suggestion to use xen-tools to setup your VMs. > HTH > > -- > Eduardo Grosclaude > Universidad Nacional del Comahue > Neuquen, ArgentinaGreat search results, great prizes. BigSnapSearch.com Search now _______________________________________________ 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
M C
2009-Jan-05 15:43 UTC
RE: [Xen-users] Newbie Xen + LVM issues for Debian DomU on Centos 5.2 DomO
To pre-empt my own question, it looks like the problem could be due to a full volume group: root% vgdisplay --- Volume group --- VG Name VolGroup00 System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 3 VG Access read/write VG Status resizable MAX LV 0 Cur LV 2 Open LV 2 Max PV 0 Cur PV 1 Act PV 1 VG Size 148.91 GB PE Size 32.00 MB Total PE 4765 Alloc PE / Size 4765 / 148.91 GB Free PE / Size 0 / 0 VG UUID jA3Sqk-H6Wm-zaeq-l0qq-rPrG-Yeud-C6CK5g root% pvdisplay --- Physical volume --- PV Name /dev/sdb2 VG Name VolGroup00 PV Size 148.91 GB / not usable 4.15 MB Allocatable yes (but full) PE Size (KByte) 32768 Total PE 4765 Free PE 0 Allocated PE 4765 PV UUID CdZ7PD-RaRa-iKlu-HKlG-z8yA-eA43-x2mIVe Looks like I''ll need to free up some space using something like the approach mentioned in http://readlist.com/lists/centos.org/centos/2/12666.html. Sigh. How annoying. What I don''t get is how getting a Centos dom-U to install on this Centos dom-O doesn''t require any of these frustrating diversions. Regards, mc (not a Happy New Year so far) From: m_c_001@hotmail.com To: eduardo.grosclaude@gmail.com; xen-users@lists.xensource.com Subject: RE: [Xen-users] Newbie Xen + LVM issues for Debian DomU on Centos 5.2 DomO Date: Mon, 5 Jan 2009 14:39:43 +0000 CC: Hi Eduardo, Thanks for your reply (and happy new year!). Using xen-tools certainly appears simpler, though I still can''t quite get there. If in the xen-tools.conf file I specify using logical volumes, then I get the error: "The LVM partition image creation failed to create <whatever> aborting" where for <whatever> I''ve tried using LogVol00, VolGroup00-LogVol00 and mapper/VolGroup00-LogVol00, all with no success. Here''s the output from "df -h" and "lvdisplay -C": root% df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 143G 24G 112G 18% / /dev/sdb1 99M 36M 59M 38% /boot tmpfs 1.2G 0 1.2G 0% /dev/shm root% lvdisplay -C LV VG Attr LSize Origin Snap% Move Log Copy% Convert LogVol00 VolGroup00 -wi-ao 146.97G LogVol01 VolGroup00 -wi-ao 1.94G Once again, any clues and/or hints as to where I''m going wrong would be much appreciated. Regards, mc> Date: Tue, 30 Dec 2008 11:03:09 -0300 > From: eduardo.grosclaude@gmail.com > To: m_c_001@hotmail.com > Subject: Re: [Xen-users] Newbie Xen + LVM issues for Debian DomU on Centos 5.2 DomO > > On Tue, Dec 30, 2008 at 5:35 AM, M C <m_c_001@hotmail.com> wrote: > > > > Hi Thomas, > > > > Thanks for replying. So, I added the following line to my config file: > > > > ramdisk = "/boot/initrd-2.6.18-92.1.22.el5xen.img" > > > > and things do indeed go further, but still ultimately fail. The final error > > report now has: > > > > <lots of stuff deleted> > (snip) > > Scanning logical volumes > > Reading all physical volumes. This may take a while... > > No volume groups found > > Activating logical volumes > > Volume group "VolGroup00" not found > (snip) > > Any hints of how I can extricate myself from this mess would be much > > appreciated! > > Your regular RedHat/CentOS initrd looks for a root file system on LVM > devices (if so chosen at install time, which is the default), whilst > your Debian image has no logical volumes defined. > > You can a) install your VM over LVM, b) edit your initrd by deleting > every reference to LVMs --but this is a rather messy procedure, or c) > create a custom initrd with something like (syntax, or even > correctness not guaranteed): > > DIR=/some/directory; mount -t ext3 -o loop debian.4-0.64.img $DIR > mkinitrd -v --preload xenblk --preload xennet --omit-lvm-modules > --omit-raid-modules \ > --fstab=$DIR/etc/fstab -f /boot/custom-initrd-xen.img 2.6.18-92.1.22.el5xen > > All in all, I''d follow Thomas''s suggestion to use xen-tools to setup your VMs. > HTH > > -- > Eduardo Grosclaude > Universidad Nacional del Comahue > Neuquen, ArgentinaGreat search results, great prizes. BigSnapSearch.com Search now _________________________________________________________________ Get Windows Live Messenger on your Mobile http://clk.atdmt.com/UKM/go/msnnkmgl0010000001ukm/direct/01/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users