Navin.Kumar@Sun.COM
2007-Nov-23 09:16 UTC
Problem in setting up vnc in order to get domU graphical login
Hi All, I have a snv_75 domU, running on snv_77 host machine. I am trying to enable vnc for domU. I followed these instructions : *http://www.opensolaris.org/os/community/xen/docs/setupvnc/* When I tried to launch vncviewer from my client machine, I got following error: *CConn: connected to host 127.0.0.1 port 5900 main: End of stream * when I checked services inside domU, I got *maintenance 7:59:09 svc:/network/vnc/tcp:default* I enabled it manually, but after each attempt to connect, this service goes back in maintenance mode. Any help will be highly appreciated. Regards, --Navin
James Cornell
2007-Nov-23 10:14 UTC
Re: Problem in setting up vnc in order to get domU graphical login
Navin.Kumar@Sun.COM wrote:> Hi All, > > I have a snv_75 domU, running on snv_77 host machine. I am trying to > enable vnc for domU. I followed these instructions : > *http://www.opensolaris.org/os/community/xen/docs/setupvnc/* > > When I tried to launch vncviewer from my client machine, I got > following error: > *CConn: connected to host 127.0.0.1 port 5900 > main: End of stream > * > when I checked services inside domU, I got > *maintenance 7:59:09 svc:/network/vnc/tcp:default* > > I enabled it manually, but after each attempt to connect, this service > goes back in maintenance mode. > > Any help will be highly appreciated. > > Regards, > --Navin > ------------------------------------------------------------------------ > > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.orgRun svcprop network/vnc/tcp:default, check dmesg, syslog, and give us the svcs -vx output. James
Navin.Kumar@Sun.COM
2007-Nov-23 10:22 UTC
Re: Problem in setting up vnc in order to get domU graphical login
James Cornell wrote:>Navin.Kumar@Sun.COM wrote: > > >>Hi All, >> >>I have a snv_75 domU, running on snv_77 host machine. I am trying to >>enable vnc for domU. I followed these instructions : >>*http://www.opensolaris.org/os/community/xen/docs/setupvnc/* >> >>When I tried to launch vncviewer from my client machine, I got >>following error: >>*CConn: connected to host 127.0.0.1 port 5900 >> main: End of stream >>* >>when I checked services inside domU, I got >>*maintenance 7:59:09 svc:/network/vnc/tcp:default* >> >>I enabled it manually, but after each attempt to connect, this service >>goes back in maintenance mode. >> >>Any help will be highly appreciated. >> >>Regards, >>--Navin >>------------------------------------------------------------------------ >> >>_______________________________________________ >>xen-discuss mailing list >>xen-discuss@opensolaris.org >> >> >Run svcprop network/vnc/tcp:default, check dmesg, syslog, and give us >the svcs -vx output. > >James >_______________________________________________ >xen-discuss mailing list >xen-discuss@opensolaris.org > >Thanks for the quick resposnse. I have just deleted the VM and I am in the process of creating a new one. Once done, I will update the alias with logs. Thanks, --Navin
Navin.Kumar@Sun.COM
2007-Nov-23 10:30 UTC
Re: Problem in setting up vnc in order to get domU graphical login
Navin.Kumar@Sun.COM wrote:> James Cornell wrote: > >>Navin.Kumar@Sun.COM wrote: >> >> >>>Hi All, >>> >>>I have a snv_75 domU, running on snv_77 host machine. I am trying to >>>enable vnc for domU. I followed these instructions : >>>*http://www.opensolaris.org/os/community/xen/docs/setupvnc/* >>> >>>When I tried to launch vncviewer from my client machine, I got >>>following error: >>>*CConn: connected to host 127.0.0.1 port 5900 >>> main: End of stream >>>* >>>when I checked services inside domU, I got >>>*maintenance 7:59:09 svc:/network/vnc/tcp:default* >>> >>>I enabled it manually, but after each attempt to connect, this service >>>goes back in maintenance mode. >>> >>>Any help will be highly appreciated. >>> >>>Regards, >>>--Navin >>>------------------------------------------------------------------------ >>> >>>_______________________________________________ >>>xen-discuss mailing list >>>xen-discuss@opensolaris.org >>> >>> >>Run svcprop network/vnc/tcp:default, check dmesg, syslog, and give us >>the svcs -vx output. >> >>James >>_______________________________________________ >>xen-discuss mailing list >>xen-discuss@opensolaris.org >> >> > Thanks for the quick resposnse. > I have just deleted the VM and I am in the process of creating a new > one. Once done, I will update the alias with logs. > > Thanks, > --Navin > >------------------------------------------------------------------------ > >_______________________________________________ >xen-discuss mailing list >xen-discuss@opensolaris.org > >BTW, is VNC has to do something with virt-install --nographics option. In order to setting up VNC do we need to answer "yes" to the question "Would you like to enable graphics support? (yes or no)". When I said "yes" to the above question i got following error: ********************************************************************************************************************* libvir: Xen Daemon error : POST operation failed: (xend.err ) 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 ) ********************************************************************************************************************* Thanks, --Navin
James Cornell
2007-Nov-23 11:15 UTC
Re: Problem in setting up vnc in order to get domU graphical login
Navin.Kumar@Sun.COM wrote:> Navin.Kumar@Sun.COM wrote: >> James Cornell wrote: >>> Navin.Kumar@Sun.COM wrote: >>> >>>> Hi All, >>>> >>>> I have a snv_75 domU, running on snv_77 host machine. I am trying to >>>> enable vnc for domU. I followed these instructions : >>>> *http://www.opensolaris.org/os/community/xen/docs/setupvnc/* >>>> >>>> When I tried to launch vncviewer from my client machine, I got >>>> following error: >>>> *CConn: connected to host 127.0.0.1 port 5900 >>>> main: End of stream >>>> * >>>> when I checked services inside domU, I got >>>> *maintenance 7:59:09 svc:/network/vnc/tcp:default* >>>> >>>> I enabled it manually, but after each attempt to connect, this service >>>> goes back in maintenance mode. >>>> >>>> Any help will be highly appreciated. >>>> >>>> Regards, >>>> --Navin >>>> ------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> xen-discuss mailing list >>>> xen-discuss@opensolaris.org >>>> >>> Run svcprop network/vnc/tcp:default, check dmesg, syslog, and give us >>> the svcs -vx output. >>> >>> James >>> _______________________________________________ >>> xen-discuss mailing list >>> xen-discuss@opensolaris.org >>> >> Thanks for the quick resposnse. >> I have just deleted the VM and I am in the process of creating a new >> one. Once done, I will update the alias with logs. >> >> Thanks, >> --Navin >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> xen-discuss mailing list >> xen-discuss@opensolaris.org >> > BTW, is VNC has to do something with virt-install --nographics option. > In order to setting up VNC do we need to answer "yes" to the question > "Would you like to enable graphics support? (yes or no)". When I said > "yes" to the above question i got following error: > > ********************************************************************************************************************* > libvir: Xen Daemon error : POST operation failed: (xend.err ) > 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 ) > ********************************************************************************************************************* > > Thanks, > --Navinmmm, I believe xVM''s "graphics" prompt is for framebuffer graphics, like under X11 or something. I thought VNC was still a separate toggle, but anyone correct me if I''m wrong. I don''t believe it has to do with VNC, I haven''t seen VNC work out of the box using the recommended starter guides out there, you always have to post-set the vncpasswd field from what I''ve seen. If you''ve played with virt-manager, it''s magically drawing stuff onto the screen, and no, it''s not VNC, so that should answer it. Too bad to say, that debug is quite useless. I''ve seen the same error just a few days ago on this mailing list. Failing POST, well if that''s like POST on bare metal, it means it can''t init display, moreover find the display. James
Boris Derzhavets
2007-Nov-24 16:04 UTC
Re: Problem in setting up vnc in order to get domU graphical login
Please, view First:- http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6572087 Second:- http://bderzhavets.blogspot.com/2007/11/install-xvnc-on-xen-3.html This message posted from opensolaris.org
James Cornell
2007-Nov-24 19:31 UTC
Re: Problem in setting up vnc in order to get domU graphical login
Boris Derzhavets wrote:> Please, view > First:- > http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6572087 > Second:- > http://bderzhavets.blogspot.com/2007/11/install-xvnc-on-xen-3.html > > > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org >Thanks for the links and your article Boris! James
Navin.Kumar@Sun.COM
2007-Nov-26 06:07 UTC
Re: Problem in setting up vnc in order to get domU graphical login
Nice article.Thanks Boris. --Navin Boris Derzhavets wrote:>Please, view >First:- >http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6572087 >Second:- >http://bderzhavets.blogspot.com/2007/11/install-xvnc-on-xen-3.html > > >This message posted from opensolaris.org >_______________________________________________ >xen-discuss mailing list >xen-discuss@opensolaris.org > >
Navin.Kumar@Sun.COM
2007-Nov-26 09:26 UTC
How to grab the console of guest domains from Dom0
Hi All, Thanks to Boris for the pointers, really helpful. The steps told by Boris, work really good for solaris guests. Now if we have windows guest domains, how can we grab the graphical console?Do we need to push VNC inside our guest domains? My thinking is, in some way we should be able to grab the console of guest domains using VNC of Dom0.(or any other method) There are two primary purpose for this requirement: 1. To grab console of a guest domain, during OS installation, so that we can provide inputs for OS installation(like vmware does in it''s product, virtual infrastructure client.) 2. If this is done we don''t have to change anything inside guest domain(s) to get the graphical login. Any help is highly appreciated. Thanks, --Navin Boris Derzhavets wrote:>Please, view >First:- >http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6572087 >Second:- >http://bderzhavets.blogspot.com/2007/11/install-xvnc-on-xen-3.html > > >This message posted from opensolaris.org >_______________________________________________ >xen-discuss mailing list >xen-discuss@opensolaris.org > >
Boris Derzhavets
2007-Nov-26 14:08 UTC
Re: How to grab the console of guest domains from Dom0
VNCServer at Solaris Dom0 and HVM Guest install:- <br> Configure the vnc password and default nic for xend service. <br> Run "dladm show-link" to determine default nic for xend service. <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# svcadm restart xvm/xend <br> Use virt-install to install the windows domain. <br> # virt-install -n Winds --hvm -r 512 --vnc -f /second_root/dsk/winxp-dsk -s 7 -c /export/home/ISO/winxp.iso <br> # vncviewer :0 <br> I am not sure this is a right way to manage , however this workaround works every it gets applied.Command line bellow differs from officially sugested <br> Virt-install Windows HVM at SNV 76 Dom0:- <br> http://bderzhavets.blogspot.com/2007/11/windows-xp-hvm-at-sxde-76-dom0.html This message posted from opensolaris.org
Boris Derzhavets
2007-Nov-26 16:45 UTC
Re: How to grab the console of guest domains from Dom0
View:- http://www.opensolaris.org/os/community/xen/docs/virtinstall/ Example 38-2 Solaris HVM Guest virt-install -n solarisHVM --hvm -r 1024 --vnc \ -f /export/solarisHVM/root.img -s 16 \ -c /ws/xvm-gate/public/isos/72-0910/solarisdvd.iso Example 38-3 Windows HVM Guest # virt-install -n winxp --hvm -r 1024 --vnc \ -f /export/winxp/root.img -s 16 -c /windows/media.iso In my experience virt-install will crash after first Guest System reboot requires workaround mentioned above This message posted from opensolaris.org