einzelne VM starten/stopen über Script bei ESX4i (kostenlos)
Verfasst: 08.06.2010, 15:14
hi,
wir haben hier ein paar ESX4i rumstehen (kostenlose Variante).
Nun hätte ich gern per Script einzelne VM gestopt und gestartet.
Leider bekomm ich Fehler. Kann es sein das es nur mit den lizensierten ESX'n geht?
Kennt ihr einen Workaround?
Leider bekomm ich mit vSphere PowerCLI Fehler:
[vSphere PowerCLI] C:\Programme\VMware\Infrastructure\vSphere PowerCLI> cd\
[vSphere PowerCLI] C:\> connect-viserver -server esx06
WARNUNG: There were one or more problems with the server certificate:
* The X509 chain could not be built up to the root certificate.
* The certificate's CN name does not match the passed value.
Connect-VIServer : Cannot complete login due to an incorrect user name or passw
ord.
Bei Zeile:1 Zeichen:17
+ connect-viserver <<<< -server esx06
+ CategoryInfo : NotSpecified: (:) [Connect-VIServer], InvalidLog
inException
+ FullyQualifiedErrorId : Client20_ConnectivityServiceImpl_Reconnect_SoapE
xception,VMware.VimAutomation.Commands.ConnectVIServer
[vSphere PowerCLI] C:\> connect-viserver -server esx06
Name Port User
---- ---- ----
esx06 443 root
[vSphere PowerCLI] C:\> Get-VM XP01 | Stop-VM
Bestätigung
Möchten Sie diese Aktion wirklich ausführen?
Ausführen des Vorgangs "Stop-VM" für das Ziel "VM 'XP01'".
[J] Ja [A] Ja, alle [N] Nein [K] Nein, keine [H] Anhalten [?] Hilfe
(Standard ist "J"):J
Stop-VM : 08.06.2010 14:48:42 Stop-VM 529a6ad3-9bd6-f61a-63aa-567ad16fcb8
a fault.RestrictedVersion.summary
Bei Zeile:1 Zeichen:22
+ Get-VM XP01 | Stop-VM <<<<
+ CategoryInfo : NotSpecified: (:) [Stop-VM], SecurityErrorExcept
ion
+ FullyQualifiedErrorId : Client20_MoServiceImpl_Invoke_ViError,VMware.Vim
Automation.Commands.StopVM
[vSphere PowerCLI] C:\>
Gruß
StefanTh
wir haben hier ein paar ESX4i rumstehen (kostenlose Variante).
Nun hätte ich gern per Script einzelne VM gestopt und gestartet.
Leider bekomm ich Fehler. Kann es sein das es nur mit den lizensierten ESX'n geht?
Kennt ihr einen Workaround?
Leider bekomm ich mit vSphere PowerCLI Fehler:
[vSphere PowerCLI] C:\Programme\VMware\Infrastructure\vSphere PowerCLI> cd\
[vSphere PowerCLI] C:\> connect-viserver -server esx06
WARNUNG: There were one or more problems with the server certificate:
* The X509 chain could not be built up to the root certificate.
* The certificate's CN name does not match the passed value.
Connect-VIServer : Cannot complete login due to an incorrect user name or passw
ord.
Bei Zeile:1 Zeichen:17
+ connect-viserver <<<< -server esx06
+ CategoryInfo : NotSpecified: (:) [Connect-VIServer], InvalidLog
inException
+ FullyQualifiedErrorId : Client20_ConnectivityServiceImpl_Reconnect_SoapE
xception,VMware.VimAutomation.Commands.ConnectVIServer
[vSphere PowerCLI] C:\> connect-viserver -server esx06
Name Port User
---- ---- ----
esx06 443 root
[vSphere PowerCLI] C:\> Get-VM XP01 | Stop-VM
Bestätigung
Möchten Sie diese Aktion wirklich ausführen?
Ausführen des Vorgangs "Stop-VM" für das Ziel "VM 'XP01'".
[J] Ja [A] Ja, alle [N] Nein [K] Nein, keine [H] Anhalten [?] Hilfe
(Standard ist "J"):J
Stop-VM : 08.06.2010 14:48:42 Stop-VM 529a6ad3-9bd6-f61a-63aa-567ad16fcb8
a fault.RestrictedVersion.summary
Bei Zeile:1 Zeichen:22
+ Get-VM XP01 | Stop-VM <<<<
+ CategoryInfo : NotSpecified: (:) [Stop-VM], SecurityErrorExcept
ion
+ FullyQualifiedErrorId : Client20_MoServiceImpl_Invoke_ViError,VMware.Vim
Automation.Commands.StopVM
[vSphere PowerCLI] C:\>
Gruß
StefanTh