Christian Smith - Sun Microsystems - Dublin Ireland
2007-Nov-19 15:09 UTC
virt-install complains about vnc-password not being set
Hi All, Im getting the following error when I run virt-install: bash-3.2# virt-install -n winxp-01 --hvm -r 384 --vnc -f /etc/opt/vms/winxp-01.img -s 16 -c /etc/opt/images/windowsXP_SP2.iso Starting install... libvir: Xen Daemon error : POST operation failed: (xend.err ''Error creating domain: vncpasswd is not set up in VMconfig and xend-config.'') Traceback (most recent call last): File "/usr/bin/virt-install", line 657, in ? main() File "/usr/bin/virt-install", line 606, in main dom = guest.start_install(conscb,progresscb) File "/export/builds/xvm_77/proto/install/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 638, in start_install File "/export/builds/xvm_77/proto/install/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 655, in _do_install File "/usr/lib/python2.4/vendor-packages/libvirt.py", line 503, in createLinux if ret is None:raise libvirtError(''virDomainCreateLinux() failed'', conn=self) libvirt.libvirtError: virDomainCreateLinux() failed POST operation failed: (xend.err ''Error creating domain: vncpasswd is not set up in VMconfig and xend-config.'') I have set the vncpassword property as follows: # svccfg -s xvm/xend setprop config/vncpasswd = astring: \”somepwd\” # svcadm refresh xvm/xend; svcadm restart xvm/xend # svccfg -s xvm/xend setprop config/vnc-listen = astring: \”0.0.0.0\” # svcadm refresh xvm/xend; svcadm restart xvm/xend Is there something particular I need to set the password to? Im not really concerned with authentication at the moment so having no password would be ok. Thanks in advance, Christian
Mark Johnson
2007-Nov-19 15:14 UTC
Re: virt-install complains about vnc-password not being set
Christian Smith - Sun Microsystems - Dublin Ireland wrote:> Hi All, > > Im getting the following error when I run virt-install: > > bash-3.2# virt-install -n winxp-01 --hvm -r 384 --vnc -f > /etc/opt/vms/winxp-01.img -s 16 -c /etc/opt/images/windowsXP_SP2.iso > > > Starting install... > libvir: Xen Daemon error : POST operation failed: (xend.err ''Error > creating domain: vncpasswd is not set up in VMconfig and xend-config.'') > Traceback (most recent call last): > File "/usr/bin/virt-install", line 657, in ? > main() > File "/usr/bin/virt-install", line 606, in main > dom = guest.start_install(conscb,progresscb) > File > "/export/builds/xvm_77/proto/install/usr/lib/python2.4/site-packages/virtinst/Guest.py", > line 638, in start_install > File > "/export/builds/xvm_77/proto/install/usr/lib/python2.4/site-packages/virtinst/Guest.py", > line 655, in _do_install > File "/usr/lib/python2.4/vendor-packages/libvirt.py", line 503, in > createLinux > if ret is None:raise libvirtError(''virDomainCreateLinux() failed'', > conn=self) > libvirt.libvirtError: virDomainCreateLinux() failed POST operation > failed: (xend.err ''Error creating domain: vncpasswd is not set up in > VMconfig and xend-config.'') > > > I have set the vncpassword property as follows: > > # svccfg -s xvm/xend setprop config/vncpasswd = astring: \”somepwd\” > # svcadm refresh xvm/xend; svcadm restart xvm/xend > > # svccfg -s xvm/xend setprop config/vnc-listen = astring: \”0.0.0.0\” > # svcadm refresh xvm/xend; svcadm restart xvm/xend > > Is there something particular I need to set the password to? Im not > really concerned with authentication at the moment so having no password > would be ok.does svcprop xvm/xend show config/vncpasswd? You can''t set it to a NULL passwd, e.g. "". MRJ
Christian Smith - Sun Microsystems - Dublin Ireland
2007-Nov-19 15:28 UTC
Re: virt-install complains about vnc-password not being set
Hi Mark, Thanks for your reply. It was a typo on my part, I used vncpassword instead of ''vncpasswd'' for the property key :-( Thanks, Christian Mark Johnson wrote:> Christian Smith - Sun Microsystems - Dublin Ireland wrote: > >> Hi All, >> >> Im getting the following error when I run virt-install: >> >> bash-3.2# virt-install -n winxp-01 --hvm -r 384 --vnc -f >> /etc/opt/vms/winxp-01.img -s 16 -c /etc/opt/images/windowsXP_SP2.iso >> >> >> Starting install... >> libvir: Xen Daemon error : POST operation failed: (xend.err ''Error >> creating domain: vncpasswd is not set up in VMconfig and xend-config.'') >> Traceback (most recent call last): >> File "/usr/bin/virt-install", line 657, in ? >> main() >> File "/usr/bin/virt-install", line 606, in main >> dom = guest.start_install(conscb,progresscb) >> File >> "/export/builds/xvm_77/proto/install/usr/lib/python2.4/site-packages/virtinst/Guest.py", >> line 638, in start_install >> File >> "/export/builds/xvm_77/proto/install/usr/lib/python2.4/site-packages/virtinst/Guest.py", >> line 655, in _do_install >> File "/usr/lib/python2.4/vendor-packages/libvirt.py", line 503, in >> createLinux >> if ret is None:raise libvirtError(''virDomainCreateLinux() failed'', >> conn=self) >> libvirt.libvirtError: virDomainCreateLinux() failed POST operation >> failed: (xend.err ''Error creating domain: vncpasswd is not set up in >> VMconfig and xend-config.'') >> >> >> I have set the vncpassword property as follows: >> >> # svccfg -s xvm/xend setprop config/vncpasswd = astring: \”somepwd\” >> # svcadm refresh xvm/xend; svcadm restart xvm/xend >> >> # svccfg -s xvm/xend setprop config/vnc-listen = astring: \”0.0.0.0\” >> # svcadm refresh xvm/xend; svcadm restart xvm/xend >> >> Is there something particular I need to set the password to? Im not >> really concerned with authentication at the moment so having no password >> would be ok. >> > > does svcprop xvm/xend show config/vncpasswd? You can''t set it > to a NULL passwd, e.g. "". > > > > > MRJ > > > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org >
Boris Derzhavets
2007-Nov-21 05:09 UTC
Re: virt-install complains about vnc-password not being set
I''ve got Windows HVM installed at SNV76 Dom0 follow instructions:- <br> Configure the vnc password and default nic for xend service. <br> Run "dladm show-link" to determine default nic for xend service. <br> <br> # svccfg -s xvm/xend setprop config/vncpasswd = astring: \"secret\" <br> # svccfg -s xvm/xend setprop config/vnc-listen = astring: \"0.0.0.0\" <br> # svccfg -s xvm/xend setprop config/default-nic="rtls0" <br> # svcadm refresh xvm/xend <br> # svcadm restart xvm/xend <br> <br> Run virt-install to install the windows domain. <br> <br> # dd if=/dev/zero of=/second_root/dsk/winxp-dsk bs=1024kb count=7000 <br> # virt-install -n Winds --hvm -r 512 --vnc \ <br> -f /second_root/dsk/winxp-dsk \ <br> -s 7 -c /export/home/ISO/winxp.iso <br> # vncviewer :0 This message posted from opensolaris.org