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

Start VM as Headless #16

Open
sandeep-khanna opened this issue Apr 9, 2019 · 4 comments
Open

Start VM as Headless #16

sandeep-khanna opened this issue Apr 9, 2019 · 4 comments

Comments

@sandeep-khanna
Copy link

My goal is to have a Linux virtual machine up and available at all times when logged in to my account on the host. The guest machine should also survive reboots and shutdowns.

Host: Microsoft Windows 10 Enterprise
Guest: Ubuntu 18.04

Two solutions that seem promising:

1. VBoxHeadlessTray

  • Great concept
  • Nice tray icon that is animated when starting/restoring a VM
  • Starts guest VM is headless mode so the VirtualBox GUI can be used to just 'Show' the running VM
  • Not very reliable; Guest VM looses saved state possibly due to the VBoxHeadlessTray process being killed too soon by Windows during restart/shutdown.

2. VBoxVmService

  • Interesting take and similar to the VBoxHeadlessTray
  • Default install location (C:\vms) should instead be "C:\Program Files\Oracle\VirtualBox\VBoxVmService"
  • Tray service icon is uninteresting and limited in actions that can be performed
  • Seems to start guest VMs (atleast based on the logs); Missing ability for using VirtualBox manager GUI to 'Show' the running VM.
  • Documentation could be better

What is the best or recommended approach to 'connecting' or 'showing' a VBoxVmService started virtual machine?

@caffeine74
Copy link

I expect RDP or set up SSH and log in securely.

@bkraul
Copy link

bkraul commented Oct 6, 2019

Yeah but what if the machine's networking is hosed and the only way you have is through Vbox console? With VBoxVmService you can't do this, as the GUI will not see the current vm process...

@BOBofBORG
Copy link

I know this is old but wanted to provide this feedback. Search for "headless virtualbox" and you should come up with several instructions and wiki's. I have this setup on 2 servers: windows 2012 & linux server. For the windows server, i use vboxvmservice & phpvirtualbox. This would allow you to connect remotely to start or stop the vm's thru a website.

If you have network issues with the VM's, you can also rdp into the vm using the host server ip & port of the VM.

@bkraul
Copy link

bkraul commented Jan 20, 2020

Yeah, tried all that. I eventually just settled with using in-session headless vbox and gave up on the service approach. Seems to work well. It's sad that virtual box does not support a robust session-less service setup out of the box. VMWare has this useful feature.

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

No branches or pull requests

4 participants