Alex Gor
2009-Jun-25 22:48 UTC
on_xend_start doesn''t do anything -domU still doesn''t start on machine boot
Having problem to make guest windows domU to start automatically on system boot. SXCE b116 onnv-3.4 Xen 3.4 on_xend_start is set to ''start'' in conf file I tried to force on_xend_start like that xm list -l > /tmp/myguest.sxp change all the instances of on_xend_start from ''ignore'' to ''start'' xm new -F /tmp/myguest.sxp I tried to run "virsh autostart winserver" -bash-3.2# virsh autostart winserver error: Failed to mark domain winserver as autostarted error: failed to serialize S-Expr: (domain (on_crash restart) (uuid c24cf31a-8c80-ecac-1123-7e4c3349421e) (bootloader_args) (vcpus 1) (name winserver) (on_poweroff destroy) (on_reboot restart) (cpus ( Nothing works. Please see attached my conf file below import os, re vif = [ ''type=ioemu, bridge=e1000g0''] memory=2048 shadow_memory=160 vcpus=1 builder = "hvm" device_model = ''/usr/lib/xen/bin/amd64/qemu-dm'' kernel = "/usr/lib/xen/boot/hvmloader" sdl=0 vnc=1 vnclisten="0.0.0.0" vncunused=0 vncpasswd=''password'' usbdevice=''tablet'' apic=0 acpi=0 pae=0 serial = "pty" on_reboot = ''restart'' on_crash = ''restart'' on_poweroff = ''destroy'' name="winserver" on_xend_start = ''start'' vncdisplay=1 boot="cd" disk = [ ''file:/data/winserver/winserver-system.img,hda,w'',''file:/data/iso/win2003_2.iso,hdc:cdrom,r'' ] Please help.Thanks a lot. -- This message posted from opensolaris.org
Mark Johnson
2009-Jun-26 18:05 UTC
Re: on_xend_start doesn''t do anything -domU still doesn''t start on machine boot
Alex Gor wrote:> Having problem to make guest windows domU to start automatically on system boot. > > SXCE b116 onnv-3.4 > Xen 3.4 > > on_xend_start is set to ''start'' in conf file > > I tried to force on_xend_start like that > > xm list -l > /tmp/myguest.sxp > change all the instances of on_xend_start from ''ignore'' to ''start'' > xm new -F /tmp/myguest.sxpI just tried this with the latest 3.4 bits and it works fine for me. I rebooted my dom0 and the guest started when dom0 booted. Note, the guests start when xvm/domains starts. What do you see in dom0 for "svcs xvm/domains"?> I tried to run "virsh autostart winserver" > > -bash-3.2# virsh autostart winserver > error: Failed to mark domain winserver as autostarted > error: failed to serialize S-Expr: (domain (on_crash restart) (uuid c24cf31a-8c80-ecac-1123-7e4c3349421e) (bootloader_args) (vcpus 1) (name winserver) (on_poweroff destroy) (on_reboot restart) (cpus (libvirt isn''t working very well with the 3.4 bits. Still need to debug it... MRJ> > Nothing works. > > Please see attached my conf file below > > import os, re > vif = [ ''type=ioemu, bridge=e1000g0''] > memory=2048 > shadow_memory=160 > vcpus=1 > builder = "hvm" > device_model = ''/usr/lib/xen/bin/amd64/qemu-dm'' > kernel = "/usr/lib/xen/boot/hvmloader" > sdl=0 > vnc=1 > vnclisten="0.0.0.0" > vncunused=0 > vncpasswd=''password'' > usbdevice=''tablet'' > apic=0 > acpi=0 > pae=0 > serial = "pty" > on_reboot = ''restart'' > on_crash = ''restart'' > on_poweroff = ''destroy'' > name="winserver" > on_xend_start = ''start'' > vncdisplay=1 > boot="cd" > disk = [ ''file:/data/winserver/winserver-system.img,hda,w'',''file:/data/iso/win2003_2.iso,hdc:cdrom,r'' ] > > Please help.Thanks a lot.
Alex Gor
2009-Jun-27 02:26 UTC
Re: on_xend_start doesn''t do anything -domU still doesn''t start on machine boot
Well the funny thing,I remember it was working for me some time ago,but it doesn''t work right now.Most likely I''m doing something wrong. Please see below outputs of ''svcs xvm/domains'' and ''svcs -x'' (log files attached) -bash-3.2# svcs xvm/domains STATE STIME FMRI maintenance 13:31:28 svc:/system/xvm/domains:default -------------------------------------------------------------------------- -bash-3.2# svcs -x svc:/system/webconsole:console (java web console) State: maintenance since Fri Jun 26 13:31:01 2009 Reason: Start method exited with $SMF_EXIT_ERR_FATAL. See: http://sun.com/msg/SMF-8000-KS See: smcwebserver(1M) See: /var/svc/log/system-webconsole:console.log Impact: This service is not running. svc:/system/xvm/domains:default (Hypervisor domain autoboot and graceful shutdown) State: maintenance since Fri Jun 26 13:31:28 2009 Reason: Start method failed repeatedly, last exited with status 1. See: http://sun.com/msg/SMF-8000-KS See: xVM(5) See: /var/svc/log/system-xvm-domains:default.log Impact: This service is not running. Thanks a lot. -- This message posted from opensolaris.org
Mark Johnson
2009-Jun-27 12:21 UTC
Re: on_xend_start doesn''t do anything -domU still doesn''t start on machine boot
Alex Gor wrote:> Well the funny thing,I remember it was working for me some time ago,but it doesn''t work right now.Most likely I''m doing something wrong. > > Please see below outputs of ''svcs xvm/domains'' and ''svcs -x'' (log files attached)you can shutdown webconsole if you want (not related to your problems but I usually do the following save some ram). On my systems, I do svcadm disable webconsole svcadm disable wbem svcadm disable cde-login (Xorg) svcadm disable gdm (Xorg) If you using X, you don''t want to shut those off obviously :-)> -bash-3.2# svcs xvm/domains > STATE STIME FMRI > maintenance 13:31:28 svc:/system/xvm/domains:default > -------------------------------------------------------------------------- > svc:/system/xvm/domains:default (Hypervisor domain autoboot and graceful shutdown) > State: maintenance since Fri Jun 26 13:31:28 2009 > Reason: Start method failed repeatedly, last exited with status 1. > See: http://sun.com/msg/SMF-8000-KS > See: xVM(5) > See: /var/svc/log/system-xvm-domains:default.log > Impact: This service is not running.This is your problem... It highly likly a bug in the bits you are using. When was the last time you synced to onnv and xvm 3.4? I don''t see this problem on the latest bits. BTW, I should be pushing the b118 merge of onnv 3.4 this weekend. MRJ
Alex Gor
2009-Jun-27 15:02 UTC
Re: on_xend_start doesn''t do anything -domU still doesn''t start on machine boot
Thanks Mark, I pulled bits and recompiled them+kernel about one week ago... Could you please provide me with instructions on how to upgrade my Xen with most up-to-date bits ? Also I found your post with more or less similar problem.The guy says the issue was fixed by upgrading his python. See here http://osdir.com/ml/os.solaris.opensolaris.xen/2008-09/msg00050.html My current Python is 2.4 I downloaded and installed version 2.5 from sunfreeware but it looks like Xen still use path to the old one.Is there something I need to do make it see new Python ? Thanks again. -- This message posted from opensolaris.org
Mark Johnson
2009-Jun-29 19:38 UTC
Re: on_xend_start doesn''t do anything -domU still doesn''t start on machine boot
Alex Gor wrote:> Thanks Mark, > > I pulled bits and recompiled them+kernel about one week ago... > > Could you please provide me with instructions on how to upgrade my Xen with most up-to-date bits ?if I understand you right... cd <xvm source dir> export XVM_WS=`pwd` ./sunos.hg/bin/update-gate> Also I found your post with more or less similar problem.The guy says the issue was fixed by upgrading his python. > See here > http://osdir.com/ml/os.solaris.opensolaris.xen/2008-09/msg00050.html > > My current Python is 2.4 > > I downloaded and installed version 2.5 from sunfreeware but it looks like Xen still use path to the old one.Is there something I need to do make it see new Python ?You would need to grab newer 2.4 bits. i.e. from a more recent nevada build.... (pkgrm the old packages. and pkadd the new ones). Probably easier to just update the system to b116, then BFU the 3.4 bits on top. MRJ
Alex Gor
2009-Jun-29 22:57 UTC
Re: on_xend_start doesn''t do anything -domU still doesn''t start on machine boot
Sure,I will try that. Just an idea.I googled my ''/var/svc/log/system-xvm-domains:default.log'' error messages and found suggestion to enable (uncomment) the following options (xend-tcp-xmlrpc-server yes) (xen-tcp-xmlrpc-server-port 8006) in my ''xend-config.sxp'',but I can''t find this file,it looks like I don''t have. Am i Missing something ? Thanks a lot. -- This message posted from opensolaris.org
Mark Johnson
2009-Jun-29 23:08 UTC
Re: on_xend_start doesn''t do anything -domU still doesn''t start on machine boot
Alex Gor wrote:> Sure,I will try that. > > Just an idea.I googled my ''/var/svc/log/system-xvm-domains:default.log'' error messages and found suggestion to enable (uncomment) the following options > > (xend-tcp-xmlrpc-server yes) > (xen-tcp-xmlrpc-server-port 8006) > > in my ''xend-config.sxp'',but I can''t find this file,it looks like I don''t have. > > Am i Missing something ?no, we don''t use that file... we use properties in xvm/xend (e.g. svcprop xvm/xend) You should need to enable the xmlrpc server. MRJ> Thanks a lot.
Mark Johnson
2009-Jun-29 23:14 UTC
Re: on_xend_start doesn''t do anything -domU still doesn''t start on machine boot
Mark Johnson wrote:> > > Alex Gor wrote: >> Sure,I will try that. >> >> Just an idea.I googled my >> ''/var/svc/log/system-xvm-domains:default.log'' error messages and found >> suggestion to enable (uncomment) the following options >> >> (xend-tcp-xmlrpc-server yes) >> (xen-tcp-xmlrpc-server-port 8006) >> >> in my ''xend-config.sxp'',but I can''t find this file,it looks like I >> don''t have. >> >> Am i Missing something ? > > no, we don''t use that file... we use properties in xvm/xend > (e.g. svcprop xvm/xend) > > You should need to enable the xmlrpc server.sigh, shouldn''t, MRJ> > > MRJ > > > >> Thanks a lot. > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org
Alex Gor
2009-Jun-30 17:20 UTC
Re: on_xend_start doesn''t do anything -domU still doesn''t start on machine boot
Thanks Mark, could you please provide me with exact syntax for ''svcprop xvm/xend'' to enable/disable ''xend-tcp-xmlrpc-server'' and setting aport for ''xen-tcp-xmlrpc-server-port'' I tried to figure it out,but with no success. Thanks again. -- This message posted from opensolaris.org
Mark Johnson
2009-Jul-01 08:12 UTC
Re: on_xend_start doesn''t do anything -domU still doesn''t start on machine boot
Alex Gor wrote:> Thanks Mark, > > could you please provide me with exact syntax for ''svcprop xvm/xend'' > > to enable/disable ''xend-tcp-xmlrpc-server'' and setting aport for ''xen-tcp-xmlrpc-server-port'' > I tried to figure it out,but with no success. > > Thanks again.again, I don''t think this will help you unless you are doing something non standard. But here''s how you would set those.. -bash-3.2# svccfg -s xvm/xend setprop config/xen-tcp-xmlrpc-server = boolean: true -bash-3.2# svccfg -s xvm/xend setprop config/xen-tcp-xmlrpc-server-port = integer: 8090 -bash-3.2# svcadm refresh xend -bash-3.2# svcprop xend -bash-3.2# svcadm restart xend MRJ
Alex Gor
2009-Jul-01 14:43 UTC
Re: on_xend_start doesn''t do anything -domU still doesn''t start on machine boot
Well I just tried to enable/disable this xmlrpc related staff because my ''svc:/system/xvm/domains'' service fails to start for whatever reason and log file contains xmlrpc kind of errors(See attached files in my prev post) But anyway nothing worked,I still get same error. svc:/system/xvm/domains:default (Hypervisor domain autoboot and graceful shutdown) State: maintenance since Wed Jul 01 08:28:39 2009 Reason: Start method failed repeatedly, last exited with status 1. See: http://sun.com/msg/SMF-8000-KS See: xVM(5) See: /var/svc/log/system-xvm-domains:default.log Impact: This service is not running. Mark do you have any idea how fix that ? We migrate our datacenter step-by-step from Vmware to Xen,I just have to make sure such things are fixable... Also do you know approximately when b118 will be out ? Would it contain 3.4 bits ? Thanks for all your help. -- This message posted from opensolaris.org
John Levon
2009-Jul-01 15:26 UTC
Re: on_xend_start doesn''t do anything -domU still doesn''t start on machine boot
On Wed, Jul 01, 2009 at 07:43:59AM -0700, Alex Gor wrote:> Well I just tried to enable/disable this xmlrpc related staff because my ''svc:/system/xvm/domains'' service fails to start for whatever reason and log file contains xmlrpc kind of errors(See attached files in my prev post)> xmlrpclib.Fault: <Fault 1: "[Errno 28] No space left on device: > ''/var/log/xen/qemu-dm-winserver.log''">This is most likely your problem. regards john
Alex Gor
2009-Jul-01 15:36 UTC
Re: on_xend_start doesn''t do anything -domU still doesn''t start on machine boot
Thanks John, I noticed it says xmlrpclib.Fault: <Fault 2: "(1, ''Not owner'')"> Any idea what is the fix for this problem and what is that ? -- This message posted from opensolaris.org
John Levon
2009-Jul-01 15:51 UTC
Re: on_xend_start doesn''t do anything -domU still doesn''t start on machine boot
On Wed, Jul 01, 2009 at 08:36:16AM -0700, Alex Gor wrote:> xmlrpclib.Fault: <Fault 2: "(1, ''Not owner'')"> > > Any idea what is the fix for this problem and what is that ?No idea, but I would make sure you have plenty of space on the root partition first. If that doesn''t help I would make sure you''ve got a clean install and try to reproduce your problems. regards john