Re: Kernel panic on FreeBSD 8.0 RELEASE when starting kernel
G VM wrote: Deploy IS INFO wrote: G VM wrote: Deploy IS INFO wrote: Hi, You can run (in theory) any FreeBSD on a hardware that has HVM support. You can check that with xm info. You can only run FreeBSD 8 as a PV guest with 32bit arch and hvm-pv with amd64. For the pv or the hvm-pv mode you have to compile the XEN (for 32bit) or XENHVM (amd64) kernel config. You'll have to install FreeBSD as a hvm guest and after a successful install you may go on with the above mentioned kernels. For pv mode use only 1 vcpu and max 2 for hvm-pv. Regards, Andras G VM wrote: Justin T. Gibbs wrote: On 1/24/2010 4:54 PM, G VM wrote: Hi all, I wanted to try running FreeBSD as a guest os. I followed the instructions on this url. http://www.ita.com.ua/eng/articles.htm?id=34 I am not sure what Xen exactly does. Does it uses the kernel on the dom0? Or does it both uses the bsd kernel on the dom0 and a modified kernel on domU? I do not have a done: make buildkernel KERNCONF=/XEN Is this necessary? I thought xen support was included in the kernel. Do note the instructions I followed. I used those. / ___ freebsd-xen@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-xen To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org # xm info host : backupserver release : 2.6.18-164.9.1.el5xen version : #1 SMP Tue Dec 15 21:31:37 EST 2009 machine : x86_64 nr_cpus : 2 nr_nodes : 1 cores_per_socket : 2 threads_per_core : 1 cpu_mhz : 2210 hw_caps : 178bf3ff:ebd3fbff::0010:2001::0 01f: virt_caps : hvm total_memory : 2046 free_memory : 512 node_to_cpu : node0:0-1 node_to_memory : node0:512 xen_major : 3 xen_minor : 4 xen_extra : .2 xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x 86_32p hvm-3.0-x86_64 xen_scheduler : credit xen_pagesize : 4096 platform_params : virt_start=0x8000 xen_changeset : unavailable cc_compiler : gcc version 4.1.2 20080704 (Red Hat 4.1.2-44) cc_compile_by : root cc_compile_domain : gitco.tld cc_compile_date : Wed Nov 11 21:16:28 CET 2009 xend_config_format : 4 So this seems ok. My dom0 is x86_64. Does this mean I have to use hvm-pv (XENHVM) - FreeBSD amd64 install? Or can I run the i386 pv (XEN) on a 64 bit dom0 too? Does this also needs a copy of the compiled kernel to the dom0? Do note that the default 8.0-RELEASE cd does panic (this is part of the config, when trying to do a normal install to compile the new kernel (that is why I used VMware to compile the kernel)): ... builder = hvm kernel = /usr/lib/xen/boot/hvmloader device_model = /usr/lib64/xen/bin/qemu-dm ... Hi, You can any guests arch that fits into the xm info's xen cap line, so a 32bit pv guest is not a problem for you. We use the following example config: kernel = /usr/lib/xen/boot/hvmloader #kernel = /path/to/pvkernel builder='hvm' memory = 1024 name = FreeBSD8 vif = [ '' ] disk = [ 'phy:/dev/volgroup/freebsd-lv-rootfs,hda,w', 'file:/path/to/8.0-RELEASE-amd64-disc1.iso,hdd:cdrom,r' ] boot=cda vnc=1 vncpasswd='ihavepassword' #vcpus='2' The commented parts are should be tried only after a succesful install and of course the amd64 iso could be an i386 also. Under 3.3.1 Xen it works one a X2270 test server and a x2250 prod server. Regards, Andras I used the config you provided and have a 8.0-RELEASE x86 cd. When I boot from the CD the kernel panics: AMD Features2= real memory = ... 500MB avail memory = ... 471MB panic: vm_fault: fault on nofault entry, addr: c3253000 cpuid = 0 :S That is the reason I compiled the kernel in VMware as I can install FreeBSD there. BUt then I got the panic I have in the beginning of this mailling list topic. If I am not mistaken I also tried the AMD64 cd and that did fail also. However when using 7.2 it just works ok. Anyone an idea? BTW, thanks so far for your help guys! ___ freebsd-xen@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-xen To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org Anyone has an idea? About the problem starting a XEN kernel OR the problem starting the normal kernel with hvmloader? Is this probably a kernel bug? And if so, where can I report it? Is it likely Xen is the problem or FreeBSD is the problem? Do I need more information than this? I can provide everything(even memory dump if that would help). Kind regards ___ freebsd-xen@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-xen To unsubscribe, send any mail to
Re: Kernel panic on FreeBSD 8.0 RELEASE when starting kernel
Hi, You can run (in theory) any FreeBSD on a hardware that has HVM support. You can check that with xm info. You can only run FreeBSD 8 as a PV guest with 32bit arch and hvm-pv with amd64. For the pv or the hvm-pv mode you have to compile the XEN (for 32bit) or XENHVM (amd64) kernel config. You'll have to install FreeBSD as a hvm guest and after a successful install you may go on with the above mentioned kernels. For pv mode use only 1 vcpu and max 2 for hvm-pv. Regards, Andras G VM wrote: Justin T. Gibbs wrote: On 1/24/2010 4:54 PM, G VM wrote: Hi all, I wanted to try running FreeBSD as a guest os. I followed the instructions on this url. http://www.ita.com.ua/eng/articles.htm?id=34 I am not sure what Xen exactly does. Does it uses the kernel on the dom0? Or does it both uses the bsd kernel on the dom0 and a modified kernel on domU? I do not have a done: make buildkernel KERNCONF=/XEN Is this necessary? I thought xen support was included in the kernel. Do note the instructions I followed. I used those. / ___ freebsd-xen@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-xen To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org ___ freebsd-xen@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-xen To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org
Re: Kernel panic on FreeBSD 8.0 RELEASE when starting kernel
G VM wrote: Deploy IS INFO wrote: Hi, You can run (in theory) any FreeBSD on a hardware that has HVM support. You can check that with xm info. You can only run FreeBSD 8 as a PV guest with 32bit arch and hvm-pv with amd64. For the pv or the hvm-pv mode you have to compile the XEN (for 32bit) or XENHVM (amd64) kernel config. You'll have to install FreeBSD as a hvm guest and after a successful install you may go on with the above mentioned kernels. For pv mode use only 1 vcpu and max 2 for hvm-pv. Regards, Andras G VM wrote: Justin T. Gibbs wrote: On 1/24/2010 4:54 PM, G VM wrote: Hi all, I wanted to try running FreeBSD as a guest os. I followed the instructions on this url. http://www.ita.com.ua/eng/articles.htm?id=34 I am not sure what Xen exactly does. Does it uses the kernel on the dom0? Or does it both uses the bsd kernel on the dom0 and a modified kernel on domU? I do not have a done: make buildkernel KERNCONF=/XEN Is this necessary? I thought xen support was included in the kernel. Do note the instructions I followed. I used those. / ___ freebsd-xen@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-xen To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org # xm info host : backupserver release : 2.6.18-164.9.1.el5xen version : #1 SMP Tue Dec 15 21:31:37 EST 2009 machine : x86_64 nr_cpus : 2 nr_nodes : 1 cores_per_socket : 2 threads_per_core : 1 cpu_mhz : 2210 hw_caps : 178bf3ff:ebd3fbff::0010:2001::0 01f: virt_caps : hvm total_memory : 2046 free_memory : 512 node_to_cpu : node0:0-1 node_to_memory : node0:512 xen_major : 3 xen_minor : 4 xen_extra : .2 xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x 86_32p hvm-3.0-x86_64 xen_scheduler : credit xen_pagesize : 4096 platform_params : virt_start=0x8000 xen_changeset : unavailable cc_compiler : gcc version 4.1.2 20080704 (Red Hat 4.1.2-44) cc_compile_by : root cc_compile_domain : gitco.tld cc_compile_date : Wed Nov 11 21:16:28 CET 2009 xend_config_format : 4 So this seems ok. My dom0 is x86_64. Does this mean I have to use hvm-pv (XENHVM) - FreeBSD amd64 install? Or can I run the i386 pv (XEN) on a 64 bit dom0 too? Does this also needs a copy of the compiled kernel to the dom0? Do note that the default 8.0-RELEASE cd does panic (this is part of the config, when trying to do a normal install to compile the new kernel (that is why I used VMware to compile the kernel)): ... builder = hvm kernel = /usr/lib/xen/boot/hvmloader device_model = /usr/lib64/xen/bin/qemu-dm ... Hi, You can any guests arch that fits into the xm info's xen cap line, so a 32bit pv guest is not a problem for you. We use the following example config: kernel = /usr/lib/xen/boot/hvmloader #kernel = /path/to/pvkernel builder='hvm' memory = 1024 name = FreeBSD8 vif = [ '' ] disk = [ 'phy:/dev/volgroup/freebsd-lv-rootfs,hda,w', 'file:/path/to/8.0-RELEASE-amd64-disc1.iso,hdd:cdrom,r' ] boot=cda vnc=1 vncpasswd='ihavepassword' #vcpus='2' The commented parts are should be tried only after a succesful install and of course the amd64 iso could be an i386 also. Under 3.3.1 Xen it works one a X2270 test server and a x2250 prod server. Regards, Andras ___ freebsd-xen@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-xen To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org
Re: Kernel panic on FreeBSD 8.0 RELEASE when starting kernel
Deploy IS INFO wrote: G VM wrote: Deploy IS INFO wrote: Hi, You can run (in theory) any FreeBSD on a hardware that has HVM support. You can check that with xm info. You can only run FreeBSD 8 as a PV guest with 32bit arch and hvm-pv with amd64. For the pv or the hvm-pv mode you have to compile the XEN (for 32bit) or XENHVM (amd64) kernel config. You'll have to install FreeBSD as a hvm guest and after a successful install you may go on with the above mentioned kernels. For pv mode use only 1 vcpu and max 2 for hvm-pv. Regards, Andras G VM wrote: Justin T. Gibbs wrote: On 1/24/2010 4:54 PM, G VM wrote: Hi all, I wanted to try running FreeBSD as a guest os. I followed the instructions on this url. http://www.ita.com.ua/eng/articles.htm?id=34 I am not sure what Xen exactly does. Does it uses the kernel on the dom0? Or does it both uses the bsd kernel on the dom0 and a modified kernel on domU? I do not have a done: make buildkernel KERNCONF=/XEN Is this necessary? I thought xen support was included in the kernel. Do note the instructions I followed. I used those. / ___ freebsd-xen@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-xen To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org # xm info host : backupserver release : 2.6.18-164.9.1.el5xen version : #1 SMP Tue Dec 15 21:31:37 EST 2009 machine : x86_64 nr_cpus : 2 nr_nodes : 1 cores_per_socket : 2 threads_per_core : 1 cpu_mhz : 2210 hw_caps : 178bf3ff:ebd3fbff::0010:2001::0 01f: virt_caps : hvm total_memory : 2046 free_memory : 512 node_to_cpu : node0:0-1 node_to_memory : node0:512 xen_major : 3 xen_minor : 4 xen_extra : .2 xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x 86_32p hvm-3.0-x86_64 xen_scheduler : credit xen_pagesize : 4096 platform_params : virt_start=0x8000 xen_changeset : unavailable cc_compiler : gcc version 4.1.2 20080704 (Red Hat 4.1.2-44) cc_compile_by : root cc_compile_domain : gitco.tld cc_compile_date : Wed Nov 11 21:16:28 CET 2009 xend_config_format : 4 So this seems ok. My dom0 is x86_64. Does this mean I have to use hvm-pv (XENHVM) - FreeBSD amd64 install? Or can I run the i386 pv (XEN) on a 64 bit dom0 too? Does this also needs a copy of the compiled kernel to the dom0? Do note that the default 8.0-RELEASE cd does panic (this is part of the config, when trying to do a normal install to compile the new kernel (that is why I used VMware to compile the kernel)): ... builder = hvm kernel = /usr/lib/xen/boot/hvmloader device_model = /usr/lib64/xen/bin/qemu-dm ... Hi, You can any guests arch that fits into the xm info's xen cap line, so a 32bit pv guest is not a problem for you. We use the following example config: kernel = /usr/lib/xen/boot/hvmloader #kernel = /path/to/pvkernel builder='hvm' memory = 1024 name = FreeBSD8 vif = [ '' ] disk = [ 'phy:/dev/volgroup/freebsd-lv-rootfs,hda,w', 'file:/path/to/8.0-RELEASE-amd64-disc1.iso,hdd:cdrom,r' ] boot=cda vnc=1 vncpasswd='ihavepassword' #vcpus='2' The commented parts are should be tried only after a succesful install and of course the amd64 iso could be an i386 also. Under 3.3.1 Xen it works one a X2270 test server and a x2250 prod server. Regards, Andras I used the config you provided and have a 8.0-RELEASE x86 cd. When I boot from the CD the kernel panics: AMD Features2= real memory = ... 500MB avail memory = ... 471MB panic: vm_fault: fault on nofault entry, addr: c3253000 cpuid = 0 :S That is the reason I compiled the kernel in VMware as I can install FreeBSD there. BUt then I got the panic I have in the beginning of this mailling list topic. If I am not mistaken I also tried the AMD64 cd and that did fail also. However when using 7.2 it just works ok. Anyone an idea? BTW, thanks so far for your help guys! ___ freebsd-xen@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-xen To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org
Re: Kernel panic on FreeBSD 8.0 RELEASE when starting kernel
Justin T. Gibbs wrote: Please recompile your kernel with debugger support and get a back-trace your panic. See http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug-online-ddb.html for details on how to do this. I am a little confused. At the top of the output there is: GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb This makes me think that debugging is already compiled in. Also in the default XENHVM config option ddb and option kdb are already included. I had been seeing the db prompt. So I tried it again now. When at the db prompt I typed trace: db trace Tracing pid 11 tid 13 td 0xc2309b40 spinlock_enter(1,c2166cf8,c00fb94e,1,0,...) at spinlock_enter+0x91 cpu_idle(1,0,c035fa0f,9e9,c2309b40,...) at cpu_idle+0x12 sched_idletd(0,c2166d38,c03593f0,343,c2307aa0,...) at sched_idletd+0x23e fork_exit(c00fb710,0,c2166d38) at fork_exit+0xb8 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip = 0, esp = 0xc2166d70, ebp = 0 --- This is what you want... correct? Do you have any idea if there is a fix for this? Thanks in advance! ___ freebsd-xen@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-xen To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org