From owner-freebsd-xen@freebsd.org Tue Aug 22 08:12:20 2017 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B45A9DD74E9 for ; Tue, 22 Aug 2017 08:12:20 +0000 (UTC) (envelope-from prvs=400f1e73e=roger.pau@citrix.com) Received: from SMTP.EU.CITRIX.COM (smtp.ctxuk.citrix.com [185.25.65.24]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (Client CN "mail.citrix.com", Issuer "DigiCert SHA2 Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 86E0777286 for ; Tue, 22 Aug 2017 08:12:18 +0000 (UTC) (envelope-from prvs=400f1e73e=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.41,411,1498521600"; d="scan'208";a="51337163" Date: Tue, 22 Aug 2017 09:11:03 +0100 From: Roger Pau =?iso-8859-1?Q?Monn=E9?= To: "James E. Pace" CC: Subject: Re: Fwd: FreeBSD 11.1 xen trying to create linux domU instance Message-ID: <20170822081103.juauywgrjximcv2y@MacBook-Pro-de-Roger.local> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170714 (1.8.3) X-ClientProxiedBy: AMSPEX02CAS01.citrite.net (10.69.22.112) To AMSPEX02CL02.citrite.net (10.69.22.126) X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.23 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: Tue, 22 Aug 2017 08:12:20 -0000 On Mon, Aug 21, 2017 at 10:56:33AM -0700, James E. Pace wrote: > Hi, > > I have a couple questions about running xen with FreeBSD 11.1 (amd64) as > Dom0. I am pretty new to this whole concept, so it is very likely I am not > understanding something. > > First, each time I boot the (physical) system, I have to tell the FreeBSD > boot loader to turn on xen. (That is, hit 6 to set options, then 7 to > enable xen, then 1 to return to the main menu, then 1 to boot). Is there a > way to make this the default behavior? Yes, you need to add the following to /boot/loader.conf: xen_kernel="/boot/xen" You can also set xen_cmdline if you want/need to pass any extra command line arguments to Xen. > > Second, I want to create a Linux domU instance. I have been successful in > getting a FreeBSD 11.1 domU running, but changing that config file to use a > Linux CD doesn't boot (or crashes on boot?). I've tried a couple linux > distributions with similar results. > > Here's my xen config file: > > builder = "hvm" > name = "xen-ubuntu" > memory = 1024 > vcpus = 1 > vif = [ 'bridge=bridge0' ] > disk = [ > '/dev/zvol/pool/xen-ubuntu,,hda,rw', ^ try adding raw here. > '/pool/Downloads/ubuntu-15.10-desktop-amd64.iso,raw,hdc:cdrom,r' > ] > vnc = 1 > vnclisten = "0.0.0.0" > serial = "pty" > > I created the backing filesystem with: > zfs create -V20G -o volmode=dev pool/xen-ubuntu > > "xl create foo.cfg" returns fine, and "xl list" shows the instance, but the > running instance (via vncviewer) eventually spits out: > > 4.130084] vbd vbd-5632: 19 xenbus_dev_probe on device/vbd/5632 > 4.130956] vbd vbd-5632: failed to write error node for device > device/vbd/5632 (19 xenbus_dev_probe on device/vbd/5632) It seems like the disk is failing to attach AFAICT. Try adding raw as suggested above. > > I suspect the linux kernel isn't booting because it can't figure out > something about the zfs volume. But I'm not sure, and I don't know how to > work around it. > > > Third, on my DomU FreeBSD guest, I'm trying to set up X / Gnome3. The > mouse pointer and the little dot are far apart; that is, the mouse isn't > tracking my movements well. I found several suggestions to add > "usbdevice=tablet" to the config file, but that caused it to not respond to > my mouse at all. Suggestions? This should be: usbdevice=['tablet'] Roger.