[Pkg-virtualbox-devel] Bug#798527: virtualbox fails to work with systemd

shirish शिरीष shirishag75 at gmail.com
Thu Sep 10 12:12:59 UTC 2015


Reply in-line :-

On 9/10/15, Ritesh Raj Sarraf <rrs at debian.org> wrote:
> On Thu, 2015-09-10 at 15:28 +0530, shirish शिरीष wrote:
>> Package: virtualbox
>> Version: 5.0.4-dfsg-1
>> Severity: important
>>
>> Dear Maintainer,
>> I installed virtualbox and it complains :-
>>
>> $ sudo aptitude install virtualbox=5.0.4-dfsg-1
>> The following NEW packages will be installed:
>>   virtualbox
>> 0 packages upgraded, 1 newly installed, 0 to remove and 0 not
>> upgraded.
>> Need to get 0 B/13.7 MB of archives. After unpacking 62.1 MB will be
>> used.
>> Retrieving bug reports... Done
>> Parsing Found/Fixed information... Done
>> Selecting previously unselected package virtualbox.
>> (Reading database ... 260153 files and directories currently
>> installed.)
>> Preparing to unpack .../virtualbox_5.0.4-dfsg-1_amd64.deb ...
>> Unpacking virtualbox (5.0.4-dfsg-1) ...
>> Processing triggers for systemd (225-1) ...
>> Processing triggers for man-db (2.7.3-1) ...
>> Setting up virtualbox (5.0.4-dfsg-1) ...
>> Job for virtualbox.service failed because the control process exited
>> with error code. See "systemctl status virtualbox.service" and
>> "journalctl -xe" for details.
>> invoke-rc.d: initscript virtualbox, action "restart" failed.
>> Processing triggers for systemd (225-1) ...
>> Scanning processes...
>> Scanning candidates...
>> Scanning linux images...
>> Running kernel seems to be up-to-date.
>> Restarting services using systemd...
>> No containers need to be restarted.
>>
>
>
> Your bug report made me go look into my logs and indeed, vbox does
> fail. But I'm not sure if I understand the flow of your  console log.
>
>
> Setting up libqt4-test:amd64 (4:4.8.7+dfsg-3) ...
> Setting up virtualbox (5.0.2-dfsg-2) ...
> Job for virtualbox.service failed because the control process exited
> with error code. See "systemctl status virtualbox.service" and
> "journalctl -xe" for details.
> invoke-rc.d: initscript virtualbox, action "restart" failed.
> Setting up virtualbox-qt (5.0.2-dfsg-2) ...
> Setting up virtualbox-dkms (5.0.2-dfsg-2) ...
> Loading new virtualbox-5.0.2 DKMS files...
> Building only for 4.1.6+
> Building initial module for 4.1.6+
> Done.
>
> vboxdrv:
> Running module version sanity check.
>  - Original module
>    - No original module exists within this kernel
>  - Installation
>    - Installing to /lib/modules/4.1.6+/updates/dkms/
>
> vboxnetadp.ko:
> Running module version sanity check.
>  - Original module
>    - No original module exists within this kernel
>  - Installation
>    - Installing to /lib/modules/4.1.6+/updates/dkms/
>
> vboxnetflt.ko:
> Running module version sanity check.
>  - Original module
>    - No original module exists within this kernel
>  - Installation
>    - Installing to /lib/modules/4.1.6+/updates/dkms/
>
> vboxpci.ko:
> Running module version sanity check.
>  - Original module
>    - No original module exists within this kernel
>  - Installation
>    - Installing to /lib/modules/4.1.6+/updates/dkms/
>
> depmod....
>
> DKMS: install completed.
> Setting up libapt-inst1.7:amd64 (1.0.10.2) ...
> Setting up apt-utils (1.0.10.2) ...
> Setting up libkeyutils1:amd64 (1.5.9-7) ...
>
>
> This is from my console logs. Now VBox fails because it got
> installed/upgraded prior to the dkms package, which was supposed to
> roll in the new drivers.
>
>
> In your logs, there's no mention of the dkms package.


Dear Ritesh,
Thank you for getting in touch quickly. The reason you didn't get to
know about dkms is because I already had installed the dkms package. I
had to play it a few times before realizing that I needed not only
dkms package but also virtualbox-dkms package and now it seems
virtualbox-guest-dkms as well (not sure) which in turn depends upon
virtualbox-guest-utils.

My main aim at the time was to share about the unavailability of a
.service file.

I did do the usual :-

$dpkg -L $PackageName | grep service

before coming to the conclusion that there are systemd service files.

an example of a service file can be seen in lightdm among other packages :-

$ dpkg -L lightdm | grep service
/lib/systemd/system/lightdm.service

The more troubling part for me is though even after installing all the
above vboxdrv is nowhere to be found.

After finding about virtualbox-guest-utils it seems this might be the
binary I may be looking for (not sure yet)

$ apt-file list virtualbox-guest-utils
virtualbox-guest-utils: /etc/init.d/virtualbox-guest-utils
virtualbox-guest-utils: /lib/security/pam_vbox.so
virtualbox-guest-utils: /sbin/mount.vboxsf
virtualbox-guest-utils: /usr/sbin/VBoxControl
virtualbox-guest-utils: /usr/sbin/VBoxService
virtualbox-guest-utils:
/usr/share/doc/virtualbox-guest-utils/changelog.Debian.gz
virtualbox-guest-utils: /usr/share/doc/virtualbox-guest-utils/copyright
virtualbox-guest-utils: /usr/share/man/man8/VBoxControl.8.gz
virtualbox-guest-utils: /usr/share/man/man8/VBoxService.8.gz
virtualbox-guest-utils: /usr/share/man/man8/mount.vboxsf.8.gz

Will be trying in sometime to know if that is what I am/was looking for .

>
> @Gianfranco: What is your opinion?
>
> I think we should add a, Depends: virtualbox-dkms (=
> ${binary:Version}), so that virtualbox can pick it up. Currently, it is
> a Recommends.
>
> If you ask my opinion, I think we should promote it to Pre-Depends:
> virtualbox-dkms | virtualbox-source
>
>
> Is VBox useful without the kernel modules loaded ?
>
>> Also, the recommends are not installed, they should get in the action
>> right ?
>>
>> virtualbox-dkms and virtualbox-qt I mean by those.
>>
>>
>
> It may have to do with your APT Policy settings. virtualbox currently
> Recommends: virtualbox-dkms

I don't think I have changed any APT Policy settings. At least I
didn't find anything in /etc/apt except for preferences but that just
had to pinning packages to testing, other than that all is normal.

> --
> Ritesh Raj Sarraf | http://people.debian.org/~rrs
> Debian - The Universal Operating System

Look forward to hearing from you.

-- 
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
EB80 462B 08E1 A0DE A73A  2C2F 9F3D C7A4 E1C4 D2D8



More information about the Pkg-virtualbox-devel mailing list