root@cloudnode2:~/new# cat virt-install.sh
vm_uid=testvm
vcpu=2
ram=512
diskspace=10
path=/home/source/ubuntu-10.04.2-server-amd64.iso
#virt-install -n $vm_uid --vcpus=$vcpu -r $ram -f /root/new/disk0.raw -s $diskspace -c $path --accelerate --connect=qemu:///system --vnc --vnclisten=0.0.0.0 --noautoconsole -v
virt-install -n $vm_uid --vcpus=$vcpu -r $ram -f /root/new/disk0.raw -s $diskspace -c $path --accelerate --connect=qemu:///system --vnc --graphics vnc,password=testing --noautoconsole -v
root@cloudnode2:~/new#
root@cloudnode2:~/new#
root@cloudnode2:~/new# sh virt-install.sh
Usage: virt-install --name NAME --ram RAM STORAGE INSTALL [options]
virt-install: error: no such option: --graphics
root@cloudnode2:~/new#