- Vagrant
- VirtualBox (might work with vmware)
- node.js/npm
- sharutils (for dz; installed on most systems)
archlinux quick install:
pacman -S vagrant virtualbox sharutils npm
This is required because of the config.global_zone
setting in the images Vagrantfile (otherwise not required)
vagrant plugin install vagrant-smartos-zones
Install dz (deploy-zone)
sudo npm install -g deploy-zone
Fire up VM and configure host in dz
vagrant up
vagrant ssh-config --host smartos.vagrant >> ~/.ssh/config
dz host add smartos.vagrant
Build the zone. The mi-* repo should be in the current working folder (see .
):
dz build --host smartos.vagrant -o /var/tmp/ .
Download image from VM
scp smartos.vagrant:/var/tmp/*.zfs.gz .
scp smartos.vagrant:/var/tmp/*.imgmanifest .
Install image (on smartos host)
imgadm install -m /var/tmp/<imgname>.imgmanifest -f /var/tmp/<imgname>.zfs.gz