Quantcast
Channel: VMware Communities: Message List
Viewing all 252940 articles
Browse latest View live

Can I clean up my vmdk files?

$
0
0

I have a tons of vmdk files going back 3 years on my hard disk.  I presume these are snapshot files.  I do not need to preserve snapshots of my machine state.  Some of these files are several gb.  Can I clean up these files and get back some disk space?

 

Screen Shot 2019-05-19 at 6.23.54 PM.png

Screen Shot 2019-05-19 at 6.24.51 PM.png


Uploading VMDK to datastore within scriptblock produces odd result

$
0
0

Hi guys,

 

I'm trying to upload a number of VMDKs from my local C drive over to a datastore. I'm using the "copy-datastoreitem" command and because it cannot be run asynchronously I'm placing the code in a job.

 

However, I am getting an odd result.

 

If I run the below command outside a job, it runs perfectly and works as expected. The file gets uploaded to the test folder in the datastore, all good.

 

try {

$ErrorActionPreference = "Stop";

$logfile = "C:\temp\logfile.log"

 

Add-PSSnapin "VMware.VimAutomation.Core" -ErrorAction Continue

Set-PowerCLIConfiguration -DefaultVIServerMode multiple -Confirm:$false

connect-viserver "vcenter" -user "lab\vadmin" -password "Password123" -ErrorAction stop

 

$ds = Get-VMHost -Name "192.168.1.243" | Get-Datastore "datastore1 (2)"

New-PSDrive -Location $ds -Name DS -PSProvider VimDatastore -Root "\"

 

Copy-DatastoreItem -Item "c:\test\VM01\vm01.vmdk" -Destination ds:\Test\

}

catch {

$errormessage = $_.Exception.Message

$logdate = Get-Date; Add-Content $logfile "$logdate $errormessage"

}

 

But, if I place it in a scriptblock, I get a weird result. Firstly I get an error: VimDatastore The specified location '\vcenter@443\DC1\datastore1 (2)\Test\VM01.vmdk' does not exist.

The other thing is, a new folder gets created in the datastore called "2fTest" and the VM01.VMDK file appears in there. What the??? (see screen grab below).

 

Start-Job -name test1 -ScriptBlock {

try {

$ErrorActionPreference = "Stop";

$logfile = "C:\temp\logfile.log"

 

Add-PSSnapin "VMware.VimAutomation.Core" -ErrorAction Continue

Set-PowerCLIConfiguration -DefaultVIServerMode multiple -Confirm:$false

connect-viserver "vcenter" -user "lab\vadmin" -password "Password123" -ErrorAction stop

 

$ds = Get-VMHost -Name "192.168.1.243" | Get-Datastore "datastore1 (2)"

New-PSDrive -Location $ds -Name DS -PSProvider VimDatastore -Root "\"

 

Copy-DatastoreItem -Item "c:\test\VM01\vm01.vmdk" -Destination ds:\Test\

}

catch {

$errormessage = $_.Exception.Message

$logdate = Get-Date; Add-Content $logfile "$logdate $errormessage"

}

}

 

2019-05-20 10_18_45-vSphere Web Client - Internet Explorer.png

 

I am at a complete loss as to why it behaves this way.

 

Any ideas/suggestions/help would be much appreciated.

Re: 6.7U1 vs 6.5U2 passthrough regression

$
0
0

Did you try 6.7u2? I have same problem @ 6.7u1. After initial boot the host, the gpu (GTX 1660) can passthrough to win 10 guest without any problem. After the guest reboot / shutdown, and boot again the gpu passthrough is not work and display code 43 error. I have quadro p2000 and I discovery that after the guest reboot / shutdownm, the p2000 fan will run at full speed. I think it is the pci reset work on p2000. Unfortunately, the consumer gpu can't passthrough due to incorrect pci reset. Is it a bug on 6.7? Have someone report to VMWare?

 

Also, I notice that the esxi is skipping to reset my gpu.

 

2019-05-19T15:59:54.818Z cpu0:2099331)PCI: 967: Skipping device reset on 0000:01:00.0 because PCIe link to the device is down.

2019-05-19T15:59:54.818Z cpu0:2099331)IOMMU: 2502: Device 0000:01:00.0 placed in new domain 0x430430ac2d10.

2019-05-19T15:59:54.818Z cpu0:2099331)PCI: 967: Skipping device reset on 0000:01:00.1 because PCIe link to the device is down.

2019-05-19T15:59:54.818Z cpu0:2099331)PCI: 967: Skipping device reset on 0000:01:00.2 because PCIe link to the device is down.

2019-05-19T15:59:54.818Z cpu0:2099331)PCI: 967: Skipping device reset on 0000:01:00.3 because PCIe link to the device is down.

Re: 6.7U1 vs 6.5U2 passthrough regression

$
0
0

GTX series cards are consumer cards and therefore not supported anyway.

Re: 6.7U1 vs 6.5U2 passthrough regression

$
0
0

I know, but 6.5 it is work. So vmware change it to make consumer gpu not work?

Re: 6.7U1 vs 6.5U2 passthrough regression

$
0
0

Even in 6.5 it wasn't supported. When you use unsupported hardware it can stop working at any time. Because it worked in 6.5 doesn't mean it'll work in later versions. It may. Then again, it may not.

Re: The operation on file "/Users/soojincha/Virtual Machines.localized/Windows 10 x64.vmwarevm/Virtual Disk-s003.vmdk" failed.

$
0
0

