From the command line, you can enter vm-install to run a text version of the Create Virtual Machine Wizard. The text version of the wizard is helpful in environments without a graphical user interface. This command defaults to using a graphical user interface if available and if no options were given on the command line.
For information on scripting a virtual machine installation, see the man pages of vm-install and vm-install-jobs.