VMware Cloud Community
pointer_00
Enthusiast
Enthusiast

Ubuntu Virtual Machine hangs on grub menu while powering on VM - vSphere API

Hi,

I am trying to power on the virtual machines inside ESXi (manged by vCenter Server) using vSphere API. The OS I am using is Ubuntu 12.04 server.

I have a Java script that uses the API to do so, however, while powering on the VM, most of the times it gets stuck on the grub boot menu and never gets on from there.

I have changed the default grub settings on Ubuntu (in /etc/default/grub) machine to:

GRUB_HIDDEN_TIMEOUT=0

GRUB_HIDDEN_TIMEOUT_QUIET=false

GRUB_TIMEOUT=0


The VM boots up fine if I do it through the vSphere Client, and the problem occurs only while doing it through the API.


Any pointers would be much appreciated..

Thanks,

0 Kudos
1 Reply
rljohnsn
Contributor
Contributor

There is another grub option you may want to try.

http://serverfault.com/questions/243343/headless-ubuntu-server-machine-sometimes-stuck-at-grub-menu

For Ubuntu 12.04 LTS there is a specific option that can be set in /etc/default/grub.

For example, if you want to have a 2 seconds timeout (thus avoiding hangs for unattended reboots) just add the following line in /etc/default/grub:

GRUB_RECORDFAIL_TIMEOUT=2

Remember to run update-grub after that...

0 Kudos