Help. VMDK files lack also in backup (Fusion 2.0.8)

Given that my virtual machine running properly,

I decided to replace the file with a back-up.

Only the back-up seems to be missing the 4 files .vdmk.

(I wonder what could happen )

But these issues are the most important right now:

1 is there a way I can start virtual machine?

2. is there a way to recover the data that was on the virtual disks?

Thanks in advance.

Did you manually create the Excel file? I'm asking because of the .vdmk extension, which should be hard.

If I undesrstood this correctly, you have a full backup of all the files from which you retrieved the VM? If this isn't the case, I recommend that you back up the file before doing anything.

How I see it, you can be lucky, because you have very large snapshot files, which means that most of the data blocks have been changed. What you could do is to simply recreate the 4 missing files. You can easily do this by copying one of the 320KO files and renaming them. If you get errors after the power of the virtual machine, please attach the latest vmware.log file.

André

Tags: VMware

Similar Questions

  • Copy only the vmdk file to create a backup

    I'm totally new to VMware ESX 4, but decided to allows you to host a web server on Windows 2008 Server vm, after about two weeks of reading and the VMware ESX product testing. I have used other products virtual machine last year or so for other projects.

    Why not just copy the vmdk files to create backup vms? That is problem? I have not to perform the clone at the same time as any other vm used to create or created from the vmdk file copied. I tested with a NT4 Workstation vm, because the files are small and can be copied and moved quickly, and I didn't have problems.

    I use the Vsphere Client to copy the vmdk file to a folder at the root of the data store and then by creating a virtual machine, naming the vm the same as the folder.  I created a model of the virtual machine to w2008 use Vsphere standalone converter, but the vmdk copy is so much easier and faster that of re-run the converter again on the model should I need.

    I created a Windows Server 2008 virtual machine and want to test before installing Tomcat and MySQL. The operating system should get messed up, I thought that I could start over with just using the current vmdk file, I copied. Yet I don't trust using snapshots, etc. I have also created many Linux VM on the ESX Server for analysis of the use of Tomcat on them. I also have a XP Pro VM as an alternative to emergency. It is XP Pro on a computer that hosts the web site of Tomcat/MySQL production - slowly.

    Thank you

    Homerun

    Take a look at http://communities.vmware.com/docs/DOC-8760 for a script that can automate Virtual Machine cloning. When you start a virtual machine that has been cloned ESXi will prompt you to "I copied it" or I moved it"etc. If it is a copy, you would respond with "I copied it" and ESXi change MAC, etc. of the UUID. The only required files are files VMDK and VMX file. Others will be re-created when the machine is added to the inventory.

    In regards to the tools, I would install them. It also includes drivers to allow the host ESXi communicate with VM for things like the soft stop etc.

  • Rename the vmdk file?

    Is it possible to rename a VMDK file?

    Ive traveled to the data store and can see the vmdk file and also the - file ctk.vmdk but when I right click the option rename is gray.

    So, how do rename you?

    Thank you

    Stewart

    You can rename the vmdk and not rename the object itself, but the vmx file needs to point the the renamed disk files.  It is in this article, http://kb.vmware.com/kb/1002491, which I pointed out above.

    in the .vmx file, you will see something like

    scsi0:0.fileName = "OpenSUSE.vmdk"
    

    .

  • Help recovering files flat.vmdk supplied thickness necessary!

    Hi all

    First of all, some background on my current configuration (and I'll try to keep it short and sweet)...

    I have 3 1 than to hard disks in a 5.x ESXi host I use in a RAID5 array.  The RAID is actually implemented and managed by a guest Windows Server 2008R2 VM on the host.  When I created data warehouses to build the table, I've formatted each of hard drives and added inside the vSphere Client as VMFS data stores.  When I added the readers to the configuration of the VM of comments, I put them to be supplied thick lazy-reset and all 3 have the same size (930.2899996 GB).  Each disc has an and a single VMDK and this VMDK takes up most of the usable usable VMFS partition sectors.  Inside of the guest, the virtual disks were formatted using Windows Disk Manager like dynamic GPT disks without starting and then adjust upward in a RAID5 array.

    What has happened...

    A week or if there is during a backup/cleaning of the virtual machine, I accidentally deleted a 2nd guest VM which has also consulted with data warehouses (I was testing Windows Server 2012R2, impressed) without separate configuration of the 2nd VM first, data warehouses and eventually remove the VMDK files from the disk.  I am recovering files flat.vmdk at least 2 of these discs.  As this happened, I spent many hours of research online about VMDK recovery and disk running scans trying to find the missing VMDK (again unsuccessfully). Nothing has been written to one of these discs, and the VMFS partition is still in-tact.

    I know...

    Geometry of the disk, the file names, logical sector size and number of sectors files missing VMDK (recovered in the log file of the last successful start-up of the VM)

    Using the above information, I have a model created for a descriptor ready replacement VMDK file as soon as I can retrieve images flat.vmdk

    What I've tried so far...

    ESXi Shell & vmfs-fuse-> Navigation data storages show volumes are empty.  VMFS-fuse mounts the volume, but no VMDK file cannot be found.

    UFS Explorer-> same basic idea.  VMFS partitions are found easily and show good healthcare, but I can't find the files there, either.

    Hexagonal view using of UFS Explorer, I autorévisés several areas that I know are within the area of data and verified the parity RAID5 withdraws (to be confirmed), it seems that the data is always there and in-tact.

    DiskInternals VMFS Recovery-> attempt to analyze the disk, after 36 hours of scanning on a single disc had not yet reached 10%.

    What I would like to...

    Find the starting location for the file flat.vmdk for each disc and do an image binary dump of this position to the end of the VMDK file (sector of end computed by the starting location + number of sectors for the VMDK's newspaper).  Since all 3 discs are identical in the sense of VMWare, this place of departure should be the same for all 3 disks.  I have an external HD to 3 TB in waiting for the dump once I know not where to start.

    Worth I feel is actually locate the start position in hexadecimal view (I do not know what hexadecimal values, I need to look for).  Sanbarrow (continuum) of the site (VMDK-basics), he said he's looking for the mbr as header of the file, but I've not found in my records.

    Last note 1: this isn't a company or business system.  This is my personal home server and I have legitimate licenses for all the OS running on the host computer.

    Grade 2: Yes, I * have a backup, but it is around the age of 2 months and lack about 300 GB of files that have been added since the last backup.  Can I recover a good part of the missing data (about 60 GB) back to the source and copying/download files, but there are still about 240 GB that I can't copy (source no longer exists).  My fault for not having more recent backups, but worse is still not a TOTAL loss (about 85 percent recovered from backup & original sources).  All disks in the guest system VMDK is stored on a separate DSS and have experienced good backups of the primary system on a separate disk drives).

    Any assistance with this would be much appreciated!

    Thank you

    Brian

    Ok...

    So, after several weeks and countless hours my best, I finally decided to give up and call it closes unexpectedly.  Finally, I reformatted the hard drive and rebuilt the RAID from scratch - it is just the initial synchronization now and I will fully bring my last backup to the table at this stage ends.  The most important things I have known and confirmed backups of already, but I'll never recover the archival footage that I had done previous laptops, but at least it's not a TOTAL loss.  I've not spent by them in a long time, so I doubt that something very important, but there are still some bugs the stew out of me.

    What bothers me more, however, is the lack of response at all here.  I read on previous posts on the subject, describes the situation in detail as well as what I need help with, and after 3 weeks and 60 views... nothing.  I thought that VMware would have an active, reactive and useful community much more than that and I must say that I am very disappointed.  I hope that all those who might find themselves in this situation is able to get the help they need.

    I hope everyone has a great 2014!

  • HELP: How to 'restore' a via vddk vmdk file?

    Hi all

    After "backup" a vmdk via VixDiskLib_Read() + write all sectors recovered in a local file, how can I 'restore' that particular vmdk?

    I know that to have an existing vmdk file (even if it's a blank disc), I can use VixDiskLib_Write() to write again all the bytes to disk (in hosted mode).  But my question is what do I do if I do not have this file vmdk beforehand?  The document 'design the backup solution for vsphere' seems to suggest that I have to create the vmdk file myself (for example to create a virtual disk empty).

    But how can I create with proper DiskType?  (by clean I mean the disktype is the same as the original disk)  I can't find any API (vix, vddk and vsphere web service) that provides the type of disk of a given vmdk file.

    (I suppose a vmdk 'restored' must be identical to the original, "size' to 'type of card'"disk type"at"HW version", etc.)

    Thanks in advance!

    py

    Hi Py,

    The solution is not intuitive enough - when you restore, you create a virtual machine with the same hardware configuration as the original virtual machine. This creates discs. Now you can open each of these discs and write to them with the saved content. There is documentation that explains this, but he talks about the VI api which you should be able to extrapolate on the api web services server.

    Hope that helps and thanks for using VDDK,

    Annick

  • With the help of VMDK files

    Hello

    This is probably a simple question, but cause me pain. I have an extension of virtual disk (vmdk) and have downloaded to me fine ESXi server.

    I then want to create a computer using this hard drive, but it does not show me the drive when I click on browse to add the hard drive, I am obviously missing something, but can anyone help me?

    Thank you very much

    How this VMDK file was created, or from which it comes?  If it came from a non - ESX (i) product, you will need to convert it before you can use it.  I had also sometimes edit the VMX file directly to get these to work.

  • New in vmware, error cannot open parent vmdk.help, edit vmdk.file, please

    Please I have the error message on: cannot open parent vmdk.

    Please can someone help me? the virtual disk file name I wan Edit is = "fr_windows_7_ultimate_x64_dvd_X15-65928-000026 - s001.vmdk.

    Here is the file descriptor:

    criptorFile

    version = 1

    Encoding = "windows-1252".

    CID = aad2e91e

    parentCID = 14e7cc00

    isNativeSnapshot = 'no '.

    createType = "monolithicSparse.

    parentFileNameHint = "fr_windows_7_ultimate_x64_dvd_X15-65928 - 000025.vmdk.

    # Description of the measure

    RW 125829120 CLAIRSEMES ' fr_windows_7_ultimate_x64_dvd_X15-65928-000026 - s001.vmdk.

    # The database disk

    #DDB

    ddb.toolsVersion = "9282.

    ddb.longContentID = "5c0253c37a15c8025a7240daaad2e91e".

    DDB. UUID.image = "d9cf437f-ce5a-44c5-a2fc-ae827d943fbd".

    DDB. UUID.modification = "08a3938b-5104-48d7-a7c2-3ae24c927d05".

    DDB. UUID.parent = "00000000-0000-0000-0000-000000000000".

    DDB. UUID.parentmodification = "00000000-0000-0000-0000-000000000000".

    DDB. Geometry.Cylinders = "0"

    DDB. Geometry.Heads = "16"

    DDB. Geometry.sectors = "63"

    Do you do the thing that is supposed to be the name of the parent file:

    parentFileNameHint = "fr_windows_7_ultimate_x64_dvd_X15-65928 - 000025.vmdk.

    or

    parentFileNameHint = "fr_windows_7_ultimate_x64_dvd_X15-65928 - 000026.vmdk.

    And do you something that is supposed to be the description of the measure:

    RW 125829120 SPARSE "fr_windows_7_ultimate_x64_dvd_X15-65928 - 000026.vmdk.

    Or

    RW 125829120 CLAIRSEMES ' fr_windows_7_ultimate_x64_dvd_X15-65928-000026 - s001.vmdk.

    Do you things that my vmdk.files is corrupted?

    Thank you.

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalID=1007969

    try this link to verify and re-create the file discriptor above...

  • Hi all. IAM using Adobe Document Cloud. After you save a PDF to that cloud, I am able to see my PC files. How to disable this? Is - it my PC files are also available through other PC to access with my Adobe ID? Please help me. Thank you

    Hi all. IAM using Adobe Document Cloud. After you save a PDF to that cloud, I am able to see my PC files as well with a navigation option. How to disable this? My PC files will also be available on other PCs to access with my Adobe ID? Please help me. Thanks in advance.

    Hi indi68632954,

    I can understand your concern & you need to worry about this, as the folders in your PC are not available on other PCs as this option is just to browse through files of the specific system you are working on as shown in the screenshot below.

    Only the files that have been uploaded to the cloud of Document will be available over the Internet using Adobe Document Cloud service during authentication of your Adobe ID & password.

    I hope this will answer your query.

    In the case where if you have any other question please let us know, we will be happy to help you.

    Kind regards

    Nicos

  • Help - all files flat.vmdk showing-1 KB

    Hi all

    I am fearing the worst, but thought I'd ask the question in any way.  We had a power outage last night and the UPS has not stopped the our virtual machines (it's a long story).

    When the power came back, I tried to restart the virtual machines, but I get the same error for each a saying

    Has no power on VM
    Could not power on VM: invalid metadata.
    Failed to initialize file ' / vmfs/volumes/xxxxxxxx ': invalid metadata

    When I look at flat.vmdk files, it is said that they are 1 KB size and modified on December 31, 1969.

    Has anyone ever seen this before and most importantly, can I recover my machines without resorting to a backup?

    TIA

    Welcome to the community,

    I've never seen anything like this. I strongly recommend that you immediately open a call with VMware, if there are important data on these virtual machines which cannot be restored from the backup...

    André

  • HELP: Cannot find the local storage vmdk file - use an existing virtual disk

    Hello

    Version: ESXi 5.5

    HP Server

    Local hardware-stockage - 2 raid cards - 1) for ESXi os 2) for the virtual machine

    (1) I added 2 FVO and VMDK (12 giga) files from the Vsphere Client interface to the storage 2-> Browse the data store and a download of my files - no problem

    (2) I'm trying to create a virtual Win2K8R2 machine and when I want to use a virtual disk available - I m from the disk to the file path with innovation - I go to my storage2 - empty - nothing - I m not able to use the VMDK file!

    If you can give me advice or a solution, that would be great

    PS: I use chmod on my 2 files, RW is no one

    Best regards

    RV

    Welcome to the community,

    Assuming you are trying to do this with an OVF default value, it's actually what to expect. Instead of upload files on a datatore, import the OVF menu "File" of the vSphere Client.

    André

    PS: Discussion left CloudCred for VMware ESXi 5

  • With the help of a VMDK file

    Heeellp

    I move all the files to a desktop computer to a virtual computer that I ve created in an ESXi

    After turning off my VM, I tried to turn on without success.

    I did a lot of things and I saw that there is a with 31 GB VMDK file in the data store Navigator. But I can´t do anything with this file

    How can I made my VM works agais if I just this file and the file nvram?

    thanx

    Daniel Roggia

    You must run on the vmdk file not-flat vmdk. However, in step 6 I should have been more clear, you need to copy the hard-flat vmdk files.

    The hard file is the file descriptor of the data where, like the - flat vmdk is the file that contains the data of the virtual machine. Your items will of the hard file Virtual Machine and the hard file will include the reference to the file - flat.vmdk.

    -Surya

  • Windows 7 vmdk file not found, but it's really there...

    Had a running instance of MAX OS 10.9.2 Fusion 6 and a VM Windows 7, everything worked fine.  Had to reinstall the operating system using the procedure of restoration of Mac (alt - R during startup) to remove stuff JAMF Casper and re - take control of my machine after leaving a company. After recovery / re-install of OS X... I tried to use the original VM file and the merger could not find the vmdk files. So I restored a "Windows 7.vmwarevm" VM file Time machine. Same exact results... Fusion is up fine, recognizes the Windows 7 VM, but is not able to find the file "Windows 7.vmdk". When I try to start the virtual machine, I get the error message "could not open the file" / users/brucekreis/Documents/Virtual Machines.localized / 7.vmwarevm/Windows 7.vmdk Windows ":"the system cannot find the specified file". ".


    I can see it in a terminal window, checked that I am the owner of all files and directories in the tree, and they have at least the permissions for the owner, RW read only for all the rest... I changed the permissions to all access for files and dir (chmod-r 777 < dir >) tree and even reset the ACL (r n < dir > chmod). I can change the configuration files using the console VMware fusion library and check that it changes through the terminal window.  I tried to delete the .lck files and catch instant and re-did the file .vxm to the 7.vmdk Windows, without any change in the error message.


    I always suspect permissions, ACL, or something dealing with the recovery changed. I restored the original file .vmwarevm yet once, so you can see it of original state before I started to make changes and ran the util to collect information of technical support. I attached the zip file.

    FWIW... I tried to import the virtual machine and create a new virtual machine from this instance, but it is gray in molten selection windows, as if it is not recognized as a valid VM.

    Thank you in advance...

    You are missing two scopes binary "twoGbMaxExtentSparse', a basic disk, and the other from the first snapshot disk.

    Windows 7 - s009.vmdk

    Windows 7-000001 - s008.vmdk

    It is a workaround solution mainly for the express purpose of recovering data from the user, which is stored in the virtual hard disk, not necessarily get working 100% again.

    Copy Windows 7 - s040.vmdk for Windows 7 - s009.vmdk and Windows 7-000001 - s039.vmdk for Windows 7-000001 - s008.vmdk.

    This replaces the missing binary extensions with empty extents.  This allows VMware Fusion a string of competition and makes it look like a complete set of files hard.

    The problem is the two missing bodies, look at the size of each before and after, there will be some lack of content.  How the mission critical, can not say.

    You can try to start normally or start first with an ISO Image live and make recovering data first, and then try to run normally.  I can't say exactly what will be broken/missing except however backups clean* you don't have much choice.

    ==========

    * It is a known fact that Time Machine is not 100% reliable backing up/restoring VMS in all circumstances/conditions.  Also back up Virtual Machines via Time Machine of disk/time intensive and wastes a lot of space for something that may be corrupted and worthless time to restore it.  At least I would exclude the Virtual Machines with virtual machines and Time Machine shutdown, not suspended and VMware Fusion closed and then manually copy the VMS to another location, preferably on a different physical hard drive.  So keep the user data stored in the virtual machine saved out of the Virtual Machine on a regular basis in order to always have a backup of the current user data.  If you need to restore a properly saved by VM is not as common at least you will have a virtual working Machine and data user to go forward with when you find out your Time Machine backup of the virtual machine fails.

    Also take a look at: best practices for backup of virtual machine (programs and data) in VMware Fusion (1013628)

  • Is no vmdk file, but the script says, all virtual machines backed up Ok!

    Hello everyone;

    Please excuse any lack of details because this is the first time that I write. I've scoured internet for days now trying to find no matter how much detail that could help me solve the problem. I'm new in the world of script ESXi and ghettoVCB.

    My intention is to run several tasks on a schedule. Each type of backup (quarterly, monthly, weekly, daily and multiple) runs at a specific time. The planning section works very well.

    I'm hoping to solve this urgent backup, I should be able to solve reboot.

    Here is the command I use:

    /vmfs/volumes/datastore1/ghettoVCB.sh w /tmp/ghettoVCB-work.multiple f/vmfs/volumes/datastore1/vmlist-Multiple g/vmfs/volumes/datastore1/vmconfig-DataSet1-multiple-l /vmfs/volumes/datastore1/ghettoVCB_logs/ghettoVCB.Multiple_Backup.log

    vmconfig-DataSet1-multiple contains:

    # Multiple backups - rotation County 6

    #

    VM_BACKUP_VOLUME = / vmfs/volumes/Vault2-DataSet1/URANUS/Multiple

    DISK_BACKUP_FORMAT = thin

    VM_BACKUP_ROTATION_COUNT = 6

    POWER_VM_DOWN_BEFORE_BACKUP = 0

    ENABLE_HARD_POWER_OFF = 0

    ITER_TO_WAIT_SHUTDOWN = 4

    POWER_DOWN_TIMEOUT = 5

    SNAPSHOT_TIMEOUT = 15

    ENABLE_COMPRESSION = 0

    VM_SNAPSHOT_MEMORY = 0

    VM_SNAPSHOT_QUIESCE = 0

    VMDK_FILES_TO_BACKUP =

    Vmlist-multiple contains 1 server is listed:

    # List all virtual machines that are backed up several times a day

    HEAT

    The log indicates that the backup was successful - but it has not been the case. Backup size should be approximately 8 GB. However, when you look at the output folder, only the following files are here:


    HEAT.vmx

    STATUS.ok

    Question is now - where are the vmdk files that should be present?

    Output (-d debug) can be found here: http://pastebin.com/hMGphTL3

    So, here is what I observed:

    When you run the script, the snapshot only takes a few seconds to create and delete then. I'm seeing happens on the list of the tasks of vSphere Rencent (screenshot attached).

    If I create a snapshot manually - it will take much more time to create and delete a snapshot. The difference here is 6 minutes, and 4 seconds using the script create a snapshot manually.

    So my presumption is that he is not actually create the snapshot, although vSphere said it is being created. So why is it the case?

    Help, please.

    ADDENDUM:

    If I run the following:

    ./ghettoVCB.sh m HEAT

    The backup is successful.

    Your said he clearly did not config file to back up all files hard.

    VMDK_FILES_TO_BACKUP =

    I expect to see something like this if you want all the hard files

    VMDK_FILES_TO_BACKUP = "all".

  • Reset cbt - cannot get rid of the ctk vmdk files

    Hi, I have a known problem with the backup of my virtual machines where I need to reset the CBT. The procedure I have the backup software is as follows;

    Solution:

    Please follow the steps below to reset the CBT for a specific virtual machine.

    1. turn off the virtual machine

    2. right click on the virtual machine, click on "Change settings", find the 'Options' tab and click 'settings of Configuration.

    3. set the value of 'ctkEnabled' to false

    4. set the 'scsi0:x.ctkEnabled' to false for each disk of the virtual machine in question

    5. open the source folder and remove all - CTK. VMDK files.

    6. turn on the virtual machine

    7. power off the virtual machine again. This step is necessary to update the table of CTK.

    8 turn on the virtual machine

    9 replay backup task.

    So I have 2 VMs. VM1 and VM2. Both are win2k12 r2 (they are created the same day, the same way, installation of r2 std win2k12, patches, etc...). In step 5, for both servers, even if I delete the ctk.vmdk files, they are automatically reproduced so I can't delete them. Then I continued with the neverthless steps. After step 8, I saw that for VM1, has more ctk.vmdk files so that they are deleted somewhere in the process by the server itself. So my guess is that step 5 is not relevant. The problem I have is that even if I did exactly the same thing for VM2, ctk.vmdk files are never deleted. I reboot 3 times, I tried to manually remove them several times, they always, never to return, they are deleted.

    So, basically, I can't reset the cbt on VM2. I double check this ctkenabled are all 'fake' (tried also uppercase) still no luck. Any ideas how I could get rid of these ctk.vmdk files?

    Thank you

    Hi, proved that there was a snapshot. As soon as I deleted it, the ctk files disappeared.

    Concerning

  • Check orphaned vmdk files are not used before deleting

    Hi all

    I'm working on a site and after looking through the vSphere platform, it came to light that there are THOUSANDS (well more than 10,000) of orphaned VMDK files, it seems that there is a bug in the backup solution (you think).

    In any case I was hoping someone could help me please do you know if there is a way to confirm that a vmdk is certainly not necessary, the tools I've used to identify the orphaned VMDK are the script here practically Jason: orphaned VMDK files and RV tools (health tab).

    What I need to do now is to automate the removal of the VMDK if possible, but I need to run a test of consistency first to ensure that the files are actually orphans.

    Any help or advice greatly appreciated.

    Hello

    I can give you only a few rough concepts and advice because I do not know the details.

    First, he yells for PowerCLI, below, you will get a few commands. If you are not familiar with PowerCLI/Powershell I highly recommend to get a grip on it.

    Second, I'll assume that orphaned files = unused files. If this isn't the case, you can rename/move file instead of delete and wait as these phone calls / tickets

    Thirdly, since we will work on files on data warehouses, we will use "vmstores" PSDrive. Get-PSdrive cmdlet will give you all the readers, that you, one of them is vmstores

    C:\Windows\system32> Get-PSDrive
    
    Name           Used (GB)     Free (GB) Provider      Root                                                                                                                   CurrentLocation
    ----           ---------     --------- --------      ----                                                                                                                   ---------------
    Alias                                  Alias
    C                  52,39         44,97 FileSystem    C:\                                                                                                                   Windows\system32
    Cert                                   Certificate   \
    D                 218,60        149,80 FileSystem    D:\
    E                                      FileSystem    E:\
    Env                                    Environment
    Function                               Function
    HKCU                                   Registry      HKEY_CURRENT_USER
    HKLM                                   Registry      HKEY_LOCAL_MACHINE
    Variable                               Variable
    vi                                     VimInventory  \LastConnectedVCenterServer
    vis                                    VimInventory  \
    vmstore                                VimDatastore  \LastConnectedVCenterServer
    vmstores                               VimDatastore  \
    WSMan                                  WSMan
    

    To get your typical data warehouse 'cd ":

    CD vmstores:\your_vcenter\your_cluster

    On each level, you can do 'ls' or 'cmd '. Tab completion works on everything in order to use it

    From now on, all depends on what you already have and what it looks like. These files have a naming pattern names containing the name of the virtual machine or other information ("backup", "tmp" etc.)? You have these names stored somewhere? In text or csv file?

    I guess you have the list of files in the text file. So much more simple method would be to be scan all data warehouses and all files. As you can imagine it is very time and resource consumption, so not recommended to all

    #we're importing filenames to variable
    $oldfiles = Get-Content your_text_file.txt
    cd vmstores:\your_vcenter\your_cluster
    $oldfiles | ForEach-Object {
    #we're recursivly looking for file stored in $_ special variable (current object)
    $deleteme = Get-ChildItem $_ -Recurse
    #deleting the file
    Remove-Item $deleteme.PSPath
    }
    

    If the file names that you already can somehow correspond directly to the VM, then we could use a more intelligent approach.

    Let's say we have the testVM001 - bak003.vmdk and VMname file is testVM001. We can remove all characters after the 9th tank and then work on it:

    #we're importing filenames to variable
    $oldfiles = Get-Content your_text_file.txt
    
    $oldfiles | ForEach-Object {
        #getting VM name
        $vmname = $_.Remove(9)
        #getting VM path
        $vmpath = (Get-VM -Name $vmname |Get-Datastore).DatastoreBrowserPath
        #combining full path
        $fullpath = $vmpath + "\" + $vmname
        cd $fullpath
        #deleting the file
        Remove-Item ./$_
    }
    

    These are simple ideas, it could be useful.

Maybe you are looking for

  • Printer e-all-in-one-HP officejet 6800: e-all-in-one-hp officejet 6800 series

    setting up the new series of 6800 e - all - in - one hp officejet. paper tray is full but message says: "load paper tray and press OK. I have done this several times with the same message.

  • Re: Tecra S10 G11, extremely slow boot after BIOS update to 3.00

    My laptop was working fine until I updated the BIOS to 3.00. It takes a lot of time to start all the trunk was support (disk, CDROM,...). Once I have selected the bootable media, the screen goes black with a white blinking cursor for about 5 to 10 mi

  • How to create partition in 105 satellite via the restore CD?

    I want to create 2 partitions on my hard drive but I have no idea how do. I have 80 GB hard drive. I have the recovery CD and I would like to ask if anyone knows that it is possible to do by this recovery cd. Thanks for any help!

  • Cannot parse after changing routers (MF229)

    Everything worked well and then over the weekend, I changed my router. The printer's IP address has changed. I can always print, didn't reset anything to print. But I can't scan. The Toolbox MF said "a supported scanner is not installed." The Scan MF

  • Why the computer restart does not appear

    Widows Vista Home premium, service Pack2 32-bit operating system By performing the steps to boot as recommended by Microsoft for windos vista, not a single prompt automatically appears to restart the computer, I have to manually apply. Is this ok for