Andrey Khavryuchenko
2006-Nov-23 12:42 UTC
[Xen-users] NetBSD DomU in Debian Dom0 fails to find boot/root/devices
Hi! I can''t boot NetBSD 3.1 DomU in my Debian Dom0. It fails to find boot/root device. The configuration file is: $ cat /etc/xen/netbsd.kds.priv.cfg kernel="/xen/dist/kernels/netbsd/netbsd-XEN3_DOMU" extra="bootdev=/dev/wd0" root = "/dev/wd0a" memory=''64'' name="netbsd.kds.priv" dist = [''file:/xen/domains/netbsd.kds.priv/disk.img,0x3,w''] ip=''10.0.2.17'' netmask=''255.255.255.0'' gateway=''10.0.2.2'' The DomU kernel was downloaded from ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/i386/binary/kernel/netbsd-XEN3_DOMU.gz The boot sequence is the following: akhavr@dom0 dist/kernels/netbsd $ sudo xm create -c netbsd.kds.priv.cfg Using config file "/etc/xen/netbsd.kds.priv.cfg". Started domain netbsd.kds.priv Loaded initial symtab at 0xc047f948, strtab at 0xc04ac50c, # entries 11383 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 The NetBSD Foundation, Inc. All rights reserved. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. NetBSD 3.1 (XEN3_DOMU) #0: Tue Oct 31 04:58:28 UTC 2006 builds@b0.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/XEN3_DOMU total memory = 61464 KB avail memory = 59972 KB mainbus0 (root) cpu0 at mainbus0: (uniprocessor) cpu0: AMD Athlon Model 2 (686-class), 2010.38 MHz, id 0x623 cpu0: features 2799fbfd<FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR> cpu0: features 2799fbfd<PGE,MCA,CMOV,PAT,MPC,NOX,MMX> cpu0: features 2799fbfd<FXSR,SSE,SSE2,LONG> cpu0: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way cpu0: L2 cache 512 KB 64B/line 16-way cpu0: ITLB 255 4 KB entries direct-mapped, 255 4 MB entries direct-mapped cpu0: DTLB 255 4 KB entries direct-mapped, 255 4 MB entries direct-mapped cpu0: 8 page colors hypervisor0 at mainbus0 debug virtual interrupt using event channel 3 xenbus0 at hypervisor0: Xen Virtual Bus Interface xenbus0: using event channel 1 xencons0 at hypervisor0: Xen Virtual Console Driver xencons0: console major 143, unit 0 xencons0: using event channel 2 npx0 at hypervisor0: using exception 16 Xen clock: using event channel 4 raidattach: Asked for 8 units Kernelized RAIDframe activated crypto: assign driver 0, flags 2 crypto: driver 0 registers alg 1 flags 0 maxoplen 0 crypto: driver 0 registers alg 2 flags 0 maxoplen 0 crypto: driver 0 registers alg 3 flags 0 maxoplen 0 crypto: driver 0 registers alg 4 flags 0 maxoplen 0 crypto: driver 0 registers alg 5 flags 0 maxoplen 0 crypto: driver 0 registers alg 17 flags 0 maxoplen 0 crypto: driver 0 registers alg 6 flags 0 maxoplen 0 crypto: driver 0 registers alg 7 flags 0 maxoplen 0 crypto: driver 0 registers alg 15 flags 0 maxoplen 0 crypto: driver 0 registers alg 8 flags 0 maxoplen 0 crypto: driver 0 registers alg 16 flags 0 maxoplen 0 crypto: driver 0 registers alg 9 flags 0 maxoplen 0 crypto: driver 0 registers alg 10 flags 0 maxoplen 0 crypto: driver 0 registers alg 13 flags 0 maxoplen 0 crypto: driver 0 registers alg 14 flags 0 maxoplen 0 crypto: driver 0 registers alg 11 flags 0 maxoplen 0 crypto: driver 0 registers alg 18 flags 0 maxoplen 0 Searching for RAID components... boot device: <unknown> root device: use one of: raid0[a-p] raid1[a-p] raid2[a-p] raid3[a-p] raid4[a-p] raid5[a-p] raid6[a-p] raid7[a-p] ddb halt reboot root device: % It doesn''t depend on any extra="bootdev..." or root = "/dev/wd0a" values as well on files line. Actually it produced the same output when the root image wasn''t there. Googling didn''t produce anything helpful. Any ideas? Thanks in advance! -- Andrey V Khavryuchenko Software Development Company http://www.kds.com.ua/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Xen Mailing Lists
2006-Nov-23 23:22 UTC
Re: [Xen-users] NetBSD DomU in Debian Dom0 fails to find boot/root/devices
Andrey Khavryuchenko wrote:> Hi! > > I can''t boot NetBSD 3.1 DomU in my Debian Dom0. It fails to find boot/root > device. > > The configuration file is: > > $ cat /etc/xen/netbsd.kds.priv.cfg > kernel="/xen/dist/kernels/netbsd/netbsd-XEN3_DOMU" > extra="bootdev=/dev/wd0" > root = "/dev/wd0a" > > memory=''64'' > name="netbsd.kds.priv" > dist = [''file:/xen/domains/netbsd.kds.priv/disk.img,0x3,w''] > > ip=''10.0.2.17'' > netmask=''255.255.255.0'' > gateway=''10.0.2.2'' > > The DomU kernel was downloaded from > ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/i386/binary/kernel/netbsd-XEN3_DOMU.gz > > The boot sequence is the following: > > akhavr@dom0 dist/kernels/netbsd $ sudo xm create -c netbsd.kds.priv.cfg > Using config file "/etc/xen/netbsd.kds.priv.cfg". > Started domain netbsd.kds.priv > Loaded initial symtab at 0xc047f948, strtab at 0xc04ac50c, # entries 11383 > Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 > The NetBSD Foundation, Inc. All rights reserved. > Copyright (c) 1982, 1986, 1989, 1991, 1993 > The Regents of the University of California. All rights reserved. > > NetBSD 3.1 (XEN3_DOMU) #0: Tue Oct 31 04:58:28 UTC 2006 > builds@b0.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/XEN3_DOMU > total memory = 61464 KB > avail memory = 59972 KB > mainbus0 (root) > cpu0 at mainbus0: (uniprocessor) > cpu0: AMD Athlon Model 2 (686-class), 2010.38 MHz, id 0x623 > cpu0: features 2799fbfd<FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR> > cpu0: features 2799fbfd<PGE,MCA,CMOV,PAT,MPC,NOX,MMX> > cpu0: features 2799fbfd<FXSR,SSE,SSE2,LONG> > cpu0: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way > cpu0: L2 cache 512 KB 64B/line 16-way > cpu0: ITLB 255 4 KB entries direct-mapped, 255 4 MB entries direct-mapped > cpu0: DTLB 255 4 KB entries direct-mapped, 255 4 MB entries direct-mapped > cpu0: 8 page colors > hypervisor0 at mainbus0 > debug virtual interrupt using event channel 3 > xenbus0 at hypervisor0: Xen Virtual Bus Interface > xenbus0: using event channel 1 > xencons0 at hypervisor0: Xen Virtual Console Driver > xencons0: console major 143, unit 0 > xencons0: using event channel 2 > npx0 at hypervisor0: using exception 16 > Xen clock: using event channel 4 > raidattach: Asked for 8 units > Kernelized RAIDframe activated > crypto: assign driver 0, flags 2 > crypto: driver 0 registers alg 1 flags 0 maxoplen 0 > crypto: driver 0 registers alg 2 flags 0 maxoplen 0 > crypto: driver 0 registers alg 3 flags 0 maxoplen 0 > crypto: driver 0 registers alg 4 flags 0 maxoplen 0 > crypto: driver 0 registers alg 5 flags 0 maxoplen 0 > crypto: driver 0 registers alg 17 flags 0 maxoplen 0 > crypto: driver 0 registers alg 6 flags 0 maxoplen 0 > crypto: driver 0 registers alg 7 flags 0 maxoplen 0 > crypto: driver 0 registers alg 15 flags 0 maxoplen 0 > crypto: driver 0 registers alg 8 flags 0 maxoplen 0 > crypto: driver 0 registers alg 16 flags 0 maxoplen 0 > crypto: driver 0 registers alg 9 flags 0 maxoplen 0 > crypto: driver 0 registers alg 10 flags 0 maxoplen 0 > crypto: driver 0 registers alg 13 flags 0 maxoplen 0 > crypto: driver 0 registers alg 14 flags 0 maxoplen 0 > crypto: driver 0 registers alg 11 flags 0 maxoplen 0 > crypto: driver 0 registers alg 18 flags 0 maxoplen 0 > Searching for RAID components... > boot device: <unknown> > root device: > use one of: raid0[a-p] raid1[a-p] raid2[a-p] raid3[a-p] raid4[a-p] raid5[a-p] raid6[a-p] raid7[a-p] ddb halt reboot > root device: % > > It doesn''t depend on any extra="bootdev..." or root = "/dev/wd0a" values as > well on files line. Actually it produced the same output when the root > image wasn''t there. > > Googling didn''t produce anything helpful. > > Any ideas? > > Thanks in advance!Have you actually installed NetBSD using the netbsd-INSTALL_XEN3_DOMU first? ( as per http://wiki.xensource.com/xenwiki/NetBSDdomU ) I am interested to get this up and running too. If I run the installer without defining a disk in the config file, I get the installer dialogue box, but I can''t continue. However if I define a disk I get the following: xen:/mnt/xen/vserver/images/domains/netbsd# xm create netbsd.cfg -c Using config file "/etc/xen/netbsd.cfg". Started domain nbsd [ Kernel symbol table missing! ] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 The NetBSD Foundation, Inc. All rights reserved. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. NetBSD 3.1 (INSTALL_XEN3_DOMU) #0: Tue Oct 31 05:09:39 UTC 2006 builds@b0.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/INSTALL_XEN3_DOMU total memory = 121 MB avail memory = 118 MB mainbus0 (root) cpu0 at mainbus0: (uniprocessor) cpu0: Intel Pentium 4 (686-class), 2657.81 MHz, id 0xf27 cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR> cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX> cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF> cpu0: I-cache 12K uOp cache 8-way, D-cache 8 KB 64B/line 4-way cpu0: L2 cache 512 KB 64B/line 8-way cpu0: ITLB 4K/4M: 128 entries cpu0: DTLB 4K/4M: 64 entries cpu0: 16 page colors hypervisor0 at mainbus0 debug virtual interrupt using event channel 3 xenbus0 at hypervisor0: Xen Virtual Bus Interface xenbus0: using event channel 1 xencons0 at hypervisor0: Xen Virtual Console Driver xencons0: console major 143, unit 0 xencons0: using event channel 2 npx0 at hypervisor0: using exception 16 Xen clock: using event channel 4 raidattach: Asked for 8 units Kernelized RAIDframe activated md0: internal 5000 KB image area xbd0 at xenbus0 id 3: Xen Virtual Block Device Interface xbd0: using event channel 5 backend_changed backend -------Hangs here --------------- -- Ben --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0650-2, 23/11/2006 Tested on: 24/11/2006 10:22:58 AM avast! - copyright (c) 2000-2006 ALWIL Software. http://www.avast.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrey Khavryuchenko
2006-Nov-24 06:46 UTC
[Xen-users] Re: NetBSD DomU in Debian Dom0 fails to find boot/root/devices
Ben, "XML" == Xen Mailing Lists wrote: XML> Have you actually installed NetBSD using the netbsd-INSTALL_XEN3_DOMU XML> first? ( as per http://wiki.xensource.com/xenwiki/NetBSDdomU ) No, I''m using different approach, which proved workable and universal. I install first the OS in qemu and then reuse the disk image in xen. Nevertheless, I''ve tried the netbsd-INSTALL_XEN3_DOMU and it dropped to kernel debugger just before disk partitioning stage. [...] XML> md0: internal 5000 KB image area XML> xbd0 at xenbus0 id 3: Xen Virtual Block Device Interface XML> xbd0: using event channel 5 XML> backend_changed backend XML> -------Hangs here --------------- Looks like mine installation could went further. Nevertheless, I''m stick right now. Anyone using NetBSD outta here? -- Andrey V Khavryuchenko Software Development Company http://www.kds.com.ua/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Weinem
2006-Nov-24 10:38 UTC
Re: [Xen-users] NetBSD DomU in Debian Dom0 fails to find boot/root/devices
Am Donnerstag, 23. November 2006 13:42 schrieb Andrey Khavryuchenko:> I can''t boot NetBSD 3.1 DomU in my Debian Dom0. It fails to find > boot/root device. > > The configuration file is: > > $ cat /etc/xen/netbsd.kds.priv.cfg > kernel="/xen/dist/kernels/netbsd/netbsd-XEN3_DOMU" > extra="bootdev=/dev/wd0" > root = "/dev/wd0a" > > memory=''64'' > name="netbsd.kds.priv" > dist = [''file:/xen/domains/netbsd.kds.priv/disk.img,0x3,w'']>[...] "dist"? How about "disk"? Regards, Mark _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrey Khavryuchenko
2006-Nov-27 11:31 UTC
[Xen-users] Re: NetBSD DomU in Debian Dom0 fails to find boot/root/devices
Mark, "MW" == Mark Weinem wrote: MW> Am Donnerstag, 23. November 2006 13:42 schrieb Andrey Khavryuchenko: >> I can''t boot NetBSD 3.1 DomU in my Debian Dom0. It fails to find >> boot/root device. >> >> The configuration file is: >> >> $ cat /etc/xen/netbsd.kds.priv.cfg >> kernel="/xen/dist/kernels/netbsd/netbsd-XEN3_DOMU" >> extra="bootdev=/dev/wd0" >> root = "/dev/wd0a" >> >> memory=''64'' >> name="netbsd.kds.priv" >> dist = [''file:/xen/domains/netbsd.kds.priv/disk.img,0x3,w''] >> [...] MW> "dist"? How about "disk"? Holy s2t! Such stupid typo :( Thanks, Mark! It worked now. -- Andrey V Khavryuchenko Software Development Company http://www.kds.com.ua/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users