Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shutdown/power on controls not functioning in ESXi 5.1 #2

Open
Norbs12 opened this issue Sep 28, 2013 · 18 comments
Open

Shutdown/power on controls not functioning in ESXi 5.1 #2

Norbs12 opened this issue Sep 28, 2013 · 18 comments

Comments

@Norbs12
Copy link

Norbs12 commented Sep 28, 2013

Title says it all, I have not been able to get power off/on to work on any of my VMs via the web access.

@weikinhuang
Copy link
Owner

do you mind posting the result of the ajax call here?

@jcheff
Copy link

jcheff commented Oct 1, 2013

It works well for a specific VM on the "vm.html" page, but not on the "vm-list.html" page. The shutdown prompt never displays.

@Norbs12
Copy link
Author

Norbs12 commented Oct 1, 2013

I don't mind posting the Ajax call but I have no clue how to get that info.

@weikinhuang
Copy link
Owner

That's weird. I couldn't reproduce the issue. I have a commit upcoming that removes power functions from the vm-list page soon

@Norbs12
Copy link
Author

Norbs12 commented Oct 1, 2013

Does it require a reboot of the host? Are you on the latest esxi build?

@weikinhuang
Copy link
Owner

It shouldn't require a reboot of the host, does it work on the individual vm page?

@Norbs12
Copy link
Author

Norbs12 commented Oct 1, 2013

It didn't seem to work on either. I'm going to reboot just for the hell of it and report back.

@bschmidt001
Copy link

Tested on ESXi 5.5 and the poweron / poweroff does not work on the vm or wm-list screens. Has the API call changed?

@weikinhuang
Copy link
Owner

Are you guys using the free ESXi? I haven't tested it on that version.

@jcheff
Copy link

jcheff commented Oct 29, 2013

ESXi does not come in different flavors from version to version - only different licensing. That being said, I've tested it on both with the same results.

@bschmidt001
Copy link

Yes, the version I am using it on is ESXi 5.5. You can get a free license for ESXi 5.5, if you are interested in grabbing a copy and testing.

@weikinhuang
Copy link
Owner

can you try going to https://{{esxihost}}/mob/?moid={{vmid}} and trying the poweron/poweroff methods in the ESX mob and let me know if they work. I'm directly POSTing to those built in methods.
You can find the {{vmid}} by searching through the mob or using this webapp (it's in the url of the vm)

@bschmidt001
Copy link

Wei Kin Huang -

Good day. I performed the below. On executing, I received:

Managed Object Type: ManagedObjectReference:VirtualMachine
Managed Object ID: 9

Properties
Name Type Value
alarmActionsEnabled boolean Unset
availableField CustomFieldDef[]
capability VirtualMachineCapability capability
config VirtualMachineConfigInfo config
configIssue Event[]
configStatus ManagedEntityStatus "green"
customValue CustomFieldValue[]
datastore ManagedObjectReference:Datastore[]
5267bfc5-cba57a8c-2c69-002590d1167a (datastore2)
declaredAlarmState AlarmState[]
disabledMethod string[]
"vim.ExtensibleManagedObject.setCustomValue"
"vim.ManagedEntity.destroy"
"vim.ManagedEntity.addTag"
"vim.ManagedEntity.removeTag"
"vim.VirtualMachine.refreshStorageInfo"
"vim.VirtualMachine.retrieveBackupAgent"
"vim.VirtualMachine.revertToCurrentSnapshot"
"vim.VirtualMachine.upgradeVirtualHardware"
"vim.VirtualMachine.extractOvfEnvironment"
"vim.VirtualMachine.powerOn"
"vim.VirtualMachine.shutdownGuest"
"vim.VirtualMachine.rebootGuest"
"vim.VirtualMachine.standbyGuest"
"vim.VirtualMachine.answer"
"vim.VirtualMachine.customize"
"vim.VirtualMachine.checkCustomizationSpec"
"vim.VirtualMachine.migrate"
"vim.VirtualMachine.relocate"
"vim.VirtualMachine.clone"
"vim.VirtualMachine.exportVm"
"vim.VirtualMachine.markAsTemplate"
"vim.VirtualMachine.markAsVirtualMachine"
"vim.VirtualMachine.unregister"
"vim.VirtualMachine.resetGuestInformation"
"vim.VirtualMachine.unmountToolsInstaller"
"vim.VirtualMachine.upgradeTools"
"vim.VirtualMachine.upgradeToolsFromImage"
"vim.VirtualMachine.setScreenResolution"
"vim.VirtualMachine.defragmentAllDisks"
"vim.VirtualMachine.createSecondary"
"vim.VirtualMachine.turnOffFaultTolerance"
"vim.VirtualMachine.makePrimary"
"vim.VirtualMachine.terminateFaultTolerantVM"
"vim.VirtualMachine.disableSecondary"
"vim.VirtualMachine.enableSecondary"
"vim.VirtualMachine.setDisplayTopology"
"vim.VirtualMachine.setDisplayTopologyModes"
"vim.VirtualMachine.stopRecording"
"vim.VirtualMachine.startReplaying"
"vim.VirtualMachine.stopReplaying"
"vim.VirtualMachine.promoteDisks"
"vim.VirtualMachine.unlock"
"vim.VirtualMachine.queryChangedDiskAreas"
"vim.VirtualMachine.queryUnownedFiles"
"vim.VirtualMachine.diagnoseResourceAllocation"
"vim.VirtualMachine.reloadFromPath"
"vim.VirtualMachine.queryVrmPolicy"
"vim.VirtualMachine.updateVrmPolicy"
"vim.VirtualMachine.queryFaultToleranceCompatibility"
"vim.VirtualMachine.invokeFSR"
"vim.VirtualMachine.terminate"
"vim.VirtualMachine.isNativeSnapshotCapable"
"vim.VirtualMachine.configureQuorumFilePathPrefix"
"vim.VirtualMachine.retrieveQuorumFilePathPrefix"
"vim.VirtualMachine.injectOvfEnvironment"
"vim.VirtualMachine.wipeDisk"
"vim.VirtualMachine.shrinkDisk"
effectiveRole int[]
-1
environmentBrowser ManagedObjectReference:EnvironmentBrowser 9-envmgr
guest GuestInfo guest
guestHeartbeatStatus ManagedEntityStatus "gray"
layout VirtualMachineFileLayout layout
layoutEx VirtualMachineFileLayoutEx layoutEx
name string "devcache01"
network ManagedObjectReference:Network[]
HaNetwork-VM Network (VM Network)
overallStatus ManagedEntityStatus "green"
parent ManagedObjectReference:Folder ha-folder-vm (vm)
parentVApp ManagedObjectReference:ManagedEntity Unset
permission Permission[]
recentTask ManagedObjectReference:Task[]
resourceConfig ResourceConfigSpec resourceConfig
resourcePool ManagedObjectReference:ResourcePool ha-root-pool
(Resources)
rootSnapshot ManagedObjectReference:VirtualMachineSnapshot[]
runtime VirtualMachineRuntimeInfo runtime
snapshot VirtualMachineSnapshotInfo Unset
storage VirtualMachineStorageInfo storage
summary VirtualMachineSummary summary
tag Tag[]
triggeredAlarmState AlarmState[]
value CustomFieldValue[]

Methods
Return Type Name
VirtualMachineMksTicket AcquireMksTicket
VirtualMachineTicket AcquireTicket
void AnswerVM
void CheckCustomizationSpec
ManagedObjectReference:VirtualMachine CloneVM_Task
void ConsolidateVMDisks_Task
string CreateScreenshot_Task
FaultToleranceSecondaryOpResult CreateSecondaryVM_Task
ManagedObjectReference:VirtualMachineSnapshot CreateSnapshot_Task
void CustomizeVM_Task
void DefragmentAllDisks
void Destroy_Task
void DisableSecondaryVM_Task
FaultToleranceSecondaryOpResult EnableSecondaryVM_Task
StorageRequirement[] EstimateStorageForConsolidateSnapshots_Task
ManagedObjectReference:HttpNfcLease ExportVm
string ExtractOvfEnvironment
void MakePrimaryVM_Task
void MarkAsTemplate
void MarkAsVirtualMachine
void MigrateVM_Task
void MountToolsInstaller
void PowerOffVM_Task
void PowerOnVM_Task
void PromoteDisks_Task
DiskChangeInfo QueryChangedDiskAreas
MethodFault[] QueryFaultToleranceCompatibility
string[] QueryUnownedFiles
void RebootGuest
void ReconfigVM_Task
void RefreshStorageInfo
void Reload
void reloadVirtualMachineFromPath_Task
void RelocateVM_Task
void RemoveAllSnapshots_Task
void Rename_Task
void ResetVM_Task
void ResetGuestInformation
void RevertToCurrentSnapshot_Task
void setCustomValue
void SetDisplayTopology
void SetScreenResolution
void ShutdownGuest
void StandbyGuest
ManagedObjectReference:VirtualMachineSnapshot StartRecording_Task
void StartReplaying_Task
void StopRecording_Task
void StopReplaying_Task
void SuspendVM_Task
void TerminateVM
void TerminateFaultTolerantVM_Task
void TurnOffFaultToleranceForVM_Task
void UnmountToolsInstaller
void UnregisterVM
void UpgradeTools_Task
void UpgradeVM_Task

On clicking ShutdownGuess, I then clicked Invoke Method and received:

Managed Object Type: MANAGEDOBJECTREFERENCE:VIRTUALMACHINE
Managed Object ID: 9
Method: SHUTDOWNGUEST

VOID SHUTDOWNGUEST

Parameters

    NAME
    TYPE
    VALUE

    Invoke Method

Method Invocation Result: RestrictedVersion

    NAME
    TYPE
    VALUE

    dynamicProperty
    DynamicProperty[]
    Unset

    dynamicType
    string
    Unset

    faultCause
    MethodFault
    Unset

    faultMessage
    LocalizableMessage[]
    Unset

On 2013-11-02 13:48, Wei Kin Huang wrote:

can you try going to https://{{esxihost}}/mob/?moid={{vmid}} and trying the poweron/poweroff methods in the ESX mob and let me know if they work. I'm directly POSTing to those built in methods.
You can find the {{vmid}} by searching through the mob or using this webapp (it's in the url of the vm)

Reply to this email directly or view it on GitHub [1].

Links:

[1]
#2 (comment)

@bschmidt001
Copy link

Wei Kin Huang -

The same result also applies for PowerOffVM_Task and ResetVM_Task.

Blaine Schmidt

On 2013-11-02 13:48, Wei Kin Huang wrote:

can you try going to https://{{esxihost}}/mob/?moid={{vmid}} and trying the poweron/poweroff methods in the ESX mob and let me know if they work. I'm directly POSTing to those built in methods.
You can find the {{vmid}} by searching through the mob or using this webapp (it's in the url of the vm)

Reply to this email directly or view it on GitHub [1].

Links:

[1]
#2 (comment)

@bschmidt001
Copy link

Wei Kin Huang -

More information on the server:

SERVERNAME VMWARE ESXI 5.5.0, 1331820

RESOURCES

Uptime 17 DAYS Since Oct 25, 2013 5:25:06 PM

Cpu: 525 MHZ / 12 x 1999 MHz

Memory: 32466 MB / 65503 MB

STORAGE: 1 DATASTORE(S)

DATASTORE2 [2]
Non-SSD
3.62 TB Free / 3.63 TB Total
4 VMs

NETWORK: 1 NETWORK(S)

VM NETWORK
4 VMs

GENERAL

MANUFACTURER
Supermicro

MODEL
X9DRL-3F/iF

CPU CORES
12 CPUs x 1999 MHz

PROCESSOR TYPE
Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz

PROCESSOR SOCKETS
2

CORES PER SOCKET
6

LOGICAL PROCESSORS
24

NUMBER OF NICS
2

STATE
Connected

VMS AND TEMPLATES
4

VMOTION ENABLED
No

HOST CONFIG FOR FT
Yes

On 2013-11-02 13:48, Wei Kin Huang wrote:

can you try going to https://{{esxihost}}/mob/?moid={{vmid}} and trying the poweron/poweroff methods in the ESX mob and let me know if they work. I'm directly POSTing to those built in methods.
You can find the {{vmid}} by searching through the mob or using this webapp (it's in the url of the vm)

Reply to this email directly or view it on GitHub [1].

Links:

[1]
#2 (comment)
[2]
https://192.168.12.20/folder?dcPath=ha-datacenter&dsName=datastore2

@nitrocode
Copy link
Contributor

I think I'm having a similar issue. I'm running ESXi 5.0 non free license and when I am using the vm list page, the shutdown / power on buttons will not work. If I click on the VM and then click on the shutdown / power on buttons, then it will work.

I'll have to dig more into the api calls to see what's going on.

@weikinhuang
Copy link
Owner

@nitrocode please do, thanks. I haven't had much time to work on this project lately.

@BBQigniter
Copy link

I'm pretty sure that this has something to do with the API restrictions in the free licensed ESXis. The API is read-only there :o(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants