[OmniOS-discuss] zoneadm -z zone attach -u fails

Natxo Asenjo natxo.asenjo at gmail.com
Fri Jan 10 13:29:24 UTC 2014


hi,

Thanks to Sergey's tips I got it working.

Here is how:

1. I checked the list of publishers in the zone, and indeed, omnios was missing:
root at zfstank:~# pkg -R /tank/zones/zone1/root/ publisher
PUBLISHER                             TYPE     STATUS   URI
omnios.blackdot.be                    origin   online
http://omnios.blackdot.be/

2. Then I added the omnios publisher:
root at zfstank:~# pkg -R /tank/zones/zone1/root/ set-publisher -g
http://pkg.omniti.com/omnios/release/ omnios

3. Rechecked the publishers' list, now you see omnios in there:
root at zfstank:~# pkg -R /tank/zones/zone1/root/ publisher
PUBLISHER                             TYPE     STATUS   URI
omnios.blackdot.be                    origin   online
http://omnios.blackdot.be/
omnios                                origin   online
http://pkg.omniti.com/omnios/release/

4. Run the update:
root at zfstank:~# pkg -R /tank/zones/zone1/root/ update
            Packages to remove:   4
            Packages to update: 375
       Create boot environment:  No
Create backup boot environment:  No
            Services to change:   1

DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              379/379 11962/11962  193.5/193.5

PHASE                                        ACTIONS
Removal Phase                            12268/12268
Install Phase                            10325/10325
Update Phase                               8660/8660

PHASE                                          ITEMS
Package State Update Phase                   754/754
Package Cache Update Phase                   379/379
Image State Update Phase                         2/2

---------------------------------------------------------------------------
NOTE: Please review release notes posted at:

http://omnios.omniti.com/ReleaseNotes
---------------------------------------------------------------------------

5. Attache the zone:
root at zfstank:~# zoneadm -z zone1 attach
Log File: /var/tmp/zone1.attach_log.FMaGQf
               Attach Path: /tank/zones/zone1/root
        Attach ZFS Dataset: tank/zones/zone1/ROOT/zbe-1

                Installing: Using pre-existing data in zonepath
       Global zone version: entire at 11,5.11-0.151008:20131205T195242Z
   Non-Global zone version: entire at 11,5.11-0.151008:20131205T195242Z
                     Cache: Using /var/pkg/publisher.
  Updating non-global zone: Output follows
No updates necessary for this image.

                    Result: Attach Succeeded.


6. Booted the zone, all is well now.

Thanks!


-- 
regards,
Natxo


More information about the OmniOS-discuss mailing list