I put up a quick blog entry on how to install a PV OpenSolaris on xVM or a Linux dom0. If you run into any problems, give me a yell. http://blogs.sun.com/mrj/ Have fun! Thanks, MRJ
Thank you very much for your blog entry. Using a linux dom0 runing Xen3.2 (Ubuntu 8.04 Hardy, running 2.6-24-16-xen in 64bit), I get a DomU kernel panic right after xm -create. Here is the output: /media/test/OpenSolaris$ sudo xm create -c targoid.py Using config file "./targoid.py". Started domain opensolaris-pv-install v3.2.1-rc1-pre chgset ''unavailable'' SunOS Release 5.11 Version snv_86 64-bit Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. panic[cpu0]/thread=fffffffffbc3cbe0: BAD TRAP: type=e (#pf Page fault) rp=fffffffffbc6ea00 addr=fffffe000c226d80 #pf Page fault Bad kernel fault at addr=0xfffffe000c226d80 pid=0, pc=0xfffffffffb885da3, sp=0xfffffffffbc6eaf8, eflags=0x10046 cr0: 80050033<pg,wp,ne,et,mp,pe> cr4: 660<xmme,fxsr,mce,pae> cr2: fffffe000c226d80 rdi: fffffe000c226d80 rsi: 0 rdx: 800000007efd9673 rcx: 3 r8: 0 r9: ffffff00c5fb0000 rax: 0 rbx: 800000007efd9673 rbp: fffffffffbc6eb90 r10: 0 r11: ffffffffc0000000 r12: 0 r13: 1 r14: fffffe000c226d80 r15: 800000007efd9673 fsb: 200000000 gsb: fffffffffbc3e030 ds: 0 es: 0 fs: 0 gs: 0 trp: e err: 3 rip: fffffffffb885da3 cs: e030 rfl: 10046 rsp: fffffffffbc6eaf8 And my config file: name = "opensolaris-pv-install" vcpus = 1 memory = "1024" bootloader = "/usr/bin/pygrub" kernel = "/platform/i86xpv/kernel/amd64/unix" ramdisk = "/boot/x86.microroot" extra = "/platform/i86xpv/kernel/amd64/unix -B console=ttya,livemode=text" disk = [''tap:aio:/home/drake/Desktop/os200805.iso,6:xvda1,r'', ''tap:aio:/media/test/OpenSolaris/disk.img,xvda2,w''] vif = [''''] on_shutdown = "destroy" on_reboot = "destroy" on_crash = "preserve" I am rather new to Xen/xVM/Opensolaris so I am gracefull for any help, guidance or suggestions. Am Montag, den 05.05.2008, 15:48 -0400 schrieb Mark Johnson:> I put up a quick blog entry on how to install > a PV OpenSolaris on xVM or a Linux dom0. If you > run into any problems, give me a yell. > > http://blogs.sun.com/mrj/ > > Have fun! > > > > Thanks, > > > MRJ > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org
Ares Drake wrote:> Thank you very much for your blog entry. > Using a linux dom0 runing Xen3.2 (Ubuntu 8.04 Hardy, running > 2.6-24-16-xen in 64bit), I get a DomU kernel panic right after xm > -create. Here is the output:That''s a bug in Xen 3.2. It''s fixed in 3.2.1. We putback a change to avoid that bug in b88 or b89.. But the current OpenSolaris bits are based on b86. If you can move to 3.2.1, it should work fine. Thanks, MRJ> /media/test/OpenSolaris$ sudo xm create -c targoid.py > Using config file "./targoid.py". > Started domain opensolaris-pv-install > v3.2.1-rc1-pre chgset ''unavailable'' > SunOS Release 5.11 Version snv_86 64-bit > Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. > Use is subject to license terms. > > panic[cpu0]/thread=fffffffffbc3cbe0: BAD TRAP: type=e (#pf Page fault) > rp=fffffffffbc6ea00 addr=fffffe000c226d80 > > #pf Page fault > Bad kernel fault at addr=0xfffffe000c226d80 > pid=0, pc=0xfffffffffb885da3, sp=0xfffffffffbc6eaf8, eflags=0x10046 > cr0: 80050033<pg,wp,ne,et,mp,pe> cr4: 660<xmme,fxsr,mce,pae> > cr2: fffffe000c226d80 > rdi: fffffe000c226d80 rsi: 0 rdx: > 800000007efd9673 > rcx: 3 r8: 0 r9: > ffffff00c5fb0000 > rax: 0 rbx: 800000007efd9673 rbp: > fffffffffbc6eb90 > r10: 0 r11: ffffffffc0000000 r12: > 0 > r13: 1 r14: fffffe000c226d80 r15: > 800000007efd9673 > fsb: 200000000 gsb: fffffffffbc3e030 ds: > 0 > es: 0 fs: 0 gs: > 0 > trp: e err: 3 rip: > fffffffffb885da3 > cs: e030 rfl: 10046 rsp: > fffffffffbc6eaf8 > > > > And my config file: > > name = "opensolaris-pv-install" > vcpus = 1 > memory = "1024" > bootloader = "/usr/bin/pygrub" > kernel = "/platform/i86xpv/kernel/amd64/unix" > ramdisk = "/boot/x86.microroot" > extra = "/platform/i86xpv/kernel/amd64/unix -B > console=ttya,livemode=text" > disk = [''tap:aio:/home/drake/Desktop/os200805.iso,6:xvda1,r'', > ''tap:aio:/media/test/OpenSolaris/disk.img,xvda2,w''] > vif = [''''] > on_shutdown = "destroy" > on_reboot = "destroy" > on_crash = "preserve" > > I am rather new to Xen/xVM/Opensolaris so I am gracefull for any help, > guidance or suggestions.
Regular Nevada Builds 85 and 86 were affected by CR 6650717:- http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6650717 Commit to fix : SNV87. CR 6650717 has been committed in SNV87. I just don''t know has CR 6650717 been taken in account building OpenSolaris 2008/05. Otherwise, it would be SNV 86 issue having nothing to do Xen 3.2.1-rc1 This message posted from opensolaris.org
I''ve successfully followed :- ********************************************************************* Install SNV85(86) DomU at Xen 3.2 Linux Dom0 (64-bit) per Jurgen Keil ********************************************************************* http://www.opensolaris.org/jive/thread.jspa?threadID=57422&tstart=15 to start install OpenSolaris 2008/05 at Xen 3.2.0 Ubuntu 7.10 Dom0 and went through deployment packages phase. Now i have login as root to patch the kernel :- bash-3.2# mdb -w /platform/i86xpv/kernel/amd64/unix> gnttab_init+0xce?W 403unix`gnttab_init+0xce: 0x403 = 0x403> $qHow to su - from jack ? This message posted from opensolaris.org
It''s not about upgrade to Xen 3.2.1 . It''s about Bug CR 6650717 affecting SNV86 kernel. This message posted from opensolaris.org
> Now i have login as root to patch the kernel :-...> How to su - from jack ?pfexec su This message posted from opensolaris.org
Boris Derzhavets wrote:> I''ve successfully followed :- > ********************************************************************* > Install SNV85(86) DomU at Xen 3.2 Linux Dom0 (64-bit) per Jurgen Keil > ********************************************************************* > > http://www.opensolaris.org/jive/thread.jspa?threadID=57422&tstart=15 > to start install OpenSolaris 2008/05 at Xen 3.2.0 Ubuntu 7.10 Dom0 > and went through deployment packages phase. > Now i have login as root to patch the kernel :- > bash-3.2# mdb -w /platform/i86xpv/kernel/amd64/unix >> gnttab_init+0xce?W 403 > unix`gnttab_init+0xce: 0x403 = 0x403 >> $q > How to su - from jack ?root passwd is opensolaris. MRJ
Boris Derzhavets wrote:> It''s not about upgrade to Xen 3.2.1 . It''s about Bug CR 6650717 > affecting SNV86 kernel. >OK, thanks Boris for verifying. I had forgotten about that one. MRJ
On Xen 3.2 Ubuntu 7.10 Dom0:- After vncviewer connected to console ran install and delayed reboot until running from root terminal:- bash-3.2# mdb -w /a /platform/i86xpv/kernel/amd64/unix> gnttab_init+0xce?W 403unix`gnttab_init+0xce: 0x403 = 0x403> $q# shutdown -y -i0 -g0 When attempted to runtime got error :- Pygrub found no data. On Xen 3.2.1 CentOS Dom0:- After vncviewer connected to console ran install and delayed reboot until running from root terminal:- bash-3.2# mdb -w /a /platform/i86xpv/kernel/amd64/unix> gnttab_init+0xce?W 403unix`gnttab_init+0xce: 0x403 = 0x403> $qbash-3.2# /usr/bin/scp -S /usr/bin/ssh /a/platform/i86xpv/kernel/amd64/unix \> 192.168.1.33:/usr/lib/xen-solaris/unix-85Changed profile to runtime:- Add root="/dev/dsk/c0d0s0" Remove the unneeded rest of extra line. All as usual. [root@dhcppc0 vm]# xm create -c os0508.conf Using config file "./os0508.conf". Started domain OpenSolaris v3.2.1 chgset ''Fri Apr 25 14:03:45 2008 +0100 16881:4073b3ded545'' SunOS Release 5.11 Version snv_86 64-bit Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. NOTICE: mount: not a UFS magic number (0x0) panic[cpu0]/thread=fffffffffbc3cbe0: cannot mount root path /xpvd/xdf@0:a fffffffffbc6ed90 genunix:rootconf+113 () fffffffffbc6ede0 genunix:vfs_mountroot+65 () fffffffffbc6ee10 genunix:main+d8 () fffffffffbc6ee20 unix:_locore_start+80 () skipping system dump - no dump device configured rebooting... This message posted from opensolaris.org
Another attempt on CentOS ******************* Install profile:- ******************* name = "OpenSolaris" vcpus = 1 memory = "1024" kernel = "/usr/lib/xen-solaris/unix-0805" ramdisk = "/usr/lib/xen-solaris/x86.microroot" extra = "/platform/i86xpv/kernel/amd64/unix -kd - nowin -B install_media=cdrom" disk = [''file:/usr/lib/xen-solaris/os200805.iso,6:cdrom,r'',''phy:/dev/sdb8,0,w''] vif = [''bridge=eth0''] on_shutdown = "destroy" on_reboot = "destroy" on_crash = "destroy" ******************************************************* Passed through graphical install then rebooted Runtime profile:- ******************************************************** name = "OpenSolaris" vcpus = 1 memory = "1024" kernel = "/usr/lib/xen-solaris/unix-0805" ramdisk = "/usr/lib/xen-solaris/x86.microroot" extra = "/platform/i86xpv/kernel/amd64/unix -kd" disk = [''file:/usr/lib/xen-solaris/os200805.iso,6:cdrom,r'',''phy:/dev/sdb8,0,w''] vif = [''bridge=eth0''] root="/dev/dsk/c0d0s0" on_shutdown = "destroy" on_reboot = "destroy" on_crash = "destroy" ******************************** # xm create -c os0805.first ******************************** [root@dhcppc0 vm]# xm create -c os0508.first Using config file "./os0508.first". Started domain OpenSolaris Loading kmdb... Welcome to kmdb Loaded modules: [ unix krtld genunix ] [0]> gnttab_init+0xce/W 403 gnttab_init+0xce: 0x3 = 0x403 [0]> :c v3.2.1 chgset ''Fri Apr 25 14:03:45 2008 +0100 16881:4073b3ded545'' SunOS Release 5.11 Version snv_86 64-bit Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. NOTICE: mount: not a UFS magic number (0x0) panic[cpu0]/thread=fffffffffbc3cbe0: cannot mount root path /xpvd/xdf@0:a fffffffffbc6ed90 genunix:rootconf+113 () fffffffffbc6ede0 genunix:vfs_mountroot+65 () fffffffffbc6ee10 genunix:main+d8 () fffffffffbc6ee20 unix:_locore_start+80 () panic: entering debugger (no dump device, continue to reboot) Loaded modules: [ scsi_vhci xpv_psm ufs specfs ] kmdb: target stopped at: kmdb_enter+0xb: movq %rax,%rdi This message posted from opensolaris.org
I have to notice that all this procedures have been successfully tested on regular Nevada builds 85 and 86. View for details:- http://lxer.com/module/newswire/view/101660/index.html This message posted from opensolaris.org
Boris Derzhavets wrote:> Another attempt on CentOS > ******************* > Install profile:- > ******************* > name = "OpenSolaris" > vcpus = 1 > memory = "1024" > kernel = "/usr/lib/xen-solaris/unix-0805" > ramdisk = "/usr/lib/xen-solaris/x86.microroot" > extra = "/platform/i86xpv/kernel/amd64/unix -kd - nowin -B install_media=cdrom" > disk = [''file:/usr/lib/xen-solaris/os200805.iso,6:cdrom,r'',''phy:/dev/sdb8,0,w''] > vif = [''bridge=eth0''] > on_shutdown = "destroy" > on_reboot = "destroy" > on_crash = "destroy" > ******************************************************* > Passed through graphical install then rebooted > Runtime profile:- > ******************************************************** > name = "OpenSolaris" > vcpus = 1 > memory = "1024" > kernel = "/usr/lib/xen-solaris/unix-0805" > ramdisk = "/usr/lib/xen-solaris/x86.microroot" > extra = "/platform/i86xpv/kernel/amd64/unix -kd" > disk = [''file:/usr/lib/xen-solaris/os200805.iso,6:cdrom,r'',''phy:/dev/sdb8,0,w''] > vif = [''bridge=eth0''] > root="/dev/dsk/c0d0s0" > on_shutdown = "destroy" > on_reboot = "destroy" > on_crash = "destroy"Remove root=... Since your booting from a zfs root, the conf file has to be different. zfs support in pygrub just went back into xen-unstable. If you are copying the kernel off of the disk, you need to remove the root line in your config file and add the zfs info to the extra line. The following should work... extra=''/platform/i86xpv/kernel/amd64/unix -B zfs-bootfs=rpool/27'' MRJ> ******************************** > # xm create -c os0805.first > ******************************** > [root@dhcppc0 vm]# xm create -c os0508.first > Using config file "./os0508.first". > Started domain OpenSolaris > Loading kmdb... > > Welcome to kmdb > Loaded modules: [ unix krtld genunix ] > [0]> gnttab_init+0xce/W 403 > gnttab_init+0xce: 0x3 = 0x403 > [0]> :c > v3.2.1 chgset ''Fri Apr 25 14:03:45 2008 +0100 16881:4073b3ded545'' > SunOS Release 5.11 Version snv_86 64-bit > Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. > Use is subject to license terms. > NOTICE: mount: not a UFS magic number (0x0) > panic[cpu0]/thread=fffffffffbc3cbe0: cannot mount root path /xpvd/xdf@0:a > fffffffffbc6ed90 genunix:rootconf+113 () > fffffffffbc6ede0 genunix:vfs_mountroot+65 () > fffffffffbc6ee10 genunix:main+d8 () > fffffffffbc6ee20 unix:_locore_start+80 () > panic: entering debugger (no dump device, continue to reboot) > Loaded modules: [ scsi_vhci xpv_psm ufs specfs ] > kmdb: target stopped at: > kmdb_enter+0xb: movq %rax,%rdi > > > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org
[root@dhcppc0 vm]# cat os0508.first name = "OpenSolaris" vcpus = 1 memory = "1024" kernel = "/usr/lib/xen-solaris/unix-0805" ramdisk = "/usr/lib/xen-solaris/x86.microroot" extra = "/platform/i86xpv/kernel/amd64/unix -kd -B zfs-bootfs=rpool/27" disk = [''file:/usr/lib/xen-solaris/os200805.iso,6:cdrom,r'',''phy:/dev/sdb8,0,w''] vif = [''bridge=eth0''] on_shutdown = "destroy" on_reboot = "destroy" on_crash = "destroy" [root@dhcppc0 vm]# xm create -c os0508.first Using config file "./os0508.first". Started domain OpenSolaris Loading kmdb... Welcome to kmdb Loaded modules: [ unix krtld genunix ] [0]> gnttab_init+0xce/W 403 gnttab_init+0xce: 0x3 = 0x403 [0]> :c v3.2.1 chgset ''Fri Apr 25 14:03:45 2008 +0100 16881:4073b3ded545'' SunOS Release 5.11 Version snv_86 64-bit Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. panic[cpu0]/thread=fffffffffbc3cbe0: cannot mount root path /ramdisk:a fffffffffbc6ed90 genunix:rootconf+113 () fffffffffbc6ede0 genunix:vfs_mountroot+65 () fffffffffbc6ee10 genunix:main+d8 () fffffffffbc6ee20 unix:_locore_start+80 () panic: entering debugger (no dump device, continue to reboot) Loaded modules: [ scsi_vhci xpv_psm zfs specfs random ] kmdb: target stopped at: kmdb_enter+0xb: movq %rax,%rdi ----- Original Message ---- From: Mark Johnson <Mark.Johnson@Sun.COM> To: Boris Derzhavets <bderzhavets@yahoo.com> Cc: xen-discuss@opensolaris.org Sent: Wednesday, May 7, 2008 3:24:32 PM Subject: Re: [xen-discuss] Installing OpenSolaris 2008/05 as a PV guest Boris Derzhavets wrote:> Another attempt on CentOS > ******************* > Install profile:- > ******************* > name = "OpenSolaris" > vcpus = 1 > memory = "1024" > kernel = "/usr/lib/xen-solaris/unix-0805" > ramdisk = "/usr/lib/xen-solaris/x86.microroot" > extra = "/platform/i86xpv/kernel/amd64/unix -kd - nowin -B install_media=cdrom" > disk = [''file:/usr/lib/xen-solaris/os200805.iso,6:cdrom,r'',''phy:/dev/sdb8,0,w''] > vif = [''bridge=eth0''] > on_shutdown = "destroy" > on_reboot = "destroy" > on_crash = "destroy" > ******************************************************* > Passed through graphical install then rebooted > Runtime profile:- > ******************************************************** > name = "OpenSolaris" > vcpus = 1 > memory = "1024" > kernel = "/usr/lib/xen-solaris/unix-0805" > ramdisk = "/usr/lib/xen-solaris/x86.microroot" > extra = "/platform/i86xpv/kernel/amd64/unix -kd" > disk = [''file:/usr/lib/xen-solaris/os200805.iso,6:cdrom,r'',''phy:/dev/sdb8,0,w''] > vif = [''bridge=eth0''] > root="/dev/dsk/c0d0s0" > on_shutdown = "destroy" > on_reboot = "destroy" > on_crash = "destroy"Remove root=... Since your booting from a zfs root, the conf file has to be different. zfs support in pygrub just went back into xen-unstable. If you are copying the kernel off of the disk, you need to remove the root line in your config file and add the zfs info to the extra line. The following should work... extra=''/platform/i86xpv/kernel/amd64/unix -B zfs-bootfs=rpool/27'' MRJ> ******************************** > # xm create -c os0805.first > ******************************** > [root@dhcppc0 vm]# xm create -c os0508.first > Using config file "./os0508.first". > Started domain OpenSolaris > Loading kmdb... > > Welcome to kmdb > Loaded modules: [ unix krtld genunix ] > [0]> gnttab_init+0xce/W 403 > gnttab_init+0xce: 0x3 = 0x403 > [0]> :c > v3.2.1 chgset ''Fri Apr 25 14:03:45 2008 +0100 16881:4073b3ded545'' > SunOS Release 5.11 Version snv_86 64-bit > Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. > Use is subject to license terms. > NOTICE: mount: not a UFS magic number (0x0) > panic[cpu0]/thread=fffffffffbc3cbe0: cannot mount root path /xpvd/xdf@0:a > fffffffffbc6ed90 genunix:rootconf+113 () > fffffffffbc6ede0 genunix:vfs_mountroot+65 () > fffffffffbc6ee10 genunix:main+d8 () > fffffffffbc6ee20 unix:_locore_start+80 () > panic: entering debugger (no dump device, continue to reboot) > Loaded modules: [ scsi_vhci xpv_psm ufs specfs ] > kmdb: target stopped at: > kmdb_enter+0xb: movq %rax,%rdi > > > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
One more attempt:- When graphical install finished i didn''t click on reboot. Opened root terminal session and run:- // Kernel patched per jkeil bash-3.2# mdb -w /a/platform/i86xpv/kernel/amd64/unix> gnttab_init+0xce?W 403unix`gnttab_init+0xce: 0x403 = 0x403> $q// Copy patched kernel to CentOS Dom0 bash-3.2# /usr/bin/scp -S /usr/bin/ssh \ /a/platform/i86xpv/kernel/amd64/unix \> 192.168.1.33:/usr/lib/xen-solaris/unix-0805Then manually:-# shutdown -y -i0 -g0 ******************* Next step as suggested:- ******************** [root@dhcppc0 vm]# cat os0508.first name = "OpenSolaris" vcpus = 1 memory = "1024" kernel = "/usr/lib/xen-solaris/unix-0805" ramdisk = "/usr/lib/xen-solaris/x86.microroot" extra = "/platform/i86xpv/kernel/amd64/unix -B zfs-bootfs=rpool/27" disk = [''file:/usr/lib/xen-solaris/os200805.iso,6:cdrom,r'',''phy:/dev/sdb8,0,w''] vif = [''bridge=eth0''] on_shutdown = "destroy" on_reboot = "destroy" on_crash = "destroy" ********************* Started Solaris DomU ********************* [root@dhcppc0 vm]# xm create -c os0508.first Using config file "./os0508.first". Started domain OpenSolaris v3.2.1 chgset ''Fri Apr 25 14:03:45 2008 +0100 16881:4073b3ded545'' SunOS Release 5.11 Version snv_86 64-bit Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. panic[cpu0]/thread=fffffffffbc3cbe0: cannot mount root path /ramdisk:a fffffffffbc6ed90 genunix:rootconf+113 () fffffffffbc6ede0 genunix:vfs_mountroot+65 () fffffffffbc6ee10 genunix:main+d8 () fffffffffbc6ee20 unix:_locore_start+80 () skipping system dump - no dump device configured rebooting... ----- Original Message ---- From: Mark Johnson <Mark.Johnson@Sun.COM> To: Boris Derzhavets <bderzhavets@yahoo.com> Cc: xen-discuss@opensolaris.org Sent: Wednesday, May 7, 2008 3:24:32 PM Subject: Re: [xen-discuss] Installing OpenSolaris 2008/05 as a PV guest Boris Derzhavets wrote:> Another attempt on CentOS > ******************* > Install profile:- > ******************* > name = "OpenSolaris" > vcpus = 1 > memory = "1024" > kernel = "/usr/lib/xen-solaris/unix-0805" > ramdisk = "/usr/lib/xen-solaris/x86.microroot" > extra = "/platform/i86xpv/kernel/amd64/unix -kd - nowin -B install_media=cdrom" > disk = [''file:/usr/lib/xen-solaris/os200805.iso,6:cdrom,r'',''phy:/dev/sdb8,0,w''] > vif = [''bridge=eth0''] > on_shutdown = "destroy" > on_reboot = "destroy" > on_crash = "destroy" > ******************************************************* > Passed through graphical install then rebooted > Runtime profile:- > ******************************************************** > name = "OpenSolaris" > vcpus = 1 > memory = "1024" > kernel = "/usr/lib/xen-solaris/unix-0805" > ramdisk = "/usr/lib/xen-solaris/x86.microroot" > extra = "/platform/i86xpv/kernel/amd64/unix -kd" > disk = [''file:/usr/lib/xen-solaris/os200805.iso,6:cdrom,r'',''phy:/dev/sdb8,0,w''] > vif = [''bridge=eth0''] > root="/dev/dsk/c0d0s0" > on_shutdown = "destroy" > on_reboot = "destroy" > on_crash = "destroy"Remove root=... Since your booting from a zfs root, the conf file has to be different. zfs support in pygrub just went back into xen-unstable. If you are copying the kernel off of the disk, you need to remove the root line in your config file and add the zfs info to the extra line. The following should work... extra=''/platform/i86xpv/kernel/amd64/unix -B zfs-bootfs=rpool/27'' MRJ> ******************************** > # xm create -c os0805.first > ******************************** > [root@dhcppc0 vm]# xm create -c os0508.first > Using config file "./os0508.first". > Started domain OpenSolaris > Loading kmdb... > > Welcome to kmdb > Loaded modules: [ unix krtld genunix ] > [0]> gnttab_init+0xce/W 403 > gnttab_init+0xce: 0x3 = 0x403 > [0]> :c > v3.2.1 chgset ''Fri Apr 25 14:03:45 2008 +0100 16881:4073b3ded545'' > SunOS Release 5.11 Version snv_86 64-bit > Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. > Use is subject to license terms. > NOTICE: mount: not a UFS magic number (0x0) > panic[cpu0]/thread=fffffffffbc3cbe0: cannot mount root path /xpvd/xdf@0:a > fffffffffbc6ed90 genunix:rootconf+113 () > fffffffffbc6ede0 genunix:vfs_mountroot+65 () > fffffffffbc6ee10 genunix:main+d8 () > fffffffffbc6ee20 unix:_locore_start+80 () > panic: entering debugger (no dump device, continue to reboot) > Loaded modules: [ scsi_vhci xpv_psm ufs specfs ] > kmdb: target stopped at: > kmdb_enter+0xb: movq %rax,%rdi > > > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Boris Derzhavets wrote:> One more attempt:- > When graphical install finished i didn''t click on reboot. > Opened root terminal session and run:- > > // Kernel patched per jkeil > > bash-3.2# mdb -w /a/platform/i86xpv/kernel/amd64/unix >> gnttab_init+0xce?W 403 > unix`gnttab_init+0xce: 0x403 = 0x403 >> $q > > // Copy patched kernel to CentOS Dom0 > > bash-3.2# /usr/bin/scp -S /usr/bin/ssh \ > /a/platform/i86xpv/kernel/amd64/unix \ >> 192.168.1.33:/usr/lib/xen-solaris/unix-0805you need to copy the ramdisk too /a/platform/i86pc/kernel/amd64/boot_archive MRJ> Then manually:- > > # shutdown -y -i0 -g0 > > ******************* > Next step as suggested:- > ******************** > [root@dhcppc0 vm]# cat os0508.first > name = "OpenSolaris" > vcpus = 1 > memory = "1024" > kernel = "/usr/lib/xen-solaris/unix-0805" > ramdisk = "/usr/lib/xen-solaris/x86.microroot" > extra = "/platform/i86xpv/kernel/amd64/unix -B zfs-bootfs=rpool/27" > disk = > [''file:/usr/lib/xen-solaris/os200805.iso,6:cdrom,r'',''phy:/dev/sdb8,0,w''] > vif = [''bridge=eth0''] > on_shutdown = "destroy" > on_reboot = "destroy" > on_crash = "destroy" > ********************* > Started Solaris DomU > ********************* > [root@dhcppc0 vm]# xm create -c os0508.first > Using config file "./os0508.first". > Started domain OpenSolaris > v3.2.1 chgset ''Fri Apr 25 14:03:45 2008 +0100 > 16881:4073b3ded545'' > SunOS Release 5.11 Version snv_86 64-bit > Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. > Use is subject to license terms. > > panic[cpu0]/thread=fffffffffbc3cbe0: cannot mount root path /ramdisk:a > > fffffffffbc6ed90 genunix:rootconf+113 () > fffffffffbc6ede0 genunix:vfs_mountroot+65 () > fffffffffbc6ee10 genunix:main+d8 () > fffffffffbc6ee20 unix:_locore_start+80 () > > skipping system dump - no dump device configured > rebooting... > > > ----- Original Message ---- > From: Mark Johnson <Mark.Johnson@Sun.COM> > To: Boris Derzhavets <bderzhavets@yahoo.com> > Cc: xen-discuss@opensolaris.org > Sent: Wednesday, May 7, 2008 3:24:32 PM > Subject: Re: [xen-discuss] Installing OpenSolaris 2008/05 as a PV guest > > > > Boris Derzhavets wrote: > > Another attempt on CentOS > > ******************* > > Install profile:- > > ******************* > > name = "OpenSolaris" > > vcpus = 1 > > memory = "1024" > > kernel = "/usr/lib/xen-solaris/unix-0805" > > ramdisk = "/usr/lib/xen-solaris/x86.microroot" > > extra = "/platform/i86xpv/kernel/amd64/unix -kd - nowin -B > install_media=cdrom" > > disk = > [''file:/usr/lib/xen-solaris/os200805.iso,6:cdrom,r'',''phy:/dev/sdb8,0,w''] > > vif = [''bridge=eth0''] > > on_shutdown = "destroy" > > on_reboot = "destroy" > > on_crash = "destroy" > > ******************************************************* > > Passed through graphical install then rebooted > > Runtime profile:- > > ******************************************************** > > name = "OpenSolaris" > > vcpus = 1 > > memory = "1024" > > kernel = "/usr/lib/xen-solaris/unix-0805" > > ramdisk = "/usr/lib/xen-solaris/x86.microroot" > > extra = "/platform/i86xpv/kernel/amd64/unix -kd" > > disk = > [''file:/usr/lib/xen-solaris/os200805.iso,6:cdrom,r'',''phy:/dev/sdb8,0,w''] > > vif = [''bridge=eth0''] > > root="/dev/dsk/c0d0s0" > > on_shutdown = "destroy" > > on_reboot = "destroy" > > on_crash = "destroy" > > Remove root=... > > Since your booting from a zfs root, the conf file > has to be different. zfs support in pygrub just went > back into xen-unstable. > > If you are copying the kernel off of the disk, you need > to remove the root line in your config file and add the > zfs info to the extra line. > > The following should work... > extra=''/platform/i86xpv/kernel/amd64/unix -B zfs-bootfs=rpool/27'' > > > > > MRJ > > > > ******************************** > > # xm create -c os0805.first > > ******************************** > > [root@dhcppc0 vm]# xm create -c os0508.first > > Using config file "./os0508.first". > > Started domain OpenSolaris > > Loading kmdb... > > > > Welcome to kmdb > > Loaded modules: [ unix krtld genunix ] > > [0]> gnttab_init+0xce/W 403 > > gnttab_init+0xce: 0x3 = 0x403 > > [0]> :c > > v3.2.1 chgset ''Fri Apr 25 14:03:45 2008 +0100 16881:4073b3ded545'' > > SunOS Release 5.11 Version snv_86 64-bit > > Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. > > Use is subject to license terms. > > NOTICE: mount: not a UFS magic number (0x0) > > panic[cpu0]/thread=fffffffffbc3cbe0: cannot mount root path /xpvd/xdf@0:a > > fffffffffbc6ed90 genunix:rootconf+113 () > > fffffffffbc6ede0 genunix:vfs_mountroot+65 () > > fffffffffbc6ee10 genunix:main+d8 () > > fffffffffbc6ee20 unix:_locore_start+80 () > > panic: entering debugger (no dump device, continue to reboot) > > Loaded modules: [ scsi_vhci xpv_psm ufs specfs ] > > kmdb: target stopped at: > > kmdb_enter+0xb: movq %rax,%rdi > > > > > > This message posted from opensolaris.org <http://opensolaris.org> > > _______________________________________________ > > xen-discuss mailing list > > xen-discuss@opensolaris.org <mailto:xen-discuss@opensolaris.org> > > ------------------------------------------------------------------------ > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try > it now. > <http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > >
Thank you Mark, i forgot about boot_archive. However , now i cannot login to domain either as root or as jack/jack:- [root@dhcppc0 vm]# xm create -c os0508.first Using config file "./os0508.first". Started domain OpenSolaris Hostname: opensolaris Configuring devices. Loading smf(5) service descriptions: 139/139 WARNING: No randomness provider enabled for /dev/random. Use cryptoadm(1M) to enable a provider. Reading ZFS config: done. Mounting ZFS filesystems: (6/6) opensolaris console login: root Password: Roles can only be assumed by authorized users Login incorrect Jan 1 03:42:03 opensolaris login: login account failure: Permission denied opensolaris console login: jack Password: Login incorrect opensolaris console login: jack Password: Login incorrect opensolaris console login: This message posted from opensolaris.org
Sorry, one more user''s account has been created during setup I have to try it also. It''s already Ubuntu''s style :-) This message posted from opensolaris.org
Yes, we are here. Sun Microsystems Inc. SunOS 5.11 snv_86 January 2008 -bash-3.2$ su - Password: Jan 1 04:45:12 opensolaris su: ''su root'' succeeded for boris on /dev/console Sun Microsystems Inc. SunOS 5.11 snv_86 January 2008 -bash-3.2# df -h -bash-3.2# uname -a SunOS opensolaris 5.11 snv_86 i86pc i386 i86xpv -bash-3.2# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 xnf0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 2 inet 192.168.1.61 netmask ffffff00 broadcast 192.168.1.255 ether 0:16:3e:25:fe:7c lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1 inet6 ::1/128 -bash-3.2# df -h Filesystem size used avail capacity Mounted on rpool/ROOT/opensolaris 14G 2.2G 12G 16% / /devices 0K 0K 0K 0% /devices /dev 0K 0K 0K 0% /dev ctfs 0K 0K 0K 0% /system/contract proc 0K 0K 0K 0% /proc mnttab 0K 0K 0K 0% /etc/mnttab swap 1.4G 744K 1.4G 1% /etc/svc/volatile objfs 0K 0K 0K 0% /system/object sharefs 0K 0K 0K 0% /etc/dfs/sharetab /usr/lib/libc/libc_hwcap3.so.1 14G 2.2G 12G 16% /lib/libc.so.1 fd 0K 0K 0K 0% /dev/fd swap 1.4G 224K 1.4G 1% /tmp swap 1.4G 40K 1.4G 1% /var/run rpool/ROOT/opensolaris/opt 14G 3.6M 12G 1% /opt rpool/export 14G 19K 12G 1% /export rpool/export/home 14G 21K 12G 1% /export/home rpool 14G 55K 12G 1% /rpool rpool/ROOT 14G 18K 12G 1% /rpool/ROOT Regardless user boris logged in to / with home directory This message posted from opensolaris.org
[This email is either empty or too large to be displayed at this time]
Impressive. Could you be so kind to post a short summary of the necessary steps? Thx Am Donnerstag, den 08.05.2008, 02:30 -0700 schrieb Boris Derzhavets:> Runtime snapshots > > > This message posted from opensolaris.org > _______________________________________________ xen-discuss mailing list xen-discuss@opensolaris.org
View blog entry:- http://bderzhavets.blogspot.com/2008/05/install-opensolaris-200805-domu-at-xen.html ----- Original Message ---- From: Ares Drake <ares.drake@googlemail.com> To: xen-discuss@opensolaris.org Sent: Thursday, May 8, 2008 5:44:22 AM Subject: Re: [xen-discuss] Installing OpenSolaris 2008/05 as a PV guest Impressive. Could you be so kind to post a short summary of the necessary steps? Thx Am Donnerstag, den 08.05.2008, 02:30 -0700 schrieb Boris Derzhavets:> Runtime snapshots > > > This message posted from opensolaris.org > _______________________________________________ xen-discuss mailing list xen-discuss@opensolaris.org_______________________________________________ xen-discuss mailing list xen-discuss@opensolaris.org ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> > I put up a quick blog entry on how to install > a PV OpenSolaris on xVM or a Linux dom0. If you > run into any problems, give me a yell. > > http://blogs.sun.com/mrj/Mark, I''ve tried it on F8 (64-bit) ****************** Install profile:- ***************** name = "opensolaris" vcpus = 1 memory = "1024" bootloader = "/usr/bin/pygrub" kernel = "/platform/i86xpv/kernel/amd64/unix" ramdisk = "/boot/x86.microroot" extra = "/platform/i86xpv/kernel/amd64/unix -B console=ttya,livemode=text" disk = [''file:/usr/lib/xen-solaris/os200805.iso,6:cdrom,r'', ''phy:/dev/sda10,0,w''] vif = [''bridge=virbr0''] on_shutdown = "destroy" on_reboot = "destroy" on_crash = "preserve" Then follow your blog and perform graphical install. Reboot. *********************** RunTime profile:- *********************** [root@SRVF8 vm]# cat OS200805.first name = "opensolaris" vcpus = 1 memory = "1024" disk = [''phy:/dev/sda10,0,w''] vif = [''bridge=virbr0''] on_shutdown = "destroy" on_reboot = "restart" on_crash = "destroy" ********************************************************** [root@SRVF8 vm]# xm create -c OS200805.first Using config file "./OS200805.first". Error: Boot loader didn''t return any data! ********************************************************** I believe, that''s because of root on ZFS You wrote ZFS support just went into xen unstable. Does this mean that at Xen 3.1 Linux Dom0 it''s not supposed to work. Thanks. -b> ve fun! > > > > Thanks, > > > MRJ > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.orgThis message posted from opensolaris.org
Boris Derzhavets wrote:>> I put up a quick blog entry on how to install >> a PV OpenSolaris on xVM or a Linux dom0. If you >> run into any problems, give me a yell. >> >> http://blogs.sun.com/mrj/ > Mark, > I''ve tried it on F8 (64-bit) > ****************** > Install profile:- > ***************** > name = "opensolaris" > vcpus = 1 > memory = "1024" > bootloader = "/usr/bin/pygrub" > kernel = "/platform/i86xpv/kernel/amd64/unix" > ramdisk = "/boot/x86.microroot" > extra = "/platform/i86xpv/kernel/amd64/unix -B console=ttya,livemode=text" > disk = [''file:/usr/lib/xen-solaris/os200805.iso,6:cdrom,r'', > ''phy:/dev/sda10,0,w''] > vif = [''bridge=virbr0''] > on_shutdown = "destroy" > on_reboot = "destroy" > on_crash = "preserve" > Then follow your blog and perform graphical install. > Reboot. > *********************** > RunTime profile:- > *********************** > [root@SRVF8 vm]# cat OS200805.first > name = "opensolaris" > vcpus = 1 > memory = "1024" > disk = [''phy:/dev/sda10,0,w''] > vif = [''bridge=virbr0''] > on_shutdown = "destroy" > on_reboot = "restart" > on_crash = "destroy" > ********************************************************** > [root@SRVF8 vm]# xm create -c OS200805.first > Using config file "./OS200805.first". > Error: Boot loader didn''t return any data! > ********************************************************** > I believe, that''s because of root on ZFS > You wrote ZFS support just went into xen unstable. > Does this mean that at Xen 3.1 Linux Dom0 it''s not > supposed to work.You will need to copy the kernel and ramdisk off for it to work.. As I said, pygrub support just went back to xen-unstable. So it will have to be backported for you to be able to use it on a Linux dom0. We''ll probably ask them to put it in 3.2.2. I don''t think there is going to be another 3.1.x release though. We have it on a Solaris dom0 of course. MRJ> Thanks. > -b > > >> ve fun! >> >> >> >> Thanks, >> >> >> MRJ >> _______________________________________________ >> xen-discuss mailing list >> xen-discuss@opensolaris.org > > > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org
> You will need to copy the kernel and ramdisk > off for it to work..That''s understandable and will require regular xm''s phyton profile exactly as for Xen 3.2 Linux Dom0. Just no need to patch the kernel. However, pygrub has been used in your blog''s sample.That''s not understandable at least for myself.> As I said, pygrub support just went back to > xen-unstable. So it will have to be backported > for you to be able to use it on a Linux dom0. > We''ll probably ask them to put it in 3.2.2. > I don''t think there is going to be another > 3.1.x release though. > > We have it on a Solaris dom0 of course. > > > MRJThis message posted from opensolaris.org
Finally i''ve got it. MRJ blog''s instructions work fine at SNV87 Dom0. Even path to "pygrub" is solaris specific ,on linux path is /usr/bin/pygrub. This message posted from opensolaris.org
On a CentOS 5 dom0, I have successfully installed OpenSolaris 2008.05 domU''s, both HVM and PV using the 64-bit kernel patch: gnttab_init+0xce/W 403 Is there a similar fix to get it working with the 32-bit kernel? Thank you. This message posted from opensolaris.org
View:- http://www.opensolaris.org/jive/thread.jspa?threadID=55632&tstart=30 Per Jurgen Keil:- And the workaround would be: # xm create /tmp/solaris-exp -c Using config file "/tmp/solaris-exp". Loading kmdb... Started domain solaris-exp Welcome to kmdb Loaded modules: [ unix krtld genunix ] [0]> gnttab_init+0xa2:b ,5000:c v3.2.0 chgset ''unavailable'' SunOS Release 5.11 Version snv_85 32-bit Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Loaded modules: [ specfs ] t0stack+0x1f1c: 0x3 = 0x403 kmdb: stop at gnttab_init+0xa2 kmdb: target stopped at: gnttab_init+0xa2: pushl %eax t0stack+0x1f1c: 0x3 = 0x403 kmdb: stop at gnttab_init+0xa2 kmdb: target stopped at: gnttab_init+0xa2: pushl %eax ... Configuring /dev 1. Solaris Interactive Text (Console session) (default) 2. Apply driver updates 3. Single user shell Enter the number of your choice. Timeout cancelled. Please make a selection (1 - 3). This message posted from opensolaris.org
Same schema also works at Xen 3.2.1 Ubuntu 7.10 Desktop Dom0 (64-bit). Installer may be run by "pygrub" as in MRJ''s blog. But , finally, patched kernel and boot_archive should be copied to Dom0. *************************************** Scrolling this thread you can find:- *************************************** As I said, pygrub support just went back to xen-unstable. So it will have to be backported for you to be able to use it on a Linux dom0. We''ll probably ask them to put it in 3.2.2. I don''t think there is going to be another 3.1.x release though. We have it on a Solaris dom0 of course. MRJ This message posted from opensolaris.org
Hi, By contrast I created 2008.05 as 32bit dom0 without HVM. The mini tutorial is in Polish though ;) http://estseg.blogspot.com/2008/05/200805-i-xvm.html -- Regards, Piotr Jasiukajtis | estibi | SCA OS0072 http://estseg.blogspot.com http://pl.opensolaris.org
I hardly understand Polish. However, looks like you installed SNV86 DomU at OpenSolaris2008/05 Dom0 (bare metal). I would wonder command : # pkg install SUNWvirtinst picks up package form Internet Repo or from DISTRO itself. This message posted from opensolaris.org
2008/5/11 Boris Derzhavets <bderzhavets@yahoo.com>:> I hardly understand Polish. However, looks like you installed SNV86 DomU at > OpenSolaris2008/05 Dom0 (bare metal). I would wonder command : > # pkg install SUNWvirtinst > picks up package form Internet Repo or from DISTRO itself.Installed from default pkg.opensolaris.org repository. -- Regards, Piotr Jasiukajtis | estibi | SCA OS0072 http://estseg.blogspot.com
If you need to use pygrub, an alternative is to convert 2008.05 to UFS: 1. create installed 2008.05 ZFS VM with additional device 2. newfs and mount this device on /ufs 3. /usr/bin/find -H . -depth -mount -print | /usr/bin/cpio -pdmPu /ufs note: this only takes stuff mounted on / 4. mount -F lofs -o nosub / /mnt (cd /mnt; tar cvf - devices dev ) | (cd /ufs; tar xvf -) umount /mnt 5. fix the device names in /ufs/dev/dsk and /ufs/dev/rdsk: for i in *; do mv "$i" "`echo $i | sed -e ''s/c4/c0/''`"; done 6. make the missing dirs w/correct perms (/ufs/tmp, /ufs/proc, etc - there is a script for this here: http://www.opensolaris.org/os/community/zfs/boot/zfsboot-manual/create_dirs/) 7. edit /etc/vfstab to use /dev/dsk/c0d0s0 for / and swap for /tmp 8. bootadm update-archive -R /ufs 9. umount /ufs Shutdown and it''s ready to go This message posted from opensolaris.org
> > You will need to copy the kernel and ramdisk > off for it to work.. >Hi, what does "rpool/27" mean on extra=''/platform/i86xpv/kernel/amd64/unix -B zfs-bootfs=rpool/27'' To be more specific, if I created another zfs pool for root, or upgrade opensolaris per http://opensolaris.org/os/project/indiana/resources/update_guidelines/ that result in new zfs rootfs, what would the zfs-bootfs parameter be? It seems that when using zfs-aware pygrub, bootfs can be used to select the correct root. Is there a way to achieve similar effect using xen config file? Regards, Fajar This message posted from opensolaris.org
Fajar A. Nugraha wrote:>> You will need to copy the kernel and ramdisk >> off for it to work.. >> > > > Hi, > > what does "rpool/27" mean on > extra=''/platform/i86xpv/kernel/amd64/unix -B zfs-bootfs=rpool/27'' > > To be more specific, > if I created another zfs pool for root, or upgrade opensolaris per http://opensolaris.org/os/project/indiana/resources/update_guidelines/ that result in new zfs rootfs, what would the zfs-bootfs parameter be?Unfortunately, it''s not easy to determine.> It seems that when using zfs-aware pygrub, bootfs can be used to select the correct root. Is there a way to achieve similar effect using xen config file?No, not currently. Hopefully, the zfs aware pygrub will be standard in 3.2.2. MRJ
> what > would the zfs-bootfs parameter be? > > Unfortunately, it''s not easy to determine. >Yeah, I had to found out about it the hard way. I was actually trying to install SXCE b87 and convert it to zfs root as PV domU on linux dom0. I tried zfs-bootfs=rootpool/rootfs, zfs-bootfs=rootpool/27, and some other variations, none of them seem to work.> > > It seems that when using zfs-aware pygrub, bootfs > can be used to select the correct root. Is there a > way to achieve similar effect using xen config file? > > No, not currently. Hopefully, the zfs aware pygrub > will > be standard in 3.2.2. >I ended up using libfsimage and pygrub from xen-unstable, while the rest of the tools is from xen-3.2.1. Seems to work so far. When running pygrub manually it shows that the params are "/platform/i86xpv/kernel/amd64/unix -B zfs-bootfs=rootpool/21,bootpath=''/xpvd/xdf@1:a''" No idea what "21" on rootpool/21 means. I also got this bug : http://opensolaris.org/os/community/on/flag-days/pages/2008040301/ fixed using suggested workaround. Now I''m able to run both b87 and opensolaris 2008.05 using zfs-root. Thanks for your help. -- Fajar This message posted from opensolaris.org
> > > It seems that when using zfs-aware pygrub, bootfs > can be used to select the correct root. Is there a > way to achieve similar effect using xen config file? > > No, not currently. Hopefully, the zfs aware pygrub > will > be standard in 3.2.2. >Hi Mark, It seems to me that when using pygrub from solaris domU, xen doesn''t look at the contents of menu.lst. In my testing, the parameters returned by pygrub depends on the command "zpool set bootfs=", not from bootfs parameter on grub menu.lst. Is there a way to have pygrub actually parse menu.lst for solaris domUs, or some other way to select bootfs via pygrub? Regards, Fajar This message posted from opensolaris.org
If you are short of memory in Guest you can instead of unsing VNC server localy, use X display redirection. 6b) Use for installation ssh with X redirection ssh -X jack@129.157.107.173 jack export DISPLAY=computer:0.0 pfexec gui-install -------------- See more in blog http://blogs.sun.com/VirtualGuru/entry/warm_welcome_opensolaris_on_amazon Your Virtual Guru This message posted from opensolaris.org
Fajar, Yes, xvm does not currently look at the contents of menu.lst. You can supply an override to pygrub for zfs-bootfs. If you dump the config with ''virsh dumpxml <domU> > file'', edit it adding a bootloader argument of zfs-bootfs=<name_of_filesystem>'' and then ''virsh define file'' this will override the default that is found by pygrub. The bootloader arg line looks like: <bootloader_args>--args="zfs-bootfs=rpool/ROOT/opensolaris"</bootloader_args> You can boot from a zfs root clone, but not from a zfs root snapshot. Thanks Susan Fajar A. Nugraha wrote:>>> It seems that when using zfs-aware pygrub, bootfs >> can be used to select the correct root. Is there a >> way to achieve similar effect using xen config file? >> >> No, not currently. Hopefully, the zfs aware pygrub >> will >> be standard in 3.2.2. >> > > Hi Mark, > > It seems to me that when using pygrub from solaris domU, xen doesn''t look at the contents of menu.lst. In my testing, the parameters returned by pygrub depends on the command "zpool set bootfs=", not from bootfs parameter on grub menu.lst. > > Is there a way to have pygrub actually parse menu.lst for solaris domUs, or some other way to select bootfs via pygrub? > > Regards, > > Fajar > > > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org
Peter Huetmannsberger
2008-Oct-12 12:25 UTC
Re: Installing OpenSolaris 2008/05 as a PV guest
Hi, thank you for blog entry, it was rather helpful. I am running a Linux Dom0 and have succeeded in installing Opensolaris to some extent. The install went fine, I copied boot_archive and the kernel but on reboot I get the following error: [root@harmless xen]# xm create -c sol Using config file "./sol". Started domain solaris v3.1.2-92.1.13.el5 chgset ''unavailable'' SunOS Release 5.11 Version snv_86 64-bit Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. NOTICE: xdf@0: failed to read feature-barrier Hostname: xen-opensolaris Configuring devices. devfsadm: open failed for /etc/dev/.devfsadm_dev.lock: Read-only file system Loading smf(5) service descriptions: 139/139 svccfg import warnings. See /var/svc/log/system-manifest-import:default.log . WARNING: svccfg apply /var/svc/profile/generic.xml failed WARNING: svccfg apply /var/svc/profile/platform.xml failed Requesting System Maintenance Mode (See /lib/svc/share/README for more information.) Console login service(s) cannot run Root password for system maintenance (control-d to bypass): Reading ZFS config: done. Mounting ZFS filesystems: (6/6) I can log on as root, but the system isn''t very useful this way, and I don''t know enough about solaris to fix it. my xen.cfg file for this looks like this: name = "solaris" memory = 1024 vif = [ '''' ] disk = [ ''file:/data/xen/solaris.img,0,w'' ] kernel = ''/etc/xen/unix'' ramdisk = ''/etc/xen/boot_archive'' extra = ''/platform/i86xpv/kernel/amd64/unix -B zfs-bootfs=rpool/27'' on_poweroff = ''destroy'' on_reboot = ''destroy'' on_crash = ''destroy'' If there is any help, I would appreciate it. Many thanks. .peter -- This message posted from opensolaris.org