fission icon indicating copy to clipboard operation
fission copied to clipboard

Starting VMs in headless mode hangs.

Open ody opened this issue 13 years ago • 4 comments

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

ody avatar Dec 07 '11 22:12 ody

I haven't been able to reproduce this.

What version of fusion are you running?

thbishop avatar Dec 13 '11 05:12 thbishop

Version 3 and I figured it out what causes it. Headless only hangs if the VM has a serial device.

ody avatar Dec 15 '11 21:12 ody

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.

thbishop avatar Dec 18 '11 20:12 thbishop

It is also related to sharing printers with your VM since that requires a virtual serial port.

ody avatar Dec 19 '11 17:12 ody