Move-VM convert VMDK to sparse to thin

I have a situation where I'm trying to move a sparse vmdk in another data store and convert them to a slim format in the process with Move-VM.  I am able to do it with the GUI successfully, but when I try to do it with $vm. Move-VM - Datastore $NewDS DiskStorageFormat - thin, the virtual machine is migrated, but the disk is converted to a thickness.  $vm is the VM object and $NewDS is the subject of the data store to a local VMFS data store that I'm moving the virtual machine.  The location of the sparse vmdk resides on an NFS share.  , My Version PowerCLI is 5.5R2.

I could get this to work in a scripted manner using a LucD code snippet in this article (Move-VM to the cluster with DiskStorageFlag data store throws the error message.) but I just cut the section of cluster datastore.

Did anyone else seen similar problems of Move-VM?  Seems to me that it may be a bug.

Then it seems more that you could have found a bug.

I advise you to open a SR with VMware Support, and Yes, PowerCLI is supported

Tags: VMware

Similar Questions

  • Get the mistakes reached Maximum Volume Snapshots, trying to convert VMDK XP system hotcloning with converter last worm

    Hi I get this error reaches Max Volume Snapshots re trying to convert VMDK XP system with converter hotcloning latest version 5.5.1. Error results in the conversion of a physical machine to fail at 1%.

    I'm trying to convert a drive with a dual boot XP - 2 Xps on it for a Player 6 - a VMware VMDK as a C partition with W98SE original who no longer use.  The C partition has the bootloader boot ini for the dual Xps located on J and I have partitions.  Other partitions on disk cloning whole (need set as Xps access these disks at startup are: D, E: Docs program and shared (a logon for XP user profiles) and F, G and H (contains HD virtual 98SE VirtualPC) partitions.)

    I'm running a chkdsk /f /r on all partitions and deleted snapshots of volume system (from system restore) and disabled the system restore in case that is the question.  I also tried to disable firewall as shown in the manual and stop several 3rd party services to run.  Do not use additional options when cloning.  Target is a 1 to free space (more copy partitions/disc) on a USB external drive '3 '.

    I tried also with just J and no Partition selected with others and same error so not deliver the prob a system double - but do not know if the two will be not bootable in Vm together via boot ini choose as yet have on the physical machine.  Anyone know if this still works as a dualboot on VM or should I be cloning each with C separately like J or I become C as their drive letters are associated with many years of program installs don't want again.  Not sure if can fix these at the same time to be able to start or if on separate drives in the VM and always have access to all other partitions of two Xps - someone knows how to do better?

    Also re my mistake - it's mainly what need fixed so he can achieve it - or it will be allowed to do this conversion coldclone via Windows 8.1 I on another drive - however C drive I need appears as a V as W81 is C on the host.  This will allow even a dual boot VM or at least one of the Xps or bootable drive v - maybe if I move it to C partition 1st position when copying VMDK?  Please keep in mind I have no job and only will use VmWare Player 6 or try in VirtualBox or Hyper-V on the host Windows Pro 8.1 if VmWare Player fails.

    Thank you, but I had already done this and always says without clichés or none - questions - after even managed to fix my COM + install as well.

    Alternative SOLUTION for those who have problems making their host Xp Vm hotclone

    I finally used MOA Cold Clone ISO converter to make a virtual machine of my XPs and related partitions and now finally it seems to work after the configuration of the virtual machine created with the latest Vmware converter 5.5.1 (just to add Vmware Tools and remove selected restore points) via my host Windows 8.1 (such that it is impossible to configure via MOA but fact VM thin image).

    Anyone with problems of manufacturing since their host XP VM and if want to make a VMware Player image - search the Internet for MOA Cold Clone converter (it uses a worm old VMware Converter 3 that allows cold cloning, I think that later to not)-it was relatively easy to install and use.

    I could also dual boot via the boot ini file as before my 2 XP systems.

    Make sure you just prΘconfiguration your ini file to start I did before the virtual machine to the physical host partition is on - I've added a few other partitions to start from tests in case of boot partition number has changed as he did.

    For example: my Xp scores came after the 1st Partition C (boot ini containing the partition) and also a 2nd Partition - D and 3rd Partition - E (I left out F and G as agreed is no need as on the host) so my first XP became Partition 4, then 5 other XP Partition so in boot ini, I had put this :

    [boot loader]

    Timeout = 10

    default = multi (0) disk (0) rdisk (0) partition (5) \WINDOWS

    [operating systems]

    "multi (0) disk (0) rdisk (0) partition (5) \windows="XP Pro SP3 HAND J - C Bootini "/ EAP/fastdetect / 3 GB USERVA 2560/noexecute = OptIn

    "multi (0) disk (0) rdisk (0) partition (4) \windows="XP REPLACEMENT / OLDER I DRIVE - ADMIN USE ONLY - repair/rescue/Backup "/ PAE USERVA 2560/fastdetect/noexecute = OptIn

    multi (0) disk (0) rdisk (0) partition (6) \windows="TEST PARTITION 6" / EAP/fastdetect / 3 GB USERVA 2560/noexecute = OptIn

    multi (0) disk (0) rdisk (0) partition (7) PARTITION 7 "\windows="TEST / EAP/fastdetect / 3 GB USERVA 2560/noexecute = OptIn

    multi (0) disk (0) rdisk (0) partition (8) \windows="TEST SCORE 8" / EAP/fastdetect / 3 GB USERVA 2560/noexecute = OptIn

    multi (0) disk (0) rdisk (0) partition (9) \windows="TEST PARTITION 9" / EAP/fastdetect / 3 GB USERVA 2560/noexecute = OptIn

    Test scores from 4 as I thought new shoe that would be 4, then 5 and then others added in case

    You will need to change the number depending on how much other partitions are in front of your XP ones.

    I used free Easeus Partition Manager to control the order of the partitions I was cloning the drive.

    A free EasyBCD allows you also to modify and label your partitions to change your boot.ini file easily once you start in the right partition to boot ini that you set up above and before that you do / clone your Virtual Machine.

    Note: the boot ini can only contain a limited number of registrations or bloodlines tests then you partition carefully probably not exercising that your operating system will be on after cloning a Vm.

  • Convert VMDK to RDM

    What is the best way to convert VMDK to physical RDM. ? in the process of the esx upgrade, but I would like to convert vmdk to RDM.

    ESX 3.02, vcenter 2.5.

    Thank you.

    There are a few methods.  You can use VMware Converter, you can turn off the virtual machine and a migration to cold for a new logical unit number, or you could do a new LUN sVMotion.

    .. .but since you 3.0.2, you cannot use sVMotion

  • Convert vmdk thin provisioned thick, no risk of lost data on vmdk?

    Dear all,

    I need to figure out if it is possible to inflate a vmdk who was originally also thin stocked but now for some reason, we believe that it must be thick, is it possible now?

    -Turn off the virtual machine

    -Go to the virtual machine folder in the data store, make right click the vmdk and inflate

    -power on the new virtual machine

    Is this necessary? If the machine with two virtual hard drives and they both are thin, can inflate us both during the window of time to stop?

    Please share any possible problems into above account in the light of the case.

    Kind regards

    Just a note: the article contains one sentence which IMO must be formatted in fat and Red:

    There should be no snapshots and the conversion is performed on the basic disk

    Check remove you / commit all active snapshots before trying to inflate basic disks!

    André

  • Need to convert vmdk using pRDM vmkfstools command

    Need to convert to pRDM vmdk format command. tried to convert using cold migration that it stuck at 23 percent. Are there vmkfstools or powercli to convert?

    You can try the host command line is:

    vmkfstools -i /vmfs/volumes/source-ds/source-vm/source.vmdk/vmfs/volumes/target-ds/target-vm/target. VMDK

    You can optionally add thin d in case you want to that thin target to be configured.

    What you need to do - before running the command - is to ensure that the size of the disk in the hard file corresponds to the actual size of the LUN in case the LUN has been resized / increased at some point.

    André

  • Convert VMDK in multiple VMDK

    Hello

    I have a virtual machine with an attached vDisk.

    There are partitions, both are on the same stored vmdk (see attached image)

    Is there a way I can get each partition on an own vmdk file?

    Unforunately it is not possible with vmware converter...

    Page54 check http://www.vmware.com/pdf/convsa_50_guide.pdf for the procedure to move a volume to another virtual disk.

  • With movie maker convert a frame to a photo?

    Hello

    I want to take a picture of filmmaker and make a photo?  Can copy some images in "Windows Live Photo Gallery", I don't and then convert it to a jpeg file or similar.

    Any advice?

    I downloaded a file 5 sec on YouTube last week just to get pictures, but it is not effective if I want to take about 50 photos from a video file of 1 h

    I think that this should be possible.

    Hello

    I want to take a picture of filmmaker and make a photo?  Can copy some images in "Windows Live Photo Gallery", I don't and then convert it to a jpeg file or similar.

    Any advice?

    I downloaded a file 5 sec on YouTube last week just to get pictures, but it is not effective if I want to take about 50 photos from a video file of 1 h

    I think that this should be possible.

    ==============================
    You run Vista Movie Maker 6 or
    Windows Live Movie Maker?

    In Vista Movie Maker 6... try the following:
    Reach... Tools / take picture from Preview...

    Not an option in Windows Live Movie Maker.

    Or... you can use one of the following values
    Freeware to make the screen capture:

    =====================
    Media Player Classic
    =====================

    Media Player Classic
    http://www.filehippo.com/download_media_player_classic/
    (just unzip and run it... (no installation required)

    For the screenshots in Media Player Classic...
    Try the following steps...

    Open Media Player Classic and go... View.
    Options / Playback / Output in the right pane.
    tick... Default system / apply / OK

    Now play your video clip and type...
    ALT + I
    to make the capture. You don't have to take a break
    but it makes it easier to get the image you want.

    =====================
    VLC Media Player
    =====================

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    VLC Media Player
    http://www.videolan.org/

    For the installer for your screen Capture... Open VLC and
    Reach... Tools / Preferences / video button / video
    Instant image section.

    In the directory field... Search for and select a folder
    to save your captures po (for example... you could
    Create a new folder on your desktop and select)

    TO... Prefix... check the box... Sequential numbering.

    TO... Format, choose JPEG or PNG.

    Finally... on the left, click on the Save"" button.

    Now... Play the video and pause by pressing on your
    SPACEBAR when you see a screen you want to capture.

    To capture the screen... type...  SHIFT + S

    Press space to advance to the next photo...
    ect... etc...

    =====================
    Picasa
    =====================

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Picasa
    http://Picasa.Google.com/

    When you play a video in Picasa, you'll see a
    "Take Snapshot" button in the left pane.

    .

  • Windows Movie Maker - convert wmv files

    How to convert windows movie maker files wmv files

    How to convert windows movie maker files wmv files

    ==========================================
    Project Windows Movie Maker .mswmm files are you referring?

    To publish (save your project .mswmm to .wmv format files)...
    See the following articles:

    Windows Vista-
    Publish a movie in
    Windows Movie Maker
    http://Windows.Microsoft.com/en-us/Windows-Vista/publish-a-movie-in-Windows-Movie-Maker

    Movie Maker Vista-
    Quality profiles / editions
    http://www.Papajohn.org/Vista-publishing.html

    John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Ways to convert VMDK files

    Hello

    We recently had a server crash, and I decided to rebuild the server and put ESXi 4 on it.

    However, backups, I have old machines are on disks formatted in NTFS (not USB, they are in our backup machine) which means that they are unable to be mounted (AFAIK) under ESXi.

    The problem I have is that the VMDK files I have are the old version so not compatible with the curernt ESXi. I know I can convert them using vmkfstools (with i - pass memory) but I have two problems with this. First of all I have to bring to the ESXi server initially, and since we look at about 5 TB of data it will take FOREVER (been running for 2 days - even far complete) and the second is even if I get them on the server, I'll need another 5 TB of disk space to convert them to , which I did not.

    So my question (s)

    1 - is really not in any case to mount a NTFS (not USB) under ESXi drive - like that I could simply convert from the backup to store data (and easy) drive

    2. is there a converter of the VMDK files offline?

    3. is there a way to change the NTFS drive into a format readable by ESXi (ext3/resierfs/something) without losing data

    4. is there a way to optimize network transfers maybe?

    5. is there another solution that I could look at

    Thanks in advance

    Bob

    Whoa Whoa Whoa, back up the truck.

    You can use VMware Converter to do this and save yourself a TON of headaches.

    First of all, what version of VMware did you use ALREADY in the VM host? VMware Server? VMware GSX? VMware ESX 3.5 - 2? VMware Workstation?

    Second, do you have JUST the VMDK files? or are you support VMX files as well? If you do not the VMX, you have headaches on several levels. Converter needs the VMX file to know how many processors the virtual machine was, he had what hard drive controller, etc. to perform a proper conversion. If you do not have the VMX (and just the VMDK) files AND running ESX 3.x, you can redo the VMX file by doing a NEW VM on the ESXi 4.x server and attaching the VMDK file to it. You need these VMs as VM hardware version 4 (NOT 7), and 'best' guess as to what kind of equipment they had for the network card, card scsi, etc. This could put you in the right direction very fast and would be easy to test it on one of the smallest virtual machine if you had all tiny.

    Thirdly, what you used to get backups of virtual machines before?

    This might be easier to do offline, do not hesitate to email me at jonmkohler AT gmail DOT com and I would be happy to give you a hand with that. If not, put the answers here.

    Jonathan Kohler

    VCAP4-DCA / DCD

  • Possible to convert vmdk to real HDD?

    Hi all

    I have set up an installation of kubuntu 10.04 on my laptop just now and that you have customized, have all my development toolchains installed etc and set up but I would now move to a real virtual hard disk to a hard drive or rather partition.

    I use workstation 7 on windows 7 x 64.

    I was counting on the creation of a 30 GB ext4 partition that will only serve the hard drive for the virtual machine of kubuntu.

    but of course, I don't want to put everything again. so is it possible to have the kind of workstation to move the entire virtual machine in this new, real partition? or clone the whole to the partition vmdk, somehow so I can essentially remove the vmdk (and win those 30 GB back) and the whole system is run from the actual partition?

    Yes - you can use vmware - vdiskmanager.exe

    before use - stop the virtual machine.

    Open the vmx file used by this virtual machine and find correct filename used right now.

    This may look like

    ide0:0. FileName = "my vmdk.vmdk."

    or

    scsi0:0. FileName = "my vmdk.vmdk."

    Once you have this file name open a cmd and change directory where you have installed workstation.

    Type

    VMware-vdiskmanager

    This should popup help.

    Then type

    vmware-vdiskmanager -r "C:\path to my VM\my-vmdk.vmdk" -t 3 "C:\path to my VM\preallocated.vmdk"
    

    This copierait the vmdk existing in a new growable preallocated vmdk divided in 2 GB chunks. Type works well and it is easier to keep unfragmented then one-piece preallocated type.

    Good to hear you change your mind

    ___________________________________

    VMX-settings- Workstation FAQ -[MOA-liveCD | http://sanbarrow.com/moa241.html]- VM-infirmary

  • Convert vmdk to vhd

    Hello

    I got a virtual hard drive of an application. I'm looking to convert a vmdk. I tried to use converter to do, but it does not seem to recognize it as a usable format. I must be trying to convert, or should I try something else instead?

    Kind regards

    Stephen

    See also Starwinds Converter - it is a 'no-nonsense' disc format converter... very useful

    ___________________________________

    VMX-settings- VMware-liveCD - VM-infirmary

  • Reduction of machine convert vmdk size?

    Recently, I've converted a physical machine into a virtual machine.  The hard drive on the machine was 150 GB, but only 40 GB is actually used.  How can I remove the space that is wasted?

    I tried to use the adjustment in vmware tools tool, but who don't seem to do anything.

    You must use VMware Converter to do that. Do a V2V and the wizard will ask you to 'change the layout' for your drive

    Type the size you want and let's go

  • Convert a disk of thin thickness without interruption

    Can I convert all disks on a thin thickness virtual computer without turning off the virtual machine?

    Yes, if you have the Storage vMotion available in your environment... just migrate the virtual machine to a data to another store and select the disk of destination in. thick.

    Have a look here: http://www.mikelaverick.com/2014/04/back-to-basics-advanced-virtual-machine-administration/

  • Thin provisioned VMDK consume all available space

    Hello

    • Server: Win 2008 R2 with SP1 (file server)
    • Storage: VMDK on VMFS5 datastore (thin provisioned), which underlies the SAN fiber storage
    • vSphere: vCenter Server Standard 5, ESXi 5.0 Patch 2 (build 515841)

    ... So, I have a VM file server running Windows 2008 R2 with SP1.  The system (c) partition has been successfully thin (VMDK using 13 GB to 40 GB).

    However, for all subsequent hard disks virtual created on the server, the NTFS partition is very slow to get into shape - and the actual size of the VMDK creeps slowly up to the size of the VHD (you can see the gradual rise of the VMDK size in the browser to store data during the formatting process).

    The VMFS data store that we create new virtual hard disks is version 5.  All virtual machines with virtual hard disks on VMFS version 3 seem to be supplied thin OK.

    Nobody knows what could happen here?

    Hello

    Do you use quick format?

    Otherwise, your score will take up any space. Check here:VMware KB: using thin provisioned disks with virtual machines

    "If a guest operating system needs to use a virtual disk, the must invited first operating system partition and format the drive in a file system it can recognize." Depending on the format selected in the guest operating system, the format can cause the disc thin provisioned in full size.

    For example, if you have a drive end with a Microsoft Windows operating system implemented and format the drive, unless you explicitly choose to fast formatting, Microsoft Windows format tool written information to all sectors on the disk, which in turn inflates the disc thin provisioned in full size. "

    Kind regards

    Julien.

  • How to convert a thickness thin provision

    Hello

    I converted physical machine to virtual .during this process, I chose to files on the hard drive thick delivery.

    now I want to convert all files to provision thin to save storage.how can I convert thick to thin provision.

    I haven't used this link procedure Storage vMotion is much easier, and yes it free your place if you go thin thickness.

    This link may be also useful: http://www.thelowercasew.com/reclaiming-disk-space-with-storage-vmotion-and-thin-provisioning

Maybe you are looking for