Hello -- We''re trying to get a Centos 4.2 system working under a Centos 4.2 operating system using the instructions we found at http://mark.foster.cc/wiki/index.php/Centos-4_on_Xen. The prospect of running several virtual servers on one physical box is pretty intriguing. I think we''re pretty close, but we''ve gotten to a place that has me stumped. I''m hoping someone can help. We''ve gotten to a place where we can actually boot our VM by running ''xm create -c /etc/xen/vm03 vmid=3'' (we are using the configuration from the Xen documentation). We see the standard kernel boot up messages and things start out well. Then we get to: EXT2-fs warning (device sdb3): ext2_fill_super: mounting ext3 filesystem as ext2 VFS: Mounted root (ext2 filesystem). Freeing unused kernel memory: 184k freed unix: no version for "struct_module" found: kernel tainted. NET: Registered protocol family 1 INIT: version 2.85 booting Welcome to CentOS release 4.2 (Final) Press ''I'' to enter interactive startup. Starting udev: [ OK ] Initializing hardware... storage network audio done[ OK ] raidautorun: RAID_AUTORUN failed: 19 mount: mount point devpts does not exist Configuring kernel parameters: [ OK ] Setting clock : Tue Mar 28 16:01:59 EST 2006 [ OK ] Setting hostname localhost: [ OK ] Checking root filesystem [/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/sdb3 /dev/sdb3 is mounted. e2fsck: Cannot continue, aborting. [FAILED] *** An error occurred during the file system check. *** Dropping you to a shell; the system will reboot *** when you leave the shell. Press enter for maintenance (or type Control-D to continue): I cannot for the life of me figure out what''s going wrong. I''ve dropped into the maintenance shell and done a fsck, but as soon as I try to boot it back up again, the same problem. Thank you for any help. Brian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Haavard Bjerke
2006-Mar-29 15:24 UTC
Re: [Xen-users] xen and boot problems (with CentOS 4.2)
mbjohn@duke.edu wrote:> Hello -- > > We''re trying to get a Centos 4.2 system working under a Centos 4.2 > operating system using the instructions we found at > http://mark.foster.cc/wiki/index.php/Centos-4_on_Xen. The prospect of > running several virtual servers on one physical box is pretty > intriguing. I think we''re pretty close, but we''ve gotten to a place > that has me stumped. I''m hoping someone can help. > > We''ve gotten to a place where we can actually boot our VM by running > ''xm create -c /etc/xen/vm03 vmid=3'' (we are using the configuration from > the Xen documentation). We see the standard kernel boot > up messages and things start out well. Then we get to: > > > EXT2-fs warning (device sdb3): ext2_fill_super: mounting ext3 filesystem > as ext2 > > VFS: Mounted root (ext2 filesystem). > Freeing unused kernel memory: 184k freed > unix: no version for "struct_module" found: kernel tainted. > NET: Registered protocol family 1 > INIT: version 2.85 booting > Welcome to CentOS release 4.2 (Final) > Press ''I'' to enter interactive startup. > Starting udev: [ OK ] > Initializing hardware... storage network audio done[ OK ] > raidautorun: RAID_AUTORUN failed: 19 > mount: mount point devpts does not exist > Configuring kernel parameters: [ OK ] > Setting clock : Tue Mar 28 16:01:59 EST 2006 [ OK ] > Setting hostname localhost: [ OK ] > Checking root filesystem > [/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/sdb3 > /dev/sdb3 is mounted. e2fsck: Cannot continue, aborting. > > > [FAILED] > > *** An error occurred during the file system check. > *** Dropping you to a shell; the system will reboot > *** when you leave the shell. > Press enter for maintenance > (or type Control-D to continue): > > > I cannot for the life of me figure out what''s going wrong. I''ve > dropped into the maintenance shell and done a fsck, but as soon as I > try to boot it back up again, the same problem. >Try adding "fastboot" to the "extra" parameter in the domU config file. It helps for SL, so I suspect it might for Centos aswell. Havard _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
mbjohn@duke.edu
2006-Mar-29 15:27 UTC
Re: [Xen-users] xen and boot problems (with CentOS 4.2)
Thank you so much for the quick reply! The fastboot option did the trick and I''m now in my virtual machine! Should I be concerned about having to use the fastboot option? Will it cause problems later on? Thanks again! Brian> > Try adding "fastboot" to the "extra" parameter in the domU config file. > It helps for SL, so I suspect it might for Centos aswell. > > Havard >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Haavard Bjerke
2006-Mar-29 15:30 UTC
Re: [Xen-users] xen and boot problems (with CentOS 4.2)
I don''t know if you should be concerned, but if you find out that you should and have a better solution, then please let me know :) Havard mbjohn@duke.edu wrote:> Thank you so much for the quick reply! The fastboot option did the > trick and I''m now in my virtual machine! > > Should I be concerned about having to use the fastboot option? Will it > cause problems later on? > > Thanks again! > > Brian > > >>Try adding "fastboot" to the "extra" parameter in the domU config file. >>It helps for SL, so I suspect it might for Centos aswell. >> >>Havard >>_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
mbjohn@duke.edu
2006-Mar-29 15:39 UTC
Re: [Xen-users] xen and boot problems (with CentOS 4.2)
Hehe, well, if it works for everyone else, I''m satisfied ;) Thanks again! Brian On Wed, 29 Mar 2006, Haavard Bjerke wrote:> I don''t know if you should be concerned, but if you find out that you > should and have a better solution, then please let me know :) > > Havard >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Eric Peterson
2006-Mar-29 15:57 UTC
Re: [Xen-users] xen and boot problems (with CentOS 4.2)
On 3/29/06, mbjohn@duke.edu <mbjohn@duke.edu> wrote:> Thank you so much for the quick reply! The fastboot option did the > trick and I''m now in my virtual machine! > > Should I be concerned about having to use the fastboot option? Will it > cause problems later on? > > Thanks again! > > Brianfastboot won''t cause problems by itself. It disables fsck checking on boot. fsck is complaining in this case because it thinks the partition is mounted. The way that you would find problems later on is when the system was shutdown uncleanly and no disk check was forced on the filesystem. This shouldn''t be a problem with you domU systems since you should know when things have been shutdown uncleanly and you should be able to run fsck manually on the partition from dom0 before it''s next boot. I wonder why fsck is confused? How are you passing the block device on to the domU? It isn''t mounted in dom0 is it? Is it a file or partition? Sorry for all the questions but I''m curious. Cheers! Eric _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
mbjohn@duke.edu
2006-Mar-29 16:09 UTC
Re: [Xen-users] xen and boot problems (with CentOS 4.2)
Hi Eric, Thanks for the added info on using the fastboot option. That made a lot of sense. As for the confusion regarding fsck, I''m not sure what''s going on. We are using file based block devices, and our config file looks like this: disk = [ ''file:/srv/xen/domains/vm03/diskimage,sdb3,w'', ''file:/srv/xen/domains/vm03/swapimage,sdb4,w'' ] Our physical disk is sda, so using sdb3 and sdb4 shouldn''t interfere with those devices. I did, however, get a different response from the message I posted with our LUG that I''d like to share with list. They suggested booting with an initrd.img. So, I took the extra = "fastboot" option out and added a ramdisk option so my config then looked like this: kernel = "/boot/vmlinuz-2.6.12.6-xen3_12.1_rhel4.1" ramdisk = "/boot/initrd-2.6.12.6-xen3_12.1_rhel4.1.img" And that also seemed to do the trick :) Thank you again to the folks who responded to my cry for help....We''re looking forward to what xen will allow us to do. Brian> I wonder why fsck is confused? How are you passing the block device > on to the domU? It isn''t mounted in dom0 is it? Is it a file or > partition? Sorry for all the questions but I''m curious. > > Cheers! > Eric >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
John Cianfarani
2006-Mar-29 22:38 UTC
RE: [Xen-users] xen and boot problems (with CentOS 4.2)
I believe adding the below line should also fix it. I run CentOS 4.2 as well and use this line instead of the fastboot. root = "/dev/sda1 ro" Thanks John -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of mbjohn@duke.edu Sent: Wednesday, March 29, 2006 10:17 AM To: xen-users@lists.xensource.com Subject: [Xen-users] xen and boot problems (with CentOS 4.2) Hello -- We''re trying to get a Centos 4.2 system working under a Centos 4.2 operating system using the instructions we found at http://mark.foster.cc/wiki/index.php/Centos-4_on_Xen. The prospect of running several virtual servers on one physical box is pretty intriguing. I think we''re pretty close, but we''ve gotten to a place that has me stumped. I''m hoping someone can help. We''ve gotten to a place where we can actually boot our VM by running ''xm create -c /etc/xen/vm03 vmid=3'' (we are using the configuration from the Xen documentation). We see the standard kernel boot up messages and things start out well. Then we get to: EXT2-fs warning (device sdb3): ext2_fill_super: mounting ext3 filesystem as ext2 VFS: Mounted root (ext2 filesystem). Freeing unused kernel memory: 184k freed unix: no version for "struct_module" found: kernel tainted. NET: Registered protocol family 1 INIT: version 2.85 booting Welcome to CentOS release 4.2 (Final) Press ''I'' to enter interactive startup. Starting udev: [ OK ] Initializing hardware... storage network audio done[ OK ] raidautorun: RAID_AUTORUN failed: 19 mount: mount point devpts does not exist Configuring kernel parameters: [ OK ] Setting clock : Tue Mar 28 16:01:59 EST 2006 [ OK ] Setting hostname localhost: [ OK ] Checking root filesystem [/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/sdb3 /dev/sdb3 is mounted. e2fsck: Cannot continue, aborting. [FAILED] *** An error occurred during the file system check. *** Dropping you to a shell; the system will reboot *** when you leave the shell. Press enter for maintenance (or type Control-D to continue): I cannot for the life of me figure out what''s going wrong. I''ve dropped into the maintenance shell and done a fsck, but as soon as I try to boot it back up again, the same problem. Thank you for any help. Brian _______________________________________________ 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
sadique@vanillanetworks.com
2006-Mar-30 04:52 UTC
Re: [Xen-users] xen and boot problems (with CentOS 4.2)
Try "e2fsck -f -y <image>" before you start Dom-U and start Dom-U without fastboot option. I believe this should work. Thanks Sadique John Cianfarani wrote:>I believe adding the below line should also fix it. I run CentOS 4.2 as >well and use this line instead of the fastboot. > >root = "/dev/sda1 ro" > >Thanks >John > >-----Original Message----- >From: xen-users-bounces@lists.xensource.com >[mailto:xen-users-bounces@lists.xensource.com] On Behalf Of >mbjohn@duke.edu >Sent: Wednesday, March 29, 2006 10:17 AM >To: xen-users@lists.xensource.com >Subject: [Xen-users] xen and boot problems (with CentOS 4.2) > >Hello -- > >We''re trying to get a Centos 4.2 system working under a Centos 4.2 >operating system using the instructions we found at >http://mark.foster.cc/wiki/index.php/Centos-4_on_Xen. The prospect of >running several virtual servers on one physical box is pretty >intriguing. I think we''re pretty close, but we''ve gotten to a place >that has me stumped. I''m hoping someone can help. > >We''ve gotten to a place where we can actually boot our VM by running >''xm create -c /etc/xen/vm03 vmid=3'' (we are using the configuration from >the Xen documentation). We see the standard kernel boot >up messages and things start out well. Then we get to: > > >EXT2-fs warning (device sdb3): ext2_fill_super: mounting ext3 filesystem >as ext2 > >VFS: Mounted root (ext2 filesystem). >Freeing unused kernel memory: 184k freed >unix: no version for "struct_module" found: kernel tainted. >NET: Registered protocol family 1 >INIT: version 2.85 booting > Welcome to CentOS release 4.2 (Final) > Press ''I'' to enter interactive startup. >Starting udev: [ OK ] >Initializing hardware... storage network audio done[ OK ] >raidautorun: RAID_AUTORUN failed: 19 >mount: mount point devpts does not exist >Configuring kernel parameters: [ OK ] >Setting clock : Tue Mar 28 16:01:59 EST 2006 [ OK ] >Setting hostname localhost: [ OK ] >Checking root filesystem >[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/sdb3 >/dev/sdb3 is mounted. e2fsck: Cannot continue, aborting. > > >[FAILED] > >*** An error occurred during the file system check. >*** Dropping you to a shell; the system will reboot >*** when you leave the shell. >Press enter for maintenance >(or type Control-D to continue): > > >I cannot for the life of me figure out what''s going wrong. I''ve >dropped into the maintenance shell and done a fsck, but as soon as I >try to boot it back up again, the same problem. > >Thank you for any help. > >Brian > >_______________________________________________ >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 > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users