There are probably many was to do this sort of thing, however if you are looking at cloning/virtualising a server, I would point you to something like Storix although there are other products like Christie clone manager etc. I'm not sure if it will support your OS though, you would need to check.
If you just have a new server and need to get all sorts of (hopefully small) configuration files across, then you could:
- build an archive file (cpio, tar etc.) and FTP it before extracting
- NFS share from the new server and mount on the old so you can write the file(s)
- If you are very short of space on the old, you might use a tunnel:
- make a pipe file on the receiving server in /tmp/receive.pipe with mknod
- make a pipe file on the sending server in /tmp/source.pipe
- start reading the receiving pipe (for instance with tar) such as tar -xvf /tmp/receive.pipe
- on the source, use rsh/remsh/rlogin to open a telnet port connection, reading from one pipe and writing to the other pipe file something like (dd if=/tmp/source.pipe | remsh newserver "dd of=/tmp/arrive.pipe") &
- start your archive (with tar or whatever to match above) such as tar -cvf /tmp/source ./file1 ./file2 ./file3 ........
Hopefully this will all hang together across the network and channel the data across without the IO costs of really writing the intermediate files to disk.
You might try ssh instead of a remote telnet shell if that is available to your OS (I don't know how old it is)
- If you have ssh keys established so that there is password-less login from the source to the receiver, then you could probably scp each file. You might also try rsync if there are lots of files in a common directory (and below) to move across.
Always be careful of what you overwrite else the receiving server may become unusable of you overwrite the wrong things.
Looking at the issue of network connectivity, it may come down to what network adapter you have assigned to the VM. Do you have a default router configured that you can get to and get to other machines with for both the source and target? Perhaps your netmask is wrong for your routing. The output requested by
hicksd8 would be useful to narrow this down.
Kind regards,
Robin