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

Re: shutdown VMs and patch esxi host

$
0
0

Hi Lucd,

 

I am trying something like this without the for loop

 

$DC = read-host "Enter the Datacenter to patch"

$vmhost = get-vmhost -Location (Get-Datacenter $dc)

$vms = get-datacenter $dc | get-vm | ?{$_.powerstate -eq "Poweredon"}

$baseline = get-baseline -server vc -Name *Critical*

 

 

if($vms.PowerState -eq 'PoweredOn'){

 

$vms | Shutdown-VMGuest -Confirm:$false

 

while($vms.PowerState -eq 'PoweredOn'){

 

sleep 5

 

$vms = get-datacenter $dc | get-vm

}

 

it seems to work but how would i check if vmware tools is running befor i do a stop-vm?


Re: shutdown VMs and patch esxi host

$
0
0

the script is not getting out of the while loop

 

$vm is empty when all the vms are shutdown

 

Shutdown-VMGuest : 4/6/2019 7:08:36 PM Stop-VMGuest Operation "Shutdown VM guest." failed for VM "lxxxxxxxx" for the following reason: A general

system error occurred: Invalid fault

At line:12 char:8

+ $vms | Shutdown-VMGuest -Confirm:$false

+        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Stop-VMGuest], VimException

    + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_ShutdownVmGuest_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.StopVmGuest

 

Shutdown-VMGuest : 4/6/2019 7:08:36 PM Stop-VMGuest Operation "Shutdown VM guest." failed for VM "lxxxxxx" for the following reason: Cannot

complete operation because VMware Tools is not running in this virtual machine.

At line:12 char:8

+ $vms | Shutdown-VMGuest -Confirm:$false

+        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Stop-VMGuest], VimException

    + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_ShutdownVmGuest_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.StopVmGuest

 

Shutdown-VMGuest : 4/6/2019 7:08:36 PM Stop-VMGuest Operation "Shutdown VM guest." failed for VM "lxxxxxxxxx" for the following reason: Cannot

complete operation because VMware Tools is not running in this virtual machine.

At line:12 char:8

+ $vms | Shutdown-VMGuest -Confirm:$false

+        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Stop-VMGuest], VimException

    + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_ShutdownVmGuest_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.StopVmGuest

 

Shutdown-VMGuest : 4/6/2019 7:08:36 PM Stop-VMGuest Operation "Shutdown VM guest." failed for VM "xxxxxxxxx" for the following reason: Cannot

complete operation because VMware Tools is not running in this virtual machine.

At line:12 char:8

+ $vms | Shutdown-VMGuest -Confirm:$false

+        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Stop-VMGuest], VimException

    + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_ShutdownVmGuest_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.StopVmGuest

Problem when grow datastore

$
0
0

Hi,

 

I encounter a problem while resize datastore from 6 TB to 7 TB.

Searching thru this communities found that couple cases of this is happening. reading that, here I already gather couple info from console

 

[root@sghdc-sap-lnv01:~] vmware -vv

VMware ESXi 6.7.0 build-11675023

 

[root@sghdc-sap-lnv01:~] partedUtil get /vmfs/devices/disks/naa.600a09803831357345244e4548346a2f

935722 255 63 15032385536

1 2048 15032385502 0 0

[root@sghdc-sap-lnv01:~]

 

[root@sghdc-sap-lnv01:~] partedUtil getUsableSectors /vmfs/devices/disks/naa.600a09803831357345244e4548346a2f

34 15032385502

[root@sghdc-sap-lnv01:~]

 

[root@sghdc-sap-lnv01:~] vmkfstools -P /vmfs/volumes/LNV_DC_C2_SAP_DS_OS_PRD

VMFS-5.60 (Raw Major Version: 14) file system spanning 1 partitions.

File system label (if any): LNV_DC_C2_SAP_DS_OS_PRD

Mode: public

Capacity 6596801331200 (6291200 file blocks * 1048576), 4607600230400 (4394150 blocks) avail, max supported file size 69201586814976

Disk Block Size: 512/4096/0

UUID: 562d4dd9-7b243472-6012-0025b5011a08

Partitions spanned (on "lvm"):

        naa.600a09803831357345244e4548346a2f:1

Is Native Snapshot Capable: YES

