vmware-archive / vagrant-vmware-appcatalyst

Vagrant provider for VMware AppCatalyst®
Apache License 2.0
73 stars 16 forks source link

OOM memory is not visible in vagrant, and error conditions in general. #10

Open mleventi opened 9 years ago

mleventi commented 9 years ago

When trying to launch a box that gets a power on failure... its not obvious what the power on failure is and there is no detail on how to resolve the issue. There should be some pertinent output.

For example display that there is not enough memory in this case...

2015-07-08T11:52:37.370-08:00| vmx| I125: [msg.memsched.preNotEnoughMem] Not enough physical memory is available to power on this virtual machine with its configured settings.
2015-07-08T11:52:37.370-08:00| vmx| I125: [msg.memsched.notEnoughMemGuestMemVal2.fusion] To fix this problem, power off other virtual machines or decrease the memory size of this virtual machine to 4556 MB.
2015-07-08T11:52:37.370-08:00| vmx| I125: [msg.memsched.hostUnderDuress] It is possible that native applications and/or services have locked down memory which could be preventing the virtual machine from launching. Shutting down unnecessary applications or services may free enough memory to launch this virtual machine.
2015-07-08T11:52:37.370-08:00| vmx| I125: [msg.memsched.postNotEnoughMem] If you were able to power on this virtual machine on this host computer in the past, try rebooting the host computer. Rebooting may allow you to use slightly more host memory to run virtual machines.
frapposelli commented 9 years ago

Yes, we're going to address this in future versions of AppCatalyst, it's not strictly related to the vagrant provider, it's a limitation in what the current API can report back.

sigil66 commented 8 years ago

Ok neat, so there will be some way to get console data? I am attempting to get a SmartOS image working, it works on Fusion, but the network never becomes available on catalyst. The log shows no obvious failures.

sigil66 commented 8 years ago

And nevermind. socat + serial.socket0 is your friend.

Xe commented 8 years ago

Is it possible to attempt booting the vm manually after it has a power-on failure when starting via vagrant?

anubhavs-vmw commented 8 years ago

yes you can use appcatalyst cli to do so. You would need the vagrant-id for the vm in question, once you have 'id' you can run appcatalyst vmpower on .