View previous topic :: View next topic |
Author |
Message |
IvanZD Apprentice
Joined: 04 Jul 2005 Posts: 166
|
Posted: Sat Nov 12, 2005 5:26 pm Post subject: Installing REAL gentoo system using vmware? [solved] |
|
|
Hi!
I have little strange idea. Let's say that you need to install gentoo on few pentium class (i586) boxes (not all the same), and that you do not want to use binary (stage 3) install. Compiling all of that takes long time, so I get idea - can I make use of vmware on my desktop machine somehow to install them inside vmware and then only transfer everything from it to hard disk? I can't use desktop PC for installing and then just swap hard disks because need this PC 24/7 working.. can vmware do that?
_________________ http://www.meteoadriatic.net/
Last edited by IvanZD on Sun Nov 13, 2005 9:32 am; edited 1 time in total |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Sat Nov 12, 2005 5:47 pm Post subject: |
|
|
If the machines all use the same arch and CFLAG values, install one and then make binary tbz2 packages and copy them to the other machines.
(Install using emerge -k packagname)
You should only have to make pertainant changes for each in their respective kernels and any additional packages needed for different hardware. |
|
Back to top |
|
|
IvanZD Apprentice
Joined: 04 Jul 2005 Posts: 166
|
Posted: Sat Nov 12, 2005 6:01 pm Post subject: |
|
|
Hm, yes, but I don't need install a "serie" of P1 gentoo's now, but these are mostly routers for our wireless network, so I get hardware like that from time to time, and of course there is also updates in portage and some of them need different software.. my idea is just to speed up these installations (only me do installs of gentoo here ) because I'm little tired of spending few days on compiling base system on P1's.. next day I'll get one more box like that so I would like to experiment if I can use vmware for that (not really sure how but I think it should be possible.. just need some kind of "sending" installed software with dd command or similar to attached hard disk).. _________________ http://www.meteoadriatic.net/ |
|
Back to top |
|
|
thewally l33t
Joined: 12 May 2005 Posts: 703 Location: Genova
|
Posted: Sat Nov 12, 2005 6:49 pm Post subject: |
|
|
That isn't the best way...
Try this:
1 ) Compile all system in a chroot (in your desktop)
2 ) compress new root with tar.
3 ) Start live-cd on pentium machine, start sshd.
4 ) Copy from desktop to pentium, by scp, the tar file.
5 ) uncompress tar in the pentium (/mnt/gentoo/).
6 ) chroot in /mnt/gentoo
7 ) Install grub.
8 ) Exit chroot and unmount partition.
9 ) Restart.
9 simple and easy steps. _________________ Proudly Member of GeCHI |
|
Back to top |
|
|
IvanZD Apprentice
Joined: 04 Jul 2005 Posts: 166
|
Posted: Sat Nov 12, 2005 7:11 pm Post subject: |
|
|
Excellent! Everything is clear except this:
thewally wrote: | Try this:
1 ) Compile all system in a chroot (in your desktop) |
Can you give mi a brief hint? Do you mean to boot desktop with livecd or?
Thanks a lot! _________________ http://www.meteoadriatic.net/ |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat Nov 12, 2005 9:19 pm Post subject: |
|
|
IvanZD wrote: | Do you mean to boot desktop with livecd or? |
No, just boot your desktop normally. Any Linux distro should be able to do the job (booting with Gentoo is not necessary).
Then create a /mnt/gentoo directory to hold the system you are building. |
|
Back to top |
|
|
IvanZD Apprentice
Joined: 04 Jul 2005 Posts: 166
|
|
Back to top |
|
|
ChojinDSL l33t
Joined: 07 Jul 2003 Posts: 784
|
Posted: Fri Nov 25, 2005 1:21 am Post subject: |
|
|
whats the command to do a chroot on a already installed gentoo machine.
I ask because using the same command as in the manual gives me an error.
The command in the gentoo handbook is
Code: | chroot /mnt/gentoo /bin/bash |
It then complains about not being able to find bash. Should that perhaps be /usr/bin/bash instead? |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Fri Nov 25, 2005 2:08 am Post subject: |
|
|
ChojinDSL wrote: | whats the command to do a chroot on a already installed gentoo machine. |
chroot
I am assuming you have already extracted a stage tarball that is compatible with your architecture into /mnt/gentoo |
|
Back to top |
|
|
|