| Summary: | sysutils/vm-bhyve: No longer works with tmux on FreeBSD CURRENT | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Sean Eric Fagan <sef> |
| Component: | Individual Port(s) | Assignee: | freebsd-ports-bugs (Nobody) <ports-bugs> |
| Status: | Open --- | ||
| Severity: | Affects Some People | CC: | cgull+l-freebsd-bugzilla, churchers, ebay, meta, olgeni, pi, razzfazz, vas |
| Priority: | --- | Keywords: | needs-qa, regression |
| Version: | Latest | Flags: | churchers:
maintainer-feedback+
|
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Sean Eric Fagan
2019-08-28 18:31:26 UTC
@Sean Using category/portname: in Bugzilla issue titles/summaries will ensure that MAINTAINERS are assigned (if they're committers) and/or notified (if they're not) automatically. Does anyone have any idea what's going on here? I can't get a graphic console to work, so this is a major frustration in my life right now. (It's now happening with 12.1 as well. That is, 12.1 as both the host and guest; tmux-2.9a_1 and vm-bhyve-1.3.0) Well. Just doing "vm _run -tf ${VMNAME}" hangs in the same way, no tmux needed. Run bhyveload manually, and then "tmux bhyve ...." works.
And if I put this in a file: bhyveload -m 4G -e autoboot_delay=3 -d /tank/VMs/FreeBSD-HEAD/disk0.img FreeBSD-HEAD bhyve -c 1 -m 4G -AHP -g 33333 -U d3ab47db-44ca-11e8-a8cb-d05099c3569a -u -s 0,hostbridge -s 31,lpc -s 4:0,virtio-blk,/tank/VMs/FreeBSD-HEAD/disk0.img -s 4:1,virtio-blk,/tank/VMs/FreeBSD-HEAD/disk1.img -s 4:2,virtio-blk,/tank/VMs/FreeBSD-HEAD/disk2.img -s 5:0,virtio-net,tap0,mac=58:9c:fc:02:96:c1 -l com1,stdio FreeBSD-HEAD bhyvectl --destroy --vm=FreeBSD-HEAD and then do "tmux new -s sh /tmp/test.sh", that works. (No networking, because I didn't bother setting that up, but it does work.) So "vm start FreeBSD-HEAD" doesn't work, but running those commands does. Right. So this is the problem:
# actually run bhyve!
# we're already in the background so we just wait for it to exit
bhyve ${_opts} \
${_devices} \
${_iso_dev} \
${_comstring} \
${_name} >>"${_logpath}" 2>&1
When using a non-graphical console, and tmux, _comstring is "-l com1,stdio".
But stdout and stderr have been redirected to _logpath. This has no chance of working as intended.
Upstream bug report on this issue: https://github.com/churchers/vm-bhyve/issues/332 I think this is the cause? https://svnweb.freebsd.org/changeset/base/352720 I opened the vm-bhyve bug, and I've now opened a pull request with the very simple bugfix: https://github.com/churchers/vm-bhyve/pull/337 I've not tested the bugfix on a wide variety of bhyve versions, though. Sorry for the delay on attending to this. This should be fixed in vm-bhyve-1.4.2 which is waiting to be committed to the ports tree. *** Bug 243079 has been marked as a duplicate of this bug. *** I committed r524530 in bug 243198. |