VMware Cloud Community
youssefC
Contributor
Contributor

Cannot copy vmdk file properly using scp

Hi Smiley Happy

I am attempting to migrate a lot of VMs from old ESXi server (6.5) to new ESXi server (6.7)

I don't have VMware vCenter (i don't know if i can install vcenter into VM)

for that; i use scp to copy the VMs files between the two ESXI,  but, when i connect to my ESXI (6.5) and tape scp "Mailcatcher.vmdk" root@172.16.88.22:/vmfs/volumes/datastore1/Mailcatcher , only 505B is copied :smileycry: , the real size is 25GB. author file like ctk.vmdk and -flat.vmdk is copied properly

I don't have any snapshot in my VM

Any idea or any suggestions to do this migration?

12 Replies
VysakhNair
Enthusiast
Enthusiast

Hi youssefC

Do you have any shared storage which is common to these hosts ?

Without vCenter (in turn vMotion will not be available) , there is one way to move your VM files from 1st host to other datastore which is hared and then register on 2nd host but you need at-least shared datastore.

Thanks

Vysakh Nair

Blog:- https://www.vxpert.in

Please consider marking this answer "correct" or "helpful" if you think your question have been answered correctly. Vysakh Nair Blog - https://www.vxpert.in
0 Kudos
youssefC
Contributor
Contributor

I don't have a shared storage

i can't use scp ?

0 Kudos
VysakhNair
Enthusiast
Enthusiast

Hi youssefC

You have below options to do

  • Standalone converter
  • Datastore browser (download and upload files)
  • SCP and then add the VM to the inventory with datastore browser

scp -r /vmfs/volumes/volume1/path/to/vm-directory esx2:/vmfs/volumes/volume1

Thanks

Vysakh Nair

Blog:- https://www.vxpert.in

Please consider marking this answer "correct" or "helpful" if you think your question have been answered correctly. Vysakh Nair Blog - https://www.vxpert.in
youssefC
Contributor
Contributor

Thank you

I will try Standalone converter and also with scp

with datastore browser, i can't upload disk to remote datastore (author server)

0 Kudos
VysakhNair
Enthusiast
Enthusiast

Hi youssefC

With Datastore browser you can download to your machine and from there upload to second esxi host datastore

Thanks

Vysakh Nair

Blog:- https://www.vxpert.in

Please consider marking this answer "correct" or "helpful" if you think your question have been answered correctly. Vysakh Nair Blog - https://www.vxpert.in
0 Kudos
youssefC
Contributor
Contributor

i can use Vcenter into simple VM ? or i need a specific server ?

0 Kudos
VysakhNair
Enthusiast
Enthusiast

Hi youssefC

vCenter Server Appliance,vCSA a virtual appliance that is based on Linux which you can run on ESXi host.

Thanks

Vysakh Nair

Blog:- https://www.vxpert.in

Please consider marking this answer "correct" or "helpful" if you think your question have been answered correctly. Vysakh Nair Blog - https://www.vxpert.in
0 Kudos
continuum
Immortal
Immortal

mailcatcher.vmdk is only 505 bytes ?

mailcatcher-flat.vmdk is 25 gb ?

Then your scp operation was  successful

You can use the same procedure to copy the other VMs.

Only thing left to do is to open mailcatcher.vmdk with a texteditor and read it !

This hopefully will teach you that your assumption that mailcatcher.vmdk has a size of 25 gb was wrong.


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
youssefC
Contributor
Contributor

mailcatcher.vmdk is 25 gb

scp can copy from mailcatcher.vmdk  only 505 bytes

0 Kudos
continuum
Immortal
Immortal

You obviously did not follow my suggestion to actually read the 505 bytes file.

If you do that you will realize that your problem exists between keyboard and chair only.

By the way .... what do you think  the 25 gb flat.vmdk you copied is good for ???

So read that 505 bytes file NOW


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
youssefC
Contributor
Contributor

the 25 gb flat.vmdk is copied fully

0 Kudos
continuum
Immortal
Immortal

And ?

Did you try to launch the copied VM already ?

It should work ...

Maybe you are not aware that the Datastorebrowser over simplifies the display of the files in a VM directory.

Wonder why the engineers thought that displaying VMDKs as a single file while they actually consist of one small text file plus one large binary file would be userfriendly.

Obviously this just confuses unexperienced users.


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos