Date: Tue, 10 Jun 2014 15:43:43 +0400 From: Roman Bogorodskiy <novel@FreeBSD.org> To: Craig Rodrigues <rodrigc@FreeBSD.org> Cc: "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org>, Roman Bogorodskiy <bogorodskiy@gmail.com>, "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org> Subject: Re: libvirt and bhyve problems Message-ID: <20140610114342.GA11194@dev.san.ru> In-Reply-To: <CAG=rPVc_4_QKvj9Q59PXzTn0hHNO9G8Ud=cZ9ijWgH6LC__wKQ@mail.gmail.com> References: <CAG=rPVc_4_QKvj9Q59PXzTn0hHNO9G8Ud=cZ9ijWgH6LC__wKQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Craig Rodrigues wrote: > Roman, >=20 > I have been reading your blog posts on using libvirt + bhyve > here: >=20 > http://empt1e.blogspot.com/ >=20 > and the libvirt bhyve documentation here: > http://libvirt.org/drvbhyve.html >=20 > but am having problems reproducing the steps. >=20 > I have a machine running: > FreeBSD 11.0-CURRENT FreeBSD 11.0-CURRENT #6 r266934M: Sat May 31 > 20:24:37 PDT 2014 > root@crodrigues.org:/usr/obj/opt2/branches/head/sys/GENERIC amd64 >=20 >=20 > I applied the following patches to the devel/libvirt port to fix > compilation problems for bhyve support: >=20 > http://lists.freebsd.org/pipermail/freebsd-virtualization/2014-June/00258= 6.html >=20 > I then did the following: >=20 > BUILD AND CONFIGURE > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > cd /usr/ports/devel/libport > make config > (I made sure bhyve and QEMU support were enabled > make > make install >=20 >=20 > LIBVIRT CONFIG > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > I created the following /tmp/bhyve.xml file: >=20 >=20 > <domain type=3D'bhyve'> > <name>bhyve</name> > <uuid>df3be7e7-a104-11e3-aeb0-50e5492bd3dc</uuid> > <memory>219136</memory> > <currentMemory>219136</currentMemory> > <vcpu>1</vcpu> > <os> > <type>hvm</type> > </os> > <features> > <apic/> > <acpi/> > </features> > <clock offset=3D'utc'/> > <devices> > <disk type=3D'file'> > <driver name=3D'file' type=3D'raw'/> > <source file=3D'/tmp/some_disk.img'/> > <target dev=3D'hda' bus=3D'sata'/> > </disk> > <interface type=3D'bridge'> > <model type=3D'virtio'/> > <source bridge=3D"virbr0"/> > </interface> > </devices> > </domain> >=20 >=20 > RUNNING > =3D=3D=3D=3D=3D=3D=3D=3D >=20 > I did the following as root: >=20 > service libvirtd restart > virsh -c 'bhyve:///system' >=20 > Then I ran these commands from the virsh prompt: >=20 > virsh # define /tmp/bhyve.xml > Domain bhyve defined from /tmp/bhyve.xml >=20 > virsh # start bhyve > error: Failed to start domain bhyve > error: End of file while reading data: Input/output error > error: Failed to reconnect to the hypervisor >=20 >=20 > At this point libvirtd process crashed with a /libvirtd.core process , > but for some reason I could not get a valid stacktrace. >=20 > Can you provide assistance to get this working? >=20 > Ultimately, I want to get the Jenkins libvirt plugin ( > https://wiki.jenkins-ci.org/display/JENKINS/Libvirt+Slaves+Plugin ) > to work. >=20 > Thanks. Hi Craig, It's a little unfortunate that there's no stacktrace, though we can try to see what's going on without it. Could you please edit libvirtd.conf (should be something like /usr/local/etc/libvirtd.conf if installed from port) to add: log_level =3D 2 then run libvirtd by hand in foreground: # libvirtd=20 and then try to start the domain again and post a couple of lines it prints before crashing? Thanks, Roman Bogorodskiy
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140610114342.GA11194>