modules: distro's vs guest addition's
modules: distro's vs guest addition's
I'm running Ubuntu Xenial in VBox 5.1.6 on three different hosts (two Mac and one Windows). Xenial's linux-image-4.4.0-*-generic and linux-image-extra-4.4.0-36-generic packages include 5.0.18 versions of vboxguest.ko, vboxsf.ko, and vboxvideo.ko. When I install the guest additions from "Devices"->"Insert Guest Additions CD Image...", VBox installs its own 5.1.16 versions of those modules. Those are the ones I want to run. On two of my hosts (one Mac and one Windows), it always insmods the 5.1.16 versions. On the other Mac, it keeps running the 5.0.18 versions of the modules.
Is it just random which version gets run? Do the guest additions try to control it somehow? What script/binary does it? How?
Thanks!
Is it just random which version gets run? Do the guest additions try to control it somehow? What script/binary does it? How?
Thanks!
-
- 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: modules: distro's vs guest addition's
Nothing is random in software (unless you use a random number generator ). I believe that the problematic installation is running with the distro's GAs, because the VirtualBox GAs fail to install (due to the presence of the distro's GAs). The proper procedure would be to purge the distro GAs and then install the VirtualBox GAs.kpreslan wrote:Is it just random which version gets run? Do the guest additions try to control it somehow? What script/binary does it? How?
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.
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.
Re: modules: distro's vs guest addition's
The distro's version of the kernel modules are part of the kernel's debs -- linux-image-4.4.0-36-generic and linux-image-extra-4.4.0-36-generic. I can't remove the modules in question through the package manager without removing the whole kernel as well. I do *not* have any virtualbox-specific debs installed.socratis wrote:I believe that the problematic installation is running with the distro's GAs, because the VirtualBox GAs fail to install (due to the presence of the distro's GAs). The proper procedure would be to purge the distro GAs and then install the VirtualBox GAs.
I can go in and manually unlink the modules from /lib/modules/4.4.0-whatever and that fixes my problem. However, I'd have to redo that step every time I upgrade to a new kernel release.
Is that really what the VirtualBox authors intend us to do?
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: modules: distro's vs guest addition's
After reading this I can say that none of it makes sense. OS kernels do not have anything included from VirtualBox. The only thing I can think of is you have/had the distro fork of the GAs installed and tries to update the distro packages ( which will always be older ). Remove them and install the official version from VirtualBox package and it should sort this all out.
Re: modules: distro's vs guest addition's
I appreciate your help and I hate to keep arguing with you. However:
Go to the Ubuntu page that describes their latest Xenial kernel: http://packages.ubuntu.com/xenial-updat ... 36-generic
Part way down the page, there is a link called "list of files" for the amd64 architecture. Click on the link. It's http://packages.ubuntu.com/xenial-updat ... c/filelist. Search the resulting page for "vbox" and you get these two lines:
/lib/modules/4.4.0-36-generic/kernel/ubuntu/vbox/vboxguest/vboxguest.ko
/lib/modules/4.4.0-36-generic/kernel/ubuntu/vbox/vboxsf/vboxsf.ko
So, indeed, the vbox kernel modules do come as part of the standard Xenial kernel deb.
You can repeat the exercise with the linux-image-extras-4.4.0-36-generic package and find the vboxvideo.ko file.
Go to the Ubuntu page that describes their latest Xenial kernel: http://packages.ubuntu.com/xenial-updat ... 36-generic
Part way down the page, there is a link called "list of files" for the amd64 architecture. Click on the link. It's http://packages.ubuntu.com/xenial-updat ... c/filelist. Search the resulting page for "vbox" and you get these two lines:
/lib/modules/4.4.0-36-generic/kernel/ubuntu/vbox/vboxguest/vboxguest.ko
/lib/modules/4.4.0-36-generic/kernel/ubuntu/vbox/vboxsf/vboxsf.ko
So, indeed, the vbox kernel modules do come as part of the standard Xenial kernel deb.
You can repeat the exercise with the linux-image-extras-4.4.0-36-generic package and find the vboxvideo.ko file.
-
- 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: modules: distro's vs guest addition's
Ah, but that's not the kernel, is it? Those are packages included with the default distribution alongside the kernel. You can most certainly remove the custom VirtualBox packages and install the official ones. That's where I believe that Perryg had a problem with your statement and so do I : " I can't remove the modules in question through the package manager without removing the whole kernel as well."
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.
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.
-
- Posts: 63
- Joined: 1. Apr 2016, 15:52
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux Ubuntu
- Location: Japan
Re: modules: distro's vs guest addition's
Could you please explain how to purge the distros GA ? And how to differentiate the distro one from the official one ?socratis wrote:The proper procedure would be to purge the distro GAs and then install the VirtualBox GAs.
Just deleting all "*vobx*" files and folders when no GA is installed would be safe ?
-
- 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: modules: distro's vs guest addition's
A new Wiki page was just written that might be of help for your situation: https://www.virtualbox.org/wiki/LinuxAdditionsDebug
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.
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.
-
- 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: modules: distro's vs guest addition's
I believe that in Ubuntu it would be:AALLeeXX wrote:Could you please explain how to purge the distros GA ?
Code: Select all
sudo apt-get purge virtualbox*
The distro ones you install with your package manager from the distro's repository. The official ones you install via the "Devices"->"Insert Guest Additions CD Image...".AALLeeXX wrote:And how to differentiate the distro one from the official one ?
Nope, that would be a bad idea. You'll leave all sorts of trails behind that will need to be cleaned up.AALLeeXX wrote:Just deleting all "*vobx*" files and folders when no GA is installed would be safe ?
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.
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.
Re: modules: distro's vs guest addition's
I'm sorry, but that's *exactly* the kernel. The fourth line in the "filelist" link from above is the kernel itself: /boot/vmlinuz-4.4.0-36-generic.socratis wrote:Ah, but that's not the kernel, is it?
Or you can ask dpkg which package owns the kernel and vboxguest.ko. Both are owned by the same package, linux-image-4.4.0-36-generic.
# dpkg --search /boot/vmlinuz-4.4.0-36-generic /lib/modules/4.4.0-36-generic/kernel/ubuntu/vbox/vboxguest/vboxguest.ko
linux-image-4.4.0-36-generic: /boot/vmlinuz-4.4.0-36-generic
linux-image-4.4.0-36-generic: /lib/modules/4.4.0-36-generic/kernel/ubuntu/vbox/vboxguest/vboxguest.ko
The suggestion of "sudo apt-get purge virtualbox*" doesn't remove the modules because they aren't owned by any package with a name including the string "virtualbox". (They are owned by the kernel deb.) Maybe they are owned by virtualbox-something-or-other in releases prior to Xenial (16.04), but they are part of the kernel the the most-recent release.
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: modules: distro's vs guest addition's
Stop worrying about the kernel. It has nothing to do with VirtualBox.
If nothing else install synaptic and search for virtualbox. Remove anything there and install the official version.
If nothing else install synaptic and search for virtualbox. Remove anything there and install the official version.
-
- 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: modules: distro's vs guest addition's
No, they are not. Not only that, but they are not even installed with the default installation.kpreslan wrote:they are part of the kernel the the most-recent release.
You had me download and install 16.04 last night, just to be 100% sure, because I thought I was losing it. The default installation does not include any VirtualBox kernel modules (do you understand the difference between "kernel" and "kernel module"?), so installing the official VirtualBox GAs was no problem, no conflicts. Of course they are not listed as packages after the installation, so you cannot use 'apt-get' or Synaptic to act on them (add/update/remove).
Of course at the same time I was able to add/remove the Ubuntu GAs at will, either using 'Synaptic' or 'apt-get'. And of course not in parallel with the official GAs.
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.
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.
Re: modules: distro's vs guest addition's
I appreciate you guys taking the time to answer my questions. Thank you.
-
- Posts: 63
- Joined: 1. Apr 2016, 15:52
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux Ubuntu
- Location: Japan
Re: modules: distro's vs guest addition's
Sure but about the files found in the file system, just wanted to find out which of the files was part of which installation... but will try the apt purge should clean some stuff already.Socratis wrote:The distro ones you install with your package manager from the distro's repository. The official ones you install via the "Devices"->"Insert Guest Additions CD Image...".
Sure, thus is why I askedSocratis wrote:Nope, that would be a bad idea. You'll leave all sorts of trails behind that will need to be cleaned up.AALLeeXX wrote:Just deleting all "*vobx*" files and folders when no GA is installed would be safe ?
Well, thank you very much for the details. I ll try this soon...
-
- Posts: 63
- Joined: 1. Apr 2016, 15:52
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux Ubuntu
- Location: Japan
Re: modules: distro's vs guest addition's
Mmm, untill now I installed the GA manually but since I got so many troubles, I'd like to check the simple one with the famous "Devices" menu.
I might be blind, but on Mac, I cannot find such a menu as well as the "Insert GA CD image".
When I select my VM running Ubuntu, the single menus entries I have are "VirtualBox VM" and "Input", and there, no option to install the GA or even mount the CD.
I usually monut an iso image either with the storage manager in the VM settings or through a shared folder with manual mount...
Is there any real difference between the "Devices"->"Insert Guest Additions CD Image..." you propose and the manual mounting and install ?
I might be blind, but on Mac, I cannot find such a menu as well as the "Insert GA CD image".
When I select my VM running Ubuntu, the single menus entries I have are "VirtualBox VM" and "Input", and there, no option to install the GA or even mount the CD.
I usually monut an iso image either with the storage manager in the VM settings or through a shared folder with manual mount...
Is there any real difference between the "Devices"->"Insert Guest Additions CD Image..." you propose and the manual mounting and install ?
Last edited by AALLeeXX on 24. Sep 2016, 06:51, edited 1 time in total.