VirtualBox

Chat about anything related to Linux Mint
Forum rules
Do not post support questions here. Before you post read the forum rules. Topics in this forum are automatically closed 6 months after creation.
Caltrop

VirtualBox

Post by Caltrop »

VirtualBox will NOT share folders.

Installed full package.

downloaded Guest Additions ISO and installed it as well

no network
no shared folders
NO WAY TO GET DATA IN & OUT!
User avatar
Pjotr
Level 24
Level 24
Posts: 20135
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: VirtualBox

Post by Pjotr »

What do you mean "no network"? Your VM's should use the network of the host.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Caltrop

Re: VirtualBox

Post by Caltrop »

I set the network in VirtualBox to different settings and it still does not show in the guest.

No shared folders show in the guest.

VirtualBox tells me Guest Additions are not installed but I just installed from the ISO & re-booted.

VirtualBox says to talk to Mint. Mint tells me to talk to VirtualBox. No one knows anything!!!

ALL Virtual Machines are broken on my computer with Mint 18.2.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: VirtualBox

Post by Flemur »

Caltrop wrote:VirtualBox says to talk to Mint. Mint tells me to talk to VirtualBox. No one knows anything!!!
What does that mean?
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
o-l-d

Re: VirtualBox

Post by o-l-d »

To share folders with Virtualbox it has to be started with root privileges. You can run Virtualbox as root by opening terminal and use su or sudo virtualbox command to open it as root. Once opened you can then share folders and make settings to network if necessary. Once the folders are shared or network fixed you can close and open Virtualbox normally and your settings should be saved. The lack of information makes it difficult to be able to give specific tips/help.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: VirtualBox

Post by catweazel »

o-l-d wrote:To share folders with Virtualbox it has to be started with root privileges.
That is not correct. Shared folders work fine without root privilege. That is the case because VirtualBox shares folders via a network connection.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
o-l-d

Re: VirtualBox

Post by o-l-d »

catweazel wrote:
o-l-d wrote:To share folders with Virtualbox it has to be started with root privileges.
That is not correct. Shared folders work fine without root privilege. That is the case because VirtualBox shares folders via a network connection.


Thanks for the correction it is actually VMware where you have to sudo to change settings or share folders upon rethink. This is from Virtualbox blog:

For VirtualBox with a Linux guest, these are the steps to mount a shared folder:

Use the VirtualBox host's application, VirtualBox Manager, to specify host folders to share.
Make sure VirtualBox Guest Additions are installed in the VirtualBox guest.
In the Linux guest, the mount command should show a line that the share was mounted. This is indicated by type vboxsf. The issue becomes that the mount point may not be where desired, and the permissions are root only. The default mount location is in /media/sf_.
You can access the share by making the user, or group id of 1000, a member of group vboxsf. This is done by changing the vboxsf line in the /etc/group file. May require reboot.
You can change where the folder is mounted by using the VBoxControl command. The command is installed when Guest Additions is installed. May require reboot. For example, to change the mount point from /media/sf_... to /home/toto/sf_... use the following command to set the VirtualBox shared folder guestproperty:
sudo VBoxControl guestproperty set /VirtualBox/GuestAdd/SharedFolders/MountDir /home/toto/
To confirm the change, use get:

sudo VBoxControl guestproperty get /VirtualBox/GuestAdd/SharedFolders/MountDir

Please excuse me for posting wrongly.
deleted

Re: VirtualBox

Post by deleted »

Nope. Not vmware either.

To recap... Neither VirtualBox nor VMWare are required to run as root (or sudo) for anything.
And you definitely should not run them as root (or sudo)

You're referring to mounting shared folders in while in the Linux guest, not the Linux host, which is no different than mounting shares in Linux.
-Hinto
User avatar
Pierre
Level 21
Level 21
Posts: 13226
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: VirtualBox

Post by Pierre »

when sharing some picture / document between the Host & the Guest,
it's a usb stick that seems to work the best between the two,
although it should be possible to specify a fat32 partition on the actual HDD itself,
but I've never successfully got that method to work and generally the information
has come from a 3rd source anyway & so is on the usb stick , for starters.
so, using that usb stick, as the shared folder does work for me.

