Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How to move ESXi VM to another ESXi server?
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.

How to move ESXi VM to another ESXi server?

chonkchonk Member

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

  • AndreixAndreix Member, Host Rep
    edited May 2016

    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!

    Thanked by 1chonk
  • pbgbenpbgben Member, Host Rep

    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.

  • LiteServerLiteServer Member, Patron Provider

    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 :-)

  • socialssocials Member

    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.

  • chonkchonk Member
    edited May 2016

    @Andreix said:
    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!

    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?

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    Someone could be eavesdropping on you right now (man-in-the-middle attack)!
    It is also possible that the RSA host key has just been changed.
    The fingerprint for the RSA key sent by the remote host is
    08:27:cd:d6:9b:36:cd:65:74:9a:4a:58:9c:99:c4:f4.
    Please contact your system administrator.
    Add correct host key in /.ssh/known_hosts to get rid of this message.
    Offending key in /.ssh/known_hosts:1
    RSA host key for 93.21.XXX.XX has changed and you have requested strict checking.
    Host key verification failed.
    lost connection
    

    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.

    cd .ssh
    vi known_hosts
    remove the lines
    
Sign In or Register to comment.