<div><div class="gmail_quote">On Sat, Oct 22, 2011 at 2:11 PM, vmnode guy <span dir="ltr"><<a href="mailto:vmnodeguy@gmail.com">vmnodeguy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>Seem like there is no such option, or could my option place it incorrectly ?</div><div><br></div><div><div>root@cloudnode2:~/new# cat virt-install.sh </div><div>vm_uid=testvm</div><div>vcpu=2</div><div>ram=512</div><div>

diskspace=10</div><div>path=/home/source/ubuntu-10.04.2-server-amd64.iso</div><div><br></div><div><br></div><div>#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</div>

<div><br></div><div>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</div><div>root@cloudnode2:~/new# </div>

<div>root@cloudnode2:~/new# </div><div>root@cloudnode2:~/new# sh virt-install.sh </div><div>Usage: virt-install --name NAME --ram RAM STORAGE INSTALL [options]</div><div><br></div><div>virt-install: error: no such option: --graphics</div>

<div>root@cloudnode2:~/new# </div></div><div><br></div><div>Regards,</div><div>Peter Cheng</div><div><div></div><div class="h5"><div><br></div></div></div></blockquote><div><br></div><div>Are you sure that you're running the latest virt-install -- because latest does have that option.  If you refer to the manpages of the latest version: </div>
<div><br></div><div><a href="http://git.fedorahosted.org/git/?p=python-virtinst.git;a=blob;f=man/en/virt-install.pod.in#l633">http://git.fedorahosted.org/git/?p=python-virtinst.git;a=blob;f=man/en/virt-install.pod.in#l633</a></div>
<div><br></div><div>I recommend you update your virt-install version in order to be able to use that option, otherwise, you might be limited in your options.  You could add a command that sets it manually by connecting to qemu (might be more complicated).  If it's the same password, I think you could leave it in /etc/libvirt/qemu.conf</div>
<div><br></div><div><a href="http://wiki.libvirt.org/page/QEMUSwitchToLibvirt#change_vnc_PASSWORD">http://wiki.libvirt.org/page/QEMUSwitchToLibvirt#change_vnc_PASSWORD</a></div><div><br></div><div>Let me know if this helps.</div>
</div><div><br></div>-- <br><span style="font-family:Arial;font-size:8pt"><span style="color:rgb(70, 130, 180);font-size:10pt">Mohammed Naser</span> — <span style="font-weight:bold">vexxhost</span><br></span><div><span style="font-family:Arial;font-size:8pt"><span><span style="color:rgb(220, 220, 220)">-----------------------------------------------------</span></span></span></div>
<div><span style="font-family:Arial;font-size:11px"><span style="font-weight:bold">E. </span><a href="mailto:mnaser@vexxhost.com" target="_blank">mnaser@vexxhost.com</a></span></div><div><span style="font-family:Arial;font-size:11px"><span style="font-weight:bold">W. </span><a href="http://vexxhost.com/" target="_blank">http://vexxhost.com</a></span></div>
<br>
</div>