
Originally Posted by
Kumagoro
How would you go about creating something like a shortcut which launches a VM and automatically shows one program open, so it looks like it just opened the program. I don't know what the terminology is so haven't hit much on google. I'm sure there is more than one way to skin this cat so any workable solution would be useful to look into.
Ideally I would like a user to be able to launch the shortcut which shows the program on their desktop but is running on a remote machine. But just launching a local VM would be good enough.
I will be using Windows and Vbox
To start a VM from a shortcut, I created a couple of bat files within the installation folder of VBox that contained a command line, then I created a shortcut to each bat file. You could obviously do it a handful of different ways, like a pure shortcut to VirtualBoxVM.exe but a bat file gives greater control & flexibility. The command to start a VM looks like this from a command prompt / bat file:
Code:
start VirtualBoxVM.exe --startvm "VM1 Windows XP SQL 2008 R2 SP1"
That will cover you for a 'Normal Start' of a local VM. If you want to go Headless, the last time I looked there was no available command. But one may have been included since, as I believe when I last looked it was part of a todo list. If Headless is what you want, I'll have another look into whether there is now a command, I've not looked since version 5 when Headless was first released.
So that would cover you for a local VM.
Assuming Windows is going to be the guest OS on VBox?
When they Login to the guest Windows can you not put either a shortcut in the users 'Startup' folder or an autorun entry in the registry?
EDIT: ok I misunderstood what you wanted when you just wanted to display one program, in VBox you want to install the 'Guest Additions' within the Guest OS, then in theory when you select 'Seemless Mode' it will remember that for future starts of the VM, so the user will be none the wiser that they're starting a VM.
With VirtualBox I have yet to attempt starting a VM hosted on another machine. So I've not any experience of that. But hopefully some of this will help & point you in the right direction.