Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Apr 2018 23:05:24 +0100
From:      Mark Raynsford <list+org.freebsd.virtualization@io7m.com>
To:        freebsd-virtualization@freebsd.org
Subject:   Segmentation fault in grub-bhyve when trying to boot a Linux guest
Message-ID:  <20180430230524.6c957e6c@almond.int.arc7.info>

next in thread | raw e-mail | index | archive | help
--Sig_/POxrmaW+QVIShIIXoAdNzp6
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello.

I've recently attempted to install a Debian 9.4.0 x86_64 guest. The
installer ran to completion without issue, and I then rebooted into the
installed system, again without issue.

I then shut the system down and tried to bring it up...=20

  pid 71802 (grub-bhyve), uid 0: exited on signal 11 (core dumped)

The exact commands I'm using to start the VM are:

/usr/local/sbin/grub-bhyve \
  -m /storage/vm/rosemary/device.map \
  -r host \
  -d /storage/vm/rosemary \
  -c /dev/nmdm56A \
  -M 512M \
  rosemary

/sbin/ifconfig tap56 create       || true
/sbin/ifconfig bridge0 addm tap56 || true

exec /usr/sbin/bhyve \
  -A \
  -H \
  -P \
  -c 1 \
  -U a3ca8efb-7a3b-4ad7-b059-85ef739d72f3 \
  -m 512M \
  -s 0,hostbridge \
  -s 4,ahci-hd,/dev/zvol/storage/vm/rosemary/disk0 \
  -s 5,virtio-net,tap56 \
  -s 31,lpc \
  -l com1,/dev/nmdm56A \
  rosemary

The device.map looks like:

(hd0) /dev/zvol/storage/vm/rosemary/disk0
(cd0) /storage/images/debian-9.4.0-amd64-netinst.iso

The grub.cfg looks like:

linux (hd0,msdos1)/vmlinuz root=3D/dev/sda1
initrd (hd0,msdos1)/initrd.img
boot

I see no output after the boot command, the crash occurs seemingly
immediately.

If there's any information that would be helpful, let me know. I can
probably provide the /storage/vm/rosemary/disk0 volume as a compressed
"zfs send" if necessary. I'm on a fresh install of FreeBSD
11.1-RELEASE-p9 and am using grub-bhyve (GRUB-BHYVE) 2.00:0.40. I've
not had trouble with any other guests (running a mix of FreeBSD and
OpenBSD guests without issue).

--=20
Mark Raynsford | http://www.io7m.com


--Sig_/POxrmaW+QVIShIIXoAdNzp6
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQS4Thd0dhbGF0xo1eVcGntxKBLMBQUCWueTJAAKCRBcGntxKBLM
BUJjAQDCxkzofFbyA2lI/f867ZIEWoeqEpcRtrQ1aZsCahTpLQD+LDKmwUBDCmOG
9vClHd6aL+r431zsTF6YlxOYqlYQnQk=
=2+k/
-----END PGP SIGNATURE-----

--Sig_/POxrmaW+QVIShIIXoAdNzp6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180430230524.6c957e6c>