Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: LXLE 18.04, MX 18, Mint XFCE, antiX 17
Posts: 32
Rep:
Ubuntu Guest Additions Question
Hello, I've got a fairly straightforward (I hope) question.
I have experience of a good number of Linux distros, both as conventionally installed systems and on Virtualbox, but I'm essentially a casual user and my knowledge of Linux technicalities is very superficial......
Anyway, I wanted to install the Guest Additions package to Ubuntu 18.04 on Virtualbox, and the first step it appeared was to type 'sudo apt install linux-headers-$(uname -r) build-essential dkms' in the terminal. I haven't a clue what this means, incidentally.
For some reason, the OS could not execute the command, and suggested I try again later. I decided nevertheless to go into 'Devices' and try installing the Guest Additions cd. To my surprise, it seemed to install fine, and Ubuntu booted up in full screen mode (which was the main reason for my installing the Additions). There was a warning just before this about the system not being 'set up to build kernel modules' or similar.
I've been using the Ubuntu virtual machine to surf the net, and nothing untoward has occurred, but I can't help feeling that there may be issues at some point.
Could anyone please explain to me, in as untechnical a way as possible, what may be going on here?
EDIT: Re-reading that an hour or so later, it seemed maybe a bit vague. What I'd really like to know is what is the purpose of that terminal command, and what difference does it make if it is not used or executed?
Last edited by Summer Deep; 04-01-2019 at 11:14 PM.
sudo is used to run commands as another user (usually root) - see man sudo for details
apt is used to handle packages - again, see man apt
apt install <name list> will install the specified packages and their dependencies: build-essential dkms and linux-headers-<version>
uname -r just returns the current version of the kernel - again, see man uname
These packages are required to be able to install VBoxAdditions successfully.
Distribution: LXLE 18.04, MX 18, Mint XFCE, antiX 17
Posts: 32
Original Poster
Rep:
Thanks for the reply. I'm actually familiar with the basic purpose of the sudo command in the Ubuntu family of distros. What I'm really trying to find out is in what specific respects the VBox additions will not be successfully installed without the 'build-essential dkms and linux headers' packages. As I said, my Ubuntu VBox machine appears on the surface to be running without problems at the moment.
My fault really for asking not to be overwhelmed with technical details!
The commands you provided will pull in and build a kernel module based on the headers for your kernel. I suspect VirtualBox needs a kernel module in order to run with the guest additions.
Yes, i got this message when i attempt to click on Install VMware Tools
I tried some tutorials on manually install VmWare tools on ubuntu but i gave up after severals hours attenpting that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.