Hi,

doing a dry-run attach of a detached zone fails with the message "zoneadm: missing or invalid brand" and exit code 1. Attaching the zone for real succeeds though. I would expect the dry-run to succeed too because the zone was created on this system so everything (packages, patches, network interface etc. are the same). This is on build 52.


# zoneadm list -vc
  ID NAME         STATUS         PATH                           BRAND
   0 global       running        /                              native
   - test         installed      /zones/test                    native
   - aap          installed      /zones/aap                     native

Detach the zone:
# zoneadm -z aap detach
# zoneadm list -vc
  ID NAME         STATUS         PATH                           BRAND
   0 global       running        /                              native
   - test         installed      /zones/test                    native
   - aap          configured     /zones/aap                     native

Try a dry-run attach on the same system:
# zoneadm attach -n /zones/aap/SUNWdetached.xml
zoneadm: missing or invalid brand
# echo $?
1

Now, try to attach the zone for real:

# zoneadm -z aap attach /zones/aap/SUNWdetached.xml
# echo $?
0
# zoneadm list -vc
  ID NAME        STATUS         PATH                           BRAND
   0 global      running        /                              native
   - test        installed      /zones/test                    native
   - aap         installed      /zones/aap                     native

This succeeds so the manifest created by the detach seems to be fine.

The zone is a very simple one:
# zonecfg -z aap info
zonename: aap
zonepath: /zones/aap
brand: native
autoboot: false
bootargs:
pool:
limitpriv:
inherit-pkg-dir:
        dir: /lib
inherit-pkg-dir:
        dir: /platform
inherit-pkg-dir:
        dir: /sbin
inherit-pkg-dir:
        dir: /usr



Menno
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to