[OpenIndiana-discuss] zfs error when creating zones on OI-148

Jerry Kemp sun.mail.list47 at oryx.cc
Thu Jul 21 19:21:32 UTC 2011


I hate it when I reply to my own post.

this worked.  I intentionally did not put SUMMARY in the subject header,
as I am not necessarily happy about having to create a separate file
system per zone.

Anyway, this allowed my zoneadm install to complete successfully.

# zfs create -o mountpoint=/zones/template d911pool/zonetemplate
# cd /zones
# chmod 0700 template
# zoneadm -z template install

Is everyone running OpenIndiana creating a separate file system for each
zone they create?  This is a fairly lively list, I expected to see at
least a couple more responses to my question.

Jerry

.....................................................

ORIGINAL QUESTION

I am having problems installing my first OpenIndiana b148 zone, and am
running into this error:

..................
# zoneadm -z template 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.
#
..................

My Yahoo-fu turns up several hits, but with no solutions to the issue,
other than referencing an old bug report.  This thread being the most
common.

http://opensolaris.org/jive/thread.jspa?threadID=137053

I have posted some additional details below.  This is/was going to be
just a very basic template zone, so I could use it to clone off a bunch
of additional zones.

TIA for any pointers

Jerry

...........................................................



# cat /etc/release
                      OpenIndiana Development oi_148 X86
        Copyright 2010 Oracle and/or its affiliates. All rights reserved.
                        Use is subject to license terms.
                           Assembled 29 November 2010
#



# zonecfg -z template info
zonename: template
zonepath: /zones/template
brand: ipkg
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
hostid:
fs-allowed:
#


# zfs list | egrep 'NAME|zone'
NAME                       USED  AVAIL  REFER  MOUNTPOINT
d911pool/zones             628K  1.60T   628K  /zones
ultra20m3 /root 418 #


# pwd
/zones
# ls -l
total 3
drwx------   2 root     root           2 Jul 20 15:57 template
# find . -print
.
./template
#


# df -h .
Filesystem             size   used  avail capacity  Mounted on
d911pool/zones         2.7T    43K   1.6T     1%    /zones
#



More information about the OpenIndiana-discuss mailing list