We help IT Professionals succeed at work.

Debian Linux

Jack_son_
Jack_son_ asked
on
How can I migrate debian servers from one virtual environment (hosted on Zen) to another virtual environment (hosted on VMWare 4) using only  a vpn connection.  I have tried using vmware converter but this fails.  Is there a tool I can use to migrate these easily?
Comment
Watch Question

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
GOLD EXPERT
Fellow
Expert of the Year 2017

Commented:
the issue is likely to be the bandwidth of the VPN connection?

what was the error message and percentage, at which the conversion failed?

Author

Commented:
it almost seems it couldnt install the vmware tools on the debian; this version of the debian is very thing and only has the command line, apache and ssh installed.

also, it actually was not able to copy any of the vm.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
GOLD EXPERT
Fellow
Expert of the Year 2017

Commented:
Just do a basic conversion, without specifiying any specific options, e.g. install vmware tools, once you have the virtual machnine on the VMware host, later you can power on and update and install VMware Tools.

Author

Commented:
I am using the vmware stand alone converter, here is the error:   The  error it recieves is "unable to detect disks or volumes on the source machien.  Please make sure that the source is a supported Linux Distribution".
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
GOLD EXPERT
Fellow
Expert of the Year 2017

Commented:
is this VMware vCenter Converter Standalone 5.0?

Author

Commented:
no its version 4 and tried with version 5, I get the same errors.
Commented:
For debian I think the easiest way to migrate the VM is using rsync, because VMware tools dont have binaries for debian, they have to be built from source. This requires the building system installed on debian (build-essential package) and the kernel-headers for the running kernel (linux-headers-xxx), but it might still have some errors which will prevent the conversion.
In your place I would do the following
1. Install the same version of debian to the new infrastructure. Just the core, with networking, and rsync.
2. On the source machine install rsync too.
3. On the source configure rsync to run as a deamon.
4. On the target make a backup copy of /etc/fstab and boot config (/boot/grub/menu.lst?) in the case you forgot to exclude them in the sync process. Changing them would prevent your system from booting up.
5. On the target run rsync and sync the files in /(root). exclude from the selection /boot, /proc, /dev, /sys, /tmp, /etc/fstab, Consider excluding /etc/network/interfaces, but it depends on your system. something like: rsync --verbose  --progress --stats --compress       --recursive --times --perms --links --delete --exclude "*bak" --exclude "/boot" ...... source_server:/* /
6. Stop almost all services on the source server, then rsync again.
7. reboot the target server.

Now your server should be identical to the one you synced from.
Check network settings, if the IP addresses are different modify your /etc/hosts file accordingly

Author

Commented:
This was the only tool I could get to work with the debian distribution

Explore More ContentExplore courses, solutions, and other research materials related to this topic.