fission
fission copied to clipboard
Starting VMs in headless mode hangs.
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.45.20%20PM.png
I haven't been able to reproduce this.
What version of fusion are you running?
Version 3 and I figured it out what causes it. Headless only hangs if the VM has a serial device.
Thanks for following up. I typically strip as many devices as possible from my VMs which explains why I wasn't seeing this. I'll work on a solution for this.
It is also related to sharing printers with your VM since that requires a virtual serial port.