From owner-freebsd-virtualization@freebsd.org Fri Jul 27 15:03:37 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 CD37A104DCF5 for ; Fri, 27 Jul 2018 15:03:37 +0000 (UTC) (envelope-from josiaslg@bsd.com.br) Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 589CD7920B for ; Fri, 27 Jul 2018 15:03:36 +0000 (UTC) (envelope-from josiaslg@bsd.com.br) Received: by mail-pg1-x52d.google.com with SMTP id z8-v6so3394379pgu.8 for ; Fri, 27 Jul 2018 08:03:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc; bh=Hh+Fd2/2hs3g1qG1jNtzB1KjIejq9bkSTxvwKqVbCe8=; b=Nh+wsFHOMBVjvtN2zdh/Lu246xSKxvCl8S6KuvBTx84yrKW+M68UhqowwID4zvrzfH GHoWaELLiTNQcJMNWNwsZUb5YWyPuc2lWP1HfSZo1QIIw4AywaRm42x1KTW2ZBOaFwGu qPR3Hzz9ezRcU03GkfVrMg/Rng2OAHs7IGcNk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc; bh=Hh+Fd2/2hs3g1qG1jNtzB1KjIejq9bkSTxvwKqVbCe8=; b=M4NQN438NyTOF653yRUzFbwfFnlmWfw6PG8z1opcL9jZM3XRYNFwlgUtMO2jr5eybw xnTLW/oVdeuJh02Gxai+tvaZqbBpVHbjiNhyNujgo40dS9Z5l4qGEoUmEegNvCMx/KRZ 3bLuidcvnu+Ivll6akgpaFxF0JD4uFks/PDAIH/0KaKw7F1McWdtIcJNHA1U34qiVYWn aXQJMeY2ztiNGKAYSrSpOXojIs0twp7yIW2BogLHM3jzRy0N/rCuc0yAErQlP8jv/OvG L8ENw5/UNDCK0z6yTzARblg54BTp2tzRDMOI3qrnOhgWFIbXc0d+a2yxyFBU5egaMOJk fvMg== X-Gm-Message-State: AOUpUlGhWjuB4AkmC+vFwjdOCqH5F+idHqWBYVdcSy58gKjCjdmnZbOH oBSJT1rBgTVzo341ACQ8ihzwhSqGL2vIjbLpwlEEk6jJ38Y= X-Google-Smtp-Source: AAOMgpevBBy++cf+t33FZs9G1SNw4Qtaa0tXCN6f/0G6Lr/7pd7BqKoSrt0f/i4GOGKZl/0/kQhnYR05hsmcD165Mgw= X-Received: by 2002:a63:f18:: with SMTP id e24-v6mr6544828pgl.320.1532703815682; Fri, 27 Jul 2018 08:03:35 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:a586:0:0:0:0 with HTTP; Fri, 27 Jul 2018 08:03:35 -0700 (PDT) In-Reply-To: References: <1595599bd62b43b2842b9a652c6d1773@SERVER.ad.usd-group.com> <1530874279.512578.1431934576.27AF56F1@webmail.messagingengine.com> <1dbba8ac-eca4-bb09-9d3b-ec26ed1452e5@cgi.cz> From: =?UTF-8?Q?Josias_L=2E_Gon=C3=A7alves?= Date: Fri, 27 Jul 2018 12:03:35 -0300 Message-ID: Subject: Re: bhyve server 2016 lockup Cc: "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.27 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, 27 Jul 2018 15:03:38 -0000 2018-07-06 9:05 GMT-03:00 Matt Churchyard : > Thanks for the replies guys. I've increased memory and switched to > virtio-net. Been running for an hour or two so far. Windows just complain= s > about the boot device if I try to move to virtio-blk. > I might set up another test using different settings during installation > and see how that goes. > > Only really played about with bhyve so far but starting to consider using > for production machines, so any hard lockup is a bit of a worry. > > Regards, > Matt > > > Dave, > > > you got working Windows guest with virtio-blk? > > > I thought it was still unstable. I've tested virtio storage (on bhyve) = + > virtio storage drivers on several windows guest ~ 2 months ago and they > were crashing all the time. > > > So I use ahci-hd with every windows guest we run (from 7 to Win Server > 2012). > > > -- > > > regards > > > Jakub Chromy > > > CGI Systems div. > ---------------- > CGI CZ s.r.o. > sales@cgi.cz > 775 144 257 > 234 697 102 > www.cgi.cz > > On 6.7.2018 12:51, Dave Cottlehuber wrote: > > On Fri, 6 Jul 2018, at 10:22, Matt Churchyard wrote: > >> Hello, > >> > >> I have a server 2016 virtual machine which I only created for testing > >> and don't use much. Booting it up recently I've found that it locks > >> up consistently within a few minutes of booting. What can I do to try > >> and figure out what's causing the problem? > >> > >> Host was recently updated to 11.2 > >> # uname -a > >> FreeBSD dev.--- 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r335510: Fri Jun = 22 > >> 04:32:14 UTC 2018 root@releng2.nyi.freebsd.org:/ > usr/obj/usr/src/sys/ > >> GENERIC amd64 > >> > >> 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 > >> 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 specificall= y > these drivers https://fedorapeople.org/groups/virt/virtio-win/direct- > downloads/archive-virtio/virtio-win-0.1.96/virtio-win-0.1.96.iso and had > trouble with both later and earlier drivers, YMMV, and I sadly forget whe= re > I got this 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 = lowest numbered > slot is what=E2=80=99s used to boot from AFAICT. > > > > - 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 > > _______________________________________________ > > freebsd-virtualization@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > > To unsubscribe, send any mail to "freebsd-virtualization- > unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org= / > mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization- > unsubscribe@freebsd.org" > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization- > unsubscribe@freebsd.org" > If BLOCKIF_IOV_MAX is turned a arg in bhyve, we could possible use specific values to linux machines and windows machines. I have change this in block_if.h and have some machines to just run windows and others to run just linux. Is a kind of fragmentation i don't like and if have some option to pass in bhyve specify the BLOCKIF_IOV_MAX, would be good. If not possible, create some option where if specify windows like guest, other value of BLOCKIF_IOV_MAX is used by bhyve in execution.