thbishop/fission — Issue #13: Starting VMs in headless mode hangs.
Author: ody
Created: 2011-12-07 22:05:58+00:00
State: open

When launching VMs in headless mode with Fusion 3, Ruby hangs. Hang is avoided when I modify fission to redirect vmrun commands' stdout to /dev/null

Step 1: Hangs

http://dl.dropbox.com/u/33985079/Screen%20Shot%202011-12-07%20at%201.54.04%20PM.png

Step 2: Kill VM manually using vmrun in right terminal. You will see the method in left terminal finally return.

http://dl.dropbox.com/u/33985079/Screen%20Shot%202011-12-07%20at%201.54.21%20PM.png

This actually seems to be a problem with vmrun its self in conjunction with Ruby leaving stdout IO open but never retrieving anything properly. Vmrun does actually start the process, you can see it in the process table when the vm.start hangs.

Step 1: Start with vmrun in left terminal. This exits normally.

http://dl.dropbox.com/u/33985079/Screen%20Shot%202011-12-07%20at%201.45.07%20PM.png

Step 2: Stop with vmrun in right terminal. Logging for the stop ends up in left terminal.

http://dl.dropbox.com/u/33985079/Screen%20Shot%202011-12-07%20at%201.54.21%20PM.png