Here is a short example with many options given which creates a new Debian Squeeze Xen 4.0x image file.

The command will create a 25GB Debian Squeeze Image file in the LVM:’vservers’ which will run the 32 bit kernel 2.6.26-2-xen-686 with 2GB of RAM and 1GB of SWAP file with root password ‘changeme’.

Note: remember to replace the values enclosed inside {….}. Then delete these { and } as well.
xen-create-image --hostname= --size=25Gb --swap=1024Mb --ip={xxx.xxx.xxx.xxx} --netmask={xxx.xxx.xxx.xxx} \
--gateway={xxx.xxx.xxx.xxx} --force --lvm=vservers --memory=2048Mb --arch=i386 \
--kernel=/boot/vmlinuz-2.6.26-2-xen-686 --debootstrap --dist=squeeze \
--initrd=/boot/initrd.img-2.6.26-2-xen-686 \
--mirror=http://ftp2.de.debian.org/debian/ --passwd "changeme"