From owner-freebsd-virtualization@FreeBSD.ORG Thu Sep 18 17:38:11 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 B67E8106564A; Thu, 18 Sep 2008 17:38:11 +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 76BAB8FC14; Thu, 18 Sep 2008 17:38:11 +0000 (UTC) (envelope-from steve@energistic.com) Received: from inlafpc31 (208-103-61-141.indianafiber.net [208.103.61.141] (may be forged)) (authenticated bits=0) by energistic.com (8.14.3/8.14.2) with ESMTP id m8IHc38u042794; Thu, 18 Sep 2008 13:38:05 -0400 (EDT) (envelope-from steve@energistic.com) Message-ID: From: "Steve Ames" To: "Steve Ames" , "Kip Macy" References: <3c1674c90808222138v12d7b9f8q5230273b076b3b43@mail.gmail.com> <20080912033401.GA61061@energistic.com> Date: Thu, 18 Sep 2008 13:38:02 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Spam-Status: No, score=-4.8 required=5.0 tests=AWL,BAYES_50,DOS_OE_TO_MX, RDNS_NONE, STOX_REPLY_TYPE, 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: Thu, 18 Sep 2008 17:38:11 -0000 Hi, can anyone point me in the right direction so I can do further testing? Steve Ames wrote: > 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 > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to > "freebsd-virtualization-unsubscribe@freebsd.org"