OpenSolaris installer automation using Dogtail
By Peter Sramel on Nov 05, 2008
We tried to think how to automate OpenSolaris installer and reduce manual work. After finding some tools what can help us with this task, we found project called Dogtail. Home page is located at page:
Dogtail is framework written in Python and is intented for gtk applications automation. It uses Accessibility (a11y) technologies.
If you want to automate installer, you must login in livecd of OpenSolaris. You can download iso image from location:
and after burn it on cd medium.
Because Dogtail uses Accessibility for communication with desktop is neccessary to enable it, in other case screnario for automation will not work. For enabling accessibility run command:
gconftool-2 --set --type bool /desktop/gnome/interface/accessibility true
after you must restart x-server. For restarting exist several ways how to do it, like:
b) logout button,
After using points a) and b) is neccessary to login as ordinary user. But after use point c) the x-servers is restarted with no need to login as user. Of course you must execute gdm-restart command as root, on newest images is possible to do it by run command:
My other recommendation is to enable autofs, because if you want automate the whole installation process including rebooting you can lost all data/screenshots creating by Dogtail. So you can enbale autofs by simple command:
svcadm enable autofs
and check if it run by command:
svcs -a | grep autofs
Now only run created scenario and all installation process is automated. The syntax of scenario and more technical details will be posted on this blog at the end of next week.
Here is flash animations how it can work (swf format):
Recording of an automated installation