Date: Sun, 26 Oct 2014 15:11:17 +0100 From: Willem Jan Withagen <wjw@digiware.nl> To: Conrad Meyer <cse.cem@gmail.com>, Roman Bogorodskiy <novel@freebsd.org> Cc: "freebsd-virtualization@freebsd.org" <virtualization@freebsd.org> Subject: Re: Looking for a Libvirt example xml file Message-ID: <544D0105.2060701@digiware.nl> In-Reply-To: <CAG6CVpV7Bni-BYr40Mbgk71Br%2BaTYv=gj3kH16yE9euunfEfgw@mail.gmail.com> References: <544C28C8.2060108@digiware.nl> <CAG6CVpVeot-cGpJT5esejgLeHYPjQwpdyghTNz5XeB1wntTFNw@mail.gmail.com> <544C519F.5070202@digiware.nl> <CAG6CVpVs5drZE6c29HvcNB4=UBLdvm8gsiY7VxBcFq4s4v7GJQ@mail.gmail.com> <20141026094917.GA1940@kloomba> <CAG6CVpV7Bni-BYr40Mbgk71Br%2BaTYv=gj3kH16yE9euunfEfgw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 26-10-2014 13:35, Conrad Meyer wrote: > On Sun, Oct 26, 2014 at 5:49 AM, Roman Bogorodskiy <novel@freebsd.org> wrote: >> Conrad Meyer wrote: >> >>> On Sat, Oct 25, 2014 at 9:42 PM, Willem Jan Withagen <wjw@digiware.nl> 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]: > > <boot dev='hd'/> > <boot dev='cdrom'/> > > 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 "<boot order='N'/>" > inside <disk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?544D0105.2060701>