defjam01
2006-Nov-06 17:54 UTC
[Xen-users] root filesystem missing loading Debian Sarge DomU
hello everybody, i have a problem running my domU which is a debian sarge. i did the following things to get it so far as i am now: host system: fedora core 5 dom0 with xen 3.0.3 and the xen 2.6.18-1.2200 kernel for the host fedora machine. virtual xen machine: downloaded on a debian sarge with debootstrap the needed files (/etc/../boot/.../proc/ etc.) and copy´d everything except the /dev (because there were a lot of errors by coping it to the fedora system) to the fedora system in a image (3gb). i also have a swapimage for the virtual machine (512mb). the configuration file (vm01.cfg) has the following entries: ----------- kernel = "/boot/vmlinuz-2.6.18-1.2200.fc5xenU" memory = 128 root = "/dev/hda1" name = "vm01" vif = [ '''' ] dhcp = "dhcp" disk [''file:/vserver/vm01/diskimage,hda1,w'',''file:/vserver/vm01/swapimage,hda2,w'' ] ------------- i also tried to replace the hda1 with sda1 (also in the fstab of the virtual machine!) the fstab in the virtual machine consists of the following lines: ------------ /dev/hda1 / ext3 errors=remount-ro 0 1 /dev/hda2 none swap sw 0 0 proc /proc proc defaults 0 0 ------------- i also made manually a /dev directory in the imagefile for the virtual machine.created with this script: for i in console null zero ; do /mnt/vm01/dev/MAKEDEV -d /mnt/dev -x $i ; done so when i start the virtual machine i get the following output (cutted out only the important things): --------------------------------- EXT3 FS on hda1, internal journal EXT3-fs: recovery complete. EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem). Freeing unused kernel memory: 144k freed Write protecting the kernel read-only data: 258k INIT: version 2.86 booting Activating swap. The device node /dev/hda1 for the root filesystem is missing, incorrect, or there is no entry for the root filesystem listed in /etc/fstab. The system is also unable to create a temporary node in /dev/shm to use as a work-around. This means you have to fix this manually. CONTROL-D will exit from this shell and REBOOT the system. Press enter for maintenance --------------------------------------------- so i dont know why i get this errors...the startsequence says that there is an ext3 system in /dev/hda but why cant i get into the system...when i type enter i see all the folders (/etc/.../src/ etc.) can anybody help me? thanks a lot Alexandros _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Patrick Scharrenberg
2006-Nov-07 07:52 UTC
Re: [Xen-users] root filesystem missing loading Debian Sarge DomU
Hi! I think your debian-system is missing the device-file for hda1 in /dev You can either create one by mounting your filesystem in dom0 and do a mknod <path_to_debian_dev>/hda1 b 3 1 or better chroot into your debian-system and do a apt-get install udev Patrick> hello everybody, > > i have a problem running my domU which is a debian sarge. i did the > following things to get it so far as i am now: > > host system: fedora core 5 dom0 with xen 3.0.3 and the xen 2.6.18-1.2200 > kernel for the host fedora machine. > virtual xen machine: downloaded on a debian sarge with debootstrap the > needed files (/etc/../boot/.../proc/ etc.) > and copy´d everything except the /dev (because there were a lot of > errors by coping it to the fedora system) to the fedora system in a > image (3gb). i also have a swapimage for the virtual machine (512mb). > > the configuration file (vm01.cfg) has the following entries: > ----------- > kernel = "/boot/vmlinuz-2.6.18-1.2200.fc5xenU" > memory = 128 > root = "/dev/hda1" > name = "vm01" > vif = [ '''' ] > dhcp = "dhcp" > disk > [''file:/vserver/vm01/diskimage,hda1,w'',''file:/vserver/vm01/swapimage,hda2,w'' > ] > ------------- > i also tried to replace the hda1 with sda1 (also in the fstab of the > virtual machine!) > > the fstab in the virtual machine consists of the following lines: > ------------ > /dev/hda1 / ext3 errors=remount-ro 0 1 > /dev/hda2 none swap sw 0 0 > proc /proc proc defaults 0 0 > ------------- > > i also made manually a /dev directory in the imagefile for the virtual > machine.created with this script: > > for i in console null zero ; do /mnt/vm01/dev/MAKEDEV -d /mnt/dev -x $i ; done > > > so when i start the virtual machine i get the following output (cutted > out only the important things): > > --------------------------------- > EXT3 FS on hda1, internal journal > EXT3-fs: recovery complete. > EXT3-fs: mounted filesystem with ordered data mode. > VFS: Mounted root (ext3 filesystem). > Freeing unused kernel memory: 144k freed > Write protecting the kernel read-only data: 258k > INIT: version 2.86 booting > Activating swap. > > The device node /dev/hda1 for the root filesystem is missing, > incorrect, or there is no entry for the root filesystem > listed in /etc/fstab. > > The system is also unable to create a temporary node in > /dev/shm to use as a work-around. > > This means you have to fix this manually. > > CONTROL-D will exit from this shell and REBOOT the system. > > Press enter for maintenance > --------------------------------------------- > > so i dont know why i get this errors...the startsequence says that there > is an ext3 system in /dev/hda but why cant i get into the system...when > i type enter i see all the folders (/etc/.../src/ etc.) > > can anybody help me? > > thanks a lot > Alexandros > > > _______________________________________________ > 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
defjam01
2006-Nov-07 21:01 UTC
Re: [Xen-users] root filesystem missing loading Debian Sarge DomU
Hi Patrick, this helped me out of this problem. Thanks a lot!!! i have now another problem :( while the system boots (debian sarge domU) it stops (hangs) after the loading of the cron daemon...i tried to disable hwclock and the cron at startup but it didn´t worked out...so if anybody has a sollution for this problem please answer :) thanks!! Alexandros Patrick Scharrenberg schrieb:> Hi! > > I think your debian-system is missing the device-file for hda1 in /dev > You can either create one by mounting your filesystem in dom0 and do a > > mknod <path_to_debian_dev>/hda1 b 3 1 > > or better chroot into your debian-system and do a > > apt-get install udev > > > Patrick > > >> hello everybody, >> >> i have a problem running my domU which is a debian sarge. i did the >> following things to get it so far as i am now: >> >> host system: fedora core 5 dom0 with xen 3.0.3 and the xen 2.6.18-1.2200 >> kernel for the host fedora machine. >> virtual xen machine: downloaded on a debian sarge with debootstrap the >> needed files (/etc/../boot/.../proc/ etc.) >> and copy´d everything except the /dev (because there were a lot of >> errors by coping it to the fedora system) to the fedora system in a >> image (3gb). i also have a swapimage for the virtual machine (512mb). >> >> the configuration file (vm01.cfg) has the following entries: >> ----------- >> kernel = "/boot/vmlinuz-2.6.18-1.2200.fc5xenU" >> memory = 128 >> root = "/dev/hda1" >> name = "vm01" >> vif = [ '''' ] >> dhcp = "dhcp" >> disk >> [''file:/vserver/vm01/diskimage,hda1,w'',''file:/vserver/vm01/swapimage,hda2,w'' >> ] >> ------------- >> i also tried to replace the hda1 with sda1 (also in the fstab of the >> virtual machine!) >> >> the fstab in the virtual machine consists of the following lines: >> ------------ >> /dev/hda1 / ext3 errors=remount-ro 0 1 >> /dev/hda2 none swap sw 0 0 >> proc /proc proc defaults 0 0 >> ------------- >> >> i also made manually a /dev directory in the imagefile for the virtual >> machine.created with this script: >> >> for i in console null zero ; do /mnt/vm01/dev/MAKEDEV -d /mnt/dev -x $i ; done >> >> >> so when i start the virtual machine i get the following output (cutted >> out only the important things): >> >> --------------------------------- >> EXT3 FS on hda1, internal journal >> EXT3-fs: recovery complete. >> EXT3-fs: mounted filesystem with ordered data mode. >> VFS: Mounted root (ext3 filesystem). >> Freeing unused kernel memory: 144k freed >> Write protecting the kernel read-only data: 258k >> INIT: version 2.86 booting >> Activating swap. >> >> The device node /dev/hda1 for the root filesystem is missing, >> incorrect, or there is no entry for the root filesystem >> listed in /etc/fstab. >> >> The system is also unable to create a temporary node in >> /dev/shm to use as a work-around. >> >> This means you have to fix this manually. >> >> CONTROL-D will exit from this shell and REBOOT the system. >> >> Press enter for maintenance >> --------------------------------------------- >> >> so i dont know why i get this errors...the startsequence says that there >> is an ext3 system in /dev/hda but why cant i get into the system...when >> i type enter i see all the folders (/etc/.../src/ etc.) >> >> can anybody help me? >> >> thanks a lot >> Alexandros >> >> >> _______________________________________________ >> 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