Install for me only

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
camvirt
Posts: 41
Joined: 25. Mar 2019, 01:14

Install for me only

Post by camvirt »

When I try to install Virtualbox 6.04 there is an option "install for all user", "install for me" and "install on a specific device" the latter 2 options are greyed out.

Why can I not select "install for me" on my high Sierra Mac?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Install for me only

Post by socratis »

Because, for security reasons (hardening), VirtualBox is an all-users application, that has to specifically be located in "/Applications/VirtualBox.app". Move it or rename it, and it will fail to launch.
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.
camvirt
Posts: 41
Joined: 25. Mar 2019, 01:14

Re: Install for me only

Post by camvirt »

Why is there an option for installing virtualbox 6.0.4 visible ?

If it is a security issue then the option should not be made visible?

Can you explain the reason for the security issue?
Attachments
virtualbox install.jpeg
virtualbox install.jpeg (75.18 KiB) Viewed 5205 times
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Install for me only

Post by socratis »

camvirt wrote:Why is there an option for installing virtualbox 6.0.4 visible ?
That's the default for the OSX installer if you click on "Customize". It gives you all available options, even the disabled ones.
camvirt wrote:If it is a security issue then the option should not be made visible?
See above.
camvirt wrote:Can you explain the reason for the security issue?
VirtualBox has several checks in place to make sure it's not tampered with. This is most prominent in the Windows installations, see Diagnosing VirtualBox Hardening Issues. On OSX/Linux one of these checks involves checking the path of VirtualBox, and it is set during building of the executable. And on OSX specifically, the path *has* to be "/Applications/VirtualBox.app/". That's why it's not possible to select another disk, or location.
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.
camvirt
Posts: 41
Joined: 25. Mar 2019, 01:14

Re: Install for me only

Post by camvirt »

That makes no sense socratis.

If its a security issue you do not display the customization button. If there is just one default you don't show the customization button.

this is a flaw in the installation of high seirra which does not allow only a single user install instead of all users on a computer which is also more secure method of installation. Why should all accounts have an application installed if only one user uses the software?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Install for me only

Post by socratis »

camvirt wrote:Why should all accounts have an application installed if only one user uses the software?
You need to re-read my answer again! Which apparently you didn't the first time, otherwise we wouldn't be having this conversation.

And this time, please try to understand what I'm saying...
socratis wrote:And on OSX specifically, the path *has* to be "/Applications/VirtualBox.app/". That's why it's not possible to select another disk, or location.
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.
secant
Posts: 6
Joined: 6. Apr 2019, 09:30

Re: Install for me only

Post by secant »

I did read the response and you did not clarify your answer so let me clarify mine.

If I were the developer I would not place a customization button so that it is available for the users to see possibilities that do not function.

If I was a user and had multiple users using my server it would not be secure to have them all see an application that they do not use. This could lead to a user on the server playing with virtual box when it is not meant for that user. In this case installation will automatically install for every user.
Martin
Volunteer
Posts: 2561
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Install for me only

Post by Martin »

The VirtualBox developers din't "include a customization button". They are just using the available standard installer from Apple which behaves as you have found out.
VirtualBox was designed from the start for a single (or few) user system, not for servers with a multitude of users. Oracle has other virtualization solutions available for these environments.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Install for me only

Post by socratis »

Martin already addressed both points, but here are my thoughts as well...
secant wrote:If I were the developer I would not place a customization button so that it is available for the users to see possibilities that do not function.
I am not sure if the Apple installer allows for that flexibility. Especially when the VirtualBox installation *needs* to be customizable!!! It's just not the customization you want, the location *cannot* be custom, which brings us to...
secant wrote:In this case installation will automatically install for every user.
I explained more than once that VirtualBox *needs* to be in that specific location, with those *specific* permissions. Try to mess with it, and it's done working. Try to move it, and it's done working. Try to rename it, and it's done working.

You want it somewhere else? In your "/Users/secant/Applications/VirtualBox.app"? It's doable. You have to build it from source and specify the following options when building it:
  • VBOX_PATH_APP_PRIVATE      = "/Users/secant/Applications/VirtualBox.app/Contents/MacOS"
    VBOX_PATH_APP_PRIVATE_ARCH = "/Users/secant/Applications/VirtualBox.app/Contents/MacOS"
    VBOX_PATH_SHARED_LIBS      = "/Users/secant/Applications/VirtualBox.app/Contents/MacOS"
    VBOX_PATH_APP_DOCS         = "/Users/secant/Applications/VirtualBox.app/Contents/MacOS"
    
Obviously that won't run from "/Users/socratis/Applications/VirtualBox.app", you have to rebuild it from scratch...

BTW, I wouldn't put VirtualBox in a server if I were you, it could bring the server down...

Now, can you put the whole thing to rest? It's been explained ad nauseam... :roll:
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.
secant
Posts: 6
Joined: 6. Apr 2019, 09:30

Re: Install for me only

Post by secant »

If virtualbox is using Apples standard installer the documentation should reflect that stating the it is not possible to install for a single user.

I am not using a server but a workstation with a few accounts and I see no reason why any other account should be able to interact with virtualbox except the account I install it.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Install for me only

Post by socratis »

secant wrote:the documentation should reflect that stating the it is not possible to install for a single user
I don't see the need for that, it's way more than obvious from the installer. What's next? Documenting that you should be pressing the "Next" button?
secant wrote:and I see no reason why any other account should be able to interact with virtualbox except the account I install it.
You're not good at reading threads in their entirety, are you? I've said it as many times as I possible can, in all forms that I possible can; it's a security issue!
  1. The application *needs* to be installed in "/Applications/VirtualBox.app", do you understand that part? Can't be nowhere else, or it will fail to launch!
  2. Being in "/Applications" makes it accessible to every user of the system. End of story.
If you don't like it, go ahead and build your own VirtualBox version! The instructions are already posted in my message right above your last message.
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.
andyp73
Volunteer
Posts: 1631
Joined: 25. May 2010, 23:48
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation

Re: Install for me only

Post by andyp73 »

secant wrote:I see no reason why any other account should be able to interact with virtualbox except the account I install it.
I expect that there are plenty of other applications, system utilities, etc. that are on your system that you wouldn't want other accounts to interact with but they are still there.

The important thing (for most people at least) is that the configuration files of the guests and their virtual hard disk files reside under /Users/<you>/VirtualBox VMs and so are accessible only by you.

-Andy.
My crystal ball is currently broken. If you want assistance you are going to have to give me all of the necessary information.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
Post Reply