From owner-freebsd-questions@freebsd.org Fri Aug 18 22:34:47 2017 Return-Path: Delivered-To: freebsd-questions@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 F0272DDC9C3 for ; Fri, 18 Aug 2017 22:34:47 +0000 (UTC) (envelope-from james@pacehouse.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (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 8AB097C8E3 for ; Fri, 18 Aug 2017 22:34:47 +0000 (UTC) (envelope-from james@pacehouse.com) Received: by mail-wm0-x22d.google.com with SMTP id m85so9517536wma.0 for ; Fri, 18 Aug 2017 15:34:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pacehouse.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=0+6oIbk1f+1Dif5mVZpK+O4+eR6PpqiW1Fe9YH/qpM4=; b=ZFuZ0hVk9rpbGsUBz+nDEa/QNRwI5FHh88afvZJQGSCjdjhstPiYmoshUAjNIOkR5x BCCqlSPiYVscROaKTpNAbJBLrXmoJ92z264WjAQrvcJy1Oby8Uj62bctAwWuTREbbZrv r8yEWof0BA0ytelWrxoFXqwojnzopSK1P4WIw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0+6oIbk1f+1Dif5mVZpK+O4+eR6PpqiW1Fe9YH/qpM4=; b=XzsOAl2lR2ypvepC/YIpXNc8fHkemTPfy2kTSH+djWS5b6VhljWh5MgGvdNdoENVWl 20MHUN7cUyiOMGtpQ7/m4vjVBn9JmbeJPtddGydLsA0tntLkdsIVEtqjolHDCDMZQYzP eFl150mgach3TL4OGbmqw4JJew5AmYl29FuSXWDIEywDAuZUaYi8Nb/fvy3hkzlr8xT+ GBb1/i3jNi2Aiw09QwYQRIvjDwF1HbLb9FYbzIGCdtvm5s0xwsfeDT9zLR5uv/2nzkD+ Ra9Rg+Qou+EyEWJOMDTrevMCgFA80VyLVGolxGvelpRwKDQifCEvQfwsGDyADZ4hv8OI QFPg== X-Gm-Message-State: AHYfb5iKA1s8CETbl60gWRwfTkl+yEmZHOWkqKmct6iz9hLJCRA7G8nd jUxrTVsbSiOHlK902wZ0Hj04Ye+cd3aanasViA== X-Received: by 10.28.60.9 with SMTP id j9mr2108704wma.166.1503095684398; Fri, 18 Aug 2017 15:34:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.135.2 with HTTP; Fri, 18 Aug 2017 15:34:23 -0700 (PDT) From: "James E. Pace" Date: Fri, 18 Aug 2017 15:34:23 -0700 Message-ID: Subject: FreeBSD 11.1 xen trying to create linux domU instance To: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Aug 2017 22:34:48 -0000 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? 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?). 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', '/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 (in 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. Google has been pretty unhelpful... Thanks for help, tips, or pointers to info! James -- James E. Pace