New p5p repository image installation requires reboot for removal

Discussions related to using VirtualBox on Solaris hosts.
Post Reply
kburtch
Posts: 13
Joined: 8. Apr 2013, 22:49

New p5p repository image installation requires reboot for removal

Post by kburtch »

The new p5p repository image package (tested 6.1.19) allows you to install VirtualBox without a reboot, but uninstalling it creates a new boot environment and will not remove the package from the current image.

I also tried "pkg uninstall --deny-new-be virtualbox" and it refused.

Code: Select all

# pkg uninstall --deny-new-be virtualbox

pkg uninstall: The proposed operation cannot be performed on a live image.
This makes no sense at all, as it was able to install without a reboot.

Code: Select all

# uptime
  4:10pm  up 146 day(s),  4:46,  3 users,  load average: 0.46, 0.50, 0.38
# pkg info virtualbox
             Name: system/virtualbox
          Summary: Oracle VM VirtualBox
      Description: A powerful PC virtualization solution
         Category: System/Virtualization
            State: Installed
        Publisher: virtualbox
          Version: 6.1.19 (6.1.19r143492)
           Branch: 0.0.0.143492.0.0.0
   Packaging Date: March 24, 2021 at  4:45:15 PM
Last Install Time: March 25, 2021 at  3:48:35 PM
             Size: 257.09 MB
             FMRI: pkg://virtualbox/system/virtualbox@6.1.19-0.0.0.143492.0.0.0:20210324T164515Z
kburtch
Posts: 13
Joined: 8. Apr 2013, 22:49

Re: New p5p repository image installation requires reboot for removal

Post by kburtch »

I verified that several "reboot-needed" entries exist, but it appears they're for drivers which have historically been removable from live systems.

Code: Select all

# pkg contents -m virtualbox |grep -i reboot-needed
file 4c526c7fbbe4e817c89054b4a84c97f0e3fca18e chash=49e50286238424d5d039bdee2f47a5f7bc55abb2 elfarch=i386 elfbits=64 elfhash=a29ffb44f8ec19ce976c973917798ecfc8984262 group=sys mode=0644 owner=root path=platform/i86pc/kernel/drv/amd64/vboxbow pkg.csize=10416 pkg.size=31256 reboot-needed=true variant.opensolaris.zone=global
file 839f57d4d7d4f48412926b8601ee25f366f6db86 chash=8ebcd4f8531f9f5a026d6cea3ae661715d9a23dc elfarch=i386 elfbits=64 elfhash=1b09692aec09d9d061b61f0a7b04236188f308ef group=sys mode=0644 owner=root path=platform/i86pc/kernel/drv/amd64/vboxdrv pkg.csize=159092 pkg.size=502232 reboot-needed=true variant.opensolaris.zone=global
file 27e1b32076a5931d7ce103741540dd18100f9440 chash=2d6967561e1c75be19984288bc03abaff73e78d2 elfarch=i386 elfbits=64 elfhash=867471c43dbbe90bed795092c3eb9f5ef0f5b767 group=sys mode=0644 owner=root path=platform/i86pc/kernel/drv/amd64/vboxnet pkg.csize=3143 pkg.size=10336 reboot-needed=true variant.opensolaris.zone=global
file d33b414e29de2a51fa5ab31350233eecabe1358c chash=7e194dd08c63aba30dca3decd2ae802f16de746d elfarch=i386 elfbits=64 elfhash=a85a875924da4ec05fb6991b0608d534c3db0e9d group=sys mode=0644 owner=root path=platform/i86pc/kernel/drv/amd64/vboxusb pkg.csize=16525 pkg.size=55104 reboot-needed=true variant.opensolaris.zone=global
file 2172855902ede77ff313446376d1ee82103773de chash=fc032b75c2cf9e9b7a338b3536be6645b240cfc4 elfarch=i386 elfbits=64 elfhash=3d0001c032813681c117112893d22a8e32a7b83e group=sys mode=0644 owner=root path=platform/i86pc/kernel/drv/amd64/vboxusbmon pkg.csize=12850 pkg.size=37352 reboot-needed=true variant.opensolaris.zone=global
stes
Posts: 154
Joined: 28. Apr 2018, 11:07

Re: New p5p repository image installation requires reboot for removal

Post by stes »

It is excellent news that there is (since 6.1.18 ?) an IPS package (p5p) at the downloads page of virualbox.org.

As far as I can see in 6.1.26 the reboot-needed line was removed from the manifest in later versions:
# pkg info -g ./myrepo/ virtualbox
Name: system/virtualbox
Summary: Oracle VM VirtualBox
Description: A powerful PC virtualization solution
Category: System/Virtualization
State: Not installed
Publisher: virtualbox
Version: 6.1.26 (6.1.26r145957)
Build Release: 5.11
Branch: 0.0.0.145957.0.0.0
Packaging Date: Wed Jul 28 16:47:29 2021
Size: 257.24 MB
FMRI: pkg://virtualbox/system/virtualbox@6.1.26,5.11-0.0.0.145957.0.0.0:20210728T164729Z
When I check the driver lines it appears they are now without reboot-needed :
$ pkg contents -g ./myrepo/ -r -m virtualbox | grep driver
driver name=vboxbow
driver devlink=type=ddi_pseudo;name=vboxdrv;minor=vboxdrv\t\D devlink=type=ddi_pseudo;name=vboxdrv;minor=vboxdrvu\t\M0 name=vboxdrv perms="* 0600 root sys" perms="vboxdrvu 0666 root sys"
driver name=vboxnet
driver name=vboxusb
driver devlink=type=ddi_pseudo;name=vboxusbmon\t\D name=vboxusbmon perms="* 0660 root vboxusers"

Anyway it is great to see that there is support for an IPS p5p.

When I wrote my old https://sourceforge.net/projects/create ... lbox-repo/ script for VirtualBox 5.x and 6.0, which is now partly or entirely obsoleted by those .p5p files, I also set reboot-needed=true on the drivers.

But I have nothing to do with (and did not work on) the VirtualBox.org p5p files.

Also after writing my create-virtualbox-repo script, I discovered the OpenIndiana virtualbox package.

The OI OpenIndiana package seems to have driver lines without reboot-needed=true.

I don't know the history of the OI virtualbox package but the OI package has a separate virtualbox-additions package which could be useful.

The create-virtualbox-repo also did something like that , e.g.
  • local virtualbox/guest/vboxguest 6.0.0-3.127054:20181210T095011Z
    local virtualbox/guest/vboxguest 5.2.29-130064:20190418T145609Z

Maybe I am mistaken but I think I read somewhere that longtime ago in the days of OpenSolaris (parent of OpenIndiana and Solaris 11) there existed an extra repo ('extra' as the name of the repo) which had extra software such as VirtualBox. But I have never seen or used that.


ANYWAY ... I am sincerely happy to see this p5p appear on the official VirtualBox.org as it is much better than home-brewn solutions like mine.
Post Reply