How do you install programs onto VirtualBox? What's the easiest way?

Questions about virtualization software
Forum rules
Before you post please read how to get help
Post Reply
mintyfreshuser
Level 2
Level 2
Posts: 83
Joined: Sat Dec 30, 2017 10:14 pm

How do you install programs onto VirtualBox? What's the easiest way?

Post by mintyfreshuser » Sat Feb 10, 2018 12:17 pm

Hi.

Does anyone know how to install programs onto VirtualBox? I'm running VirtualBox Graphical User Interface Version 5.1.32 r120294 (Qt5.5.1) by Oracle.

I have a virtualized version of Windows 10 installed and it works, but I don't yet know how to install programs onto it. I want to install those programs that have trouble working on Linux. The Wine program doesn't always work for me for some reason.

The distro of Linux Mint that I'm using is Linux 18.3 Sylvia and the desktop environment is Cinnamon 3.6.6 if that helps.

Thank you.

deepakdeshp
Level 11
Level 11
Posts: 3856
Joined: Sun Aug 09, 2015 10:00 am

Re: How do you install programs onto VirtualBox? What's the easiest way?

Post by deepakdeshp » Sat Feb 10, 2018 1:23 pm

The programs are installed just as you would on a physical machine.
Fire up the VM and follow the same instructions for it
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 19 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

User avatar
chrisuk
Level 5
Level 5
Posts: 593
Joined: Thu Jun 12, 2008 6:16 am

Re: How do you install programs onto VirtualBox? What's the easiest way?

Post by chrisuk » Sat Feb 10, 2018 1:46 pm

Your Virtual Machine (VM) is isolated from the rest of your host system (apart from maybe the clipboard), so double-clicking on an installer will just run Wine.

Your VM might be setup to access your DVD drive and/or USB drives directly, but I think most people would create a shared folder in your $Home - say "WinShare", and copy any installers to there, and then access them from the VM.

You could of course, just enable Internet access in your VM, and download and install directly as usual. Personally, I never allow any of my Widows VMs to access the Internet... unless it was for testing and I'd just revert to a saved state afterwards.
Chris

Manjaro MATE - MX Linux - LMDE MATE

Cosmo.
Level 23
Level 23
Posts: 17829
Joined: Sat Dec 06, 2014 7:34 am

Re: How do you install programs onto VirtualBox? What's the easiest way?

Post by Cosmo. » Sat Feb 10, 2018 3:54 pm

The first question is, frm whch source you want to install. The sentence regarding wine lets me assume, that you have the program's installation file already. In this case you need to create a Shared folder for the VM. Note, that you need to install at first the guest additions at first inside of the running VM.

mintyfreshuser
Level 2
Level 2
Posts: 83
Joined: Sat Dec 30, 2017 10:14 pm

Re: How do you install programs onto VirtualBox? What's the easiest way?

Post by mintyfreshuser » Mon Feb 12, 2018 12:06 pm

Cosmo. wrote:
Sat Feb 10, 2018 3:54 pm
The first question is, frm whch source you want to install. The sentence regarding wine lets me assume, that you have the program's installation file already. In this case you need to create a Shared folder for the VM. Note, that you need to install at first the guest additions at first inside of the running VM.
I guess I would like to install things from either my Downloads folder on Linux Mint or from an external drive such as a USB stick or an SD card.

I created a Shared folder for the VM and I called it "WinShare" within the "Home" folder. I've been looking for it from within the Windows 10 VirtualBox, but it doesn't show up. I have an SD card plugged into my computer which shows up as a drive on Linux Mint, but I don't seem to be able to find that drive within my Windows 10 VirtualBox. I don't know why my SD card wouldn't show up.

mintyfreshuser
Level 2
Level 2
Posts: 83
Joined: Sat Dec 30, 2017 10:14 pm

Re: How do you install programs onto VirtualBox? What's the easiest way?

Post by mintyfreshuser » Mon Feb 12, 2018 12:38 pm

chrisuk wrote:
Sat Feb 10, 2018 1:46 pm
Your VM might be setup to access your DVD drive and/or USB drives directly, but I think most people would create a shared folder in your $Home - say "WinShare", and copy any installers to there, and then access them from the VM.
The VM doesn't seem to be set up to access the DVD drive and/or USB drives directly. I have an SD card plugged into my computer which shows up within Linux Mint, but not within VirtualBox.

I did create a shared folder in "Home" folder of Linux Mint, named it "WinShare", and then put an installation folder within it, but this "WinShare" folder doesn't seem to show up within my Windows 10 VirtualBox when I run it.
chrisuk wrote:
Sat Feb 10, 2018 1:46 pm
You could of course, just enable Internet access in your VM, and download and install directly as usual.
I will see if downloading something within VirtualBox and then installing it within VirtualBox works.

Cosmo.
Level 23
Level 23
Posts: 17829
Joined: Sat Dec 06, 2014 7:34 am

Re: How do you install programs onto VirtualBox? What's the easiest way?

Post by Cosmo. » Mon Feb 12, 2018 4:00 pm

mintyfreshuser wrote:
Mon Feb 12, 2018 12:06 pm
I created a Shared folder for the VM and I called it "WinShare" within the "Home" folder. I've been looking for it from within the Windows 10 VirtualBox, but it doesn't show up.
From inside of the running W10 guest open from the VB devices menu (at the top) shared folders and open the dialogue for it. What does it show?
Other question is: Do you have the guest additions installed in the W10 guest? Press in the running guest host-n. In the upper part you can see, if and which are installed.
mintyfreshuser wrote:
Mon Feb 12, 2018 12:06 pm
I have an SD card plugged into my computer which shows up as a drive on Linux Mint, but I don't seem to be able to find that drive within my Windows 10 VirtualBox. I don't know why my SD card wouldn't show up.
At best you leave this. The problem is, that a drive can only be associated with the host or with a guest, never with both of them at the same time. The next problem is, that by associating an external drive this will get "hot" disconnected from the host without properly dismounting it at first; a principle problem, how VB handles this. Doing this would sooner or later result in data loss. (Out of this reason I do not give an advice how to do this mistake.)

You should instead use the shared folder as a intermediate storage place. Copy the files from the external drive into the shared folder respectively the other way round.

Post Reply

Return to “Virtualization”