Windows 10: Mounting VMware Workstation snapshots with split vmdk files Solved

Page 1 of 2 12 LastLast
  1.    13 May 2018 #1

    Mounting VMware Workstation snapshots with split vmdk files


    I recently migrated from Hyper-V to VMware Workstation. As someone that has used Parallels Desktop on OS X (now macOS) for years, I find the capabilities (such as VMware Tools integration) of VMware as well as UI superior -- just my opinion.

    However, I am attempting to capture an image of a VM created in VMware Workstation to deploy on other PCs (similar to @Kari informative tutorial here). My issue is with Hyper-V, mounting a snapshot image via disk-mgmt was straight forward; but with VMware, my VM disk is based on split
    .vdmk files and am not sure which file to mount using the "File --> Map Virtual Disk" function.

    Also, out of curiosity, is there a way to mount the hard-disk of one VM inside another VM Guest OS? I would appreciate help from anyone and would also like to hear from @jimbo45 as you seem familiar with VMware as well.

    Click image for larger version. 

Name:	VM_capture.png 
Views:	2 
Size:	280.7 KB 
ID:	188515
      My ComputerSystem Spec


  2. Posts : 14,414
    Windows 10 Pro
       13 May 2018 #2

    KabyBlue said: View Post
    I am attempting to capture an image of a VM created in VMware Workstation to deploy on other PCs (similar to @Kari informative tutorial here). My issue is with Hyper-V, mounting a snapshot image via disk-mgmt was straight forward; but with VMware, my VM disk is based on split[/FONT][/COLOR] .vdmk files and am not sure which file to mount using the "File --> Map Virtual Disk" function.
    Why don't you just capture the image on VM instead? Instructions on tutorial you mentioned show how to do it. First check step 7.7 and create those two folders told in that step before sysprepping, and sysprep as told in steps 7.8 & 7.9. Continue from 7.10 to change VM boot order, booting it either from Windows install media or WinPE, and just follow the instructions to do the capture.


    KabyBlue said: View Post
    Also, out of curiosity, is there a way to mount the hard-disk of one VM inside another VM Guest OS? I would appreciate help from anyone and would also like to hear from @jimbo45 as you seem familiar with VMware as well.
    Open elevated Command Prompt, CD to folder containing your split VHD files. Enter following command to merge split VHD to one single VHD file:

    "C:\Program Files\VMware\VMware Workstation\vmware-vdiskmanager" -r SplitFileName.vmdk -t 0 NewMergedSingleVHDName.vmdk

    Kari
    Last edited by Kari; 13 May 2018 at 06:54. Reason: Serious typo fixed
      My ComputerSystem Spec

  3.    13 May 2018 #3

    Kari said: View Post
    Why don't you just capture the image on VM instead? Instructions on tutorial you mentioned show how to do it. First check step 7.7 and create those two folders told in that step before sysprepping, then continue from 7.10 to change VM boot order, booting it either from Windows install media or WinPE, and just follow the instructions to do the capture.
    Thnx for the response. And that's definitely a great option. I was still curios nonetheless on understanding which file to mount when dealing w/ split files.

    Kari said: View Post
    Open elevated Command Prompt, CD to folder containing your split VHD files. Enter following command to merge split VHD to one single VHD file:

    "C:\Program Files\VMware\VMware Workstation\VMware\vdiskmanager" -r SplitFileName.vmdk -t 0 NewMergedSingleVHDName.vmdk
    Am glad you brought up the "merging split .vdmk" file option @Kari as it's a segue to my next question...

    Personally, do you recommend using split .vdmk files or a single .vdmk monolithic files in regards to performance. When I was creating my VM, I had the option to go with either but chose split files based on the post from other users here and here and I figured as the split VHD option was the default, VMware must have a good reason why?
      My ComputerSystem Spec


  4. Posts : 14,414
    Windows 10 Pro
       13 May 2018 #4

    KabyBlue said: View Post
    Thnx for the response. And that's definitely a great option. I was still curios nonetheless on understanding which file to mount when dealing w/ split files.



    Am glad you brought up the "merging split .vdmk" file option @Kari as it's a segue to my next question...

    Personally, do you recommend using split .vdmk files or a single .vdmk monolithic files in regards to performance. When I was creating my VM, I had the option to go with either but chose split files based on the post from other users here and here and I figured as the split VHD option was the default, VMware must have a good reason why?
    First, before merging, I hade a serious typo in my post, I had replaced a hyphen in command name with a backslash (had typed VMware\vdiskmanager when it should be VMware-vdiskmanager). Command sample is now edited in my previous post.

    I have very little knowledge about VMware. I only know the basic command line options like how to merge split VHD but I have no further knowledge about the pros and cons of it. I am a Hyper-V fanboy and have very limited VMware experience.

    Kari
      My ComputerSystem Spec

  5.    13 May 2018 #5

    Hi folks

    @KabyBlue

    @Kari

    I'm confused as to what the OP wants to do

    If you've got both VM's up and running concurrently then just simple network sharing the HDD's (the fact they are virtual HDD's as far as the HOST is concerned is irrelevant.

    The other way is simply in the 2nd VM's configuration is to "Use existing Virtual Hard Disk" in the add hardware section.

    Click image for larger version. 

Name:	vhd.png 
Views:	1 
Size:	34.3 KB 
ID:	188523

    Although this is for create virtual machine -- same process is for existing VM's just go into edit config -- I'm running 4 VM's now so I cant edit those on the fly -- same idea though.

    Of course cloning VM's is easy enough either take a Macrium image from within the VM or just copy the whole thing (vmx, vdmk etc).

    Note though if creating / moving Windows VM's -- when the new VM starts up answer "I Moved it" rather than "I copied it" at first power on the VM otherwise you'll probably lose Windows activation.

    Cheers
    jimbo
      My ComputerSystem Spec


  6. Posts : 14,414
    Windows 10 Pro
       13 May 2018 #6

    After sysprepping a custom Windows installation on a VM, OP wants to capture it to an install.wim file. To do that there are two options: either boot the VM from WinPE and capture image with DISM, or mount the virtual hard disk of the VM on host and capture image on host.

    Kari
      My ComputerSystem Spec

  7.    13 May 2018 #7

    Hi there

    I still think the easiest way would be to just use something like Macrium on the VM

    then in new vm's you can boot the bootable macrium restore program (set that as the .iso in boot to firmware in the VMware workstation before powering on) and then capture the image created from the original VM. If the VM has networking with the host just copy the macrium image to the Host. Job done as you can then use the macrium program to restore the image to any number of VM's you want.

    But do say you MOVED rather than Copied the VM at first power on or windows activation will go bonkers.

    Cheers
    jimbo
      My ComputerSystem Spec

  8.    13 May 2018 #8

    Kari said: View Post
    After sysprepping a custom Windows installation on a VM, OP wants to capture it to an install.wim file. To do that there are two options: either boot the VM from WinPE and capture image with DISM, or mount the virtual hard disk of the VM on host and capture image on host.
    Thnx for clarifying my intent @Kari to @jimbo45. Appreciate you guys' help...

    I have run into a new issue, but this is in relation to capturing the image so am hoping any of you could help. I was successfully able to merge my .vdmk files into a single file and am now trying test capturing the image via my host -- Windows 10 ver. 1709 Pro x64. When I run the /capture-image command I get the following error...

    Click image for larger version. 

Name:	dism cmd.PNG 
Views:	4 
Size:	40.4 KB 
ID:	188537

    Click image for larger version. 

Name:	explorer.PNG 
Views:	2 
Size:	166.4 KB 
ID:	188538

    Click image for larger version. 

Name:	dismlog.PNG 
Views:	4 
Size:	199.9 KB 
ID:	188539
      My ComputerSystem Spec


  9. Posts : 14,414
    Windows 10 Pro
       13 May 2018 #9

    Your DISM command syntax is correct. Do you have Deployment Tools from Windows ADK installed? If so, run Deployment and Imaging Tools Environment from Start > W > Windows Kits as an admin instead of Command Prompt and try again.

    Deployment and Imaging Tools Environment has an annoyingly long prompt by default. You might first want to cd to root:

    Click image for larger version. 

Name:	image.png 
Views:	2 
Size:	62.5 KB 
ID:	188540
      My ComputerSystem Spec

  10.    13 May 2018 #10

    ... When I was creating my VM, I had the option to go with either but chose split files based on the post from other users here and here and I figured as the split VHD option was the default, VMware must have a good reason why?
    Split VHD is probably the most conservative and less performant option, if you need to move/backup to file system with size limit you're out of luck when your virtual disk is something like 100 Gb; top (among other vmware options) performance with preallocated disk space.
      My ComputerSystem Spec


 
Page 1 of 2 12 LastLast

Related Threads
Hi there vmware rel 14 out ( I guess they skipped V13 !!!) has a load of new features including Unity support for W10 , New CPU support, new guest OS support for various OS'es, support for latest V4 Linux kernels (both HOST and GUEST OS'es) etc....
vmware workstation 12.5.2 in Virtualization
Hi folks If you are running Linux Hosts this version of VMWARE workstation (and similar release of vmplayer) seems to have fixed problems of "wobbly mouse" etc -- also when scrolling inside the GUEST in windowed mode --I.E Windowed mode WITHIN...
Solved VMware workstation 12 player in Virtualization
I have used Hyper V mainly, but have given the latest VMware a go. So far I'm liking it. Something it does that Hyper V didn't is allow me to connect USB device. I have not figured out the setting so I can see my host drives though. How do I enable...
VMWare Workstation 10.4 in Virtualization
VMWare Workstation 10.4 is on the street. Up and running, and at the moment haven't had any problems running any OS.
Hi there Problem with installing VMWARE tools with Windows 10 x-64 using Windows host. Works fine on LINUX host !!!! (VMware workstation rel 10.0.3 build-1895310) Cheers jimbo

Tags for this Thread

Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 13:08.
Find Us