From: antoine <an...@na...> - 2005-06-09 17:33:46
|
> > Please tell me where I am going wrong. To install rpm > > packages, i need to have rpm manager installed in UML > > filesystem. Am i right in my understanding ? > That would work, but there is another possibility: loop-mount the root_fs from > the host and use the rpm option to specify where you want to install the > packages... don't do that if the Distro versions are too different because > different RPM version have different archive versions. If you go down that route, have a good look at the rpm man page. Do not update the rpm database of the host (it may already have that lib/package), you want to update the database of the guest instead... Antoine |
From: Anthony B. <Ant...@ou...> - 2005-06-15 16:46:55
|
Allocate another drive. Do something like the following on the master: dd if=3D/dev/zero of=3Ddisk2.img bs=3D512M count=3D1 losetup /dev/loop0 ./disk2.img mkfs -t ext2 /dev/loop0 losetup -d /dev/loop0 ../linux-kernel ..... ubd1=3D./disk2.img ..... Once the UML has been launched, mount the new drive in the appropriate = place on your filesystem. There are also methods for extending your = existing image. YMMV. - Tony >>> Dinesh Ahuja <mdl...@ya...> 06/15/05 08:07AM >>> When I try to install binutils, I was aksed to install its dependenices glibc and glibc-common.=20 While installing glibc-common, I got following error message : installing package glibc-common-2.3.2-4.80.8 needs 148MB on the /mnt/cdrom filesystem Where as my filesystem doesnot seems to have free space amounting to above mentioned figure. Is there anyway by which I can expand the size of filesystem or please suggest a way to fight back with this problem. Thanks & Regards Dinesh --- Blaisorblade <bla...@ya...> wrote: > On Saturday 11 June 2005 22:37, Dinesh Ahuja wrote: > > >That would work, but there is another possibility > : > > >loop-mount the root_fs from the host and use the > rpm > > >option to specify where you want to install the > > >packages. > > > > As per guidance, I have tried the following method > > [root@localhost UML]# rpm -i --prefix > > /mnt/cdrom/usr/local > binutils-2.13.90.0.18-9.i386.rpm > > error: package binutils is not relocateable > Wrong option... that is for moving some files that > the package specifies as=20 > "relocatable" inside the same root. The right option > is "--root": >=20 > --root DIRECTORY > Use the file system tree rooted at > DIRECTORY for all operations. =20 > Note that this means the data- > base within DIRECTORY will be used for > dependency checks and any=20 > scriptlet(s) (e.g. %post if > installing, or %prep if building, a > package) will be run after a=20 > chroot(2) to DIRECTORY. >=20 > > Any suggestions ? I am using Red Hat 8.0. Is there > > filesystem which has all these utilities installed >=20 > --=20 > Inform me of my mistakes, so I can keep imitating > Homer Simpson's "Doh!". > Paolo Giarrusso, aka Blaisorblade (Skype ID > "PaoloGiarrusso", ICQ 215621894) > http://www.user-mode-linux.org/~blaisorblade=20 >=20 > =09 > ___________________________________=20 > Yahoo! Messenger: chiamate gratuite in tutto il > mondo=20 > http://it.beta.messenger.yahoo.com=20 >=20 =09 =09 =09 __________________________________________________________ Free antispam, antivirus and 1GB to save all your messages Only in Yahoo! Mail: http://in.mail.yahoo.com=20 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclick= =20 _______________________________________________ User-mode-linux-user mailing list Use...@li...=20 https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user |
From: Dinesh A. <mdl...@ya...> - 2005-06-18 04:36:00
|
As per your suggestions, I have created a new filesystem and mounted it on /mnt/cdrom [root@localhost root]# mount -t ext2 -o loop /home/dahuja/DownLoads/UMLPatches/disk2.img /mnt/cdrom The free available space is as follows : [root@localhost root]# df -h /mnt/cdrom Filesystem Size Used Avail Use% Mounted on /home/dahuja/DownLoads/UMLPatches/disk2.img 146M 13K 138M 1% /mnt/cdrom [root@localhost UMLPatches]# rpm -i --root /mnt/cdrom glibc-common-2.3.2-4.80.8.i386.rpm warning: glibc-common-2.3.2-4.80.8.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e installing package glibc-common-2.3.2-4.80.8 needs 39MB on the /mnt/cdrom filesystem Installing glibc-common gives me above error, but df command shows sufficient memory to proceed with installation. Please advise on this. Thanks & Regards Dinesh --- Anthony Brock <Ant...@ou...> wrote: > Allocate another drive. Do something like the > following on the master: > > dd if=/dev/zero of=disk2.img bs=512M count=1 > losetup /dev/loop0 ./disk2.img > mkfs -t ext2 /dev/loop0 > losetup -d /dev/loop0 > > ../linux-kernel ..... ubd1=./disk2.img ..... > > Once the UML has been launched, mount the new drive > in the appropriate place on your filesystem. There > are also methods for extending your existing image. > YMMV. - Tony > > >>> Dinesh Ahuja <mdl...@ya...> 06/15/05 > 08:07AM >>> > When I try to install binutils, I was aksed to > install > its dependenices glibc and glibc-common. > > While installing glibc-common, I got following error > message : > installing package glibc-common-2.3.2-4.80.8 needs > 148MB on the /mnt/cdrom filesystem > > Where as my filesystem doesnot seems to have free > space amounting to above mentioned figure. > > Is there anyway by which I can expand the size of > filesystem or please suggest a way to fight back > with > this problem. > > Thanks & Regards > Dinesh > > --- Blaisorblade <bla...@ya...> wrote: > > > On Saturday 11 June 2005 22:37, Dinesh Ahuja > wrote: > > > >That would work, but there is another > possibility > > : > > > >loop-mount the root_fs from the host and use > the > > rpm > > > >option to specify where you want to install the > > > >packages. > > > > > > As per guidance, I have tried the following > method > > > [root@localhost UML]# rpm -i --prefix > > > /mnt/cdrom/usr/local > > binutils-2.13.90.0.18-9.i386.rpm > > > error: package binutils is not relocateable > > Wrong option... that is for moving some files that > > the package specifies as > > "relocatable" inside the same root. The right > option > > is "--root": > > > > --root DIRECTORY > > Use the file system tree rooted at > > DIRECTORY for all operations. > > Note that this means the data- > > base within DIRECTORY will be used > for > > dependency checks and any > > scriptlet(s) (e.g. %post if > > installing, or %prep if building, a > > package) will be run after a > > chroot(2) to DIRECTORY. > > > > > Any suggestions ? I am using Red Hat 8.0. Is > there > > > filesystem which has all these utilities > installed > > > > -- > > Inform me of my mistakes, so I can keep imitating > > Homer Simpson's "Doh!". > > Paolo Giarrusso, aka Blaisorblade (Skype ID > > "PaoloGiarrusso", ICQ 215621894) > > http://www.user-mode-linux.org/~blaisorblade > > > > > > ___________________________________ > > Yahoo! Messenger: chiamate gratuite in tutto il > > mondo > > http://it.beta.messenger.yahoo.com > > > > > > > > > > __________________________________________________________ > Free antispam, antivirus and 1GB to save all your > messages > Only in Yahoo! Mail: http://in.mail.yahoo.com > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux > Migration Strategies > from IBM. Find simple to follow Roadmaps, > straightforward articles, > informative Webcasts and more! Get everything you > need to get up to > speed, fast. > http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux > Migration Strategies > from IBM. Find simple to follow Roadmaps, > straightforward articles, > informative Webcasts and more! Get everything you > need to get up to > speed, fast. > http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > __________________________________________________________ Free antispam, antivirus and 1GB to save all your messages Only in Yahoo! Mail: http://in.mail.yahoo.com |
From: Anthony B. <br...@st...> - 2005-06-10 21:33:47
|
I normally find it best to chroot myself in the loop-mount environment such as: mount -o loop /srv/vs/images/my_test.img /mnt chroot /mnt /bin/sh apt-get update apt-get install ..... Tony > -----Original Message----- > From: use...@li... > [mailto:use...@li...]On Behalf Of > antoine > Sent: Thursday, June 09, 2005 10:44 AM > To: User Mode Linux User > Subject: Re: [uml-user] QM_MODULES: Function not implemented > > > > > Please tell me where I am going wrong. To install rpm > > > packages, i need to have rpm manager installed in UML > > > filesystem. Am i right in my understanding ? > > That would work, but there is another possibility: loop-mount > the root_fs from > > the host and use the rpm option to specify where you want to > install the > > packages... don't do that if the Distro versions are too > different because > > different RPM version have different archive versions. > If you go down that route, have a good look at the rpm man page. > Do not update the rpm database of the host (it may already have that > lib/package), you want to update the database of the guest instead... > > Antoine > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can > you shotput > a projector? How fast can you ride your desk chair down the > office luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > |
From: Dinesh A. <mdl...@ya...> - 2005-06-11 20:29:11
|
This is easier idea. But what to do if you guest file system does not apt-get script I am using file system available on user mode linux home page $mount -t ext2 -o loop /home/dahuja/DownLoads/UMLPatches/root_fs.rh-7.2-anonsrv.pristine.20020312 /mnt/cdrom [root@localhost root]# chroot /mnt/cdrom /bin/sh Running apt-get fails as this is avaliable in filesystem [root_fs.rh-7.2-anonsrv.pristine.20020312] sh-2.05# apt-get update sh: apt-get: command not found Please suggest how to proceed further. Thanks & Regards Dinesh --- Anthony Brock <br...@st...> wrote: > I normally find it best to chroot myself in the > loop-mount environment such > as: > > mount -o loop /srv/vs/images/my_test.img /mnt > chroot /mnt /bin/sh > apt-get update > apt-get install ..... > > Tony > > > -----Original Message----- > > From: > use...@li... > > > [mailto:use...@li...]On > Behalf Of > > antoine > > Sent: Thursday, June 09, 2005 10:44 AM > > To: User Mode Linux User > > Subject: Re: [uml-user] QM_MODULES: Function not > implemented > > > > > > > > Please tell me where I am going wrong. To > install rpm > > > > packages, i need to have rpm manager installed > in UML > > > > filesystem. Am i right in my understanding ? > > > That would work, but there is another > possibility: loop-mount > > the root_fs from > > > the host and use the rpm option to specify where > you want to > > install the > > > packages... don't do that if the Distro versions > are too > > different because > > > different RPM version have different archive > versions. > > If you go down that route, have a good look at the > rpm man page. > > Do not update the rpm database of the host (it may > already have that > > lib/package), you want to update the database of > the guest instead... > > > > Antoine > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: NEC IT Guy > Games. How far can > > you shotput > > a projector? How fast can you ride your desk chair > down the > > office luge track? > > If you want to score the big prize, get to know > the little guy. > > Play to win an NEC 61" plasma display: > http://www.necitguy.com/?r=20 > > _______________________________________________ > > User-mode-linux-user mailing list > > Use...@li... > > > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. > How far can you shotput > a projector? How fast can you ride your desk chair > down the office luge track? > If you want to score the big prize, get to know the > little guy. > Play to win an NEC 61" plasma display: > http://www.necitguy.com/?r=20 > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > __________________________________________________________ How much free photo storage do you get? Store your friends 'n family snaps for FREE with Yahoo! Photos http://in.photos.yahoo.com |
From: Anthony B. <br...@st...> - 2005-06-11 21:02:18
|
Dinesh, To be honest, I'm not familiar with the image you're using. The commands I listed were ones I would use on a Debian image to update the software database and then install a specific package. However, you may want to start by downloading any RPM's you need from: ftp://ftp.redhat.com/pub/redhat/linux/7.2/en/os/i386/RedHat/RPMS/ Once downloaded, try to install them using the "rpm" command. Something like "rpm -ivh <package name>". If you don't have an rpm command on the image, then you're probably out of luck. Even better, you can choose a more modern OS image. You can find these (and a lot of other information) on the UML Wiki at: http://uml.harlowhill.com/ http://uml.harlowhill.com/index.php/UMLRootFilesystems Good luck. - Tony > -----Original Message----- > From: Dinesh Ahuja [mailto:mdl...@ya...] > Sent: Saturday, June 11, 2005 1:29 PM > To: Anthony Brock; User Mode Linux User > Subject: RE: [uml-user] QM_MODULES: Function not implemented > > > This is easier idea. But what to do if you guest file > system does not apt-get script > > I am using file system available on user mode linux > home page > > $mount -t ext2 -o loop > /home/dahuja/DownLoads/UMLPatches/root_fs.rh-7.2-anonsrv.pristine.20020312 > /mnt/cdrom > > [root@localhost root]# chroot /mnt/cdrom /bin/sh > Running apt-get fails as this is avaliable in > filesystem [root_fs.rh-7.2-anonsrv.pristine.20020312] > > sh-2.05# apt-get update > sh: apt-get: command not found > > Please suggest how to proceed further. > > Thanks & Regards > Dinesh > > --- Anthony Brock <br...@st...> wrote: > > > I normally find it best to chroot myself in the > > loop-mount environment such > > as: > > > > mount -o loop /srv/vs/images/my_test.img /mnt > > chroot /mnt /bin/sh > > apt-get update > > apt-get install ..... > > > > Tony > > > > > -----Original Message----- > > > From: > > use...@li... > > > > > > [mailto:use...@li...]On > > Behalf Of > > > antoine > > > Sent: Thursday, June 09, 2005 10:44 AM > > > To: User Mode Linux User > > > Subject: Re: [uml-user] QM_MODULES: Function not > > implemented > > > > > > > > > > > Please tell me where I am going wrong. To > > install rpm > > > > > packages, i need to have rpm manager installed > > in UML > > > > > filesystem. Am i right in my understanding ? > > > > That would work, but there is another > > possibility: loop-mount > > > the root_fs from > > > > the host and use the rpm option to specify where > > you want to > > > install the > > > > packages... don't do that if the Distro versions > > are too > > > different because > > > > different RPM version have different archive > > versions. > > > If you go down that route, have a good look at the > > rpm man page. > > > Do not update the rpm database of the host (it may > > already have that > > > lib/package), you want to update the database of > > the guest instead... > > > > > > Antoine > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: NEC IT Guy > > Games. How far can > > > you shotput > > > a projector? How fast can you ride your desk chair > > down the > > > office luge track? > > > If you want to score the big prize, get to know > > the little guy. > > > Play to win an NEC 61" plasma display: > > http://www.necitguy.com/?r=20 > > > _______________________________________________ > > > User-mode-linux-user mailing list > > > Use...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: NEC IT Guy Games. > > How far can you shotput > > a projector? How fast can you ride your desk chair > > down the office luge track? > > If you want to score the big prize, get to know the > > little guy. > > Play to win an NEC 61" plasma display: > > http://www.necitguy.com/?r=20 > > _______________________________________________ > > User-mode-linux-user mailing list > > Use...@li... > > > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > > > > > > __________________________________________________________ > How much free photo storage do you get? Store your friends 'n > family snaps for FREE with Yahoo! Photos http://in.photos.yahoo.com > |
From: Dinesh A. <mdl...@ya...> - 2005-06-14 15:11:08
|
Antoine, Thanks for ur help. I am using Red Hat 8.0. Regards Dinesh --- Anthony Brock <br...@st...> wrote: > Dinesh, > > To be honest, I'm not familiar with the image you're > using. The commands I > listed were ones I would use on a Debian image to > update the software > database and then install a specific package. > However, you may want to start > by downloading any RPM's you need from: > > ftp://ftp.redhat.com/pub/redhat/linux/7.2/en/os/i386/RedHat/RPMS/ > > Once downloaded, try to install them using the "rpm" > command. Something like > "rpm -ivh <package name>". If you don't have an rpm > command on the image, > then you're probably out of luck. > > Even better, you can choose a more modern OS image. > You can find these (and > a lot of other information) on the UML Wiki at: > > http://uml.harlowhill.com/ > http://uml.harlowhill.com/index.php/UMLRootFilesystems > > Good luck. - Tony > > > > -----Original Message----- > > From: Dinesh Ahuja [mailto:mdl...@ya...] > > Sent: Saturday, June 11, 2005 1:29 PM > > To: Anthony Brock; User Mode Linux User > > Subject: RE: [uml-user] QM_MODULES: Function not > implemented > > > > > > This is easier idea. But what to do if you guest > file > > system does not apt-get script > > > > I am using file system available on user mode > linux > > home page > > > > $mount -t ext2 -o loop > > > /home/dahuja/DownLoads/UMLPatches/root_fs.rh-7.2-anonsrv.pristine.20020312 > > /mnt/cdrom > > > > [root@localhost root]# chroot /mnt/cdrom /bin/sh > > Running apt-get fails as this is avaliable in > > filesystem > [root_fs.rh-7.2-anonsrv.pristine.20020312] > > > > sh-2.05# apt-get update > > sh: apt-get: command not found > > > > Please suggest how to proceed further. > > > > Thanks & Regards > > Dinesh > > > > --- Anthony Brock <br...@st...> wrote: > > > > > I normally find it best to chroot myself in the > > > loop-mount environment such > > > as: > > > > > > mount -o loop /srv/vs/images/my_test.img /mnt > > > chroot /mnt /bin/sh > > > apt-get update > > > apt-get install ..... > > > > > > Tony > > > > > > > -----Original Message----- > > > > From: > > > use...@li... > > > > > > > > > > [mailto:use...@li...]On > > > Behalf Of > > > > antoine > > > > Sent: Thursday, June 09, 2005 10:44 AM > > > > To: User Mode Linux User > > > > Subject: Re: [uml-user] QM_MODULES: Function > not > > > implemented > > > > > > > > > > > > > > Please tell me where I am going wrong. To > > > install rpm > > > > > > packages, i need to have rpm manager > installed > > > in UML > > > > > > filesystem. Am i right in my understanding > ? > > > > > That would work, but there is another > > > possibility: loop-mount > > > > the root_fs from > > > > > the host and use the rpm option to specify > where > > > you want to > > > > install the > > > > > packages... don't do that if the Distro > versions > > > are too > > > > different because > > > > > different RPM version have different archive > > > versions. > > > > If you go down that route, have a good look at > the > > > rpm man page. > > > > Do not update the rpm database of the host (it > may > > > already have that > > > > lib/package), you want to update the database > of > > > the guest instead... > > > > > > > > Antoine > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by: NEC IT Guy > > > Games. How far can > > > > you shotput > > > > a projector? How fast can you ride your desk > chair > > > down the > > > > office luge track? > > > > If you want to score the big prize, get to > know > > > the little guy. > > > > Play to win an NEC 61" plasma display: > > > http://www.necitguy.com/?r=20 > > > > > _______________________________________________ > > > > User-mode-linux-user mailing list > > > > Use...@li... > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: NEC IT Guy > Games. > > > How far can you shotput > > > a projector? How fast can you ride your desk > chair > > > down the office luge track? > > > If you want to score the big prize, get to know > the > > > little guy. > > > Play to win an NEC 61" plasma display: > > > http://www.necitguy.com/?r=20 > > > _______________________________________________ > > > User-mode-linux-user mailing list > > > Use...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > > > > > > > > > > > > > __________________________________________________________ > > How much free photo storage do you get? Store your > friends 'n > > family snaps for FREE with Yahoo! Photos > http://in.photos.yahoo.com > > > > __________________________________________________________ How much free photo storage do you get? Store your friends 'n family snaps for FREE with Yahoo! Photos http://in.photos.yahoo.com |