Kernel panic on FreeBSD 8.0 RELEASE when starting kernel

G VM drums_gvm at hotmail.com
Tue Jan 26 12:28:08 UTC 2010


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 at freebsd.org mailing list
>> >> http://lists.freebsd.org/mailman/listinfo/freebsd-xen
>> >> To unsubscribe, send any mail to
>> "freebsd-xen-unsubscribe at 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:00000000:00000010:00002001:00000000:0
>> 000001f:00000000
>> 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=0xffff800000000000
>> 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!

 		 	   		  


More information about the freebsd-xen mailing list