From owner-freebsd-virtualization@freebsd.org Fri Jul 6 10:51:22 2018 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02A91103D158 for ; Fri, 6 Jul 2018 10:51:22 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9AD3D798C4 for ; Fri, 6 Jul 2018 10:51:21 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 70DFC21F86 for ; Fri, 6 Jul 2018 06:51:20 -0400 (EDT) Received: from web6 ([10.202.2.216]) by compute7.internal (MEProxy); Fri, 06 Jul 2018 06:51:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skunkwerks.at; h=content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=VpBA9Cnp0NQ4v4rEn+Jdy52FwtCGW O29NNZVPPyQAb0=; b=KZ8/viCtxTjuNyd8fH+0N+zRUn4FCrYDohRgbtEEl/Jxv V06D233dMMnI9fOnNf74Ez/UgwfyAlbytWkbcCEiObETzfGaSj31AScpJeOf4fT5 ENCdV5gK7shaMyJZeb3/6UmEbHig0az+KyEyy5xR3G48rUsAqE5J4OTyIF8w+a7d hvQ5oj8IoRVdjiGdyL3lRmeopiQU+jCZp7Mzn6Cz89gfh4pJuIVT/qzKVYwmbPbJ 0EuDOqE07GAby55e0FhheZavlK1Vwc2cizm62BCaUvWhROa5187YAst3tfqRwNHH gK0vI7aBOR9itwo4qY4biqDfqLoI4wXux9AqGrSug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=VpBA9C np0NQ4v4rEn+Jdy52FwtCGWO29NNZVPPyQAb0=; b=gsKCfcVwFm1sbpH++8zUWJ 5V8h4VzvYUoUsMj/bLaqo4qnqb+qrT8ahZllnuFq1xKleSwxZL9aLP+a/tZ47yz5 RdkH5KP6Z9e4zFvlbbaXRZF31IQOf/Kx7//T8HCTGFjmkafuD7MNxN5mNwRM4Xaz g8zAPzQiYw5qeXjB5YYnLBHzWu9SHi+9AQRg8nl1tba1o4HT+fLSi8azrC6Tg4C8 KGMdqnU3eb7M1dq35yqrr0V5C1ixAcunOm9kGOxJ0qSslU38VLJ3CnlrRzccGW3W BkgLQEe1idZZKl/VnoRmoaCiY2AiElpGojYHKQOHrDrZ+yBUkcqLx0uuhzaO+9ag == X-ME-Proxy: X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id DF80C410D; Fri, 6 Jul 2018 06:51:19 -0400 (EDT) Message-Id: <1530874279.512578.1431934576.27AF56F1@webmail.messagingengine.com> From: Dave Cottlehuber To: freebsd-virtualization@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-0d8ea36c References: <1595599bd62b43b2842b9a652c6d1773@SERVER.ad.usd-group.com> Subject: Re: bhyve server 2016 lockup In-Reply-To: <1595599bd62b43b2842b9a652c6d1773@SERVER.ad.usd-group.com> Date: Fri, 06 Jul 2018 12:51:19 +0200 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jul 2018 10:51:22 -0000 On Fri, 6 Jul 2018, at 10:22, Matt Churchyard wrote: > Hello, >=20 > I have a server 2016 virtual machine which I only created for testing=20 > and don't use much. Booting it up recently I've found that it locks up=20 > consistently within a few minutes of booting. What can I do to try and=20 > figure out what's causing the problem? >=20 > Host was recently updated to 11.2 > # uname -a > FreeBSD dev.--- 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r335510: Fri Jun 22= =20 > 04:32:14 UTC 2018 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/ > GENERIC amd64 >=20 > Bhyve command is as follows > # bhyve -c 2 -m 2G -Huwl bootrom,/usr/local/share/uefi-firmware/ > BHYVE_UEFI.fd > -U 841e8764-75f4-11e8-b2e3-50e549369bc6 -l com1,stdio > -s 0,hostbridge -s 31,lpc -s 3:0,ahci-cd,/vm/.config/null.iso -s=20 > 4:0,ahci-hd,/vm/w2016/disk0.img -s 5:0,e1000,tap1,mac=3D58:9c:fc:08:8e:70 > -s 6:0,fbuf,tcp=3D0.0.0.0:5900 -s 7:0,xhci,tablet w2016 Hi Matt, try using virtio for nic & storage to start with. I've used specifically th= ese drivers https://fedorapeople.org/groups/virt/virtio-win/direct-download= s/archive-virtio/virtio-win-0.1.96/virtio-win-0.1.96.iso and had trouble wi= th both later and earlier drivers, YMMV, and I sadly forget where I got thi= s advice. Also, it=E2=80=99s possible to install virtio drivers directly from the CD = without pointy-clicky stupidness. Just add the CD to your bhyve command, in= a later "PCI slot" than the existing =E2=80=9Chard disk=E2=80=9D, as the l= owest numbered slot is what=E2=80=99s used to boot from AFAICT.=20 - open an elevated command prompt - run for /d %i in (d:\*) do @pnputil -a %i\w7\amd64\*.inf (you may need a = different driver than w7 here) - some of those will fail but just carry on - reboot FTW more notes here on my bhyve setup https://hackmd.io/s/rJvJuE-CW# A+ Dave