From owner-freebsd-xen@freebsd.org Fri Aug 25 22:50:16 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 7A70DDE30FE for ; Fri, 25 Aug 2017 22:50:16 +0000 (UTC) (envelope-from james@pacehouse.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2EF5E739AB for ; Fri, 25 Aug 2017 22:50:16 +0000 (UTC) (envelope-from james@pacehouse.com) Received: by mail-wm0-x229.google.com with SMTP id y71so1559601wmd.0 for ; Fri, 25 Aug 2017 15:50:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pacehouse.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Kmzy5l/p1YIcTEZH1Iqp6s3YaDrqPyutEf+TJVJRUZo=; b=T04C2rD+gMlYU9iu6AzTSzXDnvBJPRKmidFnWn3Cx3rjGivvGUYS/fz6V/JOe8Qkko 0f1kzwjP9OklHIA7yOW3t7frAAKCKYVhFF9zgnLfxvjXYyFviEjKPYc8WwGQr1jCAHg2 Dk0+WdRP8hMQWnQXJv0mBu8fNm7XssO640s7E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Kmzy5l/p1YIcTEZH1Iqp6s3YaDrqPyutEf+TJVJRUZo=; b=YPJ4yZzEo1l0w7IiMLhf5NfyBjp9HKNzONcxc7H2avSqQJZb/OxWLltQhFbYBrJXjn RPcSFTdMoX9RlugE1CT0NjWCiQgOzDzYQ8p1k4d9RfUzrCko0oBspHceYk4755zmnzAV 4cbbeZwU9v5/oy+tEcUcCMrw5h8+g6xwEIDygHBTKvUsriXNgV7i/PZAZSllCxWbS930 yUR2/gmDHMKtLOcc7XnoQ36cj87MIbIvNLO+u1bin51NJSLsWh63Xq3e624fE8i0JyCA UZ4mxyy8+bxnVePslMQFO7aEO03H/JwGBvpOktWnMDywODBjo+94QaS44RfWxjXxvd9l FUGQ== X-Gm-Message-State: AHYfb5gX4av+Vm/oEBmza6+UO7t42JHMjSDimskO4CcZDfLB9YV8O3F0 rBGAahidw43SNf7Od8me++mCx/s1bNrwR4MyrA== X-Received: by 10.28.130.133 with SMTP id e127mr1914wmd.123.1503701414010; Fri, 25 Aug 2017 15:50:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.135.2 with HTTP; Fri, 25 Aug 2017 15:49:53 -0700 (PDT) In-Reply-To: References: From: "James E. Pace" Date: Fri, 25 Aug 2017 15:49:53 -0700 Message-ID: Subject: Re: Fwd: FreeBSD 11.1 xen trying to create linux domU instance To: Marcin Cieslak Cc: freebsd-xen@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Fri, 25 Aug 2017 22:50:16 -0000 Marcin, thank you so much for the "xen_platform_pci=0" config line! That, and using a file instead of a ZFS device, got me up and running. For my future reference, I wrote down the steps I took to getting Linux Mint running as a domU: http://blog.pacehouse.com/2017/08/how-to-run-linux-under-freebsd-111.html I welcome feedback on things I have wrong. JEP -- James E. Pace On Wed, Aug 23, 2017 at 12:51 PM, Marcin Cieslak wrote: > On Mon, 21 Aug 2017, James E. Pace wrote: > > > Hi, > > > > builder = "hvm" > > name = "xen-ubuntu" > > memory = 1024 > > vcpus = 1 > > vif = [ 'bridge=bridge0' ] > > disk = [ > > '/dev/zvol/pool/xen-ubuntu,,hda,rw', > > '/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) > > > > 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. > > I'am using 11.1-STABLE (r321629) as Xen dom0, running under > Xen kernel 4.7.2_3. > > I have sucessfully started appliances built on oldish RedHat kernels > (2.6.32-573.18.1.el6.x86_64) without any problems. > For Fedora 25 (4.10.8-200.fc25.x86_64) I had to add > > xen_platform_pci=0 > > to the config file to get it running. > This still seems to be needed. > > My disk definition for fedora and the RedHats > looks like this: > > '/dev/zvol/zroot/fedora0,raw,hda,w' > > (xvda seems to work well in place of "hda" for RHEL and Fedora > as well) > > Marcin > >