DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th January 2010
deadeyes deadeyes is offline
Port Guard
 
Join Date: Jun 2008
Posts: 19
Default FreeBSD 8.0-RELEASE as DomU(hvm; i386): kernel panic

Hi all

I had a i386 FreeBSD 7.2-RELEASE running on Xen as a DomU (with hvm).

Now I want to upgrade to FreeBSD 8.0-RELEASE.
After rebooting into the new kernel I get directly a kernel panic.

So now I started over with a fresh disk (file) and 8.0-RELEASE bootonly i386 (x86) disk. I used these instructions:
http://www.ita.com.ua/eng/articles.htm?id=34
I still got the same.

This is a screenshot: http://img705.imageshack.us/img705/7...e80kernelp.png

Anyone an idea what is wrong?

My host system is CentOS release 5.4 (Final).
CPU is:

Code:
cat /proc/cpuinfo 
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 67
model name      : Dual-Core AMD Opteron(tm) Processor 1214
stepping        : 3
cpu MHz         : 2200.000
cache size      : 1024 KB
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu de tsc msr pae mce cx8 apic mtrr mca cmov pat clflush mmx 
fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni cx16 lahf_lm c
mp_legacy cr8_legacy
bogomips        : 5527.11
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 67
model name      : Dual-Core AMD Opteron(tm) Processor 1214
stepping        : 3
cpu MHz         : 2200.000
cache size      : 1024 KB
physical id     : 1
siblings        : 1
core id         : 0
cpu cores       : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu de tsc msr pae mce cx8 apic mtrr mca cmov pat clflush mmx 
fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni cx16 lahf_lm c
mp_legacy cr8_legacy
bogomips        : 5527.11
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc
Reply With Quote
  #2   (View Single Post)  
Old 4th January 2010
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

Are you running the XEN kernel? Your screenshot mentions the GENERIC kernel.
Reply With Quote
  #3   (View Single Post)  
Old 4th January 2010
deadeyes deadeyes is offline
Port Guard
 
Join Date: Jun 2008
Posts: 19
Default

Quote:
Originally Posted by DutchDaemon View Post
Are you running the XEN kernel? Your screenshot mentions the GENERIC kernel.
I just booted the install CD.
As I said with the 7.2 installation cd it works(hvm).
However with the 8.0 it doesn't. I thought there was support for this from 8.0 included into the kernel... or am I confusing this with something else? (http://blog.xen.org/index.php/2009/1...ntal-xen-domu/)

Is there any other kernel included that I can use?

And are there any specific things I need then to have in my Xen VM config?

My Xen VM config is this:
Code:
name = "freebsd-7.2"
uuid = "45c2af8fae757400339f0a8dd8bdaead"
maxmem = 500
memory = 500
vcpus = 1
builder = "hvm"
kernel = "/usr/lib/xen/boot/hvmloader"
boot = "c"
pae = 1
#acpi = 1
#apic = 1
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
device_model = "/usr/lib64/xen/bin/qemu-dm"
sdl = 0
vnc = 1
# vncunused = 0
vncdisplay = "0"
disk = [ "phy:/dev/sdb1,hda,w", "phy:/dev/sdc,hdb,w", "phy:/dev/loop0,hdc:cdrom,r", "phy:/dev/loop1,hdd:cdrom,r" ]
serial = "pty"
vif=['bridge=br0,mac=00:16:ef:45:12:01']
Or should there be another kernel in the config?
Reply With Quote
  #4   (View Single Post)  
Old 4th January 2010
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

You said you followed the instructions, but instruction #7 requires you to build the XEN kernel, and instruction #11 tells you to boot it. Or are you encountering errors even before you get to that stage?
Reply With Quote
  #5   (View Single Post)  
Old 4th January 2010
deadeyes deadeyes is offline
Port Guard
 
Join Date: Jun 2008
Posts: 19
Default

Quote:
Originally Posted by DutchDaemon View Post
You said you followed the instructions, but instruction #7 requires you to build the XEN kernel, and instruction #11 tells you to boot it. Or are you encountering errors even before you get to that stage?
I first updated my already running 7.2-RELEASE system to 8.0-RELEASE.
When loading into the new kernel I got a kernel panic.

So I tried with a new VM (as in the link I provided).
I got to #5. So at the bootup there, I got a kernel panic.

I can't install a normal 8.0-RELEASE system.

Do note that I have not svm (AMD-V).
But as my previous install works (which was 7.2) I don't think this really matters.

THanks for your responses so far DD
Reply With Quote
  #6   (View Single Post)  
Old 5th January 2010
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

Quote:
Originally Posted by deadeyes View Post
I first updated my already running 7.2-RELEASE system to 8.0-RELEASE.
Using buildworld or freebsd-update?

Quote:
When loading into the new kernel I got a kernel panic.
Which kernel? GENERIC or XEN? You need to build and install the XEN kernel, not GENERIC.

Quote:
I can't install a normal 8.0-RELEASE system.
I gave up on Xen about a year ago. Haven't tested it since then. However, FreeBSD 8.0 does work in KVM, which uses SVM, so it should work in Xen.

Quote:
Do note that I have not svm (AMD-V).
But as my previous install works (which was 7.2) I don't think this really matters.
All 3rd-generation Opterons have 4-digit model numbers. All 3rd-generation Opterons include SVM support. Thus, you definitely have SVM support in the CPU. Whether or not it's enabled in the BIOS, though?

However, it is physically impossible to run hardware-assisted virtualisation (HVM) without SVM enabled.

Thus, you do have SVM support, and you do have it enabled.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #7   (View Single Post)  
Old 5th January 2010
deadeyes deadeyes is offline
Port Guard
 
