How to setup dilos-xen dom0
How to setup Xen
NOTE:
You need more than 2GB RAM in your host hardware for creating Virtual Machines using Xen.
It will be better to have about 4GB RAM or even more.
Create new dataset for xen dom0:
beadm create xen beadm activate xen reboot
Install packages:
apt-get install xvm xterm xauth tigervnc
Activate Xen dom0:
# vi /lib/svc/method/xvm-milestone # replace all references of runlevel to runlevel=$(/usr/bin/who -r | /usr/bin/awk '{print $2}') svcadm enable milestone/xvm reboot
Create dataset for Xen VMs:
zfs create -o mountpoint=/xen rpool/xen
Example for creation of new dataset for VM:
# we need 10GB hdd for new Xen VM: zfs create -V 10G rpool/xen/vm01
Add more RAM to dom0:
sudo svccfg -s svc:/milestone/xvm setprop hypervisor/dom0_mem = integer: 11236 sudo svccfg -s svc:/milestone/xvm:default refresh sudo svcprop xvm | grep "dom0_mem integer" # check new value sudo reboot