Hi,

 

I found the file list and log files.

Here's a screenshot for my file list and the latest version of log file.

 

Soojin

Re: I am getting an error after upgrade workstation 15.1.0 build-13591040

$
0
0

Hi, Would you please try following steps to have a try ?

 

1)  Uninstall any VMware Workstation version installed on the host

2)  Delete "C:\Windows\System32\vmci.sys" and "C:\Windows\System32\DriverStore\FileRepository\vmci*" if have

3)  Open cmd terminal and run "sc stop vmci & sc delete vmci"

4)  Reboot the host and re-install VMware Workstation


Re: Import Parallels 14 into Fusion 10.1.6 - VMX file is corrupt - Mojave

$
0
0

Hi ijsba146 ,

 

Can you check OS type via VM settings -> General ? Please change it to Apple OS X -> macOS 10.14 and start up the VM again to see if this issue still exists.

Re: Starting virtual machine shows "internal error"

$
0
0

Hi jackmamajack ,

 

Could you pleas upload your vmx log? It resides in your vm bundle. Thanks a lot.

How to filter vm by datacenter name

$
0
0

[ASK]

 

How to grab vm by datacenter name and grab status vm on/off  ?

i just want to grab KP2 Virtual Data Center/ another data center

this is my code please help, i was try to change/add code but its still error..

&{foreach($vm in (Get-VM)) {

 

 

    $vm.ExtensionData.Guest.Net | select -Property @{N='VM';E={$vm.Name.split('(')[0].TrimEnd(' ')}},

   @{N='PIC Aplikasi';E={$vm.Name.split('()')[1]}},

    @{N='OS';E={$vm.Guest.OSFullName}},

@{N="NumCPU";E={$vm.NumCPU}},

@{N="MemoryMB";E={$vm.MemoryMB}},

    @{N='IP';E={[string]::Join(',',($vm.Guest.IPAddress | Where {($_.Split(".")).length -eq 4}))}},

    @{N='Gateway';E={[string]::Join(',',($vm.ExtensionData.Guest.IpStack.IpRouteConfig.IpRoute | %{if($_.Gateway.IpAddress){$_.Gateway.IpAddress}}))}},

    @{N='Subnet Mask';E={

                $dec = [Convert]::ToUInt32($(('1' * $_.IpConfig.IpAddress[0].PrefixLength).PadRight(32, '0')), 2)

                $DottedIP = $( For ($i = 3; $i -gt -1; $i--) {

                        $Remainder = $dec % [Math]::Pow(256, $i)

                        (                        $dec - $Remainder) / [Math]::Pow(256, $i)

                        $dec = $Remainder

                    } )

                [String]::Join('.', $DottedIP)

            }},

        @{N='MAC';E={[string]::Join(',',$_.MacAddress)}}

  }

} | Export-Csv -NoTypeInformation C:\Users\xyz\Desktop\xyz.csv

 

 

 

Thank You So Much

Tomi Irawan

Re: Import Parallels 14 into Fusion 10.1.6 - VMX file is corrupt - Mojave

Re: Import Parallels 14 into Fusion 10.1.6 - VMX file is corrupt - Mojave

$
0
0

Let me be more clear...

 

This is a Windows 7 Parallels vm, and trying to import into Fusion.  No matter how its imported Fusion says its corrupted but works just fine in Parallels.

whats_wrong_infollowingcode_powercli

$
0
0

HI Luc,

please suggest what is wrong in following.

this is to find max freespace percentage datastore fro a given vm .

 

$entity=read-host "provide entity"

 

if((Get-VM -ErrorAction SilentlyContinue).Name -contains $entity){

    Write-Host "It's a VM" -ForegroundColor Yellow

    $vm = Get-VM -Name $entity

    $ds = Get-Datastore -RelatedObject $vm

    if($ds.count -gt 1)

    {

    write-host "vm is configured for "$ds.count "datastores"

 

    $datastores_freepercent=$ds|ForEach-Object -Process {

 

                                                $per_freespace=$_.freespaceGB/$_.capacityGB*100

  

 

                                                  $per_freespace_round=[math]::Round($per_freespace)

  

 

   

   

                                                $datastores=$ds|select name,@{N='freespacepercent';E={$per_freespace_round}}

                                                $datastores

  

}}}

resolving hostname failed in esxi 6.5

$
0
0

How to fix this error : Resolving hostname failed


Re: resolving hostname failed in esxi 6.5

$
0
0

This is very little information...

Re: Clone VM has same IP address

$
0
0

Are you sure that the IP address is not set in the guest OS? You actually see two leases in the DHCP server? I find that hard to believe. Most DHCP servers have a mechanisme to detect duplicate IP addresses. So please check again that the guest OS is using DHCP and that you see the leases in the DHCP server.

resolving hostname failed esxi 6.5

$
0
0

i am building a little home lab and after installing and configure vmware esxi hyp. 6.5 I keep get an error ”resolving hostname (homelab.com)  failed”

Re: resolving hostname failed esxi 6.5

$
0
0

I see this is a duplicate post...

 

The error is probably caused by the (mis)configuration of DNS. Make sure you have DNS in your lab configured with the zone you want to use (homelab.com).

Re: What is VMware's plan to fix the Workstation Pro 15 Linux kernel 5 problem?

$
0
0

VMware Workstation Pro 15.1 on Linux host now supports the Linux kernel v5 code stream.

 

Thank you VMware for fixing this!

Viewing all 252940 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>