you have to specify where / what the shared folder is via the settings area of the Guest VM.
- and No, you don't need to be Admin / Root in order to specify that setting,
although it's best if the actual Guest VM is not running, when changing it's VB settings.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: VirtualBox

Post by Flemur »

Pierre wrote:it's a usb stick that seems to work the best between the two,
although it should be possible to specify a fat32 partition on the actual HDD itself,
but I've never successfully got that method to work and generally the information
I share an ext4 partition with Mint 18 host and Win 7 guest, and it works fine for everything except Adobe software running on Win 7.

Code: Select all

$ dpkg -l "*virtu*" | grep ii
ii  virtualbox-5.1                 5.1.12-112440~Ubuntu~xenial  amd64     
ii  virtualbox-guest-dkms          5.0.40-dfsg-0ubuntu1.16.04.1 all     
ii  virtualbox-guest-utils         5.0.40-dfsg-0ubuntu1.16.04.1 amd64    
ii  virtualbox-guest-x11           5.0.40-dfsg-0ubuntu1.16.04.1 amd64   
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
bob466
Level 6
Level 6
Posts: 1151
Joined: Mon May 15, 2017 5:23 am
Location: Australia

Re: VirtualBox

Post by bob466 »

Both Shared Folders and Flash Drives work perfectly in Virtualbox...you just need to be shown...

https://www.youtube.com/watch?v=TSpXn1rWlM8
https://www.youtube.com/watch?v=flehCcMzO30

As for Network...Go to Network...in VM Settings tick...Enable Network Adapter...Attached To:...then make your selection - Done. Hope this helps.
Linux For Ever...Windows Never. Image
The Freedom To Choose Your Own Avatar Without Victimisation.
Caltrop

Re: VirtualBox

Post by Caltrop »

see my post here:

https://forums.virtualbox.org/viewtopic ... 82#p399379

The problem is libqt5core5a not being the newest version.
deleted

Re: VirtualBox

Post by deleted »

If I read your post correctly, you installed VirtualBox from the Software Manager.
You'll always find here that you should install the version from virtualbox.org.

Normally you do only install from the Software Manager, this is an exception.
Not sure if it solves your problem, but I know I don't have a problem with VB and Mint 18.2.
-H
Caltrop

Re: VirtualBox

Post by Caltrop »

I have nothing but the CD/DVD drive and the virtual C: Drive.

There is NO USB, no Shared Folder/Directory, NOTHING!

VirtualBox says to ask Mint.
Then Mint says ask VirtualBox.

see my post:
https://forums.virtualbox.org/viewtopic ... 82#p399465

About ready to switch Distro!
deleted

Re: VirtualBox

Post by deleted »

They said install virtualbox from their site.
You should do that.
-H
Caltrop

Re: VirtualBox

Post by Caltrop »

hinto wrote:If I read your post correctly, you installed VirtualBox from the Software Manager.
You'll always find here that you should install the version from virtualbox.org.

Normally you do only install from the Software Manager, this is an exception.
Not sure if it solves your problem, but I know I don't have a problem with VB and Mint 18.2.
-H
Tried to install direct from VirtualBox but the latest version has a dependency that can not be resolved.
Error: Dependency is not satisfiable: libqt5core5a (>=5.70)
I have v5.5 and it will not update to the beta version or whatever it is.
Caltrop

Re: VirtualBox

Post by Caltrop »

OK, I downloaded the ISO image, mounted it, went to it and ran it and...

Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.40 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 5.0.40 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
update-initramfs: Generating /boot/initrd.img-4.10.0-30-generic
update-initramfs: Generating /boot/initrd.img-4.8.0-53-generic
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non-kernel setup of the Guest Additions ...done.
Starting the VirtualBox Guest Additions ...fail!
(modprobe vboxguest failed)
Press Return to close this window...
Caltrop

Re: VirtualBox

Post by Caltrop »

WOW, what a fun couple of days!

It was unclear that you had to install VirtualBox in the Guest as well as the Host.
I mounted the ISO and nothing showed in the Guest.
So I finally burned a CD, the only thing REAL that shows in the Guest.
Installed, saying OK several times when told I was doing something questionable.
Now...

IT WORKS!
Locked

Return to “Chat about Linux Mint”