Create a installable package?

This is for discussing general topics about how to use VirtualBox.
Post Reply
TinusTate
Posts: 4
Joined: 8. Mar 2017, 14:00

Create a installable package?

Post by TinusTate »

A high level question:
Is there an easy way to run your own application in an virtualbox machine on a user computer which doesn't have virtualbox installed?

My program needs to compile and run untrusted source code. In a bad case this code could delete all files on the harddisk. In a virtualbox machine this action only runes the virtual disk and not the user computer.

I can create a virtualbox machine file on my own computer running my application.

I can instruct my users to manually install virtualbox and my machine file and run it. But i rather want it all in one installable package.

Is such installable package allowed license wise (i'm not using Extension Pack) and is there a manual/instructions on how to create such installable package?
(no need for exact steps, high level is more than enough, i can figure out the exact steps)
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Create a installable package?

Post by socratis »

You should take a look at "Portable VirtualBox". It's as close to what you're asking as possible. Mind you, VirtualBox will always require to be installed, with Administrator privileges mind you (just read the "Note" in their website). You can't have kernel drivers installed without installation and without administrator access. Which (in my opinion) defeats the whole purpose of portable VirtualBox.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Create a installable package?

Post by Perryg »

Just a note on this ,for completion, we do not support "Portable VirtualBox" if you go that route.
TinusTate
Posts: 4
Joined: 8. Mar 2017, 14:00

Re: Create a installable package?

Post by TinusTate »

Cheers @socratis and @Perryg , i took a peek at Portable VirtualBox and became a bit confused when i first ran it. I won't complain, but when i get confused my users will also likely be more confused. Looking at the source code i noticed it used automation tool to automate installation of virtualbox.

This reminded me of automatic installations and i did a search and found msiexec. After a bit a browsing through docs i found out that i can generate a msi from the virtualbox installation file. This msi file can be run with msiexec in quiet mode. This results in virtualbox being installed without any need for user input.

Although i did get a few popups to install drivers.

I suspect i can automate the download of virtualbox install file. Automate the extraction of the msi file, run the msiexec tool. After installation copy my virtualbox machine file to the virtualbox machine directory, next run virtualbox program.

With the api i can run the virtualbox machine.

What do you think will this work?

Network configuration of the virtualbox machine is still something i have to look at.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Create a installable package?

Post by noteirak »

Moved to "Using VirtualBox" for the lack of better place (but API was clearly not)
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply