VMware Cloud Community
Amann
Contributor
Contributor
Jump to solution

Move Virtual Machine from one Datastore to another

Hi there!

We have a ESX 3.0.2 Standard Server new installed here.

I have installed a new Virtual Machine on the local datastore.

I have also connected a LUN on our NetApp via iSCSI.

Now I would like to move the Virtual Machine from the local datastore to the iSCSI-LUN.

Can anyone tell me how I can do that (no VC-Server available here)

Regards

Andreas

Reply
0 Kudos
1 Solution

Accepted Solutions
Nautilus
Enthusiast
Enthusiast
Jump to solution

connect to vi3 host with putty

than clone the vm (shutdown down this vm before you start)

vmkfstools -i /vmfs/path1/path2/source-vm.vmdk /vmfs/path3/path4/destination-vm.vmdk

and than create a new VM and use the cloen of this vm

I Hope this helps you.

Nautilus

Kind regards Nautilus ________________________________________________________________________________________________________________________________________________ If you found this or any other post helpful please consider the use of the Helpfull/Correct buttons to award points

View solution in original post

Reply
0 Kudos
5 Replies
Nautilus
Enthusiast
Enthusiast
Jump to solution

connect to vi3 host with putty

than clone the vm (shutdown down this vm before you start)

vmkfstools -i /vmfs/path1/path2/source-vm.vmdk /vmfs/path3/path4/destination-vm.vmdk

and than create a new VM and use the cloen of this vm

I Hope this helps you.

Nautilus

Kind regards Nautilus ________________________________________________________________________________________________________________________________________________ If you found this or any other post helpful please consider the use of the Helpfull/Correct buttons to award points
Reply
0 Kudos
Amann
Contributor
Contributor
Jump to solution

Ok, I tried to connect to the server via putty.

I could not login as root

So i created a new user with "administrator" rights and with that I can login.

But when I try to enter your command I get the error-message:

-bash: vmkfstools: command not found

EDIT:

Also if I login as the new user and do an su command (as I read that the vmkfstools are only allowed to be run be the user root) I get the same error-message (command not found)

Smiley Sad

EDIT2: Now I did a su -l and now the command is known. :smileygrin: But I get the errormessage

DiskLib_Check() failed for source disk The system cannot find the file specified. (25)

But I think thats only a question of the correct path, I will find the correct path... Smiley Wink

THANKS for your help!

Message was edited by:

Amann

Reply
0 Kudos
cheeko
Expert
Expert
Jump to solution

run "su -"

With the "-" you'll get the system variables of root.

Amann
Contributor
Contributor
Jump to solution

Thank you guys for your fast answers, that just worked perfect!!!

Reply
0 Kudos
gomats
Contributor
Contributor
Jump to solution

Connect to ESX server

- Run command prompt

- Navigate to the ‘C:\program Files\VMware\VMware VI Remote CLI\bin’ directory

- Run ‘svmotion --interactive’

- Enter the virtual centre:ESX server

- Enter username:

- Enter password

- Enter datacentre name

- Enter the datastore path of virtual machine: servername/servername.vmx

- Enter destination datastore: Destination datastore where you wish to migrate

- Individually place the disks (yes/no)?: No

- Wait for process to complete

Reply
0 Kudos