New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How to move ESXi VM to another ESXi server?
Hello,
I have 2 dedicated servers working with ESXi free edition.
Server 1: Running ESXi 5.5
Server 2: Running ESXi 6.0 U2
Virtual Machine is currently running on Server 1. It does have 100GB virtual disk. It's thin provision and in real size is 5GB.
Since it's free version of ESXi, it doesn't have vCenter and it doesn't have right-click migrate option.
So question is, how can I move VM on Server 1 to Server 2 with using ssh connection?
Comments
scp vm-10x-disk1.vmdk [email protected]:/vmfs/datastore1/a_new_folder
Then you create a new VM with the same specs and choose "Use an existing disk file".
Et voila!
I think veem has a free tool
You can export the OVF to your local machine and then import it. I know you said you want to use SSH, but this is one of the easier ways.
Copying the VMDK file manually over scp / rsync usually is the easiest way. This method also gives you the option to save bandwidth by using compression.
Once done, on the new host node, create a new VM with the same config like you had before. Use the option to use an existing exiting disk file.
Your VM should fire right up - version differences between ESXi should not cause any issues at all :-)
You don't need to create a new VM with the exact same specs, just browse the datastore and click "Add to inventory" or something like that.
Okay, I tried to do that.But I got this message. I can't able to connect Server 2 from Server 1 now.
ssh-keygen command also doesn't work.
Any ideas?
I found the solution.
For those who get this error message, you should remove old ssh keys from known_hosts file.
it's located in .ssh folder.