toptensoftware / VBoxHeadlessTray

Run a VirtualBox machine in a tray icon
180 stars 23 forks source link

Be able to remove instances #33

Closed aussiDavid closed 3 years ago

aussiDavid commented 3 years ago

Persona As a user, I would like to be able to view current instances, so that I can remove them if I no longer want to use the virtual machine.

Purpose Similar to #32, I had accidentally created an instance to a server that never existed. Every time I log in, I would get these error messages with no way to resolve the issue. image

Implementation

  1. Show a list of registered instances (see red lines in screenshot)
  2. Add a remove button (see red box in screenshot) image

Implementation Drawbacks None that I'm aware of.

Alternate Solution I was able to resolve this issue by digging around in the registry.

  1. Open Registry Editor (Start + R, then type regedit)
  2. Navigate to the Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run registry. I found this registry by searching for "vboxheadlesstray". It was the second item for me.
  3. Right-click and delete the instance image
toptensoftware commented 3 years ago

Thanks for reporting. Yep, this is an issue and currently the best fix is as you've described removing the registry entry.

Another interim solution would be to create a new VM in VirtualBox with the missing name (don't both installing an OS) then when you restart the tray icon will appear, you can exit it and that which will remove the registry entries.

As for a correct solution I think the best would be to update the prompt about the missing machine to give the option to remove the registry entry.

toptensoftware commented 3 years ago

Latest build addresses this.

You'll get the same error message as before:

image

Followed by this prompt:

image

Choose "No" and the auto start entries will be removed.

Fixed in the 610 Installer here: http://www.toptensoftware.com/vboxheadlesstray