Giter VIP home page Giter VIP logo

esxi-simple-web's Introduction

esxi-simple-web

Basic controls straight from the esxi host in the browser

This allows you to run basic operations against the ESXi MOB api from a simple web interface straight from the ESXi host without the need for the vCenter web client.

Inspired by virtuallyGhetto's Ghetto webAccess for ESXi

Deprecation Notice

This method is now deprecated as ESXi 6+ has a web ui built in now using this fling: ESXi Embedded Host Client

Installation & Usage

Copy over the web directory to your esxi host with

scp -r web {ESXi hostname}:/usr/lib/vmware/hostd/docroot/

Then navigate to https://{ESXi hostname}/web/, accept the certificate error and enter your username/password for the host.

Development

Requires php >= 5.4.0

Start the development server with

php -S 127.0.0.1:8080 proxy.php

In your browser go to http://localhost:8080/encrypt.php to generate the config file. Afterwards go to your browser and visit http://localhost:8080/web/ and start developing!

Notes

In ESXi 6, the vSphere MOB is disabled by default, this web view requires that it be enabled. virtuallyGhetto has already solved this issue in Quick Tip - vSphere MOB is disabled by default in ESXi 6.0.

In the ESXi shell, enable it with the command:

vim-cmd hostsvc/advopt/update Config.HostAgent.plugins.solo.enableMob bool true

Verify that it's true with the command:

vim-cmd hostsvc/advopt/view Config.HostAgent.plugins.solo.enableMob

You can also enable it manually using vsphere by selecting the parent node of the vm tree, configuration tab, click Advanced Settings under Software, expand Config > HostAgent > Plugins > solo > enableMob, and set it to true.

esxi-simple-web's People

Contributors

andydavies avatar nitrocode avatar weikinhuang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esxi-simple-web's Issues

esxi restart removes /usr/lib/vmware/hostd/docroot/web folder

Hi! We had a power outage the other day and when my esxi booted, the /usr/lib/vmware/hostd/docroot/web directory was missing and in order to reinstall it, I had to place web/ within docroot/ again.

I was thinking a way around this could be to install the web/ folder in a different location and symlink to that folder from docroot/web. However, on a reboot, this symlink will also probably be removed so there must be a way to run a command on ESXi bootup and that I haven't figured out yet.

Vmware esxi 6.0

Command should be
vim-cmd hostsvc/advopt/update Config.HostAgent.plugins.solo.enableMob bool true

Also vms don't seem to show.

VM names are still urlencoded in webview

Just a small glitch: The name of the VMs is not url-decoded correctly before it is displayed (see the attached image).
Anyway, many thanks for this neat tool! :-)
screen

Does it work with 4.1?

With latest 4.1 (VMware ESXi 4.1.0, 1682698) it shows summary screen normally, but does not detect VMs running, and VM screen reports

Total Vms: Error!

Virtual Machines does not show up

Hi!

I'm running ESXi 5.5, and somehow the virtual machine that I'm currently hosting on it doesn't show up under "Virtual Machines". I don't know if this is a bug only for ESXi 5.5, I'm unable to verify this.

Best regards,
Viktor Jakobsson

ESXi 6.0

Hi! I like your web app and I installed it on a ESXi 5.0 machine and it worked for me. I recently installed ESXi 6.0 on a new machine and when I scp'ed the files over, went to the https://esxi-ip-address/web, accepted the certificate, I was shown the normal UI. However, the normal UI is stuck on "loading" and never seems to load my VMs.

Also I saw this error on my Chrome Console.

Failed to load resource: the server responded with a status of 503 (Service Unavailable (Failed to connect to endpoint: [N7Vmacore4Http20NamedPipeServiceSpecE:0xffb04b28] _serverNamespace = /mob _isRedirect = false _pipeName =/var/run/vmware/proxy-mob))

I can access https://esxi-5.0-ip-address/mob but I cannot access that page using the ESXi 6.0 machine... Has anyone got this to work on 6.0? Did the remove the "mob" functionality in the new ESXi???

Edit: Thanks to the dude from virtuallyghetto, he already ran into this and found out that the mob has to be enabled from advanced settings.

http://www.virtuallyghetto.com/2015/02/quick-tip-vsphere-mob-is-disabled-by-default-in-esxi-6-0.html

Thanks,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.