[OpenIndiana-discuss] OI148 and zones

Deano deano at rattie.demon.co.uk
Sun Jan 9 09:52:13 UTC 2011


The mkdir/chmod was a part of various guides I've read, and is too allow the
verify function to work I believe.

Honestlr can't remember if I had rebooted after installing...

I've wiped that machine and installed 148 directly, and done exactly as
before except missing the mkdir/chmod/verify and its worked 1st time.
So does indeed look like something to do with an 147 -> 148 upgrade. However
a direct 148 install its working perfectly.

Thanks,
Deano


-----Original Message-----
From: Anil [mailto:replicase at gmail.com] 
Sent: 08 January 2011 20:35
To: Discussion list for OpenIndiana
Subject: Re: [OpenIndiana-discuss] OI148 and zones

Why are you creating the directories manually with mkdir/chmod? They
should get created automatically.

Also, I have to ask, you rebooted after you did image-update to 148?
... and then are creating the zone?

You can also try doing:
pkg -R /export/webserver-zone image-update -nv

To see if it'll show you any more details.


Anil
Entic.net
Solaris Cloud Servers


On Sat, Jan 8, 2011 at 4:30 AM, Deano <deano at rattie.demon.co.uk> wrote:
> Hi Alasdair,
> Tried pkg image-update as su and got No Updates for this image available.
> Retried creating the zone same as before.
>
> Pkg publisher info below,
>
> deano at chicco:~# pkg publisher
> PUBLISHER                             TYPE     STATUS   URI
> openindiana.org          (preferred)  origin   online
> http://pkg.openindiana.org/dev/
> opensolaris.org                       origin   online
> http://pkg.openindiana.org/legacy/
>
> Thanks,
> Deano
>
> -----Original Message-----
> From: Alasdair Lumsden [mailto:alasdairrr at gmail.com]
> Sent: 08 January 2011 04:00
> To: Discussion list for OpenIndiana
> Subject: Re: [OpenIndiana-discuss] OI148 and zones
>
> Hi Deano,
>
> I hit this problem myself - can you try running "pkg image-update" again?
I
> had to run it twice before OI stated "No updates available".
>
> If you get "Np updates available" and your Zones still won't install, then
> something more serious may be up. It would also be useful to see the
output
> of "pkg publisher"
>
> Cheers,
>
> Alasdair
>
> On 7 Jan 2011, at 15:59, Deano wrote:
>
>> Hi,
>>
>>
>>
>> Sent this yesterday but seems to have disappeared, resending with another
>> log of another failed attempt.
>>
>>
>>
>> ----
>>
>> I'm trying to create a zone but it keeps failing...
>>
>>
>>
>> Machine is a fresh install of 147, then
>>
>> pkg image_update to 148,
>>
>> Few mini admin tasks (set Primary Administrator, took a snapshot etc.)
>>
>> Then tried to create zones
>>
>> Zfs create rpool/export/zones
>>
>> Zonecfg -z dev-zone
>>
>> zonecfg:dev-zone> create
>>
>> zonecfg:dev-zone> set zonepath=/export/zones/dev-zone
>>
>> zonecfg:dev-zone> verify
>>
>> zonecfg:dev-zone> commit
>>
>> zonecfg:dev-zone> exit
>>
>> deano at chicco:~$ pfexec zoneadm -z dev-zone install
>>
>> A ZFS file system has been created for this zone.
>>
>>   Publisher: Using openindiana.org (http://pkg.openindiana.org/dev/ ).
>>
>>   Publisher: Using opensolaris.org (http://pkg.openindiana.org/legacy/).
>>
>>       Image: Preparing at /export/zones/dev-zone/root.
>>
>>       Cache: Using /var/pkg/download.
>>
>> Sanity Check: Looking for 'entire' incorporation.
>>
>>  Installing: Core System (output follows)
>>
>> pkg: No solution was found to satisfy constraints
>>
>> ERROR: failed to install package
>>
>>
>>
>>
>>
>> Tried lots of combinations, setting zone net parameters, different
> zonepath
>> and zfs bits but always fails to install the core packages.
>>
>>
>>
>> Never done zones before, so perhaps I'm missing something obvious, but
the
>> existing howtos and guides I could find seem to indicate this used to
work
>> on oSol?
>>
>>
>>
>> Latest log
>>
>>
>>
>> Last login: Fri Jan  7 10:59:57 2011 from 192.168.254.3
>>
>> OpenIndiana     SunOS 5.11      oi_148  November 2010
>>
>> deano at chicco:~$ su
>>
>> Password:
>>
>> deano at chicco:~# zonecfg -z webserver-zone
>>
>> webserver-zone: No such zone configured
>>
>> Use 'create' to begin configuring a new zone.
>>
>> zonecfg:webserver-zone> create
>>
>> zonecfg:webserver-zone> set autoboot=true
>>
>> zonecfg:webserver-zone> set zonepath=/export/webserver-zone
>>
>> zonecfg:webserver-zone> info
>>
>> zonecfg:webserver-zone> verify
>>
>> zonecfg:webserver-zone> commit
>>
>> zonecfg:webserver-zone> exit
>>
>> deano at chicco:~# zoneadm list -cv
>>
>>  ID NAME             STATUS     PATH                           BRAND  
 IP
>>
>>   0 global           running    /                              ipkg
>> shared
>>
>>   - webserver-zone   configured /export/webserver-zone         ipkg
>> shared
>>
>> deano at chicco:~# mkdir /export/webserver-zone
>>
>> deano at chicco:~# chmod 700 /export/webserver-zone
>>
>> deano at chicco:~# zoneadm -z webserver-zone verify
>>
>> deano at chicco:~# zoneadm -z webserver-zone install
>>
>> A ZFS file system has been created for this zone.
>>
>>   Publisher: Using openindiana.org (http://pkg.openindiana.org/dev/ ).
>>
>>   Publisher: Using opensolaris.org (http://pkg.openindiana.org/legacy/).
>>
>>       Image: Preparing at /export/webserver-zone/root.
>>
>>       Cache: Using /var/pkg/download.
>>
>> Sanity Check: Looking for 'entire' incorporation.
>>
>>  Installing: Core System (output follows)
>>
>> pkg: No solution was found to satisfy constraints
>>
>> ERROR: failed to install package
>>
>>
>>
>>
>>
>>
>>
>> Thanks for your help,
>>
>> Deano
>>
>>
>>
>> deano at cloudpixies.com
>>
>>
>>
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>

_______________________________________________
OpenIndiana-discuss mailing list
OpenIndiana-discuss at openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss




More information about the OpenIndiana-discuss mailing list