sudo pkg install VBoxSolarisAdditions.pkg
pkg install: The following pattern(s) did not match any allowable packages.  Try using a different matching pattern, or refreshing publisher information:
sudo pkg install ./VBoxSolarisAdditions.pkg  
pkg install: Illegal FMRI './VBoxSolarisAdditions.pkg': Invalid Package Name: ./VBoxSolarisAdditions.pkg 
sudo pkg set-publisher -p /media/VBOXADDITIONS_4.3.38_106717/   
pkg set-publisher: file protocol error: code: 22 reason: The path '/media/VBOXADDITIONS_4.3.38_106717' does not contain a valid package repository. Repository URL: 'file:///media/VBOXADDITIONS_4.3.38_106717'. 
sudo pkg set-publisher -p /media/VBOXADDITIONS_4.3.38_106717/VBoxSolarisAdditions.pkg 
pkg set-publisher: file protocol error: code: 22 reason: Archive /media/VBOXADDITIONS_4.3.38_106717/VBoxSolarisAdditions.pkg is missing, unsupported, or corrupt. Repository URL: 'file:///media/VBOXADDITIONS_4.3.38_106717/VBoxSolarisAdditions.pkg'.

Am I doing something wrong?

  • 1
    Please include a listing of the directory containing the package.
    – MikeD
    Mar 12, 2017 at 13:42
  • 2
    execute this command sudo pkgadd -d /full/path/to/VBoxSolarisAdditions.pkg Mar 12, 2017 at 13:54

2 Answers 2


From the VirtualBox online manual: Installing the Solaris Guest Additions

The VirtualBox Guest Additions for Solaris are provided on the same ISO CD-ROM as the Additions for Windows and Linux described above. They also come with an installation program guiding you through the setup process.

Installation involves the following steps:

  1. Mount the VBoxGuestAdditions.iso file as your Solaris guest's virtual CD-ROM drive, exactly the same way as described for a Windows guest in Section, “Installation”.

    If in case the CD-ROM drive on the guest doesn't get mounted (observed on some versions of Solaris 10), execute as root:

    svcadm restart volfs

  2. Change to the directory where your CD-ROM drive is mounted and execute as root:

    pkgadd -G -d ./VBoxSolarisAdditions.pkg

  3. Choose "1" and confirm installation of the Guest Additions package. After the installation is complete, re-login to X server on your guest to activate the X11 Guest Additions.


Am I doing something wrong?

Yes. You are trying to use the Solaris 11 IPS new packaging command (pkg) while VirtualBox guest additions package is built for both Solaris 11 and Solaris 10 so is using the legacy SVR4 packaging format and command pkgadd which is supported by both releases.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .