AI installer of SUNWvboxguest *fails*

Discussions about using Solaris guests in VirtualBox.
Post Reply
stes
Posts: 154
Joined: 28. Apr 2018, 11:07

AI installer of SUNWvboxguest *fails*

Post by stes »

Unfortunately it seems not possible to deploy Solaris guests via the Automated Installer by adding the following to the AI manifest :

Code: Select all

    </software>
    <software type="SVR4">
      <source>
        <publisher>
           <origin name="http://192.168.0.4/VBoxSolarisAdditions.pkg"/>
        </publisher>
      </source>
      <software_data>
         <name>SUNWvboxguest</name>
      </software_data>
    </software>
Such as "SVR4" source is not as good as an "IPS" source because the IPS source deals with dependencies and updates but the SVR4 source could possibly be a "temporary" solution.

I was hoping that I could like this deploy automatically the guest additions to the Solaris guests as they are being installed, but unfortunately the above fails during install : see the log file from the installer here:

Code: Select all

PROGRESS REPORT: progress percent:14 Beginning SVR4 transfer
2018-11-22 14:28:26,870   InstallationLogger.generated-transfer-745-2 INFO       Installing SVR4 packages                          
2018-11-22 14:28:26,926   InstallationLogger.generated-transfer-745-2 DEBUG      Executing the following transfer command: ['/usr/sbin/pkgadd', '-n', '-a', '/system/volatile//svr4_admin', '-d', 'http://192.168.0.4/VBoxSolarisAdditions.pkg', '-R', '/a', 'SUNWvboxguest']
2018-11-22 14:28:26,926   InstallationLogger DEBUG      Executing: ['/usr/sbin/pkgadd', '-n', '-a', '/system/volatile//svr4_admin', '-d', 'http://192.168.0.4/VBoxSolarisAdditions.pkg', '-R', '/a', 'SUNWvboxguest']
2018-11-22 14:28:30,958   InstallationLogger DEBUG      progress: generated-transfer-745-2, reported 67, normalized 47, total=60.597282
PROGRESS REPORT: progress percent:61 Transferring contents
2018-11-22 14:28:31,707   InstallationLogger DEBUG      Uncompressing files...                            
2018-11-22 14:28:32,655   InstallationLogger DEBUG      progress: generated-transfer-745-2, reported 100, normalized 70, total=83.597282
PROGRESS REPORT: progress percent:84 Transferring contents
2018-11-22 14:28:33,995   InstallationLogger DEBUG      Configuring VirtualBox guest kernel module...     
2018-11-22 14:28:34,060   InstallationLogger DEBUG      ## VirtualBox kernel module (vboxguest) NOT installed.
2018-11-22 14:28:34,081   InstallationLogger DEBUG      ## VirtualBox kernel module (vboxguest) NOT installed.
2018-11-22 14:28:34,163   InstallationLogger DEBUG      devfsadm: driver failed to attach: vboxguest      
2018-11-22 14:28:34,166   InstallationLogger DEBUG      Creating links...                                 
2018-11-22 14:28:34,244   InstallationLogger DEBUG      (*) X.Org not found, skipped configuring X.Org guest additions.
2018-11-22 14:28:34,247   InstallationLogger DEBUG      Installing 64-bit shared folders module...        
2018-11-22 14:28:34,270   InstallationLogger DEBUG      mv: cannot create /usr/kernel/fs/amd64/vboxfs: Read-only file system
2018-11-22 14:28:34,312   InstallationLogger DEBUG      Installing 32-bit shared folders module...        
2018-11-22 14:28:34,331   InstallationLogger DEBUG      mv: cannot create /usr/kernel/fs/vboxfs: Read-only file system
2018-11-22 14:28:34,675   InstallationLogger DEBUG      ERROR: attribute verification of </a/usr/kernel/fs/amd64/vboxfs> failed
    pathname does not exist
ERROR: attribute verification of </a/usr/kernel/fs/vboxfs> failed
    pathname does not exist
2018-11-22 14:28:34,686   InstallationLogger DEBUG      devfsadm: driver failed to attach: vboxguest
Configuring services (this might take a while)...
2018-11-22 14:29:07,527   InstallationLogger DEBUG      ## Service import failed.
## See /var/svc/log/system-manifest-import:default.log for details.
## Guest kernel module doesn't seem to be up. Skipped explicit boot-archive update.
2018-11-22 14:29:07,529   InstallationLogger DEBUG      ln: cannot create /lib/opengl/ogl_select: No such file or directory
2018-11-22 14:29:07,530   InstallationLogger DEBUG      /a/var/sadm/pkg/SUNWvboxguest/install/postinstall[393]: /lib/svc/method/ogl-select: not found [No such file or directory]
Done.
2018-11-22 14:29:07,530   InstallationLogger DEBUG      pkgadd: ERROR: postinstall script did not complete successfully
2018-11-22 14:29:07,544   InstallationLogger DEBUG      Installation of <SUNWvboxguest> partially failed. 
2018-11-22 14:29:07,567   InstallationLogger ERROR      Error occurred during execution of 'generated-transfer-745-2' checkpoint.
In fact I think the VBoxSolarisAdditions.pkg makes some assumptions so that it cannot be installed during installation of the operating system, only after the install.

The best solution could be to provide us with a .p5p archive of the guest additions (see other post) and for the moment as workaround to use pkgadd -d http:// (see results in different post, that works fortunately).
Last edited by socratis on 28. Nov 2018, 16:11, edited 1 time in total.
Reason: Enclosed the information in [quote][code] tags for better readability
stes
Posts: 154
Joined: 28. Apr 2018, 11:07

Re: AI installer of SUNWvboxguest *fails*

Post by stes »

Using a local repo with "virtualbox/guest/*" packages the Automated Installer can install a vbox guest and immediately add guest additions.

Code: Select all

      <software_data action="install">
        <name>pkg:/entire@11.4-11.4</name>
        <name>pkg:/group/system/solaris-minimal-server</name>
      </software_data>
      <software_data action="install">
        <name>pkg://local/virtualbox/guest/mouse</name>
        <name>pkg://local/virtualbox/guest/filesystem</name>
      </software_data>
The guest additions can be installed like this immediately instead of having to add the SUNWvboxguest package.
Last edited by socratis on 28. Nov 2018, 16:12, edited 1 time in total.
Reason: Enclosed the information in [quote][code] tags for better readability
Post Reply