[root@sghdc-sap-lnv01:~]

 

[root@sghdc-sap-lnv01:~] vmkfstools -P /vmfs/volumes/LNV_DC_C2_SAP_DS_OS_PRD1/

VMFS-5.81 (Raw Major Version: 14) file system spanning 1 partitions.

File system label (if any): LNV_DC_C2_SAP_DS_OS_PRD1

Mode: public

Capacity 7696312958976 (7339776 file blocks * 1048576), 2004920303616 (1912041 blocks) avail, max supported file size 69201586814976

Disk Block Size: 512/4096/0

UUID: 5ca8d706-6206aa08-a6d4-00109b4d8958

Partitions spanned (on "lvm"):

        naa.600a09803831357345244e4548346a66:1

Is Native Snapshot Capable: YES

[root@sghdc-sap-lnv01:~]

 

[root@sghdc-sap-lnv01:~] ls -lathr /vmfs/devices/disks/naa.600a09803831357345244e4548346a2f

-rw-------    1 root     root        7.0T Apr  7 03:03 /vmfs/devices/disks/naa.600a09803831357345244e4548346a2f

[root@sghdc-sap-lnv01:~]

 

try to grow datastore, shows as:

 

[root@sghdc-sap-lnv01:~] vmkfstools --growfs /vmfs/devices/disks/naa.600a09803831357345244e4548346a2f:1 /vmfs/devices/disks/naa.600a09803831357345244e4548346a2f:1

Not found

Error: No such file or directory

[root@sghdc-sap-lnv01:~]

 

 

 

from the webgui

 

datastore properties.jpg

 

datastore expand1.jpg

 

datastore expand2.jpg

 

device properties.jpg

 

device extend1.jpg

device extend2.jpg

 

Need advice to solve this.

 

Thanks

Re: VMware horizon crashing mac update

$
0
0

I have noticed since macOS 10.14.4 update the Horizon 5.0 client is (seems randomly) crashing on my MacBook Pro 15" with Radeon Pro Vega 20 GPU. It is perfectly stable though on my 13" MacBook Pro with integrated Intel graphics.

Unmount storage options grey out

$
0
0

Hi,

 

Why is the unmount datastore option were grey out on this datastore ?

 

 

I dont use Storage IO Control.

 

This lun were result of replication (we are using Lenovo DM Series, source storage NetApp FAS 3000 series).

When mount Lenovo DM Series to new server, I use Keep signature option.

 

The strange part also, I need to do esxcfg-volume -M (persistent) on each hosts on the cluster.

 

Did the keep signature has affect on the greyed unmount datastore ?

 

please advice..

 

Thx

Re: Unmount storage options grey out

$
0
0

Please check is there any flex clone created for this volume?

Re: Unmount storage options grey out

$
0
0

try unmounting from command line

 

esxcfg-volume -U

 

share log and error if any

Re: Unmount storage options grey out

$
0
0

Hi,

 

[root@sghdc-sap-lnv04:~] esxcfg-volume --umount 562d4dd9-7b243472-6012-0025b5011a08

Umounting volume /vmfs/volumes/562d4dd9-7b243472-6012-0025b5011a08

[root@sghdc-sap-lnv04:~]

 

command successfully executed.

 

command unmount only the host, not all cluster.

 

is this common ?


Re: vmware workstation 100% disk usage

$
0
0

Is this method still working? I think todays technology is growing very fast and you have to keep a hand on with this upgraded technology so, it is necessary to get visa generator for this.

Re: My VMs are always running in background!

$
0
0

Also, I have space to run a vm (500 GB HDD and 8 GB RAM)

After some time, I tried to remove and open the vms, no reaction

Re: My VMs are always running in background!

$
0
0

I've now solved my problem:

Firstly, kill by taskmgr  the VMware Tray process, then restart the host.

But there is bad news too, they start with black screen, but I think I can solve it. If I'll solve it, I will delete this reply, post a new one and put it into the correct answer

Re: shutdown VMs and patch esxi host

$
0
0

The $vms variable will be an array when more than 1 VM is still powered on, so you can't use the -eq operator.

With the -contains operator you should be able to check if there is still a VM that is powered on.

Something like this

 

$DC=Read-Host"Enter the Datacenter to patch"

