Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Dec 04, 2004 8:39 pm 
Offline
Newbie

Joined: Sat Dec 04, 2004 8:02 pm
Posts: 3
If any one can assist on this it would be greatly appreciated!

I have a VMWare gentoo installation on my machine at work. I would like to migrate it to my newly acquired Linode (thanks Chris!).

I followed the following steps but am now stumped -

1. I created a Linode with the existing gentoo distro.
2. Created a new disk image, changed config, and rebooted
3. Mounted the new disk image under /newdrive
4. started rsync --daemon
5. rsynced from my vmware machine using the following command
Code:
vmware:/etc # rsync --verbose  --progress --stats --compress --rsh=/usr/bin/ssh --recursive --times --perms --links --delete --exclude "/boot" --exclude "*bak" --exclude "*~" --exclude "/proc" --exclude "/sys" --exclude "/dev" /* xx.xxx.xx:/newdrive


6. Copied /etc/fstab /newdrive/etc/fstab
7. Copied /boot /newdrive/boot

And now I am not sure what to do next. I presume I need to move the kernel and associated libaries over - how/where?

The alternative is ofcourse to rebuild the gentoo machine (with my USE settings), but again what I am not clear on is how to get Chris's kernels on the gentoo image I create, rather than thru the disto wizard.

Any ideas?

Thanks
Ro


Top
   
 Post subject:
PostPosted: Sat Dec 04, 2004 8:54 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
I think all that's left for you to do is grab my /etc/inittab and /etc/securetty files, and then reboot using your new disk image in a config profile as the boot drive. I can't think of much else I changed for Gentoo. Maybe the devfs config file, too, unless it already has the /dev/ubd/ entries.

The actual UML kernel resides on the host, so you don't have to worry about having a kernel installed in your filesystem.

-Chris


Top
   
 Post subject:
PostPosted: Sat Dec 04, 2004 9:07 pm 
Offline
Senior Member

Joined: Sun Nov 14, 2004 6:37 pm
Posts: 138
Website: http://oldos.org
WLM: jasonlfaulkner@hotmail.com
Yahoo Messenger: jasonfncsu
AOL: jaylfaulkner
Location: NC, USA
Would it be this easy to install a new "test" OS in vmware using debian?

_________________
Jay Faulkner
http://oldos.org


Top
   
PostPosted: Sat Dec 04, 2004 9:23 pm 
Offline
Newbie

Joined: Sat Dec 04, 2004 8:02 pm
Posts: 3
Thanks got a login prompt! but am getting the following warnings/errors:

Partition check:
hda: unknown partition table
hdb: unknown partition table

Warning: unable to open an initial console.

Also, now how do I get gentoo to start all my default level services (init.d)

Thanks


Top
   
 Post subject:
PostPosted: Sat Dec 04, 2004 9:25 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
You can ignore the partiton messages. And you did use my /etc/inittab, correct? I'm not so sure you should see the warning about the console.

Also, if your VMWare Gentoo booted into the correct runlevel, so should it under UML.

-Chris


Top
   
 Post subject:
PostPosted: Sun Dec 05, 2004 7:38 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
You specified --exclude "/dev" when you rsynced your installation across to the new partition, so where did your /dev come from?

If you haven't created / don't want to create all the necessary devices, you can cp -av the /dev from caker's distro to your partition.

