Having some issues running VBoxManage from within a non-global zone. Some background:
Reasonably fresh install of Solaris 11.3 amd64:
Code: Select all
root@wedge:/# uname -a
SunOS wedge 5.11 11.3 i86pc i386 i86pc
Code: Select all
root@wedge:/root# zoneadm list -iv
ID NAME STATUS PATH BRAND IP
0 global running / solaris shared
6 enterprise running /tank/zones/enterprise solaris excl
Code: Select all
root@wedge:/root# zonecfg -z enterprise info
zonename: enterprise
zonepath: /tank/zones/enterprise
brand: solaris
autoboot: true
autoshutdown: shutdown
bootargs:
file-mac-profile:
pool:
limitpriv:
scheduling-class:
ip-type: exclusive
hostid:
tenant:
fs-allowed:
fs:
dir: /virtualmachines
special: /tank/virtualmachines
raw not specified
type: lofs
options: []
fs:
dir: /iso
special: /tank/software/iso
raw not specified
type: lofs
options: []
fs:
dir: /opt/VirtualBox
special: /opt/VirtualBox
raw not specified
type: lofs
options: []
anet:
linkname: net0
lower-link: auto
allowed-address not specified
configure-allowed-address: true
defrouter not specified
allowed-dhcp-cids not specified
link-protection: mac-nospoof
mac-address: auto
auto-mac-address: 2:8:20:63:cd:a8
mac-prefix not specified
mac-slot not specified
vlan-id not specified
priority not specified
rxrings not specified
txrings not specified
mtu not specified
maxbw not specified
bwshare not specified
rxfanout not specified
vsi-typeid not specified
vsi-vers not specified
vsi-mgrid not specified
etsbw-lcl not specified
cos not specified
pkey not specified
linkmode not specified
evs not specified
vport not specified
device:
match: /dev/vboxdrv
storage not specified
allow-partition not specified
allow-raw-io not specified
device:
match: /dev/vboxdrvu
storage not specified
allow-partition not specified
allow-raw-io not specified
However, the docs are a bit confusing..
It states:
however then below in the green boxThe installation must be performed as root and from the global zone as the VirtualBox installer loads kernel drivers which cannot be done from non-global zones.
On the second note, apparently with pkgadd, the -G option has been deprecated so this doesn't appear supported.If you are using Solaris Zones, to install VirtualBox only into the current zone and not into any other zone, use pkgadd -G.
I have installed VirtualBox as per the docs:
Code: Select all
pkgadd -d VirtualBox-5.1.4-SunOS-amd64-r110228.pkg
VBoxManage works fine from the global zone. It does not from the non-global zone, here is an example:
Code: Select all
root@enterprise:/# /opt/VirtualBox/VBoxManage list vms
ld.so.1: VBoxManage: fatal: relocation error: file /opt/VirtualBox/amd64/components/VBoxXPCOMIPCC.so: symbol _ZNSt15_List_node_base7_M_hookEPS_: referenced symbol not found
Killed
Code: Select all
crle -64 -u -l /usr/sfw/lib/amd64
crle -u -l /usr/sfw/lib
Can anyone help please with getting this working? Or at least identifying if there is a genuine problem outside of PEBKAC.
Thanks in advance