From owner-freebsd-virtualization@FreeBSD.ORG Fri Sep 12 04:03:33 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A985106566C; Fri, 12 Sep 2008 04:03:33 +0000 (UTC) (envelope-from steve@energistic.com) Received: from energistic.com (mail.energistic.com [216.54.148.60]) by mx1.freebsd.org (Postfix) with ESMTP id D5A868FC1B; Fri, 12 Sep 2008 04:03:32 +0000 (UTC) (envelope-from steve@energistic.com) Received: from energistic.com (localhost [127.0.0.1]) by energistic.com (8.14.3/8.14.2) with ESMTP id m8C3Y1T6086633; Thu, 11 Sep 2008 23:34:01 -0400 (EDT) (envelope-from steve@energistic.com) Received: (from steve@localhost) by energistic.com (8.14.3/8.14.2/Submit) id m8C3Y1bK086529; Thu, 11 Sep 2008 23:34:01 -0400 (EDT) (envelope-from steve) Date: Thu, 11 Sep 2008 23:34:01 -0400 From: Steve Ames To: Kip Macy Message-ID: <20080912033401.GA61061@energistic.com> References: <3c1674c90808222138v12d7b9f8q5230273b076b3b43@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3c1674c90808222138v12d7b9f8q5230273b076b3b43@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam-Status: No, score=-9.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_50, TW_BF,TW_XB,USER_IN_WHITELIST_TO autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on energistic.com Cc: freebsd-virtualization@freebsd.org Subject: Re: xen update X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2008 04:03:33 -0000 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 Features2=0x641d AMD Features=0x20000000 AMD Features2=0x1 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