Here's what I changed to get a Gentoo stage 1 install to run on a Linode:
Code:
fremont etc # diff inittab inittab.orig
32,38c32,37
< c0:12345:respawn:/sbin/agetty 115200 tty0 linux
< #c1:12345:respawn:/sbin/agetty 38400 tty1 linux
< #c2:12345:respawn:/sbin/agetty 38400 tty2 linux
< #c3:12345:respawn:/sbin/agetty 38400 tty3 linux
< #c4:12345:respawn:/sbin/agetty 38400 tty4 linux
< #c5:12345:respawn:/sbin/agetty 38400 tty5 linux
< #c6:12345:respawn:/sbin/agetty 38400 tty6 linux
---
> c1:12345:respawn:/sbin/agetty 38400 tty1 linux
> c2:12345:respawn:/sbin/agetty 38400 tty2 linux
> c3:12345:respawn:/sbin/agetty 38400 tty3 linux
> c4:12345:respawn:/sbin/agetty 38400 tty4 linux
> c5:12345:respawn:/sbin/agetty 38400 tty5 linux
> c6:12345:respawn:/sbin/agetty 38400 tty6 linux
fremont etc # diff securetty securetty.orig
1c1,26
< vc/0
---
> # /etc/securetty: list of terminals on which root is allowed to login.
> # See securetty(5) and login(1).
> vc/1
> vc/2
> vc/3
> vc/4
> vc/5
> vc/6
> vc/7
> vc/8
> vc/9
> vc/10
> vc/11
> vc/12
> tty1
> tty2
> tty3
> tty4
> tty5
> tty6
> tty7
> tty8
> tty9
> tty10
> tty11
> tty12
fremont etc # 

As caker said, the kernel is supplied by the host, but you need to copy the config (which you can get from here if you are using caker's latest 2.4 kernel) to /usr/src/linux/.config so that Gentoo is aware of which kernel it is running under.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Sun Dec 05, 2004 11:24 pm 
Offline
Newbie

Joined: Sat Dec 04, 2004 8:02 pm
Posts: 3
Ok, everything is working now, I had to remove hotplug etc from my runlevels.

I did copy /dev over from Chris's distro.

Couple of more questions:

1. What should I exclude safely and yet keep these in sync (using rsync) both from a backup perspective and a test/production type scenario. I am obviously going to exclude the files that I got from the distro + /dev + /proc + /etc/runlevels + /etc/init.d + /var/run + /var/log... What else? How about the /usr/lib files that are coming from the uml host?

2. Now that I have my Linode, what do I need to do to transfer my dns (www) from my isp over to here, what do I need to emerge, what registrations do I need to change?


Thanks for all the help so far!


Top
   
 Post subject:
PostPosted: Mon Dec 06, 2004 4:51 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
ramarnat wrote:
How about the /usr/lib files that are coming from the uml host?
I am currently using the /usr/lib that I built during my Gentoo stage 1 install. In the past, I have used the /usr/lib from caker's distro and emerge upgraded it without problems - except - be advised that linking glibc really bogs a Linode 64 down - I intend to use distcc next time.

ramarnat wrote:
2. Now that I have my Linode, what do I need to do to transfer my dns (www) from my isp over to here, what do I need to emerge, what registrations do I need to change?
You need to emerge net-dns/bind and net-dns/bind-tools. Once you have bind running on your Linode, tell your domain registrar the address of your name server. Alternative solution: use ZoneEdit - it's free for up to five domains, gives you primary and backup nameservers and saves messing with bind.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Mon Dec 06, 2004 6:23 am 
Offline
Senior Member

Joined: Sat Apr 03, 2004 7:44 am
Posts: 64
ICQ: 2623399
*click* .. bookmarked :)

thanks a lot you guys


Top
   
 Post subject:
PostPosted: Mon Dec 06, 2004 8:18 am 
Offline
Junior Member

Joined: Thu Oct 07, 2004 6:47 pm
Posts: 47
On a linode64 tinydns might be better suited. I switched from bind to tinydns because bind segfaulted regularly and was basically useless but I'm staying with tinydns because its memory footprint is really light and once understood (its configuration is nowhere like bind's one) I find it quite easier to maintain.


Top
   
 Post subject:
PostPosted: Thu Dec 09, 2004 7:37 am 
Offline
Senior Member

Joined: Sat Apr 03, 2004 7:44 am
Posts: 64
ICQ: 2623399
Also, some of you might be interested in this topic I started over on the Gentoo forums: http://forums.gentoo.org/viewtopic.php?t=246788


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group