From owner-freebsd-xen@FreeBSD.ORG Mon Dec 13 22:30:40 2010 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F9231065672 for ; Mon, 13 Dec 2010 22:30:40 +0000 (UTC) (envelope-from eric@egsner.cirr.com) Received: from egsner.cirr.com (egsner.cirr.com [192.67.63.1]) by mx1.freebsd.org (Postfix) with ESMTP id D22ED8FC08 for ; Mon, 13 Dec 2010 22:30:39 +0000 (UTC) Received: from egsner.cirr.com (IDENT:eric@localhost [127.0.0.1]) by egsner.cirr.com (8.14.4/8.14.2/$Revision: 1.32 $) with ESMTP id oBDLxITE023293 for ; Mon, 13 Dec 2010 15:59:19 -0600 (CST) Message-Id: <201012132159.oBDLxITE023293@egsner.cirr.com> From: eric@cirr.com (Eric Schnoebelen) To: "freebsd-xen@freebsd.org" In-reply-to: Your message of "Mon, 13 Dec 2010 05:26:08 PST." <1292246768.2508.15.camel@home-yahoo> Date: Mon, 13 Dec 2010 15:59:17 -0600 Sender: eric@cirr.com X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.6 (egsner.cirr.com [127.0.0.1]); Mon, 13 Dec 2010 15:59:19 -0600 (CST) Subject: Re: domU config for NetBSD Dom0 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2010 22:30:40 -0000 Sean Bruno writes: - Does anyone have a working HVM config for a FreeBSD DomU under the - NetBSD Dom0? Here's what I'm using to run a FreeBSD 7.4-BETA1 HVM DomU on a NetBSD Dom0. The host is NetBSD 5.1_STABLE/amd64. Xen is xenkernel33-3.3.2 from pkgsrc. (xenkernel33-3.3.2nb1 just became available, but I haven't rebooted the host yet.) Ignore the 8.1 stuff in the filenames, I originally started with an 8.1 HVM, and was getting crashes. #============================================================================ # Python configuration setup for 'xm create'. # This script sets the parameters used when a domain is created using 'xm create'. # You use a separate script for each domain you want to create, or # you can set the parameters for the domain on the xm command line. #============================================================================ #---------------------------------------------------------------------------- # Kernel image file. kernel = "/usr/pkg/lib/xen/boot/hvmloader" builder='hvm' # Initial memory allocation (in megabytes) for the new domain. memory = 1024 # A name for your domain. All domains must have different names. name = "FreeBSD" #Network interface. By default emules a realtek 8139. For a NetBSD guest you # have to disable re(4) and let rtk attach to use it. # ne2k_pci emulates a pci ne2000 clone; this his cpu-hungry in dom0 # pcnet emulates a AMD PCnet-PCI controller; but it corrupts packets with # pcn(4) under NetBSD. vif = [ 'mac=00:16:3e:00:00:14, bridge=bridge0, type=ioemu, model=pcnet' ] #---------------------------------------------------------------------------- # device model to use: only qemu-dm available for now device_model = '/usr/pkg/libexec/qemu-dm' # Define the disk devices you want the domain to have access to, and # what you want them accessible as. # Each disk entry is of the form phy:UNAME,DEV,MODE # where UNAME is the device, DEV is the device name the domain will see, # and MODE is r for read-only, w for read-write. # For hvm domains you can only use hda to hdd. You can set extra types # (e.g. cdrom) disk = [ 'file:/scratch/FreeBSD-8.1.img,ioemu:hda,w', # 'file:/home/zonker/eric/FreeBSD-7.4-BETA1-i386-bootonly.iso,ioemu:hdc:cdrom,r' ] # floppy images; this doesn't seem to work currently. Use a iso image instead. #fda = '/home/domains/boot1.fs' # boot device: a = floppy, c= hard drive, d= cdrom (with the disk entry # before) boot='c' # By default, 'xm create' will try to open an X window on the current display # for the virtal framebuffer. You can have the virtal framebuffer in vnc # instead, and connect using a vnc client (using localhost:$vncdisplay) # If vncunused is set to 1 (this is the default value), vncdisplay # will be set to the first unused port; so it's recommended to vnc = 1 vncdisplay = 1 vncunused = 0 vncpasswd='' # vncpasswd='freebsd' #Xen emulates a PS/2 mouse, but the pointer in the guest has difficulties # tracking the absolute position. Xen can emulate a USB tablet in addition # to the mouse which will report the absolute position of the pointer, # and make the mouse much easier to use. # usb=1 usbdevice='tablet' #usbdevice='mouse' #============================================================================ -- Eric Schnoebelen eric@cirr.com http://www.cirr.com On-line, adj.: The idea that a human being should always be accessible to a computer.