[OpenIndiana-discuss] Zone configuration broken in Hipster 2015-10?
Stefan Müller-Wilken
stefan.mueller-wilken at acando.de
Fri Nov 13 12:17:27 UTC 2015
Dear all,
could it be that Hipster has a broken zone initialization code? In contrast to oi151_a9 I get errors ZFS dataset errors when initializing a new zone. I can manually create the zone and proceed but will ultimately fail with a zfs mounting permission problem:
root at hipster:~# zonecfg -zmyzone info
zonename: myzone
zonepath: /zones/myzone
brand: ipkg
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
hostid:
fs-allowed:
net:
address: 10.25.5.74/22
allowed-address not specified
physical: e1000g0
defrouter: 10.25.4.1
root at hipster:~# zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / ipkg shared
- myzone configured /zones/myzone ipkg shared
root at hipster:~# zoneadm -zmyzone install
ERROR: the zonepath must be a ZFS dataset.
The parent directory of the zonepath must be a ZFS dataset so that the
zonepath ZFS dataset can be created properly.
root at hipster:~# zfs create rpool/zones/myzone
root at hipster:~# zoneadm -zmyzone install
zoneadm: zone 'myzone': zone is incomplete; uninstall required.
root at hipster:~# zoneadm -zmyzone uninstall
Are you sure you want to uninstall zone myzone (y/[n])? y
root at hipster:~# zfs create rpool/zones/myzone
root at hipster:~# zoneadm -zmyzone install
Publisher: Using openindiana.org (http://pkg.openindiana.org/hipster-2015/ ).
Image: Preparing at /zones/myzone/root.
Cache: Using /var/pkg/publisher.
Sanity Check: Looking for 'entire' incorporation.
Installing: Packages (output follows)
Packages to install: 120
Mediators to change: 5
Services to change: 4
DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 120/120 26658/26658 194.6/194.6 6.4k/s
PHASE ITEMS
Installing new actions 41919/41919
Updating package state database Done
Updating package cache 0/0
Updating image state Done
Creating fast lookup database Done
Note: Man pages can be obtained by installing pkg:/system/manual
Postinstall: Copying SMF seed repository ... done.
Postinstall: Applying workarounds.
Done: Installation completed in 198.207 seconds.
Next Steps: Boot the zone, then log into the zone console (zlogin -C)
to complete the configuration process.
root at hipster:~# zoneadm -zmyzone boot
root at hipster:~# zlogin -C myzone
[Connected to zone 'myzone' console]
106/106
Hostname: myzone
Loading smf(5) service descriptions: 1/1
cannot mount 'rpool/zones': Insufficient privileges
cannot mount 'rpool/zones/myzone': Insufficient privileges
svc:/system/filesystem/local:default: WARNING: /usr/sbin/zfs mount -a failed: exit status 1
Nov 13 04:03:45 svc.startd[1574]: svc:/system/filesystem/local:default: Method "/lib/svc/method/fs-local" failed with exit status 95.
Nov 13 04:03:45 svc.startd[1574]: system/filesystem/local:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)
myzone console login:
SUNW-MSG-ID: SMF-8000-YX, TYPE: defect, VER: 1, SEVERITY: major
EVENT-TIME: Fri Nov 13 04:03:52 PST 2015
PLATFORM: i86pc, CSN: -, HOSTNAME: myzone
SOURCE: software-diagnosis, REV: 0.1
EVENT-ID: 7293381b-0744-e8cb-e0d9-835a8aaf1802
DESC: A service failed - a start, stop or refresh method failed.
Refer to http://illumos.org/msg/SMF-8000-YX for more information.
AUTO-RESPONSE: The service has been placed into the maintenance state.
IMPACT: svc:/system/filesystem/local:default is unavailable.
REC-ACTION: Run 'svcs -xv svc:/system/filesystem/local:default' to determine the generic reason why the service failed, the location of any logfiles, and a list of other services impacted.
myzone console login: root
root at myzone:~# cat /var/svc/log/system-filesystem-local:default.log
[ Nov 13 04:03:19 Enabled. ]
[ Nov 13 04:03:44 Executing start method ("/lib/svc/method/fs-local"). ]
WARNING: /usr/sbin/zfs mount -a failed: exit status 1
[ Nov 13 04:03:45 Method "start" exited with status 95. ]
root at myzone:~# /usr/sbin/zfs mount -a
cannot mount '/zones': directory is not empty
cannot mount 'rpool/zones/myzone': Insufficient privileges
root at myzone:~#
-----
Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Geschäftsführer: Guido Ahle | Amtsgericht Hamburg, HRB 76048 | USt-IdNr.: DE208833022
More information about the openindiana-discuss
mailing list