virt-install. Both methods are covered by this chapter.
virt-install command to create virtualized guests from the command line. virt-install is used either interactively or as part of a script to automate the creation of virtual machines. Using virt-install with Kickstart files allows for unattended installation of virtual machines.
virt-install tool provides a number of options one can pass on the command line. To see a complete list of options run:
$ virt-install --help
--vnc option which opens a window for graphical guest installation.
# virt-install --name fedora9 --ram 512 --file=/var/lib/xen/images/fedora9.img \ --file-size=3 --vnc --cdrom=/path=to/fedora9.iso