[root@smtest ~/config/states/hypervisor/smartos]# piadm list
di_init() failed
di_init() failed
/usr/sbin/piadm: line 718: CONFIG_sapi_domain: parameter null or not set
di_init() failed
PI STAMP BOOTABLE FILESYSTEM BOOT IMAGE NOW NEXT
Was not expecting it to work, just ran it in the wrong terminal. We could probably be nicer about it and just exit with a message when the zonename != global ?