1 |
Dirk Uys wrote: |
2 |
> On Wed, Nov 12, 2008 at 9:35 AM, Harry Putnam <reader@×××××××.com> wrote: |
3 |
> |
4 |
>> I should know how to do this but so many changes have happened |
5 |
>> recently and I haven't done anything like this for a very long time. |
6 |
>> |
7 |
>> My desktop version of gentoo is pretty far out of date. And I think |
8 |
>> there have been enough changes that I don't even want to try to get it |
9 |
>> cleaned up. |
10 |
>> |
11 |
>> Rather, I'd like to build up a newly installed gentoo to the point |
12 |
>> where it has all the stuff I want. But do it inside a vmware virtual |
13 |
>> machine. |
14 |
>> |
15 |
>> I'm trying to keep my working desktop in place until such time as the |
16 |
>> vmware gentoo setup is ready |
17 |
>> |
18 |
>> Once that install is up to speed with all my preferred apps in place. |
19 |
>> And any kinks worked out... |
20 |
>> Only then use it to overwrite my desktop OS. Or reformat that disk |
21 |
>> and move the vmware gentoo version to it. |
22 |
>> |
23 |
>> The vmware gentoo would be guest on a windows XP pro machine. |
24 |
>> |
25 |
>> I'd like to hear any comments concerning what problems I might run |
26 |
>> into or whether the plan is likely to be a serious mess. |
27 |
>> |
28 |
>> Also wouldn't mind seeing a rough outline of how to make that kind of |
29 |
>> move. |
30 |
>> |
31 |
> |
32 |
> I've thought about this myself, but I think there are some issues. The |
33 |
> hardware that vmware can simulate are limited and may not match your |
34 |
> actual hardware. This does not mean it's impossible, but you may need |
35 |
> to set network, graphics ,etc up again once the system is transferred. |
36 |
> |
37 |
> Guess the steps will be pretty much the same as for transferring |
38 |
> between partitions or similar machines |
39 |
> - make sure all the required modules for the target system is compiled |
40 |
> in the kernel. |
41 |
> - Update /etc/fstab to point to the correct devices. |
42 |
> - Update the grub.conf to pass the correct root. (btw, does anyone use |
43 |
> anything other than grub these days?) |
44 |
> - Use tar (with appropriate flags to keep permissions and symlinks in |
45 |
> place) to transfer all the files |
46 |
> - Install the bootloader on the target MBR |
47 |
> |
48 |
> I may have missed a few things, but that's everything I currently remember. |
49 |
> |
50 |
> |
51 |
> |
52 |
Harry was asking about going between two machines. I did something |
53 |
similar recently ((http://blog.garrysmith.net/?p=62#more-62) and used |
54 |
the following command to pass the output from tar directly to the |
55 |
destination machine over SSH: |
56 |
|
57 |
tar -cvzpf - ./bin ./boot ./dev ./etc ./lib ./lost+found ./media ./mnt |
58 |
./opt ./proc ./root ./sbin ./sys ./usr ./var | ssh -p8889 |
59 |
root@192.168.1.69 “cd /mnt/gentoo; tar -xzpf -” |
60 |
|
61 |
Unfortunately the symbolic links all came out as 0 byte files (not sym |
62 |
links), so in the end I fell back on rsync (over SSH) which did the job. |
63 |
|
64 |
How do you normally preserve symlinks using tar piped over SSH? |
65 |
|
66 |
An example of the rsync command I used was: |
67 |
|
68 |
rsync -avpe "ssh -p 8889" /home user@×××××××××××.machine:/mnt/gentoo |
69 |
|
70 |
|
71 |
The next time that I do this, I will just use rsync straight away and |
72 |
not use tar. The Gentoo Live CD has rsync (the Gentoo minimal install |
73 |
doesn't), so you should use the former (I booted both machines (one of |
74 |
them within VMWare fusion) from live the CD in order to do the copy. |
75 |
|
76 |
|
77 |
cheers |
78 |
|
79 |
Garry |