From owner-freebsd-virtualization@FreeBSD.ORG Sun Oct 26 12:35:59 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 7B0E6EF; Sun, 26 Oct 2014 12:35:59 +0000 (UTC) Received: from mail-vc0-x234.google.com (mail-vc0-x234.google.com [IPv6:2607:f8b0:400c:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 282BC258; Sun, 26 Oct 2014 12:35:59 +0000 (UTC) Received: by mail-vc0-f180.google.com with SMTP id hy10so287850vcb.39 for ; Sun, 26 Oct 2014 05:35:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bcshjibZ/TuuAw+z5YFGYazpjbdXJOVa9EEqyokv+Z8=; b=Qure9KfA95EVSXyPhCNcmoAsBMLaIvj+eoXek4rftp1VNTExAn0gU/s7fYha3k+NTC CH8ysza/wkABdoEZfKxrf64mCGf4ImmaApyrbKA2gslNzAI1RhJgh7OL1evqbAnJ1W4S vn40dSq/oFcE1aJkmsjWaKlYvvEyyaFtE7drSAzkzqhgc6/72efmJSK8p5cEaxfPkHA+ xAieCw5arq0oJeewugftwmRVXEksbXFEBiytEjA/PD/fl9Sa20YeEM/VUbpfeL8u48Ln 8QgUOELlzCr18kQZHs3jDrAjpt5M7c7OkDAyllgamUokr3hmeqBvu2bDfNR9nIlyzC0B Rf+w== MIME-Version: 1.0 X-Received: by 10.221.28.137 with SMTP id ru9mr5599245vcb.19.1414326958152; Sun, 26 Oct 2014 05:35:58 -0700 (PDT) Received: by 10.220.150.68 with HTTP; Sun, 26 Oct 2014 05:35:58 -0700 (PDT) In-Reply-To: <20141026094917.GA1940@kloomba> References: <544C28C8.2060108@digiware.nl> <544C519F.5070202@digiware.nl> <20141026094917.GA1940@kloomba> Date: Sun, 26 Oct 2014 08:35:58 -0400 Message-ID: Subject: Re: Looking for a Libvirt example xml file From: Conrad Meyer To: Roman Bogorodskiy Content-Type: text/plain; charset=UTF-8 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 12:35:59 -0000 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 Thanks, Conrad