Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 219257

Re: ESXi 6.5 удаляет файл скрипта из корня после перезагрузки

$
0
0

Спасибо за наводку!

Оказывается, на бесплатной версии ESXi невозможно выключать машины из-под power.cli (или я чего-то не так понимаю):

PS C:\Users\Admin>> Get-VMHost


Name                 ConnectionState PowerState NumCpu CpuUsageMhz CpuTotalMhz   MemoryUsageGB   MemoryTotalGB Version
----                 --------------- ---------- ------ ----------- -----------   -------------   ------------- -------
192.168.100.254      Connected       PoweredOn       2          70        3722           4,156           8,999   6.5.0




PS C:\Users\Admin>> get-vm | ? {$_.PowerState -eq "PoweredOn"} | Stop-VMGuest -Confirm:$false
Stop-VMGuest : 11.11.2017 16:02:15    Stop-VMGuest        Operation "Shutdown VM guest." failed for VM "w2008" for the
following reason: Current license or ESXi version prohibits execution of the requested operation.
At line:1 char:46
+ ... vm | ? {$_.PowerState -eq "PoweredOn"} | Stop-VMGuest -Confirm:$false
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : NotSpecified: (:) [Stop-VMGuest], VimException    + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_ShutdownVmGuest_ViError,VMware.VimAutomation.ViCore.Cmdlets.   Commands.StopVmGuest


Stop-VMGuest : 11.11.2017 16:02:15    Stop-VMGuest        Operation "Shutdown VM guest." failed for VM "lunux_server" f
or the following reason: Current license or ESXi version prohibits execution of the requested operation.
At line:1 char:46
+ ... vm | ? {$_.PowerState -eq "PoweredOn"} | Stop-VMGuest -Confirm:$false
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : NotSpecified: (:) [Stop-VMGuest], VimException    + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_ShutdownVmGuest_ViError,VMware.VimAutomation.ViCore.Cmdlets.   Commands.StopVmGuest


PS C:\Users\Admin>>

Может, кто подскажет, как сие обойти?

 

Спасибо заранее.


Viewing all articles
Browse latest Browse all 219257

Latest Images

Trending Articles



Latest Images

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