please provide some more information about your Virtual Environment,
is this ESXi based VM?
if so, you will find 2 VMDKs making up virtual disk. you got to take both together to attach with another VM.
with standard namings, let's say you have created a VM with name VM01, and it has a virtual disk attached, when you browse datastore, you will see two files
VM01.VMDK & VM01-FLAT.VMDK
if you copy both of these (please power off your source VM first), take both files to your other VM where you want to attach it and try to attach, you would be OK to make use of it.
To do this Access ESXi shell:-
1. Go to the Location where your VM is created:-
Note:- this is case sensitive
2. cp vmname.vmdk targetlocationpath
3. cp vmname-flat.vmdk targetlocationpath
Please post a screenshot of your environment using which you are managing these VMs.
OK, so it's vSphere web client that you are using, in this case browse datastore doesn't show you both the files.
Please follow steps described bellow
Please go to Host & Cluster Inventory
Select your ESXi host
go to 'Manage' Tab -> Settings -> Security Profile -> Services then Click on EDIT button
Start SSH service.
Please use WinSCP to login in your Esxi host and navigate to VM folder like in following screenshot, I have navigated upto a Folder which is my VM name: Win10A
and it has a virtual disk, if I want to take virtual disk from this VM to a different VM, than I got to copy two files which are highlighted.
both together are forming your virtual disk.
download those two files and upload them to another folder where you second VM is residing, then try to attach it with that VM.
Thanks a lot! It was helpfull for me!
Hi all! How can I copy a virtual disk file to some location for further use by another VM? I've tried to simply copy .vmdk file, but it doesn't worked for me - the copy is about 1 KB size and I can't add it as existing hard disk to another vm. Can anybody help me?