Join Date: Jun 2008
Posts: 19
Default

Quote:
Originally Posted by phoenix View Post
Using buildworld or freebsd-update?
FreeBSD-update

Quote:
Which kernel? GENERIC or XEN? You need to build and install the XEN kernel, not GENERIC.
This brings me back to my earlier posts (sorry to keep whining about this ): why did it then work with 7.2? I am pretty sure it uses GENERIC kernel(can't check atm).

Quote:
I gave up on Xen about a year ago. Haven't tested it since then. However, FreeBSD 8.0 does work in KVM, which uses SVM, so it should work in Xen.
OK... so I should keep trying and eventually it should work

Quote:
All 3rd-generation Opterons have 4-digit model numbers. All 3rd-generation Opterons include SVM support. Thus, you definitely have SVM support in the CPU. Whether or not it's enabled in the BIOS, though?

However, it is physically impossible to run hardware-assisted virtualisation (HVM) without SVM enabled.

Thus, you do have SVM support, and you do have it enabled.
hehe, thanks for clearing that out. Had googled and found that svm should be in the /proc/cpuinfo features list.


Now I tried following things:
Installed a FreeBSD 8.0-RELEASE in VMware.
After that recompiled the kernel with xen support.
Copied the generated "kernel" file to my Xen dom0. (this seemed strange to me but followed the steps in the link put above)

Now I created an image of that bsd install with mfsbsd.
Copied the generated image(I am not sure if I have to do anything special to have a special kernel on the domU image) to my dom0.

After that I specified this mfsbsd in my domU config
This is the config:
Code:
name = "recover-bsd"
uuid = "46c2af8fae757400439f0a8ed8af9ead"
memory = 500
vcpus = 1
#builder = "hvm"
#kernel = "/usr/lib/xen/boot/hvmloader"
#device_model = "/usr/lib64/xen/bin/qemu-dm"
kernel = "/usr/lib/xen/boot/kernel-freebsd80"
boot = "c"
pae = 1
#acpi = 1
#apic = 1
vnc = 1
# vncunused = 0
vncdisplay = "0"
disk = [ "file:/var/lib/xen/images/mfsboot.img,hda,w", "file:/var/lib/xen/images/recovered-disk.img,hdb,w", "phy:/dev/loop0,hdc:cdrom,r"]
serial = "pty"
vif=['bridge=br0,mac=00:16:ef:45:12:11']
extra = "boot_verbose=1"
extra += ",vfs.root.mountfrom=ufs:/dev/ad0s1a"
extra += ",kern.hz=100"
When I start and connect to the console I get:
Code:
[root@localhost ~]# xm create recover-bsd -c
Using config file "/etc/xen/recover-bsd".
Started domain recover-bsd (id=148)
                                   WARNING: loader(8) metadata is missing!
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.0-RELEASE #0: Tue Jan  5 16:29:33 CET 2010
    root@:/usr/src/sys/i386/compile/XEN
WARNING: WITNESS option enabled, expect reduced performance.
Xen reported: 2210.184 MHz processor.
Timecounter "ixen" frequency 1000000000 Hz quality 0
CPU: Dual-Core AMD Opteron(tm) Processor 1214 (2210.18-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x40f33  Stepping = 3
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x2001<SSE3,CX16>
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x1f<LAHF,CMP,SVM,ExtAPIC,CR8>
Data TLB: 32 entries, fully associative
Instruction TLB: 32 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L2 internal cache: 1024 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative
real memory  = 524288000 (500 MB)
Physical memory chunk(s):
0x0000000000764000 - 0x000000001ea71fff, 506519552 bytes (123662 pages)
avail memory = 503681024 (480 MB)
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
ULE: setup cpu 0
[XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0)
[XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1)
Event-channel device installed.
null: <null device, zero device>
nfslock: pseudo-device
random: <entropy source, Software, Yarrow>
kbd0 at kbdmux0
io: <I/O>
mem: <memory>
Pentium Pro MTRR support enabled
Grant table initialized
xenbus0: <Xen Devices> on motherboard
xc0: <Xen Console> on motherboard
[XEN] xen_rtc_probe: probing Hypervisor RTC clock
rtc0: <Xen Hypervisor Clock> on motherboard
[XEN] xen_rtc_attach: attaching Hypervisor RTC clock
rtc0: registered as a time-of-day clock (resolution 1000000us)
npx0: INT 16 interface
Device configuration finished.
procfs registered
Timecounters tick every 10.000 msec
lo0: bpf attached
kernel trap 9 with interrupts disabled


Fatal trap 9: general protection fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer     = 0x21:0xc0320451
stack pointer           = 0x29:0xc2166ca0
frame pointer           = 0x29:0xc2166ca8
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 1, pres 1, def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 11 (idle: cpu0)
[thread pid 11 tid 100003 ]
Stopped at      spinlock_enter+0x91:    hlt
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD 7 i386, PAE and kernel modules eztiger FreeBSD Installation and Upgrading 7 1st April 2009 06:07 PM
7.1-RELEASE AMD64 SMP kernel??? Randux FreeBSD Installation and Upgrading 11 6th January 2009 08:17 PM
Aaah! Help! Kernel panic! 7.0-RELEASE-p4 Weaseal FreeBSD General 4 2nd October 2008 02:47 PM
FBSD 7 cd boot-only, kernel panic cysquatch FreeBSD Installation and Upgrading 9 18th July 2008 01:49 AM
FreeBSD 7.0 Writing large amount to USB Disc cause kernel panic pvree FreeBSD General 1 13th June 2008 02:50 AM


All times are GMT. The time now is 08:01 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick