How to install zcage

To use zcage you need to install git, nodejs and npm then clone the zcage repo and install it using npm.

1 # git clone https://github.com/cneira/zcage.git && cd zcage && sudo npm install -g

 

 Before zcage is able to create new zones, it needs to activate.
This allows zcage to create all the zfs datasets needed for storing zones and images.

1 # sudo zcage activate --pool <pool that zcage will use to store data>

 

In Dilos we can only create zones of brand: dpkg

First we need to setup a virtual network interface using DLADM(1).

Currently each zone needs to have a different vnic otherwise it won't start.

1 # sudo dladm create-vnic -l igb0 vnic0

Here is an example of creating a sparse zone using virtual network interface vnic0 using ip: 192.168.1.225/network mask, 192.168.1.1 as gateway and memory capped to use 2GB of RAM:

1 # zcage create --alias=test07 --brand dpkg --net "vnic0|192.168.1.225/24|192.168.1.1" --ram 2gb

 

Note:

The default scheduler in Dilos is not FSS, for zcage we need to change it to the default:

1 # sudo dispadmin -d FSS

 

https://github.com/cneira/zcage

https://github.com/cneira/zcage/blob/master/docs/quickstart.md