Bug 194531 - devel/libvirt: virsh cannot connect to bhyve:///system on CURRENT
Summary: devel/libvirt: virsh cannot connect to bhyve:///system on CURRENT
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Bryan Drewery
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-22 14:16 UTC by Conrad Meyer
Modified: 2014-10-22 17:44 UTC (History)
2 users (show)

See Also:
cse.cem: maintainer-feedback? (jgh)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Meyer 2014-10-22 14:16:56 UTC
libvirt.conf has:

uri_default = "bhyve:///system"

# virsh capabilities

error: failed to connect to the hypervisor
error: no valid connection
error: no connection driver available for bhyve:///system
error: Failed to reconnect to the hypervisor

# tail /usr/local/var/log/libvirt/libvirtd.log

2014-10-22 13:55:46.198+0000: 34468815872: error : virNetSocketReadWire:1477 : End of file while reading data: Input/output error
2014-10-22 13:55:46.199+0000: 34468820992: error : do_open:1166 : no connection driver available for bhyve:///system
2014-10-22 13:55:46.200+0000: 34468815872: error : virNetSocketReadWire:1477 : End of file while reading data: Input/output error
2014-10-22 13:56:13.023+0000: 34468820992: error : do_open:1166 : no connection driver available for bhyve:///system
2014-10-22 13:56:13.024+0000: 34468815872: error : virNetSocketReadWire:1477 : End of file while reading data: Input/output error
2014-10-22 13:56:13.025+0000: 34468819968: error : do_open:1166 : no connection driver available for bhyve:///system
2014-10-22 13:56:13.025+0000: 34468815872: error : virNetSocketReadWire:1477 : End of file while reading data: Input/output error
Comment 1 Bugzilla Automation freebsd_committer 2014-10-22 14:16:56 UTC
Auto-assigned to maintainer jgh@FreeBSD.org
Comment 2 Conrad Meyer 2014-10-22 14:19:16 UTC
I am guessing the absense of this driver is the problem:

%%BHYVE%%lib/libvirt/connection-driver/libvirt_driver_bhyve.so

pkg info --list libvirt shows that file is missing.
Comment 3 Conrad Meyer 2014-10-22 14:23:54 UTC
This is libvirt-1.2.6_3 / freebsd:11:x86:64.
Comment 4 Bryan Drewery freebsd_committer 2014-10-22 15:43:01 UTC
I'm fixing it.
Comment 5 commit-hook freebsd_committer 2014-10-22 17:44:26 UTC
A commit references this bug:

Author: bdrewery
Date: Wed Oct 22 17:44:06 UTC 2014
New revision: 371364
URL: https://svnweb.freebsd.org/changeset/ports/371364

Log:
  - Fix support for BHYVE on head/amd64.

    Modifying OPTIONS_DEFAULT after including bsd.port.option.mk is not valid.
    Just check for existence of bhyve for now instead to determine default.

  PR:		194531
  Reported by:	Conrad Meyer

Changes:
  head/devel/libvirt/Makefile