Date: Thu, 11 Sep 2008 23:34:01 -0400 From: Steve Ames <steve@energistic.com> To: Kip Macy <kmacy@freebsd.org> Cc: freebsd-virtualization@freebsd.org Subject: Re: xen update Message-ID: <20080912033401.GA61061@energistic.com> In-Reply-To: <3c1674c90808222138v12d7b9f8q5230273b076b3b43@mail.gmail.com> References: <3c1674c90808222138v12d7b9f8q5230273b076b3b43@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, just now getting a chance to test. I am likely doing something wrong :) I did the following: 1. Installed a fresh FreeBSD 8-CURRENT system using the latest snapshot ISO 2. Updated code and did makeworld && make installworld 3. Built a kernel using the stock XEN kernel config file 4. On blank partition I created an image in the following manner: dd if=/dev/zero of=xen.img bs=1024k count=5132 mdconfig -a -t vnode -f xen.img -u 3 bsdlabel -w md3 bsdlabel -e md3 (where I created 2 partitions: / on a and swap on b) newfs /dev/md3a mount /dev/md3a /mnt (copied all data from theFreebsd8 partition to /dev/md3a using backup | restor) 5. Modified /mnt/etc/fstab and /mnt/etc/ttys 6. Copied /mnt/boo/kernel/kernel and my newly created xen.img files to a CentOS 5 server which has Xen 3.1 I believe. 7. Created a xen load file: name = "fbsd8" kernel = "/root/kernel.bsd8" vif = [ 'bridge=xenbr1' ] memory = 256 disk = [ 'file://root/xen.img,0x01,w' ] vcpus=1 on_crash = 'preserve' 8. started the image using 'xm create fbsd8 -c' 9. receivd the following break to debugger: Started domain fbsd8 WARNING: loader(8) metadata is missing! GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2008 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-CURRENT #0: Wed Sep 10 17:01:33 EDT 2008 root@:/usr/obj/usr/src/sys/XEN WARNING: WITNESS option enabled, expect reduced performance. Xen reported: 3000.102 MHz processor. Timecounter "ixen" frequency 1000000000 Hz quality 0 CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3000.10-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf4a Stepping = 10 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0x641d<SSE3,RSVD2,MON,DS_CPL,CNXT-ID,CX16,xTPR> AMD Features=0x20000000<LM> AMD Features2=0x1<LAHF> Logical CPUs per core: 2 real memory = 268435456 (256 MB) avail memory = 255057920 (243 MB) Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0xbffffc00 fault code = supervisor read, page not present instruction pointer = 0x21:0xc02f429d stack pointer = 0x29:0xc0580d28 frame pointer = 0x29:0xc0580d30 code segment = base 0x0, limit 0xf9800, type 0x1b = DPL 1, pres 1, def32 1, gran 1 processor eflags = resume, IOPL = 0 current process = 0 () [thread pid 0 tid 0 ] Stopped at MPentry+0x6d: cmpl $0x5f504d5f,kernbase(%eax) db> So... where did I go wrong? Thanks. -Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080912033401.GA61061>