From owner-freebsd-virtualization@FreeBSD.ORG Sun Oct 26 14:21:24 2014 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 658B7497; Sun, 26 Oct 2014 14:21:24 +0000 (UTC) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 231BCD5D; Sun, 26 Oct 2014 14:21:23 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 23EF01534C7; Sun, 26 Oct 2014 15:21:20 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8J5HwY2mmIzr; Sun, 26 Oct 2014 15:20:58 +0100 (CET) Received: from [192.168.10.9] (vaio [192.168.10.9]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 94C531534C0; Sun, 26 Oct 2014 15:11:16 +0100 (CET) Message-ID: <544D0105.2060701@digiware.nl> Date: Sun, 26 Oct 2014 15:11:17 +0100 From: Willem Jan Withagen User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Conrad Meyer , Roman Bogorodskiy Subject: Re: Looking for a Libvirt example xml file References: <544C28C8.2060108@digiware.nl> <544C519F.5070202@digiware.nl> <20141026094917.GA1940@kloomba> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2014 14:21:24 -0000 On 26-10-2014 13:35, Conrad Meyer wrote: > On Sun, Oct 26, 2014 at 5:49 AM, Roman Bogorodskiy wrote: >> Conrad Meyer wrote: >> >>> On Sat, Oct 25, 2014 at 9:42 PM, Willem Jan Withagen wrote: >>>> Seems that my CDrom block was a problem. >>>> But the disk is already build, so I just skipped that. >>> >>> Yes, even in git libvirt-bhyve doesn't work well with >1 disk :-(. >> >> Hi! >> >> Could you please provide more details on the issues you're seeing with >> that? > > > Hi Roman, > > As far as I can tell, libvirt-bhyve will only boot from the first > disk, and ignores libvirt's boot ordering stuff. Unless libvirt sorts > the disks array by bootorder before passing to the driver? I had > trouble getting it to boot a select disk when I included both a cdrom > and hdd in my testing the other day. E.g. in git master: > > 297 virCommandPtr > 298 virBhyveProcessBuildLoadCmd(virConnectPtr conn, > 299 virDomainDefPtr def) > 300 { > ... > 310 disk = def->disks[0]; > ... > 329 cmd = virCommandNew(BHYVELOAD); > ... > 337 virCommandAddArg(cmd, "-d"); > 338 virCommandAddArg(cmd, virDomainDiskGetSource(disk)); > > Libvirt lets you specify some sort of boot ordering in domain XML > inside /domain/os[0]: > > > > > Although now that I am looking more closely it appears that ordering > is basically ignored for same-bus devices :-(. That may explain my > test results... > > So, I guess the right way to do it is to slap "" > inside elements. I didn't try that and don't know if libvirt > sorts those before handing off to driver. > > [0]: http://libvirt.org/formatdomain.html#elementsOS Are there any FBSD directions online to actually get libvirt to build after you did git clone?? --WjW