Get the debian package from the website and install it with dpkg:
dpkg -i snoozeimage_X.X.X.deb
Install also libvirt.
apt-get install libvirt
Snoozeimages can be configured to use libvirt pool as a storage backend. Thus you need to configure a libvirt instance in order for the snoozeimages service to connnect to.
Usually, a default pool exists once libvirt is install. You can check by typing :
virsh pool-list --all
Make sure it is activated.
virsh pool-start [pool-name]
If no pool exists, create one.
virsh pool-define-as --name [pool-name] --target /var/lib/libvirt/images --type dir
virsh pool-build [pool-name]
virsh pool-start [pool-name]
Configuration file can be found in /usr/share/snoozeimages/configs.
Once the pool is started, fill the config /usr/share/snoozeimages/configs/snooze_images.cfg with the appropriate pool name.
service snoozeimages start
It will takes default the logger configuration file in /usr/share/snoozeimages/configs/log4j.xml and logs will be printed in /tmp/snooze_images.log.
java -jar path_to_snoozeimages_jar cfgFile logFile
The snoozeimages jar can be found in /usr/share/snoozeimages/
In order to make sure that the snoozeimages is running properly you can check the following :
curl localhost:4000/images