My development computer is running Windows 7 with 16gig of RAM. I run Linux Ubuntu with Apache in the VM for web design testing purposes. To reduce clutter in my default user account in Windows 7 I installed VirtualBox under a second user. Right now it works using the Startup startmenu folder, but I have to literally log in as the second user after a reboot to make it start. I'd like my VM to start without having to install it as my default user and without having to log into the second user's account. Is this possible?
Thanks
EDIT: I've added '\vboxmanager.exe startvm "VM Name"' to Task Scheduler to run at startup. We'll see how that works when I reboot my machine.
-
Just had a thought on this.
Why don't you just modify the permissions to allow you to run it? Then just add it to the startup group for your user and you are all done.
Alternatively I was thinking maybe setting up a shortcut to execute with the other username and password but just seems way to insecure.
From Campo -
You can add something similar to this as a shortcut inside your start menu.
C:\Path\To\VirtualBox\VBoxHeadless.exe -startvm “VM Name”It will run on your user, however, it will not show up at all on your desktop screen.
You can also register that command as a service on the computer.
From Matt Lima -
Why not start it under the second user account via psexec?
psexec is more often used to execute commands on remote machines, but it also can be used to execute commands under a different user account on the local box.
It would look something like this:
psexec -u user2 -p password2 C:\Path\VBoxHeadless.exe -startvm “VM Name”
edit: borrowed Matt Lima's apparent understanding of the VBoxHeadless.exe command line syntax (and gave him an upvote)
From Miles Erickson
0 comments:
Post a Comment