James Corteciano
2008-Oct-11 21:15 UTC
[Xen-users] CentOS ISO how to boot in Xen guest system
Hi, How to boot the centos dvd image (/download/centos/centos5.2.iso) in xen guest system to let me do linux rescue command? Here is the working guest config file: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bootloader = ''/usr/lib/xen-3.2-1/bin/pygrub'' memory = ''256'' name = ''centos'' disk = [ ''phy:/dev/server/centos,xvda,w'' ] vif = [ ''ip=192.168.1.100,mac=00:16:3E:2A:CC:FF'' ] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Hope someone could help me. Thanks! James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Steffen Heil
2008-Oct-11 23:16 UTC
AW: [Xen-users] CentOS ISO how to boot in Xen guest system
Hi> How to boot the centos dvd image (/download/centos/centos5.2.iso) in xenguest system to let me do linux rescue command? You don''t have to. Just mount the partition in dom0 and repair there! Regards, Steffen _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
James Corteciano
2008-Oct-13 03:45 UTC
Re: [Xen-users] CentOS ISO how to boot in Xen guest system
Hi Steffen, I try to mount the partition in dom0 and however this is what the error message said: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dom0:~# mount -t ext3 /dev/server/centos /mnt/temp mount: wrong fs type, bad option, bad superblock on /dev/server/centos, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so dom0: dmesg | tail ............... VFS: Can''t find ext3 filesystem on dev dm-14. ................... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I have got a wrong entry in /etc/fstab inside the domU system which cause of not booting properly. Is there anyway I can do to mount this /dev/server/centos in dom0? Thanks! James On Sun, Oct 12, 2008 at 7:16 AM, Steffen Heil <lists@steffen-heil.de> wrote:> Hi > > > How to boot the centos dvd image (/download/centos/centos5.2.iso) in xen > guest system to let me do linux rescue command? > > You don''t have to. > Just mount the partition in dom0 and repair there! > > Regards, > Steffen > >-- Linux Registered User #380364 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Alain Barthe
2008-Oct-13 10:18 UTC
Re: [Xen-users] CentOS ISO how to boot in Xen guest system
2008/10/13 James Corteciano <linux@gascortrading.com>> Hi Steffen, > > I try to mount the partition in dom0 and however this is what the error > message said: > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > dom0:~# mount -t ext3 /dev/server/centos /mnt/temp > mount: wrong fs type, bad option, bad superblock on /dev/server/centos, > missing codepage or helper program, or other error > In some cases useful info is found in syslog - try > dmesg | tail or so > > dom0: dmesg | tail > ............... > VFS: Can''t find ext3 filesystem on dev dm-14. > ................... > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > I have got a wrong entry in /etc/fstab inside the domU system which cause > of not booting properly. Is there anyway I can do to mount this > /dev/server/centos in dom0? >What you try to mount above is a whole virtual disk. You have first to make its partition seeable from your dom0 by using "kpartx -a /dev/server/centos". This will create for you entries (one per virtual partition) in /dev/mapper. Then you have to mount the entry that corresponds to your virtual root.> > > Thanks! > James > > > On Sun, Oct 12, 2008 at 7:16 AM, Steffen Heil <lists@steffen-heil.de>wrote: > >> Hi >> >> > How to boot the centos dvd image (/download/centos/centos5.2.iso) in xen >> guest system to let me do linux rescue command? >> >> You don''t have to. >> Just mount the partition in dom0 and repair there! >> >> Regards, >> Steffen >> >> > > > -- > Linux Registered User #380364 > > > _______________________________________________ > 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
James Corteciano
2008-Oct-13 16:59 UTC
Re: [Xen-users] CentOS ISO how to boot in Xen guest system
Hi Alain, Thanks for your help. It has fixed now. James On Mon, Oct 13, 2008 at 6:18 PM, Alain Barthe <ab266061@gmail.com> wrote:> 2008/10/13 James Corteciano <linux@gascortrading.com> > >> Hi Steffen, >> >> I try to mount the partition in dom0 and however this is what the error >> message said: >> >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> dom0:~# mount -t ext3 /dev/server/centos /mnt/temp >> mount: wrong fs type, bad option, bad superblock on /dev/server/centos, >> missing codepage or helper program, or other error >> In some cases useful info is found in syslog - try >> dmesg | tail or so >> >> dom0: dmesg | tail >> ............... >> VFS: Can''t find ext3 filesystem on dev dm-14. >> ................... >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> I have got a wrong entry in /etc/fstab inside the domU system which cause >> of not booting properly. Is there anyway I can do to mount this >> /dev/server/centos in dom0? >> > > What you try to mount above is a whole virtual disk. You have first to make > its partition seeable from your dom0 by using "kpartx -a > /dev/server/centos". This will create for you entries (one per virtual > partition) in /dev/mapper. Then you have to mount the entry that corresponds > to your virtual root. > > >> >> >> Thanks! >> James >> >> >> On Sun, Oct 12, 2008 at 7:16 AM, Steffen Heil <lists@steffen-heil.de>wrote: >> >>> Hi >>> >>> > How to boot the centos dvd image (/download/centos/centos5.2.iso) in >>> xen >>> guest system to let me do linux rescue command? >>> >>> You don''t have to. >>> Just mount the partition in dom0 and repair there! >>> >>> Regards, >>> Steffen >>> >>> >> >> >> -- >> Linux Registered User #380364 >> >> >> _______________________________________________ >> 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