How to install guest additions via command line?

This is for discussing general topics about how to use VirtualBox.
Post Reply
N00bie
Posts: 13
Joined: 8. Jul 2014, 17:00

How to install guest additions via command line?

Post by N00bie »

I have an Ubuntu Server 14 LTS guest installed on my OSX host. I tried installing the guest additions as follows:

Code: Select all

sudo apt-get install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11

#update
sudo apt-get update        # Fetches the list of available updates
sudo apt-get upgrade       # Strictly upgrades the current packages
sudo apt-get dist-upgrade  # Installs updates (new ones)

sudo reboot
I read that to check if the additions are installed correctly, you can run this command:

Code: Select all

sudo modprobe vboxadd
However, the output is:

Code: Select all

modprobe: FATAL: Module vboxadd not found.
Did I do something incorrectly? What is the correct way to install the guest additions via command line, and then to verify it is installed correctly?

Thanks!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to install guest additions via command line?

Post by Perryg »

What do you hope to achieve here. Servers don't have Xorg and it is command line only. The best you can hope for is shared folders.
On top of that the packages you are trying to install are not ours, it is the Ubuntu repo fork which we don't support.
N00bie
Posts: 13
Joined: 8. Jul 2014, 17:00

Re: How to install guest additions via command line?

Post by N00bie »

Perryg wrote:What do you hope to achieve here. Servers don't have Xorg and it is command line only. The best you can hope for is shared folders.
On top of that the packages you are trying to install are not ours, it is the Ubuntu repo fork which we don't support.
I'm new to VirtualBox and am wanting to use it so I can develop on my laptop with an environment identical to my live server.

I need to allow shared folders so that the Ubuntu server can load changes I make to my website files in real-time. I also was hoping to get shared clipboards working, but this isn't as big of a deal since I assume I can just SSH in.
N00bie
Posts: 13
Joined: 8. Jul 2014, 17:00

Re: How to install guest additions via command line?

Post by N00bie »

I just ran the commands to create a shared folder, and it worked! I don't know if the guest additions is installed or not, given that the command I previously posted to check returned an error, but the shared folder is working.

I don't really need to enable clipboard sharing since SSH is also working, so I guess it doesn't really matter whether the guest additions are installed/working at this point.

TLDR: Never mind!

Thanks for your help.
Post Reply