Project

General

Profile

Bug #25090

Fix bhyve core dump

Added by Nicholas Longo over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Important
Assignee:
Marcelo Araujo
Category:
Middleware
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

Platform AMD FX(tm)-8350 Eight-Core Processor
Memory 32630MB

ChangeLog Required:
No

Description

Creating first VM on newly upgraded FreeNAS 11 system.

Build FreeNAS-11.0-U1 (aa82cc58d)
Platform AMD FX-8350 Eight-Core Processor
Memory 32630MB

VM is configured:
NIC (Default), VNC (Default), CDROM (ubuntu-server ISO image), Disk (40 GiB volume, AHCI)

Note: the following issue occurs regardless of whether I include a CDROM device or set the Disk or NIC to "VirtIO"

When I start the VM I see messages indicating the creation of the tap and it being up. As soon as a I try and connect via VNC I get a message that bhyve core dumped on signal 6 (Abort) and the Tap changes state to DOWN.

I changed the VNC setting where I turned OFF the "Wait for Boot". When I do this and try to start the VM, bhyve core dumps immediately.

Associated revisions

Revision 7e85d184 (diff)
Added by Marcelo Araujo about 1 year ago

Vnc hyveremote (#318)

  • feat(middlewared/vm): Add libhyve-remote support for libvncserver.

Ticket: #23977, #24450, #25090 and #25700

  • feat(middlewared/vm): Prepare middlewared to identify bhyve with fbuf and bhyve with libhyve-remote support.
  • feat(middlewared/vm): As I probably will patch the OS, we don't need to handle two different bhyve binaries anymore.
  • We don't need os.path anymore!

Revision 9107cb12 (diff)
Added by Marcelo Araujo about 1 year ago

Vnc hyveremote (#318)

  • feat(middlewared/vm): Add libhyve-remote support for libvncserver.

Ticket: #23977, #24450, #25090 and #25700

  • feat(middlewared/vm): Prepare middlewared to identify bhyve with fbuf and bhyve with libhyve-remote support.
  • feat(middlewared/vm): As I probably will patch the OS, we don't need to handle two different bhyve binaries anymore.
  • We don't need os.path anymore!

History

#1 Updated by Dru Lavigne over 1 year ago

  • Assignee changed from Release Council to Marcelo Araujo
  • Private changed from No to Yes

#2 Updated by Marcelo Araujo over 1 year ago

  • Status changed from Unscreened to Screened
  • Target version set to 11.1

#3 Updated by Marcelo Araujo over 1 year ago

Could you please attach your debug files via: System->Advanced->Save Debug

Thanks,

#4 Updated by Marcelo Araujo over 1 year ago

  • Status changed from Screened to 15

#5 Updated by Nicholas Longo over 1 year ago

  • File debug-nas-20170711121043.tgz added

#6 Updated by Nicholas Longo over 1 year ago

Uploaded requested debug file

#7 Updated by Marcelo Araujo over 1 year ago

  • Status changed from 15 to Screened
  • Priority changed from No priority to Important

#8 Updated by Marcelo Araujo over 1 year ago

Nicholas Longo wrote:

Uploaded requested debug file

Hi,

Thanks for the debug logs!
Could you make a test for me, following the steps below:
1) SSH in your box.
2) ifconfig tap0 create
3) ifconfig bridge0 addm tap0
4) ifconfig tap0 up
5) Run: bhyve -H -w -c 1 -m 4 -s 0:0,hostbridge -s 31,lpc -l com1,/dev/nmdm4A -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -s 3,e1000,tap0 -s 29,fbuf,tcp=0.0.0.0:5904,w=1024,h=768, -s 30,xhci,tablet -s 4,ahci-cd,/mnt/storage/downloads/ubuntu-17.04-server-amd64.iso -s 5,ahci-hd,/dev/zvol/storage/Ubuntu_VM UbuntuTEst

Let me know if the crash stops.

#9 Updated by Marcelo Araujo over 1 year ago

  • Status changed from Screened to 15

#10 Updated by Nicholas Longo over 1 year ago

  • File bhyve.core added

root@nas:/mnt/storage/home/divernick # ifconfig tap0 create
root@nas:/mnt/storage/home/divernick # ifconfig bridge0 addm tap0
root@nas:/mnt/storage/home/divernick # ifconfig tap0 up
root@nas:/mnt/storage/home/divernick # bhyve -H -w -c 1 -m 4 -s 0:0,hostbridge -s 31,lpc -l com1,/dev/nmdm4A -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -s 3,e1000,tap0 -s 29,fbuf,tcp=0.0.0.0:5904,w=1024,h=768, -s 30,xhci,tablet -s 4,ahci-cd,/mnt/storage/downloads/ubuntu-17.04-server-amd64.iso -s 5,ahci-hd,/dev/zvol/storage/Ubuntu_VM UbuntuTEst
fbuf frame buffer base: 0x802c00000 [sz 16777216]
vm exit0
reason SVM
rip 0x000000000007fa52
inst_length 0
exitcode 0x7f
exitinfo1 0
exitinfo2 0
Abort (core dumped)

I attached the core dump

#11 Updated by Marcelo Araujo over 1 year ago

  • Status changed from 15 to Screened

#12 Updated by Nicholas Longo over 1 year ago

Any new information or things to try for this issue?

#13 Updated by Marcelo Araujo over 1 year ago

Nicholas Longo wrote:

Any new information or things to try for this issue?

I have no new information! I'm working on another vncserver implementation that might solve this issue too. But I still need some more work till it lands on FreeNAS.

https://github.com/araujobsd/libhyve-remote

Best,

#14 Updated by Nicholas Longo over 1 year ago

How is the new VNC Server coming along?

I'm currently on build FreeNAS-11.0-U2 (e417d8aa5), any thing new coming along in the near future?

#15 Updated by Marcelo Araujo about 1 year ago

  • Status changed from Screened to Fix In Progress

Just a hands up about adding libhyve-remote that has a big chance to fix this issue.

#16 Updated by Marcelo Araujo about 1 year ago

  • Status changed from Fix In Progress to Ready For Release

I added libhyve-remote and all the bits necessary to improve VNC server.
Python bits were reviewed by williamgr and C bits by kris.

#17 Updated by Dru Lavigne about 1 year ago

  • File deleted (fndebug.tgz)

#18 Updated by Dru Lavigne about 1 year ago

  • File deleted (debug-nas-20170711121043.tgz)

#19 Updated by Dru Lavigne about 1 year ago

  • File deleted (bhyve.core)

#20 Updated by Dru Lavigne about 1 year ago

  • Private changed from Yes to No

#21 Updated by Dru Lavigne about 1 year ago

  • Subject changed from Attempting to connect VNC with bhyve - bhyve core dumps upon connect to Fix bhyve core dump
  • Target version changed from 11.1 to 11.1-BETA1

#22 Updated by Dru Lavigne about 1 year ago

  • Status changed from Ready For Release to Resolved

#23 Updated by Joe Maloney about 1 year ago

  • Needs QA changed from Yes to No
  • QA Status deleted (Not Tested)

Also available in: Atom PDF