From owner-freebsd-xen@freebsd.org Fri Dec 9 14:46:45 2016 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 69646C6D0BB for ; Fri, 9 Dec 2016 14:46:45 +0000 (UTC) (envelope-from prvs=144a00162=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 E1D8B1587 for ; Fri, 9 Dec 2016 14:46:43 +0000 (UTC) (envelope-from prvs=144a00162=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.33,324,1477958400"; d="scan'208";a="36517915" Date: Fri, 9 Dec 2016 14:46:30 +0000 From: Roger Pau =?iso-8859-1?Q?Monn=E9?= To: Nathan Friess CC: Subject: Re: 11-RELEASE acting as vbd backend Message-ID: <20161209144630.dfga5mozh72veo4g@dhcp-3-221.uk.xensource.com> References: <247e5b6c-2713-27cf-f8fa-61e55c9e2025@gmail.com> <20161206100414.pi7ep2zbkduhuol7@dhcp-3-221.uk.xensource.com> <39e43ae4-6388-c698-c3c2-43cbc1f7b93c@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <39e43ae4-6388-c698-c3c2-43cbc1f7b93c@gmail.com> User-Agent: NeoMutt/20161126 (1.7.1) 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: Fri, 09 Dec 2016 14:46:45 -0000 On Tue, Dec 06, 2016 at 10:53:18PM -0700, Nathan Friess wrote: > On 12/6/2016 3:04 AM, Roger Pau Monné wrote: > > > > Hello, > > > > There have been some blkback changes in FreeBSD 11.0 in order to support using > > more disk types from blkback (like iSCSI). In order to achieve this, if you want > > to use blkback from a driver domain you will have to install the xen-tools > > package in the driver domain, and execute the xendriverdomain at domain startup > > (add xendriverdomain_enable="YES" to your rc.conf). After that, everything > > should work as expected. > > > Hi Roger, > > I installed xen-tools and added xendriverdomain_enable="YES" to rc.conf. > After rebooting this is what I see: > > Dec 6 19:14:20 host xenstored: Checking store ... > Dec 6 19:14:20 host xenstored: Checking store complete. > Dec 6 19:14:20 host xenstored: Checking store ... > Dec 6 19:14:20 host xenstored: Checking store complete. > Dec 6 19:14:21 host kernel: Failed to initialize dom0 state: No such file > or directory > Dec 6 19:14:22 host kernel: . > Dec 6 19:14:51 host last message repeated 28 times > Dec 6 19:14:52 host xenconsoled: Failed to contact xenstore (No such file > or directory). Is it running? > > > Trying to start xenstoredomain manually results in: > > Starting xenservices: xl devd.libxl: error: libxl.c:124:libxl_ctx_alloc: > cannot connect to xenstore: No such file or directory > cannot init xl context > > > The kernel is showing a xenstore device on boot > > ... kernel: xenstore0: on xenpv0 > > > I see that there is a xencommons rc script too so I also tried to add > xencommons_enable="YES" and start that first. No luck. > > I must still be missing a step... Hello, Sorry for the delay, there was a huge can of worms behind this. I have a solution, but it requires patching both Xen and the FreeBSD kernel. Please bear with me, I will send those patches once ready. Roger.