$vmhost=Get-VMHost-Location (Get-Datacenter$dc)

$vms=Get-Datacenter$dc|Get-VM|Where-Object{$_.powerstate-eq"Poweredon"}

$baseline=Get-Baseline-Server vc -Name *Critical*


if($vms.PowerState-contains'PoweredOn')

{

   $vms| Shutdown-VMGuest -Confirm:$false

   while($vms.PowerState-contains'PoweredOn')

   {

     Start-Sleep5

     $vms=Get-VM-Name $vms.Name|Where-Object{$_.powerstate-eq"Poweredon"}

   }

}

VMWare Update Manager 6.5 (VCSA)

$
0
0

Hi Experts,

 

VMWare Update manager is only able to download the metadata and binaries? Can we directly download the images/Patches(Full content) directly from the repository?

If my Update manager directly configured with VMware sites?

VRA 7.5 ImportOvfWorkflow Blueprint 'Configure' button no action

$
0
0

Hi all, trying to configure a blueprint which is based on deploying an OVF.  So follow the guide, New Blueprint of type Server, Action: Create, Provisioning Workflow : ImportOvfWorkflow, URL: URL of OVF (validated as i can download the file from the location), press configure to start the wizard.

 

This is where it goes wrong, the configure button 'presses', but the wizard doesn't pop up.  I've tried three browsers (Chrome (default), IE and Firefox).  They all do the same thing.

 

is there another way to import an OVF into a blueprint?  create a blueprint with an OVF as the provisioning source, or does anyone know of a fix for the 'configure' button not working.

Re: My VMs are always running in background!

$
0
0

Solution:

 

Firstly, kill VMWare tray process by taskmgr or taskkill /IM VMware-tray.exe

Secondly, restart (make sure VMware Tray is enabled for automatic boot)

Then, turn off "Accelerate 3D graphics" in VM's settings.

It should work


Re: high OCFlush %USED with no VMs running. Esxtop %USED sort not working once in world

$
0
0

Not yet, maybe it's an issue of 6.7 only?

VeloCloud Implementation Documents

$
0
0

Hi All,

 

I need to setup an POC environment of VeloCloud SD WAN for a customer and I am unable to find any documentation available in both VMware or Velocloud. Can someone share an implementation guide or some other resource which will help me to setup the POC.

 

Thank you.

-Sajith

Re: Problem when grow datastore

$
0
0

IMO this looks like a bug in ESXi which I hope will be resolved soon.

 

What may work is:

  1. vmkfstools -V
    please note the upper-casse "-V"
  2. partedUtil fixGpt /vmfs/devices/disks/naa.600a09803831357345244e4548346a2f
    in case you receive a warning, you may need to reboot the host at this point (see step 10 in https://kb.vmware.com/kb/2002461)
  3. cd /vmfs/devices/disks
  4. vmkfstools --growfs naa.600a09803831357345244e4548346a2f:1 naa.600a09803831357345244e4548346a2f:1
  5. vmkfstools -V

 

André

vSAN node restart for disk expansion

$
0
0

Hello all,

 

We have a 3 node vSAN 6.0 cluster with 2 disk groups on each node (1SSD + 7HDD per group). We have purchased and added some extra disks on each node in order to create a new disk group and expand the overal vSAN capacity. The case is that the disks are not detected via HBA rescan, so we assume a node restart is required (probably H730P controller or firmware does not allow disk detection on hot-add).

 

Our concern is related to the free vSAN space, as of the total 45TB capacity, only 12.5TB are free. Our default vSAN policy has FTT=1. Would there be data loss when we will place in maitenance mode a vsan node (Ensure accessibility option), due to the small free space which is less that 30% of the total, as stated in vSAN best practices? Could we avoid data loss by setting FTT=0 on all VMs, in order to "erase" the replicas and consume less space which would then lead to increasing the free percentage (more than 30%)?

 

Thank you very much for your time

Re: vRO 7.5 / HTTP Status 503 - Service Unavailable during initial configuratin

$
0
0

Hello,

Sometimes one wrong character can cause an error in vRO. It's good to know in the future how to solve a problem like You had. Thanks for reporting how You dealt with this problem. Good tip for the future.

Regards

Michał

cmichal.com

Viewing all 199079 articles
Browse latest View live


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