From owner-freebsd-virtualization@freebsd.org Sun Sep 4 18:47:45 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 009A5A9D84C; Sun, 4 Sep 2016 18:47:45 +0000 (UTC) (envelope-from gabor.radnai@gmail.com) Received: from mail-yw0-x232.google.com (mail-yw0-x232.google.com [IPv6:2607:f8b0:4002:c05::232]) (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 B6C0A946; Sun, 4 Sep 2016 18:47:44 +0000 (UTC) (envelope-from gabor.radnai@gmail.com) Received: by mail-yw0-x232.google.com with SMTP id g192so38620407ywh.1; Sun, 04 Sep 2016 11:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=et9vIWKGXs+Yaaie285v4xCWwJTaehFgoovecdKbOU4=; b=d2DMrSJCk1pMUT0CY063VhLQiAmhTtAISFi4A5RTOHZiPsY5pdkIDj7IVxdqM0I5m3 dJiNaTQSw7KfduoYrpiGTGEnB4dGcFhs/MJyL5YlHyZY3kOokdkml9tr74KjIWlW0rYl uryRpsADrc1jiLh3zCl8soMdI4z1k1rI1bJ4HvEAiU3c9ewT586PPngT/zeh2ErKO5uJ GrVeoiPq2GBIhE8OLG497Jn1ncDMqFAXA6QjDQEryvzEh3BvsmOPtHhXdevA93tPiGjc rhajM1MwYpGihrmRn7hLVEkBVNVI8f/8C9RD3x7wrNoRd+am7CtutsAvUCemUEshnFg0 R3Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=et9vIWKGXs+Yaaie285v4xCWwJTaehFgoovecdKbOU4=; b=fAM6HcUaky8/0ERArxeDIK9bPJCHzFbBiXEsKLW6LA9vLmihMQtqvsJcNnV+rITgWl gDrr3ZcbPXm0N6ToKp516OyIK0Lv/vwZWNozH6hZpELaOcGeZydOtUpbe8R4ikOEjcuO HAjm/WLBqD0PjP2lrEIX68H/6DGFn2Ga511uVVQjKFq17JofWvI9HWvGAs3tQcbW54Fj 2W95AR9u0ykZyEXpkq4jYs1QAwZ14lX8v+O+6GbS5/5gvd5tOsA4EPmM72qujAOlGj7l sqQIBEeSwu97uHRwn0q731Gz2qvEn9ZODfn+ZTCGfOQa+PHTU8LnU0D2mUSJWNQLnoez CdZQ== X-Gm-Message-State: AE9vXwOhR4S2Rn8mpA1wVX5lbVZZDUoZpqJ8YyBxnye1hZnhWPFXUskDp1/DLxS6HxZNYDeBgS+RKX/6oi4K8A== X-Received: by 10.129.4.201 with SMTP id 192mr1735853ywe.168.1473014863843; Sun, 04 Sep 2016 11:47:43 -0700 (PDT) MIME-Version: 1.0 From: Gabor Radnai Date: Sun, 04 Sep 2016 18:47:33 +0000 Message-ID: Subject: bhyve and bootable usb image To: freebsd-virtualization@freebsd.org, freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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: Sun, 04 Sep 2016 18:47:45 -0000 Hello, I have a bootable usb image file which I would like to use as an installer medium under byhve, a Linux based stuff. Using dd to write image file to an usb stick and installing stuff from it works ok. However under bhyve accessing the image as ahci-hd or virtio-blk and using grub-bhyve, guest does not boot up. What is the proper way to use bootable image file? Will it work at all or it is not (yet) supported? Can someone please show me a how-to? Thanks. From owner-freebsd-virtualization@freebsd.org Sun Sep 4 21:00:26 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 56F3FB71736 for ; Sun, 4 Sep 2016 21:00:26 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 342418FB for ; Sun, 4 Sep 2016 21:00:26 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u84L01rB021693 for ; Sun, 4 Sep 2016 21:00:26 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201609042100.u84L01rB021693@kenobi.freebsd.org> From: bugzilla-noreply@FreeBSD.org To: freebsd-virtualization@FreeBSD.org Subject: Problem reports for freebsd-virtualization@FreeBSD.org that need special attention Date: Sun, 04 Sep 2016 21:00:25 +0000 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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: Sun, 04 Sep 2016 21:00:26 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- New | 202322 | [bhyve,patch] add option to have bhyve write its 1 problems total for which you should take action. From owner-freebsd-virtualization@freebsd.org Tue Sep 6 15:33:39 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3E358B96F30 for ; Tue, 6 Sep 2016 15:33:39 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [185.24.122.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C9AC2182B for ; Tue, 6 Sep 2016 15:33:37 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from ultrabook.yoonka.com (ip-109-84-3-81.web.vodafone.de [109.84.3.81]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id u86FXZQ8058687 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 6 Sep 2016 15:33:36 GMT (envelope-from list1@gjunka.com) X-Authentication-Warning: msa1.earth.yoonka.com: Host ip-109-84-3-81.web.vodafone.de [109.84.3.81] claimed to be ultrabook.yoonka.com To: freebsd-virtualization@freebsd.org From: Grzegorz Junka Subject: bhyve and dynamic allocation Message-ID: <862088a4-6934-4a03-cc1c-4b27154b9bb2@gjunka.com> Date: Tue, 6 Sep 2016 15:33:30 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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: Tue, 06 Sep 2016 15:33:39 -0000 Is it possible / supported / planned to run a client OS without specifying RAM/HDD up-front but with dynamically allocated resources? Grzegorz From owner-freebsd-virtualization@freebsd.org Tue Sep 6 15:49:13 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D7224BC6437 for ; Tue, 6 Sep 2016 15:49:13 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 9AF021F9 for ; Tue, 6 Sep 2016 15:49:13 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) by alto.onthenet.com.au (Postfix) with ESMTPS id EA820206A8DA for ; Wed, 7 Sep 2016 01:48:54 +1000 (AEST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id E5DB8280A24 for ; Wed, 7 Sep 2016 01:48:54 +1000 (AEST) X-Amavis-Modified: Mail body modified (using disclaimer) - iredmail.onthenet.com.au Received: from iredmail.onthenet.com.au ([127.0.0.1]) by localhost (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id medsblpGQi1C for ; Wed, 7 Sep 2016 01:48:54 +1000 (AEST) Received: from Peters-MacBook-Pro-2.local (unknown [166.177.251.103]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id B675B2808FE; Wed, 7 Sep 2016 01:48:49 +1000 (AEST) Subject: Re: bhyve and dynamic allocation To: Grzegorz Junka References: <862088a4-6934-4a03-cc1c-4b27154b9bb2@gjunka.com> Cc: freebsd-virtualization@freebsd.org From: Peter Grehan Message-ID: <0553cd28-02da-ea34-19fc-340f8bfa6e23@freebsd.org> Date: Tue, 6 Sep 2016 08:48:52 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <862088a4-6934-4a03-cc1c-4b27154b9bb2@gjunka.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=YvxNfMQX c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=BO2BgHjeJwxp7amrmLVFJA==:17 a=N659UExz7-8A:10 a=GW1xBdLrtEIA:10 a=CwEOYVyHHtQHwa95arYA:9 a=pILNOxqGKmIA:10 wl=host:3 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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: Tue, 06 Sep 2016 15:49:13 -0000 Hi Grzegorz, > Is it possible / supported / planned to run a client OS without > specifying RAM/HDD up-front but with dynamically allocated resources? The amount of RAM specified is just the maximum allowed, and by default is demand-paged without any pre-allocation. For disk, the same effect can be achieved by using a sparse volume, e.g. 'truncate -s ' on UFS. later, Peter. From owner-freebsd-virtualization@freebsd.org Wed Sep 7 04:42:12 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4225DBC6917 for ; Wed, 7 Sep 2016 04:42:12 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl2.internode.on.net (ipmail06.adl2.internode.on.net [150.101.137.129]) by mx1.freebsd.org (Postfix) with ESMTP id C52BD7A4 for ; Wed, 7 Sep 2016 04:42:10 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp14-2-4-72.lns21.adl2.internode.on.net (HELO leader.local) ([14.2.4.72]) by ipmail06.adl2.internode.on.net with ESMTP; 07 Sep 2016 14:07:00 +0930 Subject: Re: bhyve and dynamic allocation To: Grzegorz Junka References: <862088a4-6934-4a03-cc1c-4b27154b9bb2@gjunka.com> <0553cd28-02da-ea34-19fc-340f8bfa6e23@freebsd.org> Cc: freebsd-virtualization@freebsd.org From: Shane Ambler Message-ID: <8034e078-1d5a-7269-428a-0155c4a271b2@ShaneWare.Biz> Date: Wed, 7 Sep 2016 14:06:58 +0930 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <0553cd28-02da-ea34-19fc-340f8bfa6e23@freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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: Wed, 07 Sep 2016 04:42:12 -0000 On 07/09/2016 01:18, Peter Grehan wrote: > Hi Grzegorz, > >> Is it possible / supported / planned to run a client OS without >> specifying RAM/HDD up-front but with dynamically allocated resources? > > The amount of RAM specified is just the maximum allowed, and by default > is demand-paged without any pre-allocation. > > For disk, the same effect can be achieved by using a sparse volume, > e.g. 'truncate -s ' on UFS. > And if your using ZFS on the host you can create a sparse zvol with zfs create -sV zpool/guestvol -- FreeBSD - the place to B...Sharing Devices Shane Ambler From owner-freebsd-virtualization@freebsd.org Wed Sep 7 07:02:39 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 193AFAC4E95 for ; Wed, 7 Sep 2016 07:02:39 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id D0533A70 for ; Wed, 7 Sep 2016 07:02:38 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) by alto.onthenet.com.au (Postfix) with ESMTPS id 7C5A620A40CD for ; Wed, 7 Sep 2016 17:02:25 +1000 (AEST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id 75FFF280A36 for ; Wed, 7 Sep 2016 17:02:25 +1000 (AEST) X-Amavis-Modified: Mail body modified (using disclaimer) - iredmail.onthenet.com.au Received: from iredmail.onthenet.com.au ([127.0.0.1]) by localhost (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id PO1pO-GM6yFn for ; Wed, 7 Sep 2016 17:02:25 +1000 (AEST) Received: from Peters-MacBook-Pro-2.local (c-67-180-92-13.hsd1.ca.comcast.net [67.180.92.13]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id 12058280991; Wed, 7 Sep 2016 17:02:22 +1000 (AEST) Subject: Re: Issues with GTX960 on CentOS7 using bhyve PCI passthru (FreeBSD 11-RC2) To: Dom References: <727839e2-4be1-5661-8c19-6d13f73ad36f@talk2dom.com> From: Peter Grehan Cc: freebsd-virtualization@freebsd.org Message-ID: <62b2a72a-3662-5b3e-5029-f284a625d05b@freebsd.org> Date: Wed, 7 Sep 2016 00:02:31 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <727839e2-4be1-5661-8c19-6d13f73ad36f@talk2dom.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=YvxNfMQX c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=5eVCmCvhg37cu/pjidAGzw==:17 a=N659UExz7-8A:10 a=GW1xBdLrtEIA:10 a=9zVSu4PRvGFPjgcPEUoA:9 a=pILNOxqGKmIA:10 wl=host:3 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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: Wed, 07 Sep 2016 07:02:39 -0000 Hi Dom, > Bhyve's ACPI table produces this error linux-side regardless of > "pci=" setting: > > [ 0.163085] acpi PNP0A03:00: host bridge window > [0xd000000000-0xd0100fffff] (ignored, not CPU addressable) That one is most likely a bug in bhyve, where the space used for 64-bit BAR placement isn't tested against the max physaddr width of the host CPU. To confirm, would you be able to report on this value on your system ? # sudo pkg install cpuid # cpuid | grep ^80000008 80000008 00003027 00000000 00000000 00000000 ^^ This is the output from a Xeon E3-1220 v3: 0x27 == 39 bits of phys address (0x8000000000 max) 0xd000000000 requires >= 40 bits. > 2. "can't derive routing for PCI INT" > > Linux-side dmesg related output: > > [ 1.677168] nvidia 0000:00:06.0: can't derive routing for PCI INT > A [ 1.677600] nvidia 0000:00:06.0: PCI INT A: no GSI ... > Host-side info (when GTX960 is NOT configured as a pass-thru dev): ... > cap 05[68] = MSI supports 1 message, 64 bit enabled with 1 message The device has an MSI capability, but the nvidia driver may not use it. bhyve PCI passthrough requires the use of MSI/MSI-x interrupts, and doesn't support using legacy interrupts. This could be confirmed from the output of /proc/interrupts when booting Linux on the system. later, Peter. From owner-freebsd-virtualization@freebsd.org Thu Sep 8 19:30:09 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A1DDDBD1334 for ; Thu, 8 Sep 2016 19:30:09 +0000 (UTC) (envelope-from editor@callfortesting.org) Received: from mail-pa0-x234.google.com (mail-pa0-x234.google.com [IPv6:2607:f8b0:400e:c03::234]) (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 7ABF0FFA for ; Thu, 8 Sep 2016 19:30:09 +0000 (UTC) (envelope-from editor@callfortesting.org) Received: by mail-pa0-x234.google.com with SMTP id cm16so20252484pac.0 for ; Thu, 08 Sep 2016 12:30:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=callfortesting-org.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=VpnRUfWNkcuhJvPLsXufHwBY8y2kGHhiKH2NUPUhVX4=; b=xG6LgykjyQ58pD8Xkd7CI22alBzTvbn0ppz2vuV+KHRSVm2kY9wB16wkt7OI5kQrUb cahSSpPRJok6ZZgdjMyFaysudmOS9KqCA31jA9/5xbLc9jC0NTJOhoEzP55AnsJiHuM/ +bcJrM/Abijooj+sQPcaaUsn1/F1xF4nhmujasZMA4ctTtQNPouREEvocBNIOXFTB5EZ j4zXkkC9qulB58S/UUta49GL1yuKMOMIQRm571RJpB5+OAFaiJ/wnfDQQH1EiaZ/o7jU kJBA/h+Z+MfmRPBSf3K9ivq87WeGDvvHqDl9HGH6skwBftLMb2bd1ov1ue6QtN4eLEAC H+lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=VpnRUfWNkcuhJvPLsXufHwBY8y2kGHhiKH2NUPUhVX4=; b=ZJIiq5SadoNO7OuNdXIGQe8Cox+q1IdJEBxtuhJINDtd8CwrHLJsiBS7vQGmFcppB0 FWnIdijGQe1WM5w5RGb3WEZf+nYeusn8cMjE98bFI1DIGySD9BukGgdJCtqpW6M2SjMd m6BIQJKqm00CUK61QKh2YR6A5087rpkP8GOdn2sj+Rlw7V05ixKb0qMfWNCCXEdp729R /gvnJyye3KICxQJWjieWwaRhfi4ZBwYYRLMEKPEyuj9hISnVlTQi7HK8CAV9NrXZyuz7 QqvFWg+zf53bDqTiqTT9M0Ic77gAcZkbwlYr4O0n/mH+oJGz25gepoJ6URK0umTC71+Y QdCA== X-Gm-Message-State: AE9vXwMdquQnTKQSPoNqlDJxm+81cuSc4ZYqUXb091w9VA8vDyY2e63PPHETC7ZKTOPWGg== X-Received: by 10.66.9.42 with SMTP id w10mr2370193paa.34.1473363008864; Thu, 08 Sep 2016 12:30:08 -0700 (PDT) Received: from Michaels-MacBook-Pro.local (c-24-22-0-104.hsd1.or.comcast.net. [24.22.0.104]) by smtp.gmail.com with ESMTPSA id ve9sm58313472pac.12.2016.09.08.12.30.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Sep 2016 12:30:08 -0700 (PDT) Subject: Re: bhyve and bootable usb image To: freebsd-virtualization@freebsd.org, gabor.radnai@gmail.com References: From: Michael Dexter Message-ID: Date: Thu, 8 Sep 2016 12:30:07 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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: Thu, 08 Sep 2016 19:30:09 -0000 On 9/4/16 11:47 AM, Gabor Radnai wrote: > I have a bootable usb image file which I would like to use as an installer > medium under byhve, a Linux based stuff. Using dd to write image file to an > usb stick and installing stuff from it works ok. However under bhyve > accessing the image as ahci-hd or virtio-blk and using grub-bhyve, guest > does not boot up. > > What is the proper way to use bootable image file? Will it work at all or > it is not (yet) supported? > > Can someone please show me a how-to? What grub-bhyve and device.map syntax are you using for both? Michael From owner-freebsd-virtualization@freebsd.org Thu Sep 8 20:00:18 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F0B3ABD1C50 for ; Thu, 8 Sep 2016 20:00:18 +0000 (UTC) (envelope-from gabor.radnai@gmail.com) Received: from mail-yb0-x234.google.com (mail-yb0-x234.google.com [IPv6:2607:f8b0:4002:c09::234]) (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 B00E562A for ; Thu, 8 Sep 2016 20:00:18 +0000 (UTC) (envelope-from gabor.radnai@gmail.com) Received: by mail-yb0-x234.google.com with SMTP id u125so21055326ybg.3 for ; Thu, 08 Sep 2016 13:00:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=sx5lkHcPhIPkvKO8QQ9FuFpNTDeL1kRiFhcjOZynJc8=; b=kmVP9Uw0Gq/rMZ/4lGdodmYSkyDbBCGqYX88+rffYbAF7IUQJgQk7xthamn2lgePH3 XVba/riN1fV6ixdQ1aXu9AqcSISUa3FPu7lrKiEF8NjUshmVzmeW6eu3K33YGeenvpOX xm3H1C6A07GebYUtEkgcnb0FtDIHjxoh9EuYxj2JHPw+Ct7nCH1IeUA25S+etHIdraLl +PGAbTkToimlIO3iYCmI29HrUfdsCgh2ClThHdmmvK2H+b+BksqhkebA6u11IMH/EK8d ozJc5x5ixdvCQIwZawUl3HdaHH1UWaH749/IWlBwVc8wlJOzt74C7v+afk7mep01Nfvq Whgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=sx5lkHcPhIPkvKO8QQ9FuFpNTDeL1kRiFhcjOZynJc8=; b=c+st5VjQ0p5xg1A86kh7lbuu6u0EvktG85irHxawzdq0RQr8GbiLRaFdHqhukjkwdC jb42wwrxJ2nmPM01irCQ3Kqy6TSYBbZ6wquDeYa9HXAWj0rVW+wjSGUXY8mvkikforaP txDrFF8kiEml9SEeLL8uKEFtWsWGYattFfv96oiXkUOE/4+9ffYQSY3PeIyjp/k2idGa TnSMghNFThc77JIxenZ2NHglYzF4LJc/WKvua+5BsEI2XrhSa6CpHzB8ub5+QCWfrMbJ dgPhjlIqUIj2aol8Bo3apwcQXUYk8NzFePtYVnMPuIkhO1TXZM7B098ysLzFTs7CfL84 sFcw== X-Gm-Message-State: AE9vXwNZ4sR9j5zT/zMw5rKq8MRm28K12M1oP1RBbXATkz2xPQMqD/1w55aOC1OX2oi6Bo2I+co6ilVYkt41UA== X-Received: by 10.37.170.175 with SMTP id t44mr1774452ybi.39.1473364817972; Thu, 08 Sep 2016 13:00:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Gabor Radnai Date: Thu, 08 Sep 2016 20:00:07 +0000 Message-ID: Subject: Re: bhyve and bootable usb image To: Michael Dexter , freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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: Thu, 08 Sep 2016 20:00:19 -0000 Try to do: device.map: (hd0) usb.img (hd1) */dev/zvol//* *grub-bhyve -m device.map -r hd0 -M 1024M linuxguestbhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,usb.img \ -s 4:0,ahci-hd,/dev/zvol// -l com1,stdio -c 4 -m 1024M linuxguest But to be honest not exactly sure what should be the usb image type, hd or cd or? Or what else I miss.* *Thanks.* On Thu, Sep 8, 2016 at 9:30 PM Michael Dexter wrote: > On 9/4/16 11:47 AM, Gabor Radnai wrote: > > I have a bootable usb image file which I would like to use as an > installer > > medium under byhve, a Linux based stuff. Using dd to write image file to > an > > usb stick and installing stuff from it works ok. However under bhyve > > accessing the image as ahci-hd or virtio-blk and using grub-bhyve, guest > > does not boot up. > > > > What is the proper way to use bootable image file? Will it work at all or > > it is not (yet) supported? > > > > Can someone please show me a how-to? > > What grub-bhyve and device.map syntax are you using for both? > > Michael > From owner-freebsd-virtualization@freebsd.org Thu Sep 8 20:17:12 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8D4EABD00C3 for ; Thu, 8 Sep 2016 20:17:12 +0000 (UTC) (envelope-from ionutalex.teaca@gmail.com) Received: from mail-qk0-x233.google.com (mail-qk0-x233.google.com [IPv6:2607:f8b0:400d:c09::233]) (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 4A9BCFA2 for ; Thu, 8 Sep 2016 20:17:12 +0000 (UTC) (envelope-from ionutalex.teaca@gmail.com) Received: by mail-qk0-x233.google.com with SMTP id z190so45754981qkc.3 for ; Thu, 08 Sep 2016 13:17:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=4knxAYaH5AK9gyMY2mPDNe8Lbnv9KiuXFpG4KXyp2js=; b=mPA+wlisY2JBu4ghnDRy97/gJMoe4NlwQdIkqO+9lY8pbTdghIU0B68M/jIRGVoRiI pVCTt7DTGZXZ6JgEhwhROfwoLCPRjJfFsTj0A8+aLfpDUviotQpn+W9yLGnZcBRUTXy+ /TrgQOozwUO32p+WHy2mu3Le8EyQcYYTb6aA+NktPICtYgCnXH65X8kV8a0DC2qpHJp/ dob5Tt2UuM+ZrpQXthg4q00DZu8SMQ30HQ8KmVA8L9j8i5MkXNCl5to7JzQjxN2Ad92e Xp4IFtEgWFGC5vNmM9+r5Oy88jGRu7iG9Wb8+YNYBr0jFidpyxEclv5XFB6uM9l1QyWl dMXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4knxAYaH5AK9gyMY2mPDNe8Lbnv9KiuXFpG4KXyp2js=; b=VOaKOMlCdPm4PMO+PwKYYGMeEWOewN5+F8xd2I0zk8ecFTO+4R2V+kJ8WXUpd53LM7 XbWwvNGjTNBZqBaeN1wV6f3d3z8vWMFVMmcaphQgJxmvJ9T+7pi0/QXirZ2tXk3RK9oJ eMRzwWPW4t+ole3wYqLJsYu4rg2D95H60Vqvx6UojsbG+veZcqTIBwwrit8azec4r41d QhgScz+eW0n6qpEu6tf01710gEe3P0py3bj/guU/NXbDINYWYl5OAgZOOLdNjli8M122 PgSwdY/73YxHrgdDTdW6uQtYVWNsWfgqFKnVbEdtsUYAvv39r2Y8IiO+RMKKlEbYBaz4 /Tng== X-Gm-Message-State: AE9vXwMWMP/GU9PSZGSP3yXmyNpYEl/ECgA/tGlCqa1YfchJqIcjWQiXJBwIJZn8sq3eoobBAXiqZrOeB7Cmlw== X-Received: by 10.55.49.195 with SMTP id x186mr1928354qkx.227.1473365831278; Thu, 08 Sep 2016 13:17:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.46.195 with HTTP; Thu, 8 Sep 2016 13:17:10 -0700 (PDT) From: Alex Teaca Date: Thu, 8 Sep 2016 23:17:10 +0300 Message-ID: Subject: [Bhyve]HDA Sound Emulation - Call for Testing To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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: Thu, 08 Sep 2016 20:17:12 -0000 Hi everyone, This summer I've participated in the GSOC 2016 program working on the HDA Sound Emulation in bhyve. The code is not fully finished but the main functionality is accomplished and can be used in order to play and record sounds in a bhyve VM. More information you may find here (including the hda patch) [0]. So if you need to use it or just want to try it, some feedback would help me a lot. Thanks, Alex [0] https://wiki.freebsd.org/SummerOfCode2016/HDAudioEmulationForBhyve From owner-freebsd-virtualization@freebsd.org Thu Sep 8 20:26:00 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 54A5FBD03AC for ; Thu, 8 Sep 2016 20:26:00 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qk0-x234.google.com (mail-qk0-x234.google.com [IPv6:2607:f8b0:400d:c09::234]) (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 127026BD for ; Thu, 8 Sep 2016 20:26:00 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qk0-x234.google.com with SMTP id w204so57422649qka.0 for ; Thu, 08 Sep 2016 13:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6sQ/8PpvNm+nZSnrNe9urhgL9zUJLMzUJYrdagc4048=; b=II5ETA0xZSvE7+yA5HOznfzX34kb4aCdPLu+CE+31mSp0iPl8kEGIsY/DB7kIqcqTx jUoA9Qmtn6xcSosWs7+oykig6EU8+++WZnMua9Lqz1QhUW/srPlApCRscpIgldT8Pc2n irkAxLwOSWVkBFjphxjqvIRwUvgbl3JshrxDq/c229ave+Uj03+JF4lxNh39YsV9r/7v BF90T8Q9slRGZO9VuBlFE6V4oevHZClwecPX/ipT4pHGcTogMB8cgjInyinYMAF6AcfR g5GDdJDzBJ5RKH011KbtXfDQD1HTMa4w+6ZjW9ZDTzzzZFMyh28iemBw5KcEK5XyMCam MaTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6sQ/8PpvNm+nZSnrNe9urhgL9zUJLMzUJYrdagc4048=; b=Hsv3HidalN81NzMLI3n96NmWIKp5VxcdDzla+5nNyZ6SO/+fYyQ6oKeJqWUaviqZQH /hmgRVzvUhCGa+Dlzg/g75uzvJE1gyhKkXso1vh9iPqhFkmH0s5hxd0Di/jEjv+PifTq k481k/kN7hfntuzBDcQtd1XaqfhHd/cUk2Ms/VJ+SaX4AMOCOhfYANCN16+OLvAzXecg bNnz/p+ESRcVTZkcADCukYlgZJRQVa9fbLN3lX3V+u7xdiRpY4NwvuofHwCMIqQgMjMJ r3nHp5kizoZhWPgvhwgFy5qN9S4fDT+RWqsvTS1QIIbPxkZiFKDoUo9Fm7jIyvd288Rm WBtg== X-Gm-Message-State: AE9vXwMLV+D48UxbX7TKLb7+5ILFhUkbYHzj5qxi+1rc4V9utKJrSACS+TMXnM2azdvpbogk X-Received: by 10.55.195.146 with SMTP id r18mr1932240qkl.236.1473366359107; Thu, 08 Sep 2016 13:25:59 -0700 (PDT) Received: from mutt-hardenedbsd ([63.88.83.66]) by smtp.gmail.com with ESMTPSA id t42sm25156090qte.24.2016.09.08.13.25.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Sep 2016 13:25:58 -0700 (PDT) Date: Thu, 8 Sep 2016 16:25:56 -0400 From: Shawn Webb To: Alex Teaca Cc: freebsd-virtualization@freebsd.org Subject: Re: [Bhyve]HDA Sound Emulation - Call for Testing Message-ID: <20160908202556.GB55629@mutt-hardenedbsd> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4bRzO86E/ozDv8r1" Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD mutt-hardenedbsd 12.0-CURRENT-HBSD FreeBSD 12.0-CURRENT-HBSD X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0x6A84658F52456EEE User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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: Thu, 08 Sep 2016 20:26:00 -0000 --4bRzO86E/ozDv8r1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 08, 2016 at 11:17:10PM +0300, Alex Teaca wrote: > Hi everyone, >=20 > This summer I've participated in the GSOC 2016 program working on the HDA > Sound Emulation in bhyve. The code is not fully finished but the main > functionality is accomplished and can be used in order to play and record > sounds in a bhyve VM. >=20 > More information you may find here (including the hda patch) [0]. >=20 > So if you need to use it or just want to try it, some feedback would help > me a lot. Hey Alex, First of all, THANK YOU! You're doing amazing work! I'll give the patch a shot soon. Second, would it be possible to track the patch using Phabricator[0]? That way, we can see how the patch has changed over time. And it's much easier to know when a patch is modified via Phabricator than doing a curl HEAD request against a wiki attachment to get the last modified date. Again, your efforts are both much needed and much appreciated. [0]: https://reviews.freebsd.org/ Thanks, --=20 Shawn Webb Cofounder and Security Engineer HardenedBSD GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE --4bRzO86E/ozDv8r1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX0clTAAoJEGqEZY9SRW7uaw4P/RLdeLQBTXo2OQQ7HUkrMi5S 8F+hn98Za27vTT/YgMah8CBjivj5FWLpmbKJKlB5EeYy3U6lX5pgZggeP2avKuwG BfNBjMLi7qfR5px3t3tNmNzdEpUgVHVeIFwrQxuV6uEGqPrZvBZDzkvX9diptbyK Z/FRaLMVXqTrjflh85wTHM+ejMZWB+OzzaDBglqDcW0adxJyWAFFP8ah+eTnFOBb oUTaXTcn/2avhy2Ukwg4/gROx7QRU55W6pTLpnYPW6DHDUyjqF8MaEYIa+O6JE5s fi2eO8Enfrrq2oztdRmKCAd8ycxYJGBjaGGxAfcd54WPuTJ8BwLx74aN1v2vDF3n gAAiXt04sXFuUIANySplXZNPwUcir6+PHDonwNeMtxbqel9tfUxw2NIaZiIvNmX9 oU/HZGFLtlYEAqdnxh81TR6juGAlUs7Qv2clIH5glksf8raw99/4o4E3+mi5GhY0 vf+5bjOfA06vnN1zZMhkWkjPAaL7fYaPPbaTkipb31nd3B8A2ICARFaauRjoGOG0 tBzqhz/URdmmhQTLChdp7EFUtTcPni7Dk82avPd4HopOoU9y2/UbSujknLYPQdGT mn23zgTdtnC0YYzakYaHr+mA5XSOLJdOBr+EBJO+cbJTTEQ6NzMZ8V5dcXeQRMGY C6Ao4GkcDb9qgSJjjyU1 =idMy -----END PGP SIGNATURE----- --4bRzO86E/ozDv8r1-- From owner-freebsd-virtualization@freebsd.org Fri Sep 9 07:08:38 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC522BD20E5 for ; Fri, 9 Sep 2016 07:08:38 +0000 (UTC) (envelope-from ionutalex.teaca@gmail.com) Received: from mail-qk0-x241.google.com (mail-qk0-x241.google.com [IPv6:2607:f8b0:400d:c09::241]) (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 84D51882 for ; Fri, 9 Sep 2016 07:08:38 +0000 (UTC) (envelope-from ionutalex.teaca@gmail.com) Received: by mail-qk0-x241.google.com with SMTP id r128so5197731qkc.1 for ; Fri, 09 Sep 2016 00:08:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+8keZGower6j4NHjSZfywl00XRmzMs4lBnbA1lQ246A=; b=A076Nk+1nOjI3feE0A6U1+ml6v/YrACt6dV3O3VnvBX380ayT5oPcF0mjIAD61wYtG 8FPxPelrhEGsC1xfOB9WhqvLWOGFQM+Omk6ckmgTPnEpF29atiY6dCARC3Y7kJk7DHJt x/kooS7W82n5DCVKJCQULKBt+woUrJRTtWgzxmpoO2tEXh3/vesy4LMy3YyLe/JYmLGJ EfF6t4CWCnuNvXlc9q0QmmDYm5NJJDGGoxhEvx3XAuIHHoC93v3PsI+X54bkIeyLudZx SeAT9ScQpceju7HK2WjThEyntz9JCkfUkl5APSdTDvuB4ZncxZi7ZbdZmO322iciJKPk MSCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+8keZGower6j4NHjSZfywl00XRmzMs4lBnbA1lQ246A=; b=eBZIPXfYo/fSO4V8c95KObkeFwJSpq/s+WTHiv0GrjAstP/NDJePLf1chFi5zYJDzm 3pP2U1omr2VOmFjS58/pVqGIeKfra1yGRoEy65g3GuRNmgulTbuKXBkFcHJebnS1esV1 pOVwPbxGSfZmStCxcn9fJ6IQpzUQ320sRMdoa3GmOVKmq/cghAzorcv94gxa28I/+mwU 8uaYCUivpOzRPFg/B5LeOx3lN59sWbRG0s4iau0sf8S6i8XZyzbSieltK1UavtT4eoBR gmyX4iLK9Wgy8WCFdTpnPKrkZ80SowLK+4ms4piBzFzHmN781Tt6TPH5wTFx7GN5RQyy jZHQ== X-Gm-Message-State: AE9vXwNpHd6pWX2MsnWrs4Mpv0A4y/uW7gEntmQ2PiQptbDXOSNi7J0al4653yeFNciDY558Cjm3Q6H9WF5bAQ== X-Received: by 10.55.7.129 with SMTP id 123mr1937254qkh.229.1473404917611; Fri, 09 Sep 2016 00:08:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.46.195 with HTTP; Fri, 9 Sep 2016 00:08:37 -0700 (PDT) In-Reply-To: <20160908202556.GB55629@mutt-hardenedbsd> References: <20160908202556.GB55629@mutt-hardenedbsd> From: Alex Teaca Date: Fri, 9 Sep 2016 10:08:37 +0300 Message-ID: Subject: Re: [Bhyve]HDA Sound Emulation - Call for Testing To: Shawn Webb Cc: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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, 09 Sep 2016 07:08:39 -0000 On Thu, Sep 8, 2016 at 11:25 PM, Shawn Webb wrote: > On Thu, Sep 08, 2016 at 11:17:10PM +0300, Alex Teaca wrote: > > Hi everyone, > > > > This summer I've participated in the GSOC 2016 program working on the HDA > > Sound Emulation in bhyve. The code is not fully finished but the main > > functionality is accomplished and can be used in order to play and record > > sounds in a bhyve VM. > > > > More information you may find here (including the hda patch) [0]. > > > > So if you need to use it or just want to try it, some feedback would help > > me a lot. > > Hey Alex, > > First of all, THANK YOU! You're doing amazing work! I'll give the patch > a shot soon. > Glad to hear that. > > Second, would it be possible to track the patch using Phabricator[0]? That > way, we can see how the patch has changed over time. And it's much > easier to know when a patch is modified via Phabricator than doing a > curl HEAD request against a wiki attachment to get the last modified > date. > Of course. I've added a diff entry in Phabricator: https://reviews.freebsd.org/D7840 > > Again, your efforts are both much needed and much appreciated. > > [0]: https://reviews.freebsd.org/ > > Thanks, > > -- > Shawn Webb > Cofounder and Security Engineer > HardenedBSD > > GPG Key ID: 0x6A84658F52456EEE > GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE > From owner-freebsd-virtualization@freebsd.org Fri Sep 9 09:20:44 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8840BD15B6 for ; Fri, 9 Sep 2016 09:20:44 +0000 (UTC) (envelope-from misc-freebsd@talk2dom.com) Received: from mail.shmtech.biz (mail.shmtech.biz [IPv6:2001:41c9:1:37::e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.shmtech.biz", Issuer "Go Daddy Secure Certification Authority" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 76339D13 for ; Fri, 9 Sep 2016 09:20:44 +0000 (UTC) (envelope-from misc-freebsd@talk2dom.com) Received: from [10.0.1.100] (originc9729.pndsl.co.uk [84.92.225.78]) (authenticated bits=0) by mail.shmtech.biz (8.15.2/8.14.9) with ESMTPSA id u899KeYX004923 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Fri, 9 Sep 2016 10:20:41 +0100 (BST) (envelope-from misc-freebsd@talk2dom.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=talk2dom.com; s=shmtech4; t=1473412841; x=1474017641; bh=HM+eAQR0Kq1tcWXUKBwvrAKM+ASHNc7aiMwMmiHi4fQ=; h=From:Subject:To:References:Date:In-Reply-To; b=PMUqQKyUj1xGEnY9yURqKhkI1fUH7QIOTST9OWCrkg/5bTQe+YPA36JRCqAdDMZ/c D4wWyfCBHov1hkarbVnD71nb6Jl7K1JwRpF5mHLqioAbsBXGaO67XnGqXMOP39cS76 opxkOLUeQMR4o79iggveOWIZ1Z+5kj0S63VJ3MdE= X-Authentication-Warning: sendmail: Host originc9729.pndsl.co.uk [84.92.225.78] claimed to be [10.0.1.100] From: Dom Subject: Re: Issues with GTX960 on CentOS7 using bhyve PCI passthru (FreeBSD 11-RC2) To: freebsd-virtualization@freebsd.org References: <727839e2-4be1-5661-8c19-6d13f73ad36f@talk2dom.com> <62b2a72a-3662-5b3e-5029-f284a625d05b@freebsd.org> Message-ID: <22df7de9-1dfb-561c-125d-99af2b3da70b@talk2dom.com> Date: Fri, 9 Sep 2016 10:20:41 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <62b2a72a-3662-5b3e-5029-f284a625d05b@freebsd.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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, 09 Sep 2016 09:20:44 -0000 Hi Peter, Thanks for getting back to me. Here's the info you requested: >> [ 0.163085] acpi PNP0A03:00: host bridge window >> [0xd000000000-0xd0100fffff] (ignored, not CPU addressable) > > That one is most likely a bug in bhyve, where the space used for 64-bit > BAR placement isn't tested against the max physaddr width of the host > CPU. > > To confirm, would you be able to report on this value on your system ? > > # sudo pkg install cpuid > # cpuid | grep ^80000008 On my Intel i7-4790K CPU: # cpuid | grep ^80000008 80000008 00003027 00000000 00000000 00000000 > The device has an MSI capability, but the nvidia driver may not use it. > bhyve PCI passthrough requires the use of MSI/MSI-x interrupts, and > doesn't support using legacy interrupts. > > This could be confirmed from the output of /proc/interrupts when > booting Linux on the system. Output of /proc/interrupts: CPU0 0: 137 IO-APIC-edge timer 1: 9 IO-APIC-edge i8042 4: 965 IO-APIC-edge serial 8: 0 IO-APIC-edge rtc0 9: 0 IO-APIC-fasteoi acpi 12: 138 IO-APIC-edge i8042 17: 0 IO-APIC-fasteoi snd_hda_intel 24: 0 PCI-MSI-edge virtio0-config 25: 8535 PCI-MSI-edge virtio0-req.0 26: 0 PCI-MSI-edge virtio1-config 27: 123 PCI-MSI-edge virtio1-input.0 28: 1 PCI-MSI-edge virtio1-output.0 NMI: 0 Non-maskable interrupts LOC: 6050 Local timer interrupts SPU: 0 Spurious interrupts PMI: 0 Performance monitoring interrupts IWI: 2484 IRQ work interrupts RTR: 0 APIC ICR read retries RES: 0 Rescheduling interrupts CAL: 0 Function call interrupts TLB: 0 TLB shootdowns TRM: 0 Thermal event interrupts THR: 0 Threshold APIC interrupts MCE: 0 Machine check exceptions MCP: 1 Machine check polls ERR: 0 MIS: 0 I guess the lack of a line containing PCI-MSI-* here indicates the nvidia driver isn't using an MSI/MSI-x interrupt? However, searching the web suggests the Linux nvidia driver does use MSI interrupts. This taken from a working non-VM Linux dmesg: [ 4.330536] nvidia 0000:05:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 [ 4.330542] nvidia 0000:05:00.0: setting latency timer to 64 Source: https://bugzilla.kernel.org/show_bug.cgi?id=20432#c2 (Thread also mentions disabling MSI) I'll try some Linux boot options and reordering the devices when calling bhyve to see if that changes anything. Thanks, Dom From owner-freebsd-virtualization@freebsd.org Fri Sep 9 10:49:29 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0D3DFBD4AEC for ; Fri, 9 Sep 2016 10:49:29 +0000 (UTC) (envelope-from misc-freebsd@talk2dom.com) Received: from mail.shmtech.biz (mail.shmtech.biz [IPv6:2001:41c9:1:37::e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.shmtech.biz", Issuer "Go Daddy Secure Certification Authority" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AB6CCBC4 for ; Fri, 9 Sep 2016 10:49:28 +0000 (UTC) (envelope-from misc-freebsd@talk2dom.com) Received: from [10.0.1.100] (originc9729.pndsl.co.uk [84.92.225.78]) (authenticated bits=0) by mail.shmtech.biz (8.15.2/8.14.9) with ESMTPSA id u89AnPhS013143 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Fri, 9 Sep 2016 11:49:25 +0100 (BST) (envelope-from misc-freebsd@talk2dom.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=talk2dom.com; s=shmtech4; t=1473418165; x=1474022965; bh=ALBXmBsxqQ9lP1rWLpDlk3lEedpi1Ec8C64mQkxP4K8=; h=Subject:To:References:From:Date:In-Reply-To; b=BXoqjHfdw99/IqeGDJTRjQ6Ajc3H5cSvhyvJElMf0JWk0eEUiyQp9HFFdLT6lZwNf v5J3haq68nANxR55pv8d/tWn7TWMZujxLINIluVLgUtnnf4j1PDGdpzoFepA9X4EmH XOS13Q6nocn6wwzpQj1o8DxxgfBjeuT33KfcBM/0= X-Authentication-Warning: sendmail: Host originc9729.pndsl.co.uk [84.92.225.78] claimed to be [10.0.1.100] Subject: Re: Issues with GTX960 on CentOS7 using bhyve PCI passthru (FreeBSD 11-RC2) To: freebsd-virtualization@freebsd.org References: <727839e2-4be1-5661-8c19-6d13f73ad36f@talk2dom.com> <62b2a72a-3662-5b3e-5029-f284a625d05b@freebsd.org> <22df7de9-1dfb-561c-125d-99af2b3da70b@talk2dom.com> From: Dom Message-ID: <2a0d0094-3263-de91-b3f8-38dda4a523ac@talk2dom.com> Date: Fri, 9 Sep 2016 11:49:25 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <22df7de9-1dfb-561c-125d-99af2b3da70b@talk2dom.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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, 09 Sep 2016 10:49:29 -0000 It looks like there may not be an issue with MSI after all. The nvidia driver is issued an IRQ when first used, not at boot time. If I run the CUDA "deviceQuery" sample then this appears in dmesg: [ 67.207929] nvidia 0000:00:06.0: irq 29 for MSI/MSI-X [ 67.646207] NVRM: RmInitAdapter failed! (0x24:0x1f:1356) [ 67.646570] NVRM: rm_init_adapter failed for device bearing minor number 0 [ 67.647214] NVRM: nvidia_frontend_open: minor 0, module->open() failed, error -5 Maybe the IRQ is deallocated immediately so doesn't appear in the output of /proc/interrupts? I guess I'll need to research the NVRM error above now but at least this thread might be useful regarding the BAR allocation. From owner-freebsd-virtualization@freebsd.org Fri Sep 9 16:16:08 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AFFAFBD26FE for ; Fri, 9 Sep 2016 16:16:08 +0000 (UTC) (envelope-from rajil.s@gmail.com) Received: from mail-qt0-x236.google.com (mail-qt0-x236.google.com [IPv6:2607:f8b0:400d:c0d::236]) (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 681EBFFF for ; Fri, 9 Sep 2016 16:16:08 +0000 (UTC) (envelope-from rajil.s@gmail.com) Received: by mail-qt0-x236.google.com with SMTP id 38so43097764qte.1 for ; Fri, 09 Sep 2016 09:16:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=eUavxgMp28RjR2JXzX7ZmcJdhBM0MfvFvRr9EPuh/cg=; b=zyU/pUijowNjPoznB//lH4t8kellKR0whkfdZJ4QJ40a3mpCU90z+l7YeizmQZAtHe qJN/jSlgMj78sgbM4Oq0meDSA66aZlaj0LSzcgYSRNlkpWzfoW4WjPHeJrvcZLJHMilg 07bVs28CRuVAySvmVAJ+DPFCdGwS2K4r5Ft9rJxE3uwsQf/SRPZbzDSTuk91m0T9+Q1n Y8AlJMExyBgHYpepFYrYJMKgM1kS7878Wp/RnhFNsw4FuvZ891cBUJo8a8NMJLK2ERMz Xsa0vgYaYew/KU2/Bs5m+e/35Wbwh5Q1xJHtgcUbYbVLMnQ/4slh12inUSB92vzFLkq6 cX1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=eUavxgMp28RjR2JXzX7ZmcJdhBM0MfvFvRr9EPuh/cg=; b=Qdu4HMIEhu4PUbiw28Pi74TvCETBmXzY/Z2CeAuMgBswLv3Sv35nEvttCyNZwf0ZB9 HI9DGiMoVAc84xJEljzoH0DvuT+zqQfKIFEsDf6GjX99+JzBRQVTcb06SMjoHV4Afec2 AgPlNgs3EFHD2BTFbrPBVHkgMGHNnSlkAYMwi8PtcMJMka+WRHPQVYnC11rrR9nveDQb V3YRQzlaBYaotE8g0Br8vQC2cdVlO6u7WLAAAJ8qi5Pj2y7KVPyLxyFB/Yqyj42oenUy V2hcbSOoqD9Rgq5hy+f7k7K2TCyd7J8iUBkwAYpwGYoLwO6BQmMu/I3YtgCaheNs56ky YUlQ== X-Gm-Message-State: AE9vXwOKhM0FEOuU1MlgkZY8g0gkINSHRGIffo66MrmYURmjvehxIuGjhbFX04Sz+dGIHG6nqEkTvetUFu3DVw== X-Received: by 10.237.35.114 with SMTP id i47mr4867370qtc.30.1473437767454; Fri, 09 Sep 2016 09:16:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.41.130 with HTTP; Fri, 9 Sep 2016 09:16:06 -0700 (PDT) Received: by 10.200.41.130 with HTTP; Fri, 9 Sep 2016 09:16:06 -0700 (PDT) In-Reply-To: References: From: Rajil Saraswat Date: Fri, 9 Sep 2016 11:16:06 -0500 Message-ID: Subject: Graphics card for hardware acceleration To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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, 09 Sep 2016 16:16:08 -0000 Hello, I have a remote Linux vm running which is accessed using x2go. I would like to use hardware acceleration for the GUI. The bhyve wiki suggests that pcie devices using MSI/MSI-X interrupts can only be used. Can somebody suggest what card can I use for passthrough and hardware acceleration? Thanks Rajil