VirtualBox

Opened 8 years ago

Closed 3 years ago

#15385 closed defect (fixed)

autostart service on Solaris 11.3 fails

Reported by: CEH Owned by:
Component: host support Version: VirtualBox 5.0.20
Keywords: autostart, /bin/logins, Solaris 11.3, OpenSolaris Cc:
Guest type: Linux Host type: Solaris

Description

Hi,

I am trying to use Virtualbox' autostart service

svc:/application/virtualbox/autostart:default

on Solaris 11.3. However, I cannot automatically boot virtual machines. Line 57 in

/opt/VirtualBox/smf-vboxautostart.sh

looks as follows:

for VW_USER in `logins -g $VW_VBOXGROUP | cut -d' ' -f1`

It seems that

/bin/logins

does not provide the desired output. On Solaris 11.3 it creates an empty list:

name -a
SunOS newserver 5.11 11.3 i86pc i386 i86pc

cat /etc/group
friends::501:jeff,matt,elisabeth

pfexec logins -g friends

On an older OpenSolaris system

/bin/logins

creates the desired output:

uname -a
SunOS oldserver 5.11 snv_131 i86pc i386 i86pc Solaris

cat /etc/group
friends::501:jeff,matt,elisabeth

pfexec logins -g friends
jeff            101     staff           10      Jeff Smith
matt            103     staff           10      Matt Miller
elisabeth       502     staff           10      Elisabeth Jackson

Could this issue be related to Ticket #11720?

Change History (2)

comment:1 by paulson, 3 years ago

This is a regression introduced in Solaris 11.2 which broke the behaviour of 'logins -g':

32754050 'logins -g' searches supplemental groups but fails to return them

and which has been fixed in the recently released Solaris 11.4 SRU36:

https://blogs.oracle.com/solaris/announcing-oracle-solaris-114-sru36

A possible interim workaround until SRU36 can be installed would be to edit the /opt/VirtualBox/smf-vboxautostart.sh script by hand to change the line invoking 'logins -g' to use 'listusers -g' instead::

From:

for VW_USER in logins -g $VW_VBOXGROUP | cut -d' ' -f1

to:

for VX_USER in listusers -g $VW_VBOXGROUP | cut -d' ' -f1

Closing this ticket since this isn't a VirtualBox bug.

comment:2 by paulson, 3 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use