VMware

This Question is Not Answered

1 "correct" answer available (10 pts)
1 2 3 4 Previous Next 59 Replies Last post: Sep 2, 2008 10:10 AM by dosers   Go to original post
Click to view I_C's profile Enthusiast 43 posts since
Jun 3, 2008

You are correct. On a fresh boot I do not get the reboot only on waking my mac from sleep (and for me it only happens with 64 bit guests and they can be suspended or powered off).

I stumbled across it when changing the nic settings in the boot.sh. I wanted to have vmware run on nic 2 on my mac pro as opposed to the default nic. In doing so I was constantly restarting the vmware services with the boot.sh. One evening I was playing around, went to my mac pro, woke it from sleep, editted the boot.sh file to mess with something. ran the "boot.sh --restart" command and it did not spontaneously reboot. That's when it clicked in my head.

I tested a few more time by putting the mac to sleep and waking it, then starting a VM (in my case any 64-bit vm). It spontaneously rebooted. When it came back up I put it to sleep, woke it, ran the "boot.sh --restart" and started the VM and there was no reboot.

So now whenever I wake the machine from sleep I run the "boot.sh --restart" command and it doesnt reboot the mac (that is when I remember to ;)). I suppose it could be automated so that whenever my mac wakes from sleep it runs the "boot.sh --restart", but i havent gotten to it yet.

So as you can see I stumbled upon it by chance. (For reference I am running a 2008 mac pro, leopard 10.5.4, blah blah blah.) Let me know if you need more info. Thanks!

Ian

Click to view HPReg's profile Hot Shot 387 posts since
Dec 22, 2004
Let me know if you need more info.

I need more info so I can fix the bug in Fusion 2.0's final release :) See my previous post (above in this forum) on how to proceed to narrow down the cause of the issue. Thanks!
Click to view terry.simons's profile Enthusiast 51 posts since
Jun 25, 2007
I'm able to cause this as well.

Host:


2x4-core 2.8Ghz. 8GB of RAM.


Guest:


64-bit XP (fresh install).


Steps to reproduce:


Put system to sleep.


Wake system up.


Attempt to open XP 64-bit.


Note: Since this is a fresh install, I get a warning from VMware that I should install the VMWare tools. The reboot doesn't occur until after I click Ok. Specifically, after this: 8/8/08 8:43:06 PM kernel vmci: Open socket 0xbda2c44.


See the attached 64-bit crash log (yes, I was lucky enough to get logs).


This log is basically from the time I woke up, until I started the VM. The vmci: Open socket message mentioned above is the last thing I see before I click "Ok" in the guest's alert about wanting me to install the VMWare Tools.


I think that the reason some people aren't seeing logs is because the crash can occur before syslogd can flush the logging db to disk. The first time I triggered this I saw messages in console.app that weren't in my log after I rebooted. The second time around I had the trusty old command-option-shift-4-spacebar handy, though I double checked my logs again, and it caught some of the messages (I'm not sure if it caught them all). Hopefully this helps some.


One thing I noticed is the odd vmmon garbled garbage. I saw something similar (and have posted separately about it) when installing XP 64-bit. It almost looks like some weird memory corruption is going on, unless this is some wierd obfuscated blob of gunk, but generally when I see repeating patterns and nonsensical things surrounding it I get suspicious. ;)

  • Terry
Attachments:
Click to view terry.simons's profile Enthusiast 51 posts since
Jun 25, 2007
Yeah it's definitely casued by the sleep/wake/startup 64-bit.

I haven't tried a 32-bit system yet, but I did just try the --reset idea.


When using boot.sh --reset, my kexts all reload, but when I attempt to launch the 64-bit guest, it basically bombs out on me.

Looks like a lock was held on to last time I crash-rebooted my system... I'll have to see if I can recover from that.

Click to view terry.simons's profile Enthusiast 51 posts since
Jun 25, 2007
Definitely vmmon

First, I made sure that a boot.sh --reset would prevent the reboot. It did.

Next, I unloaded/loaded everyting EXCEPT vmmon, since I already suspected it from my log messages. This still caused my system to reboot!


Finally, I unloaded/loaded ONLY vmmon, to see if the reboot would occur. It did NOT.


So it seems that vmmon is our culprit. Next, I'll test 32-bit systems.

Update: Yes, it affects 32-bit systems as well. I tested XP 32-bit and Win2k3 Server Standard w/SP1.


All of the systems I tested were using the default NAT'd interface. I didn't try bridged mode.

  • Terry
Click to view I_C's profile Enthusiast 43 posts since
Jun 3, 2008

I agree! Good work Terry!

I can confirm Terry's findings. Loading
and unloading all modules except for vmmon will result in a system
rebooting. If vmmon is reloaded after a system wakes from
sleep you will not get the reboot.

Ian

Click to view thejfk's profile Lurker 3 posts since
Jul 2, 2006
Same problem, early 2008 Mac Pro running 10.5.4 with 32bit Vista, bridged network. I think it even got worse when I upgraded from Beta 1 to Beta 2. Reloading vmmon seems to help!

I automated the workaround and published the necessary steps on my blog http://www.robertlacroix.com/cs/archive/2008/08/10/fixing-spontaneous-reboots-caused-by-vmware-fusion-2-beta.aspx
Click to view HPReg's profile Hot Shot 387 posts since
Dec 22, 2004
Thanks Terry, Ian, and Daniel for identifying vmmon as the culprit (i.e. reloading vmmon after putting the machine to sleep works around the spontaneous reboot issue).

I'm going to share this with other engineers. If we don't find the problem, we will give you special instrumented versions of vmmon to pinpoint the issue even further.
Click to view I_C's profile Enthusiast 43 posts since
Jun 3, 2008

Thanks for the automation tip thejfk :D.

Ian


Click to view HPReg's profile Hot Shot 387 posts since
Dec 22, 2004
Let's try to further isolate whether the issue in vmmon is related to VT or not:

1) Reproduce the spontaneous reboot issue with a _32_-bit VM.
2) Stick this line in the VM's config file: monitor.virtual_exec = "software"
3) Can you still reproduce the issue, or is the line in #2 a workaround for the issue?

Thanks for helping with the testing.

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities