Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting VMs in headless mode hangs. #13

Open
ody opened this issue Dec 7, 2011 · 4 comments
Open

Starting VMs in headless mode hangs. #13

ody opened this issue Dec 7, 2011 · 4 comments
Labels

Comments

@ody
Copy link
Contributor

ody commented Dec 7, 2011

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

@thbishop
Copy link
Owner

I haven't been able to reproduce this.

What version of fusion are you running?

@ody
Copy link
Contributor Author

ody commented Dec 15, 2011

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

@thbishop
Copy link
Owner

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.

@ody
Copy link
Contributor Author

ody commented Dec 19, 2011

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants