View Single Post
  #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