Puthiyaparambil, Aravindh
2006-Jan-24 22:48 UTC
[Xen-users] OpenSolaris 10 on x86_32 Xen-VTx
I am trying to install x86_32 OpenSolaris 10 in a VT domain on x86_32 Xen (changeset 8634). The domain boots off the install CD and I see the grub menu where I choose "Solaris". I then see the "Booting Solaris" and the loading kernel and modules lines but after that the Qemu window goes blank. I have listed my config file below. Any idea how to get around this issue? Thanks, Aravindh OpesnSolaris10 DomVT Config file -------------------------------- import os, re arch = os.uname()[4] if re.search(''64'', arch): arch_libdir = ''lib64'' else: arch_libdir = ''lib'' kernel = "/usr/lib/xen/boot/vmxloader" builder=''vmx'' memory = 512 name = "OpenSolaris10" vif = [ ''type=ioemu, bridge=xenbr0'' ] disk = [ ''file:/root/xen/vm/vmxsol.img,ioemu:hda,w'' ] device_model = ''/usr/'' + arch_libdir + ''/xen/bin/qemu-dm'' cdrom = ''/dev/hdd'' boot = ''d'' sdl=1 vnc=0 vncviewer=0 ne2000=0 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hrm -- that''s a good reason for the patch to not make it in. Are you able to get a stack trace if you don''t set a breakpoint and qemu-dm dies as usual? I think there may be some logging capability taken directly from QEMU as well -- try pressing CTRL-F2 and CTRL-3 in the SDL window that pops up. Debugging the device model has never been simple for me. I was hoping that I could just use gdb with it, but if that''s not really feasible due to timing issues, we''ll have to think of something else. I''m assuming that the qemu-dm processes die for some reason like a segmentation fault, but with them being launched by xend it''s harder to find that out, since ''ulimit -c unlimited" has never make them dump core that I have been able to find. I really just want a core dump :-) There''s always the old well-placed printf method or regular qemu logs that you ask qemu-dm to produce with arguments [provided that code is still there]. The last time I checked it wasn''t incredibly easy to pass new arguments to qemu-dm -- I think I needed to modify tools/python/xen/xend/image.py in the ''createDeviceModel'' function. Good luck! Andrew On Thu, 2006-01-26 at 18:10 -0500, Puthiyaparambil, Aravindh wrote:> I am able to do only "one" thing after ddd starts up. If I say "run" > without any breakpoint then qemu executes and the Solaris install hangs > as always. If I set a breakpoint, then the code stops there. In both the > cases ddd/gdb is not responsive to any commands :-( > > Thanks, > Aravindh > > > -----Original Message----- > > From: Andrew D. Ball [mailto:aball@us.ibm.com] > > Sent: Thursday, January 26, 2006 5:33 PM > > To: Puthiyaparambil, Aravindh > > Subject: RE: [Xen-users] OpenSolaris 10 on x86_32 Xen-VTx > > > > You''re probably not doing anything wrong. Can you continue execution > > here? What I really wanted when working on the patch was to be able > to > > get a stack trace from a dead qemu-dm process. I kept seeing defunct > > qemu-dm processes and ''ulimit -c'' wasn''t working to get core dumps > from > > them. > > > > I think ddd is much like command-line gdb, or at least can be if > that''s > > what you''re familiar with. It''s got some buttons for common > > functionality and displays the source code, but it still communicates > > with gcc at the bottom. > > > > Good luck! > > Andrew > > > > On Thu, 2006-01-26 at 16:12 -0500, Puthiyaparambil, Aravindh wrote: > > > Andrew, > > > > > > I followed your instructions in the patch and now when I bring up > the > > > DomVT, ddd fires. I am able to set breakpoints and the program > execution > > > stops at the first one. But I am not able to do much beyond as ddd > > > reports "waiting until GDB is ready". Am I doing anything wrong > here? > > > > > > Thanks, > > > Aravindh > > > > > > > -----Original Message----- > > > > From: Andrew D. Ball [mailto:aball@us.ibm.com] > > > > Sent: Wednesday, January 25, 2006 12:14 PM > > > > To: Puthiyaparambil, Aravindh > > > > Subject: RE: [Xen-users] OpenSolaris 10 on x86_32 Xen-VTx > > > > > > > > That means that the device model has died on you. There''s only > one > > > > device model at the moment -- it''s mostly code taken from the qemu > > > > hypervisor to emulate whatever hardware is needed for full > > > > virtualization. > > > > > > > > You may want to try getting and building this tree of Xen > > > > > > > > http://xenbits.xensource.com/ext/xen-unstable-hvm.hg > > > > > > > > I have seen much more stability with the device model with this > one. > > > > You will need to use ''hvm'' instead of ''vmx'' for configurations > here, > > > but > > > > I don''t know of any other differences in the interface. > > > > > > > > I put out a patch some time ago to try to help debug the device > model, > > > > if you''d like to try to find out where and why it''s crashing: > > > > > > > > > > > > http://lists.xensource.com/archives/html/xen-devel/2006-01/msg00103.html > > > > > > > > Good luck! > > > > Andrew > > > > -- > > > > Andrew D. Ball > > > > aball@us.ibm.com > > > > > > > > "Festina Lente" $\approx$ "Make hast slowly" > > > > -- Caesar Augustus > > > > > > > > > > > > On Wed, 2006-01-25 at 11:32 -0500, Puthiyaparambil, Aravindh > wrote: > > > > > Andrew, > > > > > > > > > > Yes, I see defunct qemu-dm processes. But I am not sure what it > > > means. > > > > > Will OS10 require a separate device model? > > > > > > > > > > Thanks, > > > > > Aravindh > > > > > > > > > > root 15753 0.0 0.0 0 0 ? Z Jan24 0:04 > > > > > [qemu-dm] <defunct> > > > > > root 16334 0.0 0.0 0 0 ? Z Jan24 0:06 > > > > > [qemu-dm] <defunct> > > > > > root 16917 0.0 0.0 0 0 ? Z Jan24 0:01 > > > > > [qemu-dm] <defunct> > > > > > root 17022 0.0 0.0 0 0 ? Z Jan24 0:01 > > > > > [qemu-dm] <defunct> > > > > > root 17156 0.0 0.0 0 0 ? Z Jan24 0:17 > > > > > [qemu-dm] <defunct> > > > > > root 18893 0.0 0.0 0 0 ? Z Jan24 0:00 > > > > > [qemu-dm] <defunct> > > > > > root 18943 0.0 0.0 0 0 ? Z Jan24 0:01 > > > > > [qemu-dm] <defunct> > > > > > root 19400 0.0 0.0 0 0 ? Z Jan24 0:01 > > > > > [qemu-dm] <defunct> > > > > > root 19541 0.0 0.0 0 0 ? Z Jan24 0:01 > > > > > [qemu-dm] <defunct> > > > > > root 27794 1.3 1.0 31604 5576 ? S 12:36 0:01 > > > > > /usr/lib/xen/bin/qemu-dm -d 18 -p 3 -m 512 -cdrom /dev/hdd -boot > d > > > > > -nic-ne2000 -vcpus 1 -domain-name OpenSolaris10 -hda > > > > > /root/xen/vm/vmxsol.img -nics 0 > > > > > root 27806 0.0 1.0 31604 5576 ? S 12:36 0:00 > > > > > /usr/lib/xen/bin/qemu-dm -d 18 -p 3 -m 512 -cdrom /dev/hdd -boot > d > > > > > -nic-ne2000 -vcpus 1 -domain-name OpenSolaris10 -hda > > > > > /root/xen/vm/vmxsol.img -nics 0 > > > > > root 27807 0.0 1.0 31604 5576 ? S 12:36 0:00 > > > > > /usr/lib/xen/bin/qemu-dm -d 18 -p 3 -m 512 -cdrom /dev/hdd -boot > d > > > > > -nic-ne2000 -vcpus 1 -domain-name OpenSolaris10 -hda > > > > > /root/xen/vm/vmxsol.img -nics 0 > > > > > > > > > > > -----Original Message----- > > > > > > From: Andrew D. Ball [mailto:aball@us.ibm.com] > > > > > > Sent: Wednesday, January 25, 2006 9:36 AM > > > > > > To: Puthiyaparambil, Aravindh > > > > > > Subject: Re: [Xen-users] OpenSolaris 10 on x86_32 Xen-VTx > > > > > > > > > > > > Do you see any defunct processes if you do > > > > > > > > > > > > ps aux | grep qemu-dm > > > > > > > > > > > > ? > > > > > > > > > > > > Good luck. > > > > > > Andrew > > > > > > -- > > > > > > Andrew D. Ball > > > > > > aball@us.ibm.com > > > > > > > > > > > > "Festina Lente" $\approx$ "Make hast slowly" > > > > > > -- Caesar Augustus > > > > > > > > > > > > On Tue, 2006-01-24 at 17:48 -0500, Puthiyaparambil, Aravindh > > > wrote: > > > > > > > I am trying to install x86_32 OpenSolaris 10 in a VT domain > on > > > > > x86_32 > > > > > > > Xen (changeset 8634). The domain boots off the install CD > and I > > > see > > > > > the > > > > > > > grub menu where I choose "Solaris". I then see the "Booting > > > Solaris" > > > > > and > > > > > > > the loading kernel and modules lines but after that the Qemu > > > window > > > > > goes > > > > > > > blank. I have listed my config file below. Any idea how to > get > > > > > around > > > > > > > this issue? > > > > > > > > > > > > > > Thanks, > > > > > > > Aravindh > > > > > > > > > > > > > > > > > > > > > OpesnSolaris10 DomVT Config file > > > > > > > -------------------------------- > > > > > > > import os, re > > > > > > > arch = os.uname()[4] > > > > > > > if re.search(''64'', arch): > > > > > > > arch_libdir = ''lib64'' > > > > > > > else: > > > > > > > arch_libdir = ''lib'' > > > > > > > > > > > > > > kernel = "/usr/lib/xen/boot/vmxloader" > > > > > > > builder=''vmx'' > > > > > > > memory = 512 > > > > > > > name = "OpenSolaris10" > > > > > > > vif = [ ''type=ioemu, bridge=xenbr0'' ] > > > > > > > disk = [ ''file:/root/xen/vm/vmxsol.img,ioemu:hda,w'' ] > > > > > > > device_model = ''/usr/'' + arch_libdir + ''/xen/bin/qemu-dm'' > > > > > > > cdrom = ''/dev/hdd'' > > > > > > > boot = ''d'' > > > > > > > sdl=1 > > > > > > > vnc=0 > > > > > > > vncviewer=0 > > > > > > > ne2000=0 > > > > > > > > > > > > > > _______________________________________________ > > > > > > > Xen-users mailing list > > > > > > > Xen-users@lists.xensource.com > > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Puthiyaparambil, Aravindh
2006-Jan-30 17:08 UTC
RE: [Xen-users] OpenSolaris 10 on x86_32 Xen-VTx
Nope, I am not able to get a stack trace when qemu-dies. I tried the CTRL-F2 and CTRL-3 in the SDL windows but that produces no results. Looks like I will have to start adding prinks in image.py to begin with. Thanks, Aravindh> -----Original Message----- > From: Andrew D. Ball [mailto:aball@us.ibm.com] > Sent: Friday, January 27, 2006 2:18 PM > To: Puthiyaparambil, Aravindh > Subject: RE: [Xen-users] OpenSolaris 10 on x86_32 Xen-VTx > > Hrm -- that''s a good reason for the patch to not make it in. Are you > able to get a stack trace if you don''t set a breakpoint and qemu-dmdies> as usual? > > I think there may be some logging capability taken directly from QEMUas> well -- try pressing CTRL-F2 and CTRL-3 in the SDL window that popsup.> Debugging the device model has never been simple for me. I was hoping > that I could just use gdb with it, but if that''s not really feasibledue> to timing issues, we''ll have to think of something else. > > I''m assuming that the qemu-dm processes die for some reason like a > segmentation fault, but with them being launched by xend it''s harderto> find that out, since ''ulimit -c unlimited" has never make them dumpcore> that I have been able to find. > > I really just want a core dump :-) > > There''s always the old well-placed printf method or regular qemu logs > that you ask qemu-dm to produce with arguments [provided that code is > still there]. The last time I checked it wasn''t incredibly easy topass> new arguments to qemu-dm -- I think I needed to modify > tools/python/xen/xend/image.py in the ''createDeviceModel'' function. > > Good luck! > Andrew > > On Thu, 2006-01-26 at 18:10 -0500, Puthiyaparambil, Aravindh wrote: > > I am able to do only "one" thing after ddd starts up. If I say "run" > > without any breakpoint then qemu executes and the Solaris installhangs> > as always. If I set a breakpoint, then the code stops there. In boththe> > cases ddd/gdb is not responsive to any commands :-( > > > > Thanks, > > Aravindh > > > > > -----Original Message----- > > > From: Andrew D. Ball [mailto:aball@us.ibm.com] > > > Sent: Thursday, January 26, 2006 5:33 PM > > > To: Puthiyaparambil, Aravindh > > > Subject: RE: [Xen-users] OpenSolaris 10 on x86_32 Xen-VTx > > > > > > You''re probably not doing anything wrong. Can you continueexecution> > > here? What I really wanted when working on the patch was to beable> > to > > > get a stack trace from a dead qemu-dm process. I kept seeingdefunct> > > qemu-dm processes and ''ulimit -c'' wasn''t working to get core dumps > > from > > > them. > > > > > > I think ddd is much like command-line gdb, or at least can be if > > that''s > > > what you''re familiar with. It''s got some buttons for common > > > functionality and displays the source code, but it stillcommunicates> > > with gcc at the bottom. > > > > > > Good luck! > > > Andrew > > > > > > On Thu, 2006-01-26 at 16:12 -0500, Puthiyaparambil, Aravindhwrote:> > > > Andrew, > > > > > > > > I followed your instructions in the patch and now when I bringup> > the > > > > DomVT, ddd fires. I am able to set breakpoints and the program > > execution > > > > stops at the first one. But I am not able to do much beyond asddd> > > > reports "waiting until GDB is ready". Am I doing anything wrong > > here? > > > > > > > > Thanks, > > > > Aravindh > > > > > > > > > -----Original Message----- > > > > > From: Andrew D. Ball [mailto:aball@us.ibm.com] > > > > > Sent: Wednesday, January 25, 2006 12:14 PM > > > > > To: Puthiyaparambil, Aravindh > > > > > Subject: RE: [Xen-users] OpenSolaris 10 on x86_32 Xen-VTx > > > > > > > > > > That means that the device model has died on you. There''sonly> > one > > > > > device model at the moment -- it''s mostly code taken from theqemu> > > > > hypervisor to emulate whatever hardware is needed for full > > > > > virtualization. > > > > > > > > > > You may want to try getting and building this tree of Xen > > > > > > > > > > http://xenbits.xensource.com/ext/xen-unstable-hvm.hg > > > > > > > > > > I have seen much more stability with the device model withthis> > one. > > > > > You will need to use ''hvm'' instead of ''vmx'' for configurations > > here, > > > > but > > > > > I don''t know of any other differences in the interface. > > > > > > > > > > I put out a patch some time ago to try to help debug thedevice> > model, > > > > > if you''d like to try to find out where and why it''s crashing: > > > > > > > > > > > > > > > >http://lists.xensource.com/archives/html/xen-devel/2006-01/msg00103.html> > > > > > > > > > Good luck! > > > > > Andrew > > > > > -- > > > > > Andrew D. Ball > > > > > aball@us.ibm.com > > > > > > > > > > "Festina Lente" $\approx$ "Make hast slowly" > > > > > -- Caesar Augustus > > > > > > > > > > > > > > > On Wed, 2006-01-25 at 11:32 -0500, Puthiyaparambil, Aravindh > > wrote: > > > > > > Andrew, > > > > > > > > > > > > Yes, I see defunct qemu-dm processes. But I am not sure whatit> > > > means. > > > > > > Will OS10 require a separate device model? > > > > > > > > > > > > Thanks, > > > > > > Aravindh > > > > > > > > > > > > root 15753 0.0 0.0 0 0 ? Z Jan240:04> > > > > > [qemu-dm] <defunct> > > > > > > root 16334 0.0 0.0 0 0 ? Z Jan240:06> > > > > > [qemu-dm] <defunct> > > > > > > root 16917 0.0 0.0 0 0 ? Z Jan240:01> > > > > > [qemu-dm] <defunct> > > > > > > root 17022 0.0 0.0 0 0 ? Z Jan240:01> > > > > > [qemu-dm] <defunct> > > > > > > root 17156 0.0 0.0 0 0 ? Z Jan240:17> > > > > > [qemu-dm] <defunct> > > > > > > root 18893 0.0 0.0 0 0 ? Z Jan240:00> > > > > > [qemu-dm] <defunct> > > > > > > root 18943 0.0 0.0 0 0 ? Z Jan240:01> > > > > > [qemu-dm] <defunct> > > > > > > root 19400 0.0 0.0 0 0 ? Z Jan240:01> > > > > > [qemu-dm] <defunct> > > > > > > root 19541 0.0 0.0 0 0 ? Z Jan240:01> > > > > > [qemu-dm] <defunct> > > > > > > root 27794 1.3 1.0 31604 5576 ? S 12:360:01> > > > > > /usr/lib/xen/bin/qemu-dm -d 18 -p 3 -m 512 -cdrom /dev/hdd-boot> > d > > > > > > -nic-ne2000 -vcpus 1 -domain-name OpenSolaris10 -hda > > > > > > /root/xen/vm/vmxsol.img -nics 0 > > > > > > root 27806 0.0 1.0 31604 5576 ? S 12:360:00> > > > > > /usr/lib/xen/bin/qemu-dm -d 18 -p 3 -m 512 -cdrom /dev/hdd-boot> > d > > > > > > -nic-ne2000 -vcpus 1 -domain-name OpenSolaris10 -hda > > > > > > /root/xen/vm/vmxsol.img -nics 0 > > > > > > root 27807 0.0 1.0 31604 5576 ? S 12:360:00> > > > > > /usr/lib/xen/bin/qemu-dm -d 18 -p 3 -m 512 -cdrom /dev/hdd-boot> > d > > > > > > -nic-ne2000 -vcpus 1 -domain-name OpenSolaris10 -hda > > > > > > /root/xen/vm/vmxsol.img -nics 0 > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Andrew D. Ball [mailto:aball@us.ibm.com] > > > > > > > Sent: Wednesday, January 25, 2006 9:36 AM > > > > > > > To: Puthiyaparambil, Aravindh > > > > > > > Subject: Re: [Xen-users] OpenSolaris 10 on x86_32 Xen-VTx > > > > > > > > > > > > > > Do you see any defunct processes if you do > > > > > > > > > > > > > > ps aux | grep qemu-dm > > > > > > > > > > > > > > ? > > > > > > > > > > > > > > Good luck. > > > > > > > Andrew > > > > > > > -- > > > > > > > Andrew D. Ball > > > > > > > aball@us.ibm.com > > > > > > > > > > > > > > "Festina Lente" $\approx$ "Make hast slowly" > > > > > > > -- Caesar Augustus > > > > > > > > > > > > > > On Tue, 2006-01-24 at 17:48 -0500, Puthiyaparambil,Aravindh> > > > wrote: > > > > > > > > I am trying to install x86_32 OpenSolaris 10 in a VTdomain> > on > > > > > > x86_32 > > > > > > > > Xen (changeset 8634). The domain boots off the installCD> > and I > > > > see > > > > > > the > > > > > > > > grub menu where I choose "Solaris". I then see the"Booting> > > > Solaris" > > > > > > and > > > > > > > > the loading kernel and modules lines but after that theQemu> > > > window > > > > > > goes > > > > > > > > blank. I have listed my config file below. Any idea howto> > get > > > > > > around > > > > > > > > this issue? > > > > > > > > > > > > > > > > Thanks, > > > > > > > > Aravindh > > > > > > > > > > > > > > > > > > > > > > > > OpesnSolaris10 DomVT Config file > > > > > > > > -------------------------------- > > > > > > > > import os, re > > > > > > > > arch = os.uname()[4] > > > > > > > > if re.search(''64'', arch): > > > > > > > > arch_libdir = ''lib64'' > > > > > > > > else: > > > > > > > > arch_libdir = ''lib'' > > > > > > > > > > > > > > > > kernel = "/usr/lib/xen/boot/vmxloader" > > > > > > > > builder=''vmx'' > > > > > > > > memory = 512 > > > > > > > > name = "OpenSolaris10" > > > > > > > > vif = [ ''type=ioemu, bridge=xenbr0'' ] > > > > > > > > disk = [ ''file:/root/xen/vm/vmxsol.img,ioemu:hda,w'' ] > > > > > > > > device_model = ''/usr/'' + arch_libdir +''/xen/bin/qemu-dm''> > > > > > > > cdrom = ''/dev/hdd'' > > > > > > > > boot = ''d'' > > > > > > > > sdl=1 > > > > > > > > vnc=0 > > > > > > > > vncviewer=0 > > > > > > > > ne2000=0 > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > Xen-users mailing list > > > > > > > > Xen-users@lists.xensource.com > > > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Puthiyaparambil, Aravindh
2006-Jan-30 20:34 UTC
RE: [Xen-users] OpenSolaris 10 on x86_32 Xen-VTx
Andrew, Thanks for the suggestions. I confirmed that the qemu-dm is not stripped. I am going to start adding printks to the ioemu. Here is what the qemu-log tells me. Aravindh domid: 16 eport: 3 qemu: the number of cpus is 1 shared page at pfn:20483, mfn: a476a HVM Loader Loading ROMBIOS ... Loading Cirrus VGABIOS ... Loading VMXAssist ... VMX go ... VMXAssist (Jan 26 2006) Memory size 512 MB E820 map: 0000000000000000 - 000000000009F800 (RAM) 000000000009F800 - 00000000000A0000 (Reserved) 00000000000A0000 - 00000000000C0000 (Type 16) 00000000000F0000 - 0000000000100000 (Reserved) 0000000000100000 - 000000001FFFE000 (RAM) 000000001FFFF000 - 0000000020000000 (Type 17) 000000001FFFE000 - 000000001FFFF000 (Type 18) 0000000020000000 - 0000000020003000 (ACPI NVS) 0000000020003000 - 000000002000D000 (ACPI Data) 00000000FEC00000 - 0000000100000000 (Type 16) Start BIOS ... Starting emulated 16-bit real-mode: ip=F000:FFF0 rombios.c,v 1.138 2005/05/07 15:55:26 vruppert Exp $ HVM_PIT:guest init pit channel 0! HVM_PIT:pass info 0xc00e90b to HV! Remapping master: ICW2 0x8 -> 0x20 Remapping slave: ICW2 0x70 -> 0x28 VGABios $Id: vgabios.c,v 1.61 2005/05/24 16:50:50 vruppert Exp $ HVMAssist BIOS, 1 cpu, $Revision: 1.138 $ $Date: 2005/05/07 15:55:26 $ ata0-0: PCHS=4161/16/63 translation=lba LCHS=520/128/63 ata0 master: QEMU HARDDISK ATA-2 Hard-Disk (2048 MBytes) ata0 slave: Unknown device ata1 master: QEMU CD-ROM ATAPI-4 CD-Rom/DVD-Rom ata1 slave: Unknown device Booting from CD-Rom... int13_harddisk: function 41, unmapped device for ELDL=81 int13_harddisk: function 08, unmapped device for ELDL=81 *** int 15h function AX=00C0, BX=0000 not yet supported! *** int 15h function AX=5300, BX=0000 not yet supported! *** int 15h function AX=5304, BX=0000 not yet supported!> -----Original Message----- > From: Andrew D. Ball [mailto:aball@us.ibm.com] > Sent: Monday, January 30, 2006 1:58 PM > To: Puthiyaparambil, Aravindh > Subject: RE: [Xen-users] OpenSolaris 10 on x86_32 Xen-VTx > > image.py probably won''t help too much here. The current device model > code is in tools/ioemu . > > You may want to look for > /var/log/qemu-dm* > and > /var/log/ioemu* > > You may also want to check that /usr/{lib,lib64}/xen/bin/qemu-dm hasnot> been stripped (''file /usr/lib/xen/bin/qemu-dm'' or > ''file /usr/lib64/xen/bin/qemu-dm'' will tell you). > > I''m assuming that the device model is dying from some sort of > segmentation fault. Starting it with ''nohup'' could also help you be > able to perhaps attach to the qemu-dm processes -- the device model is > launched with os.spawnve in tools/python/xen/xend/image.py . > > The current device model is painful. It does work well enough forproof> of concept with various flavors of Windows. Your work to get itworking> with OpenSolaris is interesting. > > Good luck! > Andrew > > On Mon, 2006-01-30 at 12:08 -0500, Puthiyaparambil, Aravindh wrote: > > Nope, I am not able to get a stack trace when qemu-dies. I tried the > > CTRL-F2 and CTRL-3 in the SDL windows but that produces no results. > > Looks like I will have to start adding prinks in image.py to beginwith.> > > > Thanks, > > Aravindh > > > > > -----Original Message----- > > > From: Andrew D. Ball [mailto:aball@us.ibm.com] > > > Sent: Friday, January 27, 2006 2:18 PM > > > To: Puthiyaparambil, Aravindh > > > Subject: RE: [Xen-users] OpenSolaris 10 on x86_32 Xen-VTx > > > > > > Hrm -- that''s a good reason for the patch to not make it in. Areyou> > > able to get a stack trace if you don''t set a breakpoint andqemu-dm> > dies > > > as usual? > > > > > > I think there may be some logging capability taken directly fromQEMU> > as > > > well -- try pressing CTRL-F2 and CTRL-3 in the SDL window thatpops> > up. > > > Debugging the device model has never been simple for me. I washoping> > > that I could just use gdb with it, but if that''s not reallyfeasible> > due > > > to timing issues, we''ll have to think of something else. > > > > > > I''m assuming that the qemu-dm processes die for some reason like a > > > segmentation fault, but with them being launched by xend it''sharder> > to > > > find that out, since ''ulimit -c unlimited" has never make themdump> > core > > > that I have been able to find. > > > > > > I really just want a core dump :-) > > > > > > There''s always the old well-placed printf method or regular qemulogs> > > that you ask qemu-dm to produce with arguments [provided that codeis> > > still there]. The last time I checked it wasn''t incredibly easyto> > pass > > > new arguments to qemu-dm -- I think I needed to modify > > > tools/python/xen/xend/image.py in the ''createDeviceModel''function.> > > > > > Good luck! > > > Andrew > > > > > > On Thu, 2006-01-26 at 18:10 -0500, Puthiyaparambil, Aravindhwrote:> > > > I am able to do only "one" thing after ddd starts up. If I say"run"> > > > without any breakpoint then qemu executes and the Solarisinstall> > hangs > > > > as always. If I set a breakpoint, then the code stops there. Inboth> > the > > > > cases ddd/gdb is not responsive to any commands :-( > > > > > > > > Thanks, > > > > Aravindh > > > > > > > > > -----Original Message----- > > > > > From: Andrew D. Ball [mailto:aball@us.ibm.com] > > > > > Sent: Thursday, January 26, 2006 5:33 PM > > > > > To: Puthiyaparambil, Aravindh > > > > > Subject: RE: [Xen-users] OpenSolaris 10 on x86_32 Xen-VTx > > > > > > > > > > You''re probably not doing anything wrong. Can you continue > > execution > > > > > here? What I really wanted when working on the patch was tobe> > able > > > > to > > > > > get a stack trace from a dead qemu-dm process. I kept seeing > > defunct > > > > > qemu-dm processes and ''ulimit -c'' wasn''t working to get coredumps> > > > from > > > > > them. > > > > > > > > > > I think ddd is much like command-line gdb, or at least can beif> > > > that''s > > > > > what you''re familiar with. It''s got some buttons for common > > > > > functionality and displays the source code, but it still > > communicates > > > > > with gcc at the bottom. > > > > > > > > > > Good luck! > > > > > Andrew > > > > > > > > > > On Thu, 2006-01-26 at 16:12 -0500, Puthiyaparambil, Aravindh > > wrote: > > > > > > Andrew, > > > > > > > > > > > > I followed your instructions in the patch and now when Ibring> > up > > > > the > > > > > > DomVT, ddd fires. I am able to set breakpoints and theprogram> > > > execution > > > > > > stops at the first one. But I am not able to do much beyondas> > ddd > > > > > > reports "waiting until GDB is ready". Am I doing anythingwrong> > > > here? > > > > > > > > > > > > Thanks, > > > > > > Aravindh > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Andrew D. Ball [mailto:aball@us.ibm.com] > > > > > > > Sent: Wednesday, January 25, 2006 12:14 PM > > > > > > > To: Puthiyaparambil, Aravindh > > > > > > > Subject: RE: [Xen-users] OpenSolaris 10 on x86_32 Xen-VTx > > > > > > > > > > > > > > That means that the device model has died on you. There''s > > only > > > > one > > > > > > > device model at the moment -- it''s mostly code taken fromthe> > qemu > > > > > > > hypervisor to emulate whatever hardware is needed for full > > > > > > > virtualization. > > > > > > > > > > > > > > You may want to try getting and building this tree of Xen > > > > > > > > > > > > > > http://xenbits.xensource.com/ext/xen-unstable-hvm.hg > > > > > > > > > > > > > > I have seen much more stability with the device model with > > this > > > > one. > > > > > > > You will need to use ''hvm'' instead of ''vmx'' forconfigurations> > > > here, > > > > > > but > > > > > > > I don''t know of any other differences in the interface. > > > > > > > > > > > > > > I put out a patch some time ago to try to help debug the > > device > > > > model, > > > > > > > if you''d like to try to find out where and why it''scrashing:> > > > > > > > > > > > > > > > > > > > > > > > > >http://lists.xensource.com/archives/html/xen-devel/2006-01/msg00103.html> > > > > > > > > > > > > > Good luck! > > > > > > > Andrew > > > > > > > -- > > > > > > > Andrew D. Ball > > > > > > > aball@us.ibm.com > > > > > > > > > > > > > > "Festina Lente" $\approx$ "Make hast slowly" > > > > > > > -- Caesar Augustus > > > > > > > > > > > > > > > > > > > > > On Wed, 2006-01-25 at 11:32 -0500, Puthiyaparambil,Aravindh> > > > wrote: > > > > > > > > Andrew, > > > > > > > > > > > > > > > > Yes, I see defunct qemu-dm processes. But I am not surewhat> > it > > > > > > means. > > > > > > > > Will OS10 require a separate device model? > > > > > > > > > > > > > > > > Thanks, > > > > > > > > Aravindh > > > > > > > > > > > > > > > > root 15753 0.0 0.0 0 0 ? ZJan24> > 0:04 > > > > > > > > [qemu-dm] <defunct> > > > > > > > > root 16334 0.0 0.0 0 0 ? ZJan24> > 0:06 > > > > > > > > [qemu-dm] <defunct> > > > > > > > > root 16917 0.0 0.0 0 0 ? ZJan24> > 0:01 > > > > > > > > [qemu-dm] <defunct> > > > > > > > > root 17022 0.0 0.0 0 0 ? ZJan24> > 0:01 > > > > > > > > [qemu-dm] <defunct> > > > > > > > > root 17156 0.0 0.0 0 0 ? ZJan24> > 0:17 > > > > > > > > [qemu-dm] <defunct> > > > > > > > > root 18893 0.0 0.0 0 0 ? ZJan24> > 0:00 > > > > > > > > [qemu-dm] <defunct> > > > > > > > > root 18943 0.0 0.0 0 0 ? ZJan24> > 0:01 > > > > > > > > [qemu-dm] <defunct> > > > > > > > > root 19400 0.0 0.0 0 0 ? ZJan24> > 0:01 > > > > > > > > [qemu-dm] <defunct> > > > > > > > > root 19541 0.0 0.0 0 0 ? ZJan24> > 0:01 > > > > > > > > [qemu-dm] <defunct> > > > > > > > > root 27794 1.3 1.0 31604 5576 ? S12:36> > 0:01 > > > > > > > > /usr/lib/xen/bin/qemu-dm -d 18 -p 3 -m 512 -cdrom/dev/hdd> > -boot > > > > d > > > > > > > > -nic-ne2000 -vcpus 1 -domain-name OpenSolaris10 -hda > > > > > > > > /root/xen/vm/vmxsol.img -nics 0 > > > > > > > > root 27806 0.0 1.0 31604 5576 ? S12:36> > 0:00 > > > > > > > > /usr/lib/xen/bin/qemu-dm -d 18 -p 3 -m 512 -cdrom/dev/hdd> > -boot > > > > d > > > > > > > > -nic-ne2000 -vcpus 1 -domain-name OpenSolaris10 -hda > > > > > > > > /root/xen/vm/vmxsol.img -nics 0 > > > > > > > > root 27807 0.0 1.0 31604 5576 ? S12:36> > 0:00 > > > > > > > > /usr/lib/xen/bin/qemu-dm -d 18 -p 3 -m 512 -cdrom/dev/hdd> > -boot > > > > d > > > > > > > > -nic-ne2000 -vcpus 1 -domain-name OpenSolaris10 -hda > > > > > > > > /root/xen/vm/vmxsol.img -nics 0 > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > From: Andrew D. Ball [mailto:aball@us.ibm.com] > > > > > > > > > Sent: Wednesday, January 25, 2006 9:36 AM > > > > > > > > > To: Puthiyaparambil, Aravindh > > > > > > > > > Subject: Re: [Xen-users] OpenSolaris 10 on x86_32Xen-VTx> > > > > > > > > > > > > > > > > > Do you see any defunct processes if you do > > > > > > > > > > > > > > > > > > ps aux | grep qemu-dm > > > > > > > > > > > > > > > > > > ? > > > > > > > > > > > > > > > > > > Good luck. > > > > > > > > > Andrew > > > > > > > > > -- > > > > > > > > > Andrew D. Ball > > > > > > > > > aball@us.ibm.com > > > > > > > > > > > > > > > > > > "Festina Lente" $\approx$ "Make hast slowly" > > > > > > > > > -- Caesar Augustus > > > > > > > > > > > > > > > > > > On Tue, 2006-01-24 at 17:48 -0500, Puthiyaparambil, > > Aravindh > > > > > > wrote: > > > > > > > > > > I am trying to install x86_32 OpenSolaris 10 in a VT > > domain > > > > on > > > > > > > > x86_32 > > > > > > > > > > Xen (changeset 8634). The domain boots off theinstall> > CD > > > > and I > > > > > > see > > > > > > > > the > > > > > > > > > > grub menu where I choose "Solaris". I then see the > > "Booting > > > > > > Solaris" > > > > > > > > and > > > > > > > > > > the loading kernel and modules lines but after thatthe> > Qemu > > > > > > window > > > > > > > > goes > > > > > > > > > > blank. I have listed my config file below. Any ideahow> > to > > > > get > > > > > > > > around > > > > > > > > > > this issue? > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > Aravindh > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > OpesnSolaris10 DomVT Config file > > > > > > > > > > -------------------------------- > > > > > > > > > > import os, re > > > > > > > > > > arch = os.uname()[4] > > > > > > > > > > if re.search(''64'', arch): > > > > > > > > > > arch_libdir = ''lib64'' > > > > > > > > > > else: > > > > > > > > > > arch_libdir = ''lib'' > > > > > > > > > > > > > > > > > > > > kernel = "/usr/lib/xen/boot/vmxloader" > > > > > > > > > > builder=''vmx'' > > > > > > > > > > memory = 512 > > > > > > > > > > name = "OpenSolaris10" > > > > > > > > > > vif = [ ''type=ioemu, bridge=xenbr0'' ] > > > > > > > > > > disk = [ ''file:/root/xen/vm/vmxsol.img,ioemu:hda,w'']> > > > > > > > > > device_model = ''/usr/'' + arch_libdir + > > ''/xen/bin/qemu-dm'' > > > > > > > > > > cdrom = ''/dev/hdd'' > > > > > > > > > > boot = ''d'' > > > > > > > > > > sdl=1 > > > > > > > > > > vnc=0 > > > > > > > > > > vncviewer=0 > > > > > > > > > > ne2000=0 > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > Xen-users mailing list > > > > > > > > > > Xen-users@lists.xensource.com > > > > > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Booting from CD-Rom... > int13_harddisk: function 41, unmapped device for ELDL=81 > int13_harddisk: function 08, unmapped device for ELDL=81 > *** int 15h function AX=00C0, BX=0000 not yet supported! > *** int 15h function AX=5300, BX=0000 not yet supported! > *** int 15h function AX=5304, BX=0000 not yet supported!Have you tried booting Solaris 10 on qemu and/or Bochs? Ian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Here''s a quick note for those who''s trying to keep up with the thread but does not have RBIL handy :-). Puthiyaparambil, Aravindh wrote:> ata0 master: QEMU HARDDISK ATA-2 Hard-Disk (2048 MBytes) > ata0 slave: Unknown device > ata1 master: QEMU CD-ROM ATAPI-4 CD-Rom/DVD-Rom > ata1 slave: Unknown device > > Booting from CD-Rom... > int13_harddisk: function 41, unmapped device for ELDL=81IBM/MS INT 13 Extensions - INSTALLATION CHECK 0x81: Disk nr. 2, that could be the CDROM. I''d immediately think that the CDROM would only get 0x81 if the El Torito image on it is in "HD emulation mode". But the specs actually say that a "no emulation" image will get any arbitrary BIOS drive id from 0x81 to 0xFF, so I guess it''s OK. Except for the obvious "unmapped device" message.> int13_harddisk: function 08, unmapped device for ELDL=81DISK - GET DRIVE PARAMETERS (PC,XT286,CONV,PS,ESDI,SCSI)> *** int 15h function AX=00C0, BX=0000 not yet supported!Not documented?> *** int 15h function AX=5300, BX=0000 not yet supported!Advanced Power Management v1.0+ - INSTALLATION CHECK Easy to emulate, but I think you''ve got bigger problems with the int 13h stuff failing above.> *** int 15h function AX=5304, BX=0000 not yet supported!Advanced Power Management v1.0+ - DISCONNECT INTERFACE _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Puthiyaparambil, Aravindh
2006-Jan-30 22:46 UTC
RE: [Xen-users] OpenSolaris 10 on x86_32 Xen-VTx
I tried installing Solaris 10 under qemu. The install fail gracefully saying that the disc is not a Solaris OS CD / unable to read from CD-ROM device. I tried using a physical CD-ROM device and an ISO image file. I also read this report on someone successfully installing Solaris 10 on qemu. http://users.telenet.be/mylinux/Instalation_of_Solaris10_x86_on_linuxhos t.html> -----Original Message----- > From: Ian Pratt [mailto:m+Ian.Pratt@cl.cam.ac.uk] > Sent: Monday, January 30, 2006 4:08 PM > To: Puthiyaparambil, Aravindh; aball@us.ibm.com > Cc: xen-users@lists.xensource.com; ian.pratt@cl.cam.ac.uk > Subject: RE: [Xen-users] OpenSolaris 10 on x86_32 Xen-VTx > > > > Booting from CD-Rom... > > int13_harddisk: function 41, unmapped device for ELDL=81 > > int13_harddisk: function 08, unmapped device for ELDL=81 > > *** int 15h function AX=00C0, BX=0000 not yet supported! > > *** int 15h function AX=5300, BX=0000 not yet supported! > > *** int 15h function AX=5304, BX=0000 not yet supported! > > Have you tried booting Solaris 10 on qemu and/or Bochs? > > Ian_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users