From owner-freebsd-virtualization@freebsd.org Sun Feb 12 21:00:45 2017 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 EBCF5CDC465 for ; Sun, 12 Feb 2017 21:00:45 +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 C63531B3D for ; Sun, 12 Feb 2017 21:00:45 +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 v1CL0111054782 for ; Sun, 12 Feb 2017 21:00:45 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201702122100.v1CL0111054782@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, 12 Feb 2017 21:00:45 +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, 12 Feb 2017 21:00:46 -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 | 212711 | [typo] bhyve: virtio-rnd PCI ID doesn't match vio New | 212820 | FreeBSD 10-STABLE from latest HEAD and 11-RELEASE Open | 212721 | FreeBSD 11.0-RC2/RC3/RELEASE fails on Hyper-V 201 3 problems total for which you should take action. From owner-freebsd-virtualization@freebsd.org Mon Feb 13 02:33:38 2017 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 A3D67CDBFE0 for ; Mon, 13 Feb 2017 02:33:38 +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 92E391D7E for ; Mon, 13 Feb 2017 02:33:38 +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 v1D2XcJi059124 for ; Mon, 13 Feb 2017 02:33:38 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 216493] [Hyper-V] Mellanox ConnectX-3 VF driver can't work when FreeBSD runs on Hyper-V 2016 Date: Mon, 13 Feb 2017 02:33:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: decui@microsoft.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Mon, 13 Feb 2017 02:33:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216493 Dexuan Cui changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |decui@microsoft.com --- Comment #2 from Dexuan Cui --- Updates: hselasky committed the 2 patches (D8867, D8868) into the HEAD last Friday. Issue 1: No update. Issue 2:=20 Actually Linux version of the driver has the same (similar?) issue and I reported it here: https://www.spinics.net/lists/netdev/msg420136.html Some people suspected that it failed to allocate a UAR, but after we increa= sed LOG_BAR_SIZE with mlxconfig from 3 (8MB) to 5 (32MB), the issue was still there. We'll continue to work on this. Issue 3: No update. Issue 4:=20 It looks this may be a host side issue. on Live Migration, the host just removes the VF from the guest by force suddenly. Working on this.=20 But meanwhile, the VF driver should be improved to be more robust to cope w= ith this scenario. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Mon Feb 13 12:09:41 2017 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 42C90CDCE59 for ; Mon, 13 Feb 2017 12:09:41 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (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 E59A1F53 for ; Mon, 13 Feb 2017 12:09:40 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: by mail-wm0-x243.google.com with SMTP id u63so19107933wmu.2 for ; Mon, 13 Feb 2017 04:09:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=zGEuWYjPNOCcK/6lq82qE+4cpWHG4zKsJCBfe8haKCM=; b=Si5PAJdFOrS2soG62pYpPixBh0mqERMdBmcpuqxkcOS3MbwZTTBBNm7ABK6k6UHq0d REM6aGC6B2oTew/R6qDqlSheazmif57qHSNgGpM1EZAogGTrasNH2aIcog6l5cmSW1A1 yFhW8I5d5LU9+hxQOG8V2ob3sovXX+m+RnJ5kolZGTFzKG6Ou9gqDhPGNMD+OXT/724p ElM7XnuCEdzPJCbrwE/vB4crMsPYljfK1ob84Pric6tENZaJRBNsX9IX4pVcZ2gftrgq g9KKO5tznPPscegy1qK9s2VBqrMg4Dy+p3ZuelsWY7z2eDxFJpUBzMSvm+x/OUQrf4+n Z+wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=zGEuWYjPNOCcK/6lq82qE+4cpWHG4zKsJCBfe8haKCM=; b=ZezTHBTBAcxv6cK6LFR9b9MbBPUg2DF8fMICIDXY16rqpDszd4Po0RdvHWsfYyCFC1 oWYW4PMZsPNLylVpSEFR+o+kfDJJZ4i7Y8IjIqbgofGl6DDhtHa05PBULIMg/Hgo0B0R s8kuXkUFGUoJsEY8qgxSzTrBwKCrx4qHw2jVDTvV1+Tmj7xt5Czd4XWzvzbPnvFu6vgz OLuba5ZdQKEIhLRFPr6WKhBn9m9gHkFYCz9SiQLlUWbZJHCvI9zRaoE0PbWQ3wz01bsF OC1uI/IyyQezfiBdKZxvXOav7P2cpcx+GyQsHEBJ5P8hsAxVTuMCbEnLH+Ky//H+fsG5 dN+A== X-Gm-Message-State: AMke39kxeBH4FdB+/fQJGkjiIyH1Q2nWtc2tNzPyxOooLFBk5lQblu5r+ppeSQX/BUbKWw== X-Received: by 10.28.185.193 with SMTP id j184mr39910650wmf.86.1486987779069; Mon, 13 Feb 2017 04:09:39 -0800 (PST) Received: from localhost (231.red-79-150-68.dynamicip.rima-tde.net. [79.150.68.231]) by smtp.gmail.com with ESMTPSA id t103sm13638100wrc.43.2017.02.13.04.09.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Feb 2017 04:09:38 -0800 (PST) Date: Mon, 13 Feb 2017 12:09:38 +0000 From: "C. L. Martinez" To: freebsd-virtualization@freebsd.org Subject: tap interfaces disappears after bhyve guests shutdowns Message-ID: <20170213120938.hr3zu7flnm33v3zn@scotland.uxdom.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) 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: Mon, 13 Feb 2017 12:09:41 -0000 Hi all, Why when a bhyve guest shutdowns or reboot tap interfaces goes down and lost IP assigned address?. I need to use same tap interface for several guests and assign an IP to this tap interface to act as a router for these guests. How can I do a "persistent tap" interface?? Thanks. I -- Greetings, C. L. Martinez From owner-freebsd-virtualization@freebsd.org Mon Feb 13 12:38:04 2017 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 EBA00CD1B69 for ; Mon, 13 Feb 2017 12:38:04 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (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 AB09E1D88 for ; Mon, 13 Feb 2017 12:38:04 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 64EBC284CF; Mon, 13 Feb 2017 13:37:56 +0100 (CET) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id BAF09284D4; Mon, 13 Feb 2017 13:37:55 +0100 (CET) Subject: Re: tap interfaces disappears after bhyve guests shutdowns To: "C. L. Martinez" , freebsd-virtualization@freebsd.org References: <20170213120938.hr3zu7flnm33v3zn@scotland.uxdom.org> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <58A1A8A3.3030603@quip.cz> Date: Mon, 13 Feb 2017 13:37:55 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: <20170213120938.hr3zu7flnm33v3zn@scotland.uxdom.org> Content-Type: text/plain; charset=ISO-8859-1; 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: Mon, 13 Feb 2017 12:38:05 -0000 C. L. Martinez wrote on 2017/02/13 13:09: > Why when a bhyve guest shutdowns or reboot tap interfaces goes down and lost IP assigned address?. I need to use same tap interface for several guests and assign an IP to this tap interface to act as a router for these guests. > > How can I do a "persistent tap" interface?? I think you need this sysctl: # sysctl -d net.link.tap.up_on_open net.link.tap.up_on_open: Bring interface up when /dev/tap is opened From owner-freebsd-virtualization@freebsd.org Mon Feb 13 13:02:53 2017 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 9B4CFCDB6A1 for ; Mon, 13 Feb 2017 13:02:53 +0000 (UTC) (envelope-from contact@dann.ro) Received: from mail-lf0-x242.google.com (mail-lf0-x242.google.com [IPv6:2a00:1450:4010:c07::242]) (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 20992130F for ; Mon, 13 Feb 2017 13:02:53 +0000 (UTC) (envelope-from contact@dann.ro) Received: by mail-lf0-x242.google.com with SMTP id q89so8432117lfi.1 for ; Mon, 13 Feb 2017 05:02:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dann-ro.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=QHWITyVJmPEO/ia4Fz3h2RZD1s/E+JJDB3mhsIp0Lyk=; b=MjIp6GIoDC+9OKaM4hHlSuF+I+bWsEJAYyHU3bYxCwui9T1Bl/tT077L5HtwxkScms 65r5hNegfg8uSRf/g4ROS5WeTHZISIWTnab/4SnGz5z6IQzHUsjE1IAkmnlZdZ4WhDWa wLN4ZvNPgBXTL362pkMMDnYNeU5naHu0YzyFZzB6XgfYRWUaiKHK0kpNdsK1oQ1HnHwv p/P0JFidLonXl93PFVFZbyWTZnmAnRaisqJydWxda8+38yx5eM3SO+7fuSl6zVS3jcgK WsOj+4Y18AydavmH7PMuTOLsTLUrznlsCupzoYYBYOc0c7h5WnHLv9wRX5TOdIhTGyUI 2bBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=QHWITyVJmPEO/ia4Fz3h2RZD1s/E+JJDB3mhsIp0Lyk=; b=jYrZdQ1fl4+AaXy9+hfmJi1gVVji4mbvKgGTG3GyYuLbcqnsptPuws+KIcmGcEtnes jY5l9L0zbeUU1YRCAnaWOI5z1Ne99PCQyIup21r8FWmuCs5oErs+bxLQNbbf0iMw2/6J 1i8lAFi1JATJstLvBQaz3Fp71IRbguZX5hmrrUN0GE4+T3OwQ1AZyHUE1yAXXyAeZJSn 1B9510qfgQSZ7LHy5qWxsOhCSDA0onCONktj9FuC7PvokW1hmsVftF5uBPDYPIxoJkAZ BPwkObiJJZ1JcltKvgXTfNvOpmHF6y5tdq7hZWeZdeJyWZ0Z3Jn16QULFjQN+g0GMbnB iI5A== X-Gm-Message-State: AMke39kPpwat4incKsP73G896aKpRde+nqQi4P2S25+NU1RWA7W0SK1wVps8yYVHM3hDkg== X-Received: by 10.25.74.72 with SMTP id x69mr6233738lfa.66.1486990970884; Mon, 13 Feb 2017 05:02:50 -0800 (PST) Received: from [10.10.33.132] (mail.polystar.se. [213.238.208.200]) by smtp.gmail.com with ESMTPSA id g85sm2731061lji.21.2017.02.13.05.02.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Feb 2017 05:02:49 -0800 (PST) Subject: Re: tap interfaces disappears after bhyve guests shutdowns To: Miroslav Lachman <000.fbsd@quip.cz>, "C. L. Martinez" , freebsd-virtualization@freebsd.org References: <20170213120938.hr3zu7flnm33v3zn@scotland.uxdom.org> <58A1A8A3.3030603@quip.cz> From: Daniel Niculescu Message-ID: <8700dd14-cf15-20b9-38a6-e4181e4928ee@dann.ro> Date: Mon, 13 Feb 2017 14:02:48 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <58A1A8A3.3030603@quip.cz> 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: Mon, 13 Feb 2017 13:02:53 -0000 On 02/13/17 13:37, Miroslav Lachman wrote: > C. L. Martinez wrote on 2017/02/13 13:09: > >> Why when a bhyve guest shutdowns or reboot tap interfaces goes down >> and lost IP assigned address?. I need to use same tap interface for >> several guests and assign an IP to this tap interface to act as a >> router for these guests. >> IP address is set on the guest, so as long as you have the network set up the IP address will be persistent. What you need is a bridge to which you add all your tap interfaces. Set the kernel state as advised by Martinez and make sure you have it also in /etc/sysctl.conf: #sysctl net.link.tap.up_on_open=1 #echo "net.link.tap.up_on_open=1" >> /etc/sysctl.conf Create a bridge interface: #ifconfig bridge0 create Add your host interface if you want external connectivity for your guests: #ifconfig bridge0 addm em0 Create the tap interfaces for the guests: #ifconfig tap0 create #ifconfig tap1 create Add them to the bridge: #ifconfig bridge0 addm tap0 addm tap1 After booting the guests, they will be both bridged with your physical interface em0 (replace em0 with your actual interface): #ifconfig bridge0 bridge0: flags=8843 metric 0 mtu 1500 description: vm-local ether 02:ed:0d:ca:74:00 nd6 options=1 groups: bridge id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: tap1 flags=143 ifmaxaddr 0 port 5 priority 128 path cost 2000000 member: tap0 flags=143 ifmaxaddr 0 port 4 priority 128 path cost 2000000 member: em0 flags=143 ifmaxaddr 0 port 1 priority 128 path cost 20000 Perhaps you could use an utility to manage the VMs, like vm-bhyve, iohyve, etc. >> How can I do a "persistent tap" interface?? > > I think you need this sysctl: > > # sysctl -d net.link.tap.up_on_open > net.link.tap.up_on_open: Bring interface up when /dev/tap is opened > _______________________________________________ > 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" From owner-freebsd-virtualization@freebsd.org Mon Feb 13 13:36:30 2017 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 13B7DCDD37A for ; Mon, 13 Feb 2017 13:36:30 +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 DF08A973 for ; Mon, 13 Feb 2017 13:36:29 +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 v1DDaS1h066802 for ; Mon, 13 Feb 2017 13:36:29 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk Date: Mon, 13 Feb 2017 13:36:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: decui@microsoft.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Mon, 13 Feb 2017 13:36:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211746 --- Comment #4 from Dexuan Cui --- (In reply to Marcel Moolenaar from comment #3) Hi Marcel, Thank you for the quick help! Yes, I checked all the AllocatePages() calls and they all succeeded, i.e. returning 0. I found the crash happened in=20 elf64_exec() -> trampoline() -> efi_copy_finish -> *dst++ =3D *src++; In efi_copy_finish(), I added some printf's to dump the values of the varilables: /boot/kernel/kernel text=3D0xfe3048 data=3D0x128b68+0x207fa0 syms=3D[0x8+0x146f88+0x8+ Booting... Start @ 0xffffffff802e2640 ... EFI framebuffer information: addr, size 0xf8000000, 0x800000 dimensions 1024 x 768 stride 1024 masks 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 efi_copy_finish : staging=3D0xf37cb000 efi_copy_finish : staging_end=3D0xf67cb000 efi_copy_finish : staging_offset=3D0xf35cb000 efi_copy_finish : src=3D0xf37cb000, dst=3D0x200000, last=3D0xf67cb000 If I change the line last =3D (uint64_t *)staging_end; to=20 last =3D (uint64_t *)staging + (1024*1024*45); The crash won't happen and the kernel can boot fine. I'm using the releng/10.3 branch, where EFI_STAGING_SIZE is 48MB. This is to say, the kernel can boot fine if I use EFI_STAGING_SIZE=3D45MB. Any idea? Why do you think is it a Hyper-V firmware bug in AllocatePages()? I'm not familar with UEFI Boot Services. :-) I'll check the memory map before/after the call to AllocatePages(). I'm going to use sys/boot/efi/loader/main.c: command_memmap() as an example= to call GetMemoryMap. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Mon Feb 13 13:40:03 2017 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 804EECDD467 for ; Mon, 13 Feb 2017 13:40:03 +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 6FB8CAC9 for ; Mon, 13 Feb 2017 13:40:03 +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 v1DDe3iK073078 for ; Mon, 13 Feb 2017 13:40:03 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk Date: Mon, 13 Feb 2017 13:40:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: decui@microsoft.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Mon, 13 Feb 2017 13:40:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211746 --- Comment #5 from Dexuan Cui --- (In reply to Dexuan Cui from comment #4) > last =3D (uint64_t *)staging + (1024*1024*45); I meant=20 last =3D (uint64_t *) (staging + (1024*1024*45)); (I missed a pair of parentheses) --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Mon Feb 13 15:16:36 2017 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 8B8FDCDDBB2 for ; Mon, 13 Feb 2017 15:16:36 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Received: from doctor.nl2k.ab.ca (doctor.nl2k.ab.ca [204.209.81.1]) (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 6F6A01F12 for ; Mon, 13 Feb 2017 15:16:36 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Received: from doctor by doctor.nl2k.ab.ca with local (Exim 4.89_RC5) (envelope-from ) id 1cdIMT-000MiI-Tl; Mon, 13 Feb 2017 08:16:17 -0700 Date: Mon, 13 Feb 2017 08:16:17 -0700 From: The Doctor To: "C. L. Martinez" Cc: freebsd-virtualization@freebsd.org Subject: Re: tap interfaces disappears after bhyve guests shutdowns Message-ID: <20170213151617.GA84767@doctor.nl2k.ab.ca> References: <20170213120938.hr3zu7flnm33v3zn@scotland.uxdom.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170213120938.hr3zu7flnm33v3zn@scotland.uxdom.org> User-Agent: Mutt/1.7.2 (2016-11-26) 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: Mon, 13 Feb 2017 15:16:36 -0000 On Mon, Feb 13, 2017 at 12:09:38PM +0000, C. L. Martinez wrote: > Hi all, > > Why when a bhyve guest shutdowns or reboot tap interfaces goes down and lost IP assigned address?. I need to use same tap interface for several guests and assign an IP to this tap interface to act as a router for these guests. > > How can I do a "persistent tap" interface?? > > Thanks. > I > -- > Greetings, > C. L. Martinez Here is wht I do in my /etc/rc.local file /sbin/ifconfig tap8 inet 204.209.81.52 netmask 0xffffff00 /sbin/ifconfig tap0 inet 204.209.81.53 netmask 0xffffff00 /sbin/ifconfig tap1 inet 204.209.81.54 netmask 0xffffff00 /sbin/ifconfig tap7 inet 204.209.81.55 netmask 0xffffff00 /sbin/ifconfig tap2 inet 204.209.81.56 netmask 0xffffff00 /sbin/ifconfig tap4 inet 204.209.81.57 netmask 0xffffff00 /sbin/ifconfig tap3 inet 204.209.81.58 netmask 0xffffff00 /sbin/ifconfig tap6 inet 204.209.81.59 netmask 0xffffff00 /sbin/ifconfig bridge0 alias 204.209.81.60 netmask 0xffffff00 /sbin/ifconfig tap5 inet 204.209.81.61 netmask 0xffffff00 /sbin/ifconfig tap9 inet 204.209.81.62 netmask 0xffffff00 /sbin/ifconfig tap10 inet 204.209.81.63 netmask 0xffffff00 /sbin/ifconfig tap11 inet 204.209.81.64 netmask 0xffffff00 /sbin/ifconfig tap12 inet 204.209.81.65 netmask 0xffffff00 /sbin/ifconfig tap13 inet 204.209.81.66 netmask 0xffffff00 /sbin/ifconfig tap14 inet 204.209.81.67 netmask 0xffffff00 /sbin/ifconfig tap15 inet 204.209.81.68 netmask 0xffffff00 You can do something similar in /etc/rc.conf > _______________________________________________ > 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" -- Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist rising! http://www.fullyfollow.me/rootnl2k Look at Psalms 14 and 53 on Atheism God is dead! Yahweh lives! Jesus his only begotten Son is the Risen Saviour!! From owner-freebsd-virtualization@freebsd.org Mon Feb 13 17:27:30 2017 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 97EE7CDD7F4 for ; Mon, 13 Feb 2017 17:27:30 +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 7C900862 for ; Mon, 13 Feb 2017 17:27:30 +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 v1DHRRGT002867 for ; Mon, 13 Feb 2017 17:27:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk Date: Mon, 13 Feb 2017 17:27:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marcel@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Mon, 13 Feb 2017 17:27:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211746 --- Comment #6 from Marcel Moolenaar --- Check in the EFI memory map whether there's runtime-persistent memory at 0x200000 + 45MB (or abouts). Runtime persistent memory are memory allocatio= ns of type runtime, firmware, (e.g. ACPI non-reclaimable), etc. I.e anything t= hat the kernel can't use during runtime. If the memory at 0x200000 isn't free during runtime, then we have a real problem... Some background: FreeBSD makes an invalid or at least a questionable assump= tion that the memory map under EFI is compatible with the memory layout as seen under the BIOS. As time goes by, this will probably be less and less valid.= The staging area is a side-effect of the kernel wanting to be loaded in a contiguous memory region, starting at 0x200000. Something that is can't be = done under EFI without a staging area. To wit: The old (and now removed) Itanium kernel used a virtual address spa= ce for the kernel. The contiguous virtual kernel address mapped to underlying = EFI allocated pages that didn't have to be contiguous. On Itanium the physical memory map could be without addressable memory in the first 4GB even, so no amount of staging would be able to handle that. Hopefully the problem is much more trivial than all of that... --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Mon Feb 13 21:29:35 2017 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 7912DCDD95E for ; Mon, 13 Feb 2017 21:29:35 +0000 (UTC) (envelope-from carlopmart@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 37C52B11 for ; Mon, 13 Feb 2017 21:29:35 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: by mail-qt0-x236.google.com with SMTP id x49so95242805qtc.2 for ; Mon, 13 Feb 2017 13:29:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=MW73jpOVwC0t7T1NN2l//16XIwJOBHhAud2kJPzowYE=; b=A55rTI7qS9ydDYykmBwPAXfjovy78aQJuAugIWsQ5NIB3dY7AzkcAHn1hTWSKeIPIz OfHey5Efb1L7LL7qJLyIwRgOO5UqRliIUKFWuahJGrjEX9fwtEuAwErsaYWGTWptUON4 qgNgEZfHwmJvxItLJsgg6cBx76P0KIL0cQSYmODBvtd7jlgGXRb3n47A1jND1vgUkLX4 SueKqC//XvwLgj9EHm8waiuHRS94FeRJ+eYI5kpr1Xr60XmP5/Bl1yVzg1TnWBouP5KO M90g4Ao96wd1QVuuD8Qhwlipb2JrBn8nnEs5dXRkQgPflA7ZOT6F2zfAPqM5JR3dCtAH 23Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MW73jpOVwC0t7T1NN2l//16XIwJOBHhAud2kJPzowYE=; b=q+U5ayQD/U16SaFEMzSOdTTpI9MDefo9wWW3Ew1FMpCm26tQSB/xStdk8aa54GQslq hQZgcJKrX0WUYduRH0LO8zQhUngXDRPOdbVKTdmCLqnJVOdWRSWjiq76adNe09y7dGuU RzSznmI4ax3bvfkaEXHv1dDiGGgUI19nMwZazkQh271sAthi3JyFJiHBsA4qEPYw4iBo nj51Z3CCr9rDkNAyir3TxmoW8loxuV4oEG19zC0f9hFo+LqBTEGGt/xF7+7G2ceuK2un H5eRNt/t5MiUmB3SNys4ZXTKvVaA9/C4vKJirZaj71OrtHe7OIbsxQ87Ahw/0NaSorc5 xTaA== X-Gm-Message-State: AMke39m3pumbOs1MevIpGeOV7H4l9/NzegdweTQ25jxyyYmVCGizyARwRWDtPaC4RFMAbATw+4Cjqur/yxuZYQ== X-Received: by 10.200.54.40 with SMTP id m37mr22538460qtb.211.1487021374202; Mon, 13 Feb 2017 13:29:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.59.225 with HTTP; Mon, 13 Feb 2017 13:29:33 -0800 (PST) From: "C. L. Martinez" Date: Mon, 13 Feb 2017 22:29:33 +0100 Message-ID: Subject: Installing Freebsd guests under bhyve without using scripts 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: Mon, 13 Feb 2017 21:29:35 -0000 Hi all, What are the steps to install freebsd guests under bhyve without using iocage, vm-bhyve or vmrun.sh?? Do I need to use first bhyveload and after bhyve -A -c 1 -u, etc?? Thanks. From owner-freebsd-virtualization@freebsd.org Mon Feb 13 23:47:37 2017 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 280E4CDE6D4 for ; Mon, 13 Feb 2017 23:47:37 +0000 (UTC) (envelope-from akgupt3@gmail.com) Received: from mail-it0-x22b.google.com (mail-it0-x22b.google.com [IPv6:2607:f8b0:4001:c0b::22b]) (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 E395427B for ; Mon, 13 Feb 2017 23:47:36 +0000 (UTC) (envelope-from akgupt3@gmail.com) Received: by mail-it0-x22b.google.com with SMTP id d9so12154975itc.0 for ; Mon, 13 Feb 2017 15:47:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=1N84+8XsX39ytRlxs33Oo6sk7wNoHNV2H5DCSUCIn9c=; b=XROo7JYM44LZjMVTUefAaacU+Z6Oq57tU3HtR5p8ClM5pziY4jNAx/piRhE6jBYDd/ EUe6wd57GjbzRFK7PM/QSX2KZwHyTt7TKxrX9j4JE97FHXwGc7MKf3f/7PWqO56YAR2j +szFOUgJjVD6VA3NGXSEuJrwzONdnrIKD4D4v+s/jV/4CQ+hZhCvkofmAtjKghj5lhxQ iz15JThzlAHtdYCueLsv3OtdgahK/urCnD6tqf7V5Ebd82wLTKttYcJcDJIK3rpflKoO Azt6asb1o42gA6n0OgKbiZWaU9PtF4Jwi41DMqQHlswsg7QAFqb23qjc55dIhVwsEkjS lJDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=1N84+8XsX39ytRlxs33Oo6sk7wNoHNV2H5DCSUCIn9c=; b=FTPll3+FxZpXUDyjTCEK7vzWGAePEbTv7oRLd91RE1/s6eWbJpS8uQToCsfqxXLr48 Wdx3f0/skrlH51egTJ9gbXSGqBj9zZ7bp7g9ggJdjeYRom0moQDLWPCHCz76D/iNp7XX mybDNqiRBpGxKTwhXsnxjgxDzdR7C+zMxhz2gZ5DLI8ppTaYD3mwprz+qIFS+rWdW9jw 0j/i5hyrdFfpNrdZA4Oz1VyYIy88/mXYAi3DMLR0lMzqcd/A/CH0fLrR/2z4PNb9A9BQ gdjufM6jL2wWcJ6DUTUPDW1mAR+pARUBT43lb7ihN33fpkWTJ8r5BrRORwJX886Nk7q7 P6og== X-Gm-Message-State: AMke39m15AfDf9HdEqpuKaBm1e522HPyUqu2z2tCf5m+KZKhV6Ppzu44BwzqJHULExsqhA== X-Received: by 10.99.140.28 with SMTP id m28mr29944602pgd.174.1487029656301; Mon, 13 Feb 2017 15:47:36 -0800 (PST) Received: from [172.24.67.47] ([207.231.170.7]) by smtp.gmail.com with ESMTPSA id z127sm23037461pgz.29.2017.02.13.15.47.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Feb 2017 15:47:35 -0800 (PST) Subject: Re: Installing Freebsd guests under bhyve without using scripts To: "C. L. Martinez" , freebsd-virtualization@freebsd.org References: From: Anish Gupta Message-ID: Date: Mon, 13 Feb 2017 15:47:34 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: 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: Mon, 13 Feb 2017 23:47:37 -0000 Yes, you need bhyveload to load guest OS, setup hypervisor nested{EPT/NPT] page table etc, see vmrun.sh ${LOADER} -c ${console} -m ${memsize} -d ${BOOTDISK} ${loader_opt} \ ${vmname} LOADER=bhyveload and then use 'bhyve' to start and run guest/VM. ${FBSDRUN} -c ${cpus} -m ${memsize} ${apic_opt} -A -H -P \ -g ${gdbport} \ -s 0:0,hostbridge \ -s 1:0,lpc \ ${devargs} \ -l com1,${console} \ ${installer_opt} \ ${vmname} FBSDRUN=bhyve Of course ${memsize}, ${vmname} etc must match between bhyveload and bhyve. -Anish On 2/13/17 1:29 PM, C. L. Martinez wrote: > Hi all, > > What are the steps to install freebsd guests under bhyve without using > iocage, vm-bhyve or vmrun.sh?? > > Do I need to use first bhyveload and after bhyve -A -c 1 -u, etc?? > > Thanks. > _______________________________________________ > 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" From owner-freebsd-virtualization@freebsd.org Tue Feb 14 04:34:31 2017 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 06F3FCDD572 for ; Tue, 14 Feb 2017 04:34:31 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Received: from doctor.nl2k.ab.ca (doctor.nl2k.ab.ca [204.209.81.1]) (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 E60FC1225 for ; Tue, 14 Feb 2017 04:34:30 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Received: from doctor by doctor.nl2k.ab.ca with local (Exim 4.89_RC5) (envelope-from ) id 1cdUnV-000BBF-5J for freebsd-virtualization@freebsd.org; Mon, 13 Feb 2017 21:33:01 -0700 Date: Mon, 13 Feb 2017 21:33:01 -0700 From: The Doctor To: freebsd-virtualization@freebsd.org Subject: Bhyve / Windows Server 2016 Issue Message-ID: <20170214043301.GA33578@doctor.nl2k.ab.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.7.2 (2016-11-26) 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, 14 Feb 2017 04:34:31 -0000 Has anyone tried to RPC into a Virtual Windows 2016 server box in FreeBSD Successfully? -- Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist rising! http://www.fullyfollow.me/rootnl2k Look at Psalms 14 and 53 on Atheism God is dead! Yahweh lives! Jesus his only begotten Son is the Risen Saviour!! From owner-freebsd-virtualization@freebsd.org Tue Feb 14 08:39:58 2017 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 24B23CDF669 for ; Tue, 14 Feb 2017 08:39:58 +0000 (UTC) (envelope-from jtubnor@gmail.com) Received: from mail-ua0-x235.google.com (mail-ua0-x235.google.com [IPv6:2607:f8b0:400c:c08::235]) (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 D25261ECB for ; Tue, 14 Feb 2017 08:39:57 +0000 (UTC) (envelope-from jtubnor@gmail.com) Received: by mail-ua0-x235.google.com with SMTP id 35so81721211uak.1 for ; Tue, 14 Feb 2017 00:39:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=kSEhmwY5YEaIEVMULOTiV3O/o4Fo7ImSZ/2C6qcCYds=; b=HbiwBe3zv8qRdlp2YiCocUBTL8wjnOdzJ79Px/6DI03qTMraZMnn96a5XXKYtTcwaa 3MHmLaOFeLt0rwAXnDBCvHPe8uee7zIaKef+SLYpne/EpBGfJPUxf7+SDtG/m8WCSVYW SQzzzIsg2+tRc3ErwmRC9z5Aq9cbbZawzGtyPUZHLrE1AF2KqGgrEAV1LWpkZgAg/wK5 zwuWCE+ftGhGc0lCwJYEN+kz41tD7B0b37kDGa2BqWh0tPQPVmsEPNd2hjCdKSPJ//Li AewLO6IQgYCepCjcas5gtNdLrCMWgu7xnQUjyu/s/+rua2hPAftXLP8S7yvgIrj3Zj/U HzVg== 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:to:cc; bh=kSEhmwY5YEaIEVMULOTiV3O/o4Fo7ImSZ/2C6qcCYds=; b=KNQpJjhDpBzHbTtZNk8bMoOC7l6VCipxcd7w/3RTTc7KWCBN9CcVKPP7RT/Jdzh3GV kKzI24kyZeemvk6hexFUReO8kQtysPi9Irr2fv7ds0i6pX4S3sQ2kNSA1VwvyjpD+YtQ BHr3A3TfsUWNTmhKLlkjX3wnMGR4lSBdK7dZa2lIAiKewVaPMe4GWx5irqPP4QMgXnTJ pGgewqu+3Bw0JWYjmzeypV+0RcpnaDyIbrQPJ4dk88yFgwJ3p/HQK5v94Rb/B00fue4D av5keF5tW+XZkZOuqdERG/ykoY095iyr2u4CeczQ+Z5XUjvnl5OdzI8zeFpzdZM6fMEe l+7A== X-Gm-Message-State: AMke39lEwPgUafdnXQ12ZKwAzjXvAMwzAdHZ+aQOCrx0nBYp0z8pqGvJgxIC2C2XbwGMFY9QcjJ03CYT8wTdJQ== X-Received: by 10.176.84.146 with SMTP id p18mr14138028uaa.107.1487061597033; Tue, 14 Feb 2017 00:39:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.71.68 with HTTP; Tue, 14 Feb 2017 00:39:56 -0800 (PST) Received: by 10.176.71.68 with HTTP; Tue, 14 Feb 2017 00:39:56 -0800 (PST) In-Reply-To: <20170214043301.GA33578@doctor.nl2k.ab.ca> References: <20170214043301.GA33578@doctor.nl2k.ab.ca> From: Jason Tubnor Date: Tue, 14 Feb 2017 19:39:56 +1100 Message-ID: Subject: Re: Bhyve / Windows Server 2016 Issue To: The Doctor 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: Tue, 14 Feb 2017 08:39:58 -0000 On 14 Feb 2017 3:33 p.m., "The Doctor" wrote: Has anyone tried to RPC into a Virtual Windows 2016 server box in FreeBSD Successfully? I've had no problems with rdp into w2k16, w2k12r2 or win10. Works like bare metal, even tunnelled over SSH. From owner-freebsd-virtualization@freebsd.org Tue Feb 14 10:19:42 2017 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 9E34ECDEC29 for ; Tue, 14 Feb 2017 10:19:42 +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 8DA35117B for ; Tue, 14 Feb 2017 10:19:42 +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 v1EAJdIJ066791 for ; Tue, 14 Feb 2017 10:19:42 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk Date: Tue, 14 Feb 2017 10:19:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: decui@microsoft.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 14 Feb 2017 10:19:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211746 --- Comment #7 from Dexuan Cui --- (In reply to Marcel Moolenaar from comment #6) I'll be attaching the memory map before and after=20 efi_copy_init() -> BS->AllocatePages (..., 48MB, ...) BTW, in my test, STAGE_PAGES <=3D 45MB is OK, and >=3D46MB will cause the c= rash. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Tue Feb 14 10:21:53 2017 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 54670CDEE5E for ; Tue, 14 Feb 2017 10:21:53 +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 43BD61508 for ; Tue, 14 Feb 2017 10:21:53 +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 v1EALqOL076116 for ; Tue, 14 Feb 2017 10:21:53 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk Date: Tue, 14 Feb 2017 10:21:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: decui@microsoft.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 14 Feb 2017 10:21:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211746 --- Comment #8 from Dexuan Cui --- Created attachment 179977 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179977&action= =3Dedit memory map before vs. after allocating 48MB memory --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Tue Feb 14 11:07:25 2017 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 E74E6CDF04B for ; Tue, 14 Feb 2017 11:07:25 +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 BCB48130F for ; Tue, 14 Feb 2017 11:07:25 +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 v1EB7O7E098699 for ; Tue, 14 Feb 2017 11:07:25 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk Date: Tue, 14 Feb 2017 11:07:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: decui@microsoft.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 14 Feb 2017 11:07:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211746 --- Comment #9 from Dexuan Cui --- (In reply to Marcel Moolenaar from comment #6) Differences between the maps are: 1) In the first red rectangle, we can see 48MB memory (0x3000 pages) is allocated from ConvventionalMemory to LoaderData and this is the expected correct behavior. 2) In the second red rectangle, we can see 4 pages are allocated, probably = by the firmmare itself. I guess we can ignore this. 3) No other difference except the above. So, Hyper-V's AllocatePages should be correct. :-) But there is indeed some BootServicesData memory starting at 0x2f73000 with 0x118d pages (i.e. starting at 47.449 MB with the length =3D=3D 17.55MB)!!! "elf64_exec() -> trampoline() -> efi_copy_finish -> *dst++ =3D *src++;" tri= es to overwrite the memory between 2MB and 2+48=3D50MB, and we get the crash -- I= guess Hyper-V has some mechanism to prevent the guest from writing into that BootServideData memory block. With STAGE_PAGES <=3D 45MB, we don't touch that BootServiceData memory bloc= k due to the fact 2+45 < 47.449 and hence we don't get the crash. Now, it looks to me this is a bug of FreeBSD? It looks the hardcoded macro for the 2MB kernel base is LOADER_ADDRESS. I g= uess it's not easy to make it a runtime dynamic value, but we should have a long term plan to fix this. And can we have a short term workaround for Hyper-V? e.g. making STAGE_PAGES a dynamic variable and using 45MB if the loader detecets the underlying hypervisor is Hyper-V??? :-) Thanks Marcel for the effective help and let's brainstorm. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Tue Feb 14 11:57:05 2017 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 4CD7ECDFF43 for ; Tue, 14 Feb 2017 11:57:05 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (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 C7EF71CFD for ; Tue, 14 Feb 2017 11:57:04 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: by mail-wm0-x229.google.com with SMTP id v186so15862926wmd.0 for ; Tue, 14 Feb 2017 03:57:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=TWrrzzej7wMRWx+A2mDfFh9QRcF2SGKFbu8sklZ9Lro=; b=kkHdb3FWsbcxn+G4d7sNsZ7XtWakyEVhqsDMg1tPFl+39Y1nlJ8Ye0900QEsRKkoxW a81O08+9DW8zbSA//ipqNNlHlT5eQpF4q1qkQ7ROQcE2jHCAqDOAxI8dKIATezN2au4g bwQPB5EMtQ/jWdcCnv2HBuuo4pbtgm82mr19Im6QtIBRNYjNZyKVtglMHLpOekXEkJvM iMh7I8Ke8KJROThec8OF98L/FAJdGiGoKpOC/i5IYktD3RNWjqcJsWjbw+3MECp/FAEH su97a+2iyd6uTl6HFGCDPDkV+k4uIXw3jxN74oLR1EQRPWVLkl+MYZRjc+1biBC2vgqS NmOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TWrrzzej7wMRWx+A2mDfFh9QRcF2SGKFbu8sklZ9Lro=; b=McEBix34ZoSI++oTlKqe5Vz7yu00RGQPPgriuJOr8R050/f30q3ARB3WwXpxf5ykll RQ0N8CLGd7Kb7+zvNLrejqZTKAGk+a+tVqgH1pSm0G2B14D/oozJeZc09HJI8fUNyUHL Z9LT+bk1dTEp4gG+CjB63xHZri1khMJTL+xo0JRsO0CKT1VLbGVgb+ax6G+/96kF6Ivh i0Heym9h/QN5R27/orK+xOpVQfFMpjS70mfKEooKHv+rDoTVVqC0uPfyTXzK4tQMZjUf kSh4h/M9UaoyAxvAqQ0p3lvv/rP0Q6+L+ZIFHskw0zjP435vrmfV2taY4i8J/CtYUEtw uVwQ== X-Gm-Message-State: AMke39ksLOgBhfBZnsdyzDavha9WY9QdSkWmZhpVirPz568pqqh0ts0AyE+K5MuSGtPAlw== X-Received: by 10.28.92.193 with SMTP id q184mr2999976wmb.139.1487073423134; Tue, 14 Feb 2017 03:57:03 -0800 (PST) Received: from localhost (231.red-79-150-68.dynamicip.rima-tde.net. [79.150.68.231]) by smtp.gmail.com with ESMTPSA id o2sm491777wra.42.2017.02.14.03.57.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Feb 2017 03:57:02 -0800 (PST) Date: Tue, 14 Feb 2017 11:57:08 +0000 From: "C. L. Martinez" To: freebsd-virtualization@freebsd.org Subject: Re: tap interfaces disappears after bhyve guests shutdowns Message-ID: <20170214115708.pcw2poookycue3kk@scotland.uxdom.org> References: <20170213120938.hr3zu7flnm33v3zn@scotland.uxdom.org> <58A1A8A3.3030603@quip.cz> <8700dd14-cf15-20b9-38a6-e4181e4928ee@dann.ro> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <8700dd14-cf15-20b9-38a6-e4181e4928ee@dann.ro> User-Agent: NeoMutt/20170113 (1.7.2) 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, 14 Feb 2017 11:57:05 -0000 On Mon, Feb 13, 2017 at 02:02:48PM +0100, Daniel Niculescu wrote: > > > On 02/13/17 13:37, Miroslav Lachman wrote: > > C. L. Martinez wrote on 2017/02/13 13:09: > > > > > Why when a bhyve guest shutdowns or reboot tap interfaces goes > > > down and lost IP assigned address?. I need to use same tap interface > > > for several guests and assign an IP to this tap interface to act as > > > a router for these guests. > > > > IP address is set on the guest, so as long as you have the network set up > the IP address will be persistent. > What you need is a bridge to which you add all your tap interfaces. > > Set the kernel state as advised by Martinez and make sure you have it also > in /etc/sysctl.conf: > #sysctl net.link.tap.up_on_open=1 > #echo "net.link.tap.up_on_open=1" >> /etc/sysctl.conf > > Create a bridge interface: > #ifconfig bridge0 create > > Add your host interface if you want external connectivity for your guests: > #ifconfig bridge0 addm em0 > > Create the tap interfaces for the guests: > #ifconfig tap0 create > #ifconfig tap1 create > > Add them to the bridge: > #ifconfig bridge0 addm tap0 addm tap1 > > After booting the guests, they will be both bridged with your physical > interface em0 (replace em0 with your actual interface): > > #ifconfig bridge0 > bridge0: flags=8843 metric 0 mtu > 1500 > description: vm-local > ether 02:ed:0d:ca:74:00 > nd6 options=1 > groups: bridge > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > member: tap1 flags=143 > ifmaxaddr 0 port 5 priority 128 path cost 2000000 > member: tap0 flags=143 > ifmaxaddr 0 port 4 priority 128 path cost 2000000 > member: em0 flags=143 > ifmaxaddr 0 port 1 priority 128 path cost 20000 > > Perhaps you could use an utility to manage the VMs, like vm-bhyve, iohyve, > etc. > > Thanks Daniel. I have tried what you say, but ping doesn't works between host and guest. If I put an ip to the bridge works ok, but not when I assign an ip to tap interface. Any idea why?? -- Greetings, C. L. Martinez From owner-freebsd-virtualization@freebsd.org Tue Feb 14 12:30:03 2017 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 85FA2CDC762 for ; Tue, 14 Feb 2017 12:30:03 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (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 4AD9612B3 for ; Tue, 14 Feb 2017 12:30:02 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id C4C91284D3; Tue, 14 Feb 2017 13:29:58 +0100 (CET) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 1FC39284A1; Tue, 14 Feb 2017 13:29:58 +0100 (CET) Subject: Re: tap interfaces disappears after bhyve guests shutdowns To: "C. L. Martinez" , freebsd-virtualization@freebsd.org References: <20170213120938.hr3zu7flnm33v3zn@scotland.uxdom.org> <58A1A8A3.3030603@quip.cz> <8700dd14-cf15-20b9-38a6-e4181e4928ee@dann.ro> <20170214115708.pcw2poookycue3kk@scotland.uxdom.org> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <58A2F845.5090603@quip.cz> Date: Tue, 14 Feb 2017 13:29:57 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: <20170214115708.pcw2poookycue3kk@scotland.uxdom.org> Content-Type: text/plain; charset=ISO-8859-1; 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, 14 Feb 2017 12:30:03 -0000 C. L. Martinez wrote on 2017/02/14 12:57: > On Mon, Feb 13, 2017 at 02:02:48PM +0100, Daniel Niculescu wrote: > > Thanks Daniel. I have tried what you say, but ping doesn't works between host and guest. If I put an ip to the bridge works ok, but not when I assign an ip to tap interface. > > Any idea why?? Are you using IPs from the same subnet on host and in a guests? What IP did you assign to tap / bridge? Miroslav Lachman From owner-freebsd-virtualization@freebsd.org Tue Feb 14 13:26:46 2017 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 DE94FCDDF6F for ; Tue, 14 Feb 2017 13:26:46 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) (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 7229114C7 for ; Tue, 14 Feb 2017 13:26:46 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: by mail-wr0-x243.google.com with SMTP id i10so27660362wrb.0 for ; Tue, 14 Feb 2017 05:26:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=JzEIJG43piZQW72pjk3zTBjICPmn8eaGDaZNbCul2C8=; b=oYSvoVdhhbglvK5B2sxd/mre9eKv8ctM1nf7jYe9sS4nQtA6nO6QZjs32EMiaTIrsW nSicVcTvGrkY/9Bw5i48t73ERlAVX4ycqFsmBbZ1UPXzaNBQkYYac0ktlyedhaWWk7LH JvJW/ZwB1b1e1GV4cZaMfR6xBWXk98MuN0FLWcAbOVuaT3kXTYlsmY56oFgC67mXAAR7 e1pH55iXrCfGJGWFiYDbNFp4Z6251TMHHQ8sttPwtpwEqRRcPAnBosHR+mF/AI9/F2Kh N7K7m5aV4Dp6HyPZII5MXdjmUoB91ordFjtkXzzAa4CMrDrQbeuE3QJV+IWJ+Dt63Tgf Di1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=JzEIJG43piZQW72pjk3zTBjICPmn8eaGDaZNbCul2C8=; b=AFrqUMZ/51Io2BWX4Lzl/VWYCncz0MaI65wwxysf7bsFneQVH0DiuAwe+9da3gsLt6 g4YTdVZ7mOx5wSS1IyHHg7KXn+xwA52cdSfkaI+uwUb/O/Nfd3nA1A0LC4JLkHTYtI14 dLMyCw7JRg4yUYdVZpnQPDgAKrxcSjwwiMeI4Yt7/3WqwQSJWvBEcVNEbyv+bs1Q8eCz j3V9/+u4EypEFxFGH0+aqQwea10wUFRNC/UAMnx2Dz177xgnRAl7hPmrDdhhsie1UwdS h09nDZynz3UmwCSZW7h9xMcKPmDGYZyEr1gigKG4AoCj7stmfz/+H3+7xH5/1I5wFmxV u8ZA== X-Gm-Message-State: AMke39k8wWa+w3BphqrwA68ypzkZ/uwXa/k7hSrN7qTLior3+/Vomf2DIZgAFpsINQRoMQ== X-Received: by 10.223.176.142 with SMTP id i14mr28490714wra.4.1487078804578; Tue, 14 Feb 2017 05:26:44 -0800 (PST) Received: from localhost (231.red-79-150-68.dynamicip.rima-tde.net. [79.150.68.231]) by smtp.gmail.com with ESMTPSA id a47sm374665wrc.48.2017.02.14.05.26.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Feb 2017 05:26:44 -0800 (PST) Date: Tue, 14 Feb 2017 13:26:49 +0000 From: "C. L. Martinez" To: freebsd-virtualization@freebsd.org Subject: Re: tap interfaces disappears after bhyve guests shutdowns Message-ID: <20170214132649.h3xwbcfrtjxk74si@scotland.uxdom.org> References: <20170213120938.hr3zu7flnm33v3zn@scotland.uxdom.org> <58A1A8A3.3030603@quip.cz> <8700dd14-cf15-20b9-38a6-e4181e4928ee@dann.ro> <20170214115708.pcw2poookycue3kk@scotland.uxdom.org> <58A2F845.5090603@quip.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <58A2F845.5090603@quip.cz> User-Agent: NeoMutt/20170113 (1.7.2) 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, 14 Feb 2017 13:26:47 -0000 On Tue, Feb 14, 2017 at 01:29:57PM +0100, Miroslav Lachman wrote: > C. L. Martinez wrote on 2017/02/14 12:57: > > On Mon, Feb 13, 2017 at 02:02:48PM +0100, Daniel Niculescu wrote: > > > > > Thanks Daniel. I have tried what you say, but ping doesn't works between host and guest. If I put an ip to the bridge works ok, but not when I assign an ip to tap interface. > > > > Any idea why?? > > Are you using IPs from the same subnet on host and in a guests? What IP did > you assign to tap / bridge? > > Miroslav Lachman Yes. For host: 172.22.55.1/24 and for guest 172.22.55.29/24. When I assign IP 172.22.55.1 to the bridge on host side, host and guest can communicate. But when I assign 172.22.55.1 to a tap interface on the host and create a bridge with host's tap interface and guest's tap interface, there is no comms between them ... And I don't understand why ... -- Greetings, C. L. Martinez From owner-freebsd-virtualization@freebsd.org Tue Feb 14 13:41:55 2017 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 906ABCDE53F for ; Tue, 14 Feb 2017 13:41:55 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c: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 33CA91F47 for ; Tue, 14 Feb 2017 13:41:55 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: by mail-wm0-x234.google.com with SMTP id c85so18058054wmi.1 for ; Tue, 14 Feb 2017 05:41:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=4rgz2qK7HFV8ImoDSJUBXkPXAaPvgDnzCpwHrLHYKqY=; b=CBnIzhAyC5SIbIW3h5Fvd/8Bvked4f+yddSgibgc9tXbs0lmeFpy5LqhPm1vtC5jh5 +wGcxfmzt+8+c+/raKvJFj8/Jv7ZiOEFwGMgPjuUs+pdqRz3ciB8L1/ydFBXNTD+TzBi 4FJxvarRnH0Kh8SG80ny+E46Crn2DlOIwCB/dGjCnY+bKN1Hl+IkdenhFznTloeai59l ZdgDKT/To6yJFpDzcUd4l2M+M8M3eAIq5ApL5KbB27Su0Ga/VB/FECKJ61zmd7n60rXv V1h9zTzqYfT/1pc+LOxicUWz7/xboRA6w+Psmltag56tj8Csp0MBmeaSmY0ga8uurLwF KqNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=4rgz2qK7HFV8ImoDSJUBXkPXAaPvgDnzCpwHrLHYKqY=; b=PWAOlPOoqqaWnxlawA7OJMthK/rMU+2UxJ9s+5KeDkEgVU9DavKbW3LAu46+2cGqQO dfe0nB/NQ9YV4et9OLG3khmfAauiNYUtsMkgUern/k/DvZAvt2838sRa0eJ/eg0N6+Sx p3kx0KWR6SE8MbHPTlUTR99gtqUbhibI2zIYMZhI/la2tHmwVh76FGbROKZNqKzM7pgP gFmz8AQAG2iXvZryJBYwxCb7VjqQZuC96yJvNB3jb43/++xJK1q8Q3VHj9LBkMBhMig2 kwhUp7+voKGIoR9FqGD5XGktAeIpAjyHbvWIyTdoeGaxaWPmF1VD12lDhGaMRZOOgKyb VwTQ== X-Gm-Message-State: AMke39mshuB5nz9VefP49MhrI7BauuxyNFOBDxtkT8O6unewL/ubORun9aUUhfG26VEXUA== X-Received: by 10.28.16.70 with SMTP id 67mr3556835wmq.142.1487079713444; Tue, 14 Feb 2017 05:41:53 -0800 (PST) Received: from localhost (231.red-79-150-68.dynamicip.rima-tde.net. [79.150.68.231]) by smtp.gmail.com with ESMTPSA id w126sm3127300wmw.0.2017.02.14.05.41.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Feb 2017 05:41:53 -0800 (PST) Date: Tue, 14 Feb 2017 13:41:58 +0000 From: "C. L. Martinez" To: freebsd-virtualization@freebsd.org Subject: Re: tap interfaces disappears after bhyve guests shutdowns Message-ID: <20170214134158.vmczv6pramkscxhd@scotland.uxdom.org> References: <20170213120938.hr3zu7flnm33v3zn@scotland.uxdom.org> <58A1A8A3.3030603@quip.cz> <8700dd14-cf15-20b9-38a6-e4181e4928ee@dann.ro> <20170214115708.pcw2poookycue3kk@scotland.uxdom.org> <58A2F845.5090603@quip.cz> <20170214132649.h3xwbcfrtjxk74si@scotland.uxdom.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170214132649.h3xwbcfrtjxk74si@scotland.uxdom.org> User-Agent: NeoMutt/20170113 (1.7.2) 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, 14 Feb 2017 13:41:55 -0000 On Tue, Feb 14, 2017 at 01:26:49PM +0000, C. L. Martinez wrote: > On Tue, Feb 14, 2017 at 01:29:57PM +0100, Miroslav Lachman wrote: > > C. L. Martinez wrote on 2017/02/14 12:57: > > > On Mon, Feb 13, 2017 at 02:02:48PM +0100, Daniel Niculescu wrote: > > > > > > > > Thanks Daniel. I have tried what you say, but ping doesn't works between host and guest. If I put an ip to the bridge works ok, but not when I assign an ip to tap interface. > > > > > > Any idea why?? > > > > Are you using IPs from the same subnet on host and in a guests? What IP did > > you assign to tap / bridge? > > > > Miroslav Lachman > > Yes. For host: 172.22.55.1/24 and for guest 172.22.55.29/24. When I assign IP 172.22.55.1 to the bridge on host side, host and guest can communicate. But when I assign 172.22.55.1 to a tap interface on the host and create a bridge with host's tap interface and guest's tap interface, there is no comms between them ... And I don't understand why ... > > > -- > Greetings, > C. L. Martinez Ok, I think I have found the problem (but not the solution :( ) ... prodif: flags=8843 metric 0 mtu 1500 ether 02:bc:f9:66:98:01 nd6 options=9 groups: bridge id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: tap11 flags=143 ifmaxaddr 0 port 7 priority 128 path cost 2000000 member: tap10 flags=143 ifmaxaddr 0 port 6 priority 128 path cost 2000000 pubif: flags=8843 metric 0 mtu 1500 ether 02:bc:f9:66:98:02 nd6 options=9 groups: bridge id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: tap21 flags=143 ifmaxaddr 0 port 9 priority 128 path cost 2000000 member: tap20 flags=143 ifmaxaddr 0 port 8 priority 128 path cost 2000000 tap10: flags=8943 metric 0 mtu 1500 options=80000 ether 00:bd:1d:15:f7:0a nd6 options=29 media: Ethernet autoselect status: active groups: tap Opened by PID 79946 tap11: flags=8943 metric 0 mtu 1500 options=80000 ether 00:bd:24:15:f7:0b inet 172.22.55.1 netmask 0xffffffe0 broadcast 172.22.55.31 nd6 options=29 media: Ethernet autoselect status: no carrier groups: tap tap20: flags=8943 metric 0 mtu 1500 options=80000 ether 00:bd:2b:15:f7:14 nd6 options=29 media: Ethernet autoselect status: active groups: tap Opened by PID 79946 tap21: flags=8943 metric 0 mtu 1500 options=80000 ether 00:bd:31:15:f7:15 inet 172.30.77.1 netmask 0xfffffff8 broadcast 172.30.77.7 nd6 options=29 media: Ethernet autoselect status: no carrier groups: tap .. As you can see with tap21 and tap11 (tap interfaces assigned to host) status is: no carrier ... ¿¿¿¿¿???? Why?? Both are assigned to bridges ... -- Greetings, C. L. Martinez From owner-freebsd-virtualization@freebsd.org Tue Feb 14 14:47:34 2017 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 0AF9DCDF092 for ; Tue, 14 Feb 2017 14:47:34 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Received: from doctor.nl2k.ab.ca (doctor.nl2k.ab.ca [204.209.81.1]) (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 E7C891DA8 for ; Tue, 14 Feb 2017 14:47:33 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Received: from doctor by doctor.nl2k.ab.ca with local (Exim 4.89_RC5) (envelope-from ) id 1cdeNe-0005HU-38; Tue, 14 Feb 2017 07:46:58 -0700 Date: Tue, 14 Feb 2017 07:46:58 -0700 From: The Doctor To: Jason Tubnor Cc: freebsd-virtualization@freebsd.org Subject: Re: Bhyve / Windows Server 2016 Issue Message-ID: <20170214144658.GA18325@doctor.nl2k.ab.ca> References: <20170214043301.GA33578@doctor.nl2k.ab.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) 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, 14 Feb 2017 14:47:34 -0000 On Tue, Feb 14, 2017 at 07:39:56PM +1100, Jason Tubnor wrote: > On 14 Feb 2017 3:33 p.m., "The Doctor" wrote: > > Has anyone tried to RPC into a Virtual Windows 2016 server box > in FreeBSD Successfully? > > > I've had no problems with rdp into w2k16, w2k12r2 or win10. Works like bare > metal, even tunnelled over SSH. The reason for asking is as follows: Using direct method in X-Windows And the Correct temprament of the keyboard, I can log into my virtual W2k16 boxes , but remotely, I get an error. Even using VNC the Password seems not to work. Wondering if this was w2k16/bhyve realted. Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist rising! http://www.fullyfollow.me/rootnl2k Look at Psalms 14 and 53 on Atheism God is dead! Yahweh lives! Jesus his only begotten Son is the Risen Saviour!! From owner-freebsd-virtualization@freebsd.org Tue Feb 14 16:56:06 2017 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 9D81CCDF9F6 for ; Tue, 14 Feb 2017 16:56:06 +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 819FE1CFC for ; Tue, 14 Feb 2017 16:56:06 +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 v1EGu3pB031461 for ; Tue, 14 Feb 2017 16:56:06 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk Date: Tue, 14 Feb 2017 16:56:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marcel@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 14 Feb 2017 16:56:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211746 --- Comment #10 from Marcel Moolenaar --- I just realized that efi_copy_finish() is called via trampoline(). I presume that this means that it runs with the temporary mapping that was created in elf64_exec(). We only map the 1GB of physical memory (using 2MB pages). This means that the EFI allocation must be placed below 0x40000000. However, it = is placed at 0xf37cb000. Maybe the problem is that for smaller allocations, EFI assigns low memory (= i.e. under 1GB), but for larger allocations it favors high memory? To test this theory, change efi_copy_init() and instead of passing AllocateAnyPages as the first argument, pass AllocateMaxAddress as the first argument and put a maximum address of 1GB in the staging variable before the call to AllocatePages (see also elf64_exec). Either the allocation fails, or we're guaranteed to have memory below 1GB. HTH, --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Tue Feb 14 18:31:45 2017 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 E9163CDEC69 for ; Tue, 14 Feb 2017 18:31:45 +0000 (UTC) (envelope-from jtubnor@gmail.com) Received: from mail-vk0-x22e.google.com (mail-vk0-x22e.google.com [IPv6:2607:f8b0:400c:c05::22e]) (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 A19DC1B3E for ; Tue, 14 Feb 2017 18:31:45 +0000 (UTC) (envelope-from jtubnor@gmail.com) Received: by mail-vk0-x22e.google.com with SMTP id r136so85645018vke.1 for ; Tue, 14 Feb 2017 10:31:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=sDs7IDwxlOGvQbMS3b7mZnFdOUKL3UKuKAPosy4ing4=; b=RrUaSUnysRF07+P7J39GnKD5WOrgdgVqdcbn0gWawkvrilXa1dmonTnbavL6iCDCTB ldYXF7acOdEMTxksg0Rvt/Ti2u3wBWGvLK4tv/UsB5QgTm6bCTzgYAbZPFlsrZ5vLsEQ 8rwrn7hcs+EaxZ9Po+ngDz16i8dp01Vqyxe+Kb6CmLiIYzAiM20un/JE3nY5OrSkqSST S4391pROyuUSK5vMltPTMtbJpVAP1Y/77K+fRr4kDp+/Xae6WdhjWlGCR8ihq/sPuBQk jRBfMK1IzHFK8t3HMkVKKdioDDvjLtTC/D/lmbmgIZEIBR01yInMpAGhZEZ4+PpZeeOJ 1nQw== 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:to:cc; bh=sDs7IDwxlOGvQbMS3b7mZnFdOUKL3UKuKAPosy4ing4=; b=Dr1Kk0p6EBqG9wqpbr92O6eZcfYSxMYHrI5seJCw/K0Phi6TuMcvNOUBF6ZyMKRgsa KxLak6TLLFAKZLUqAv0QMwXrbpaeUWXa1f/5KB5gp2+8y343DHkXJcrb/v7J7wn8y6Vl 7hmh/ifPXcEm25w7xWnAK2g2LbMpga4KzR62Ju2pSq5S4CPG5hI3YYC19m7qxPSXAtN6 cbXNvBpvnlezC1sjYJG0EpGc0rWiyeD6QohYmmrGBK/+DHwGmljuul9m/ZZ0fmmFhZ0F Y2uzYJtXx3jNPlTB80/7C/ZTwDQreU6bMc4njxqn1j4RRCqfPZEIKH/+r7pjxicMAy5C GRIg== X-Gm-Message-State: AMke39mo7V+etz3FbJHMkfAllttmXkayulWPK5Pl0LfwEbFw2G/duGAm/GGdJsfBZxni0Z2r62fWYfM2IW0UAQ== X-Received: by 10.31.231.193 with SMTP id e184mr12477242vkh.16.1487097104794; Tue, 14 Feb 2017 10:31:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.71.68 with HTTP; Tue, 14 Feb 2017 10:31:44 -0800 (PST) Received: by 10.176.71.68 with HTTP; Tue, 14 Feb 2017 10:31:44 -0800 (PST) In-Reply-To: <20170214144658.GA18325@doctor.nl2k.ab.ca> References: <20170214043301.GA33578@doctor.nl2k.ab.ca> <20170214144658.GA18325@doctor.nl2k.ab.ca> From: Jason Tubnor Date: Wed, 15 Feb 2017 05:31:44 +1100 Message-ID: Subject: Re: Bhyve / Windows Server 2016 Issue To: The Doctor 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: Tue, 14 Feb 2017 18:31:46 -0000 On 15 Feb 2017 1:47 a.m., "The Doctor" wrote: I can log into my virtual W2k16 boxes , but remotely, I get an error. Even using VNC the Password seems not to work. Wondering if this was w2k16/bhyve realted. Sounds like a Windows config error. Mine are vanilla installs via VNC. Win10 was the only one I needed to turn on remote access via rdp. From owner-freebsd-virtualization@freebsd.org Wed Feb 15 05:18:47 2017 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 97B13CDFBEA for ; Wed, 15 Feb 2017 05:18:47 +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 86F391FC5 for ; Wed, 15 Feb 2017 05:18:47 +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 v1F5Ig8a064644 for ; Wed, 15 Feb 2017 05:18:47 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk Date: Wed, 15 Feb 2017 05:18:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: decui@microsoft.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 15 Feb 2017 05:18:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211746 Dexuan Cui changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kib@FreeBSD.org --- Comment #11 from Dexuan Cui --- (In reply to Dexuan Cui from comment #9) In efi_copy_finish(), I added the below new line=20 while (src < last) { + printf("trying to write: %lx(%p) to %lx(%p)\n", *src, src, *dst, dst); *dst++ =3D *src++; } and got the below log ... trying to write: 0(0xf653dfb0) to 0(0x2f72fb0) trying to write: 0(0xf653dfb8) to 0(0x2f72fb8) trying to write: 0(0xf653dfc0) to 0(0x2f72fc0) trying to write: 0(0xf653dfc8) to 0(0x2f72fc8) trying to write: 0(0xf653dfd0) to 0(0x2f72fd0) trying to write: 0(0xf653dfd8) to 0(0x2f72fd8) trying to write: 0(0xf653dfe0) to 0(0x2f72fe0) trying to write: 0(0xf653dfe8) to 0(0x2f72fe8) trying to write: 0(0xf653dff0) to 0(0x2f72ff0) trying to write: 0(0xf653dff8) to 0(0x2f72ff8) trying to write: 0(0xf653e000) to 2f74023(0x2f73000) This means the crash happened when dst=3D=3D0x2f73000, i.e. the first 8-byt= es of the BootServicesData. I suspect Hyper-V has a mechanism to mark the range of memory as read-only. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Wed Feb 15 05:37:42 2017 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 E994BCDFFC5 for ; Wed, 15 Feb 2017 05:37:42 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Received: from doctor.nl2k.ab.ca (doctor.nl2k.ab.ca [204.209.81.1]) (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 D179391F for ; Wed, 15 Feb 2017 05:37:42 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Received: from doctor by doctor.nl2k.ab.ca with local (Exim 4.89_RC5) (envelope-from ) id 1cdsHT-0004ic-7E; Tue, 14 Feb 2017 22:37:31 -0700 Date: Tue, 14 Feb 2017 22:37:31 -0700 From: The Doctor To: Jason Tubnor Cc: freebsd-virtualization@freebsd.org Subject: Re: Bhyve / Windows Server 2016 Issue Message-ID: <20170215053731.GA17866@doctor.nl2k.ab.ca> References: <20170214043301.GA33578@doctor.nl2k.ab.ca> <20170214144658.GA18325@doctor.nl2k.ab.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) 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, 15 Feb 2017 05:37:43 -0000 On Wed, Feb 15, 2017 at 05:31:44AM +1100, Jason Tubnor wrote: > On 15 Feb 2017 1:47 a.m., "The Doctor" wrote: > > > > I can log into my virtual W2k16 boxes > , but remotely, I get an error. > > Even using VNC the Password seems not to work. > > Wondering if this was w2k16/bhyve realted. > > > > Sounds like a Windows config error. Mine are vanilla installs via VNC. > Win10 was the only one I needed to turn on remote access via rdp. Well it it interesting that in either VNC or RPC the password is 'incorrect'. Message I get in the Windows logs are Event ... Microsoft Windows security auditing. Details TargetUserName (user) Status 0xc000006d FailureReason %%2313 SubStatus 0xc000006a LogonType 3 LogonProcessName NtLmSSp AuthenticationPackageNAme NTLM -- Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist rising! http://www.fullyfollow.me/rootnl2k Look at Psalms 14 and 53 on Atheism God is dead! Yahweh lives! Jesus his only begotten Son is the Risen Saviour!! From owner-freebsd-virtualization@freebsd.org Wed Feb 15 05:49:41 2017 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 D7EB8CE018D for ; Wed, 15 Feb 2017 05:49:41 +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 C759ED83 for ; Wed, 15 Feb 2017 05:49:41 +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 v1F5neMn037076 for ; Wed, 15 Feb 2017 05:49:41 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk Date: Wed, 15 Feb 2017 05:49:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: decui@microsoft.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 15 Feb 2017 05:49:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211746 --- Comment #12 from Dexuan Cui --- (In reply to Marcel Moolenaar from comment #10) Hi Mercel, You're correct about the second bug -- we don't hit the second bug just bec= ause we are lucky: when accessing 0xf37cb000, we actually access 0x337cb000, sin= ce 0xf - 0x4 * 3 =3D=3D 0x3. This is my understanding. I made the below changes and got the new log: + staging =3D 0x40000000; /* 1GB */ - status =3D BS->AllocatePages(AllocateAnyPages, EfiLoaderData, + status =3D BS->AllocatePages(AllocateMaxAddress, EfiLoaderData, STAGE_PAGES, &staging); efi_copy_finish: calling trampoline efi_copy_finish: staging=3D3d000000 efi_copy_finish: staging_end=3D40000000 efi_copy_finish: staging_offset=3D3ce00000 efi_copy_finish: src=3D0x3d000000, dst=3D0x200000, last=3D0x40000000 ... trying to write: 0(0x3fd72fe0) to 0(0x2f72fe0) trying to write: 0(0x3fd72fe8) to 0(0x2f72fe8) trying to write: 0(0x3fd72ff0) to 0(0x2f72ff0) trying to write: 0(0x3fd72ff8) to 0(0x2f72ff8) trying to write: 0(0x3fd73000) to 2f74023(0x2f73000) Dexuan: Crash!!! --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Wed Feb 15 06:00:49 2017 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 A9D65CE039A for ; Wed, 15 Feb 2017 06:00:49 +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 993A71173 for ; Wed, 15 Feb 2017 06:00:49 +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 v1F60lLn078560 for ; Wed, 15 Feb 2017 06:00:49 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk Date: Wed, 15 Feb 2017 06:00:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: decui@microsoft.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 15 Feb 2017 06:00:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211746 --- Comment #13 from Dexuan Cui --- Created attachment 180002 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180002&action= =3Dedit new mem map before/after the AllocatePages with staging below 1G --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Wed Feb 15 07:03:24 2017 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 7E22BCDF108 for ; Wed, 15 Feb 2017 07:03:24 +0000 (UTC) (envelope-from stephen.stuart@gmail.com) Received: from mail-qt0-x235.google.com (mail-qt0-x235.google.com [IPv6:2607:f8b0:400d:c0d::235]) (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 34ED3EB7 for ; Wed, 15 Feb 2017 07:03:24 +0000 (UTC) (envelope-from stephen.stuart@gmail.com) Received: by mail-qt0-x235.google.com with SMTP id v23so130261694qtb.0 for ; Tue, 14 Feb 2017 23:03:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=W/APGrcsMQr09mhitJrDJKVpQNH9GO/t2ny+l9gmMHs=; b=lze/ADoDeUnLqU1JmF2faEngZ213tjc9tNJbCBZNnNEokYau5SZC4Qx/DLHWrh7scG IWPae7e/3QZr8EIzYEvnqHkObWIRZqpXQ41ivWW6VGxomV3O7YnYwNbSXElyQT5a93Jk pmTo2w9l45cYAk4azgwG7TCh0xltuCVId0uO/wQ/N5jN2uvJzPDrBplx+RIzZIJZZsC+ 0rk/qN/bHIOtVA4JMnpkdgwYduea1IdoE5mrcgW/esT8VquofbrF5av6naz3xDGZ5X2s bgQID8kqT/u5UQIzgq5/hhFUiF2izA1pLpWSXkgr8wWtjlZEZKHgE8ReDDHToNnQeNKh cmkw== 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:to:cc; bh=W/APGrcsMQr09mhitJrDJKVpQNH9GO/t2ny+l9gmMHs=; b=pgoA+mvM6l+MukxsVcU8ZR9PVEw8Amf7WV7H/HMPqW70wqAwacY26b0Woom/OqHgG9 tXMpD2US+AZzif4SSU31oyV+0ijWLTmFMbA/GdTlaUDhmLwQds3shRUVZKql/4Nyhl9I t4qkguDLrALVk+pESwOn2uwfJu3sEl1LdWIh5XDx0X//+lTnuNnvO4mYAzli7NdJiiD3 P6G9mli9/ogQt5dqL5ZpsxsHAXX8CPbbw4TONFgKIXMtJMSYY9Y8I13sRl6wFpQqRR02 Wq2lBudMiD8vcGouqgxYFzftke8RqifJ8kzLFsw21wJgc/gfB70Lj6NUj0g+ec4w7+QJ AeDw== X-Gm-Message-State: AMke39lt88+u7Led8DFohRCzkozaplJ+VTa0jer/ygdVeju+/j9IaMO5DfLgyQx+YlTLEjkjBl1uMwLjwnVgVw== X-Received: by 10.237.42.108 with SMTP id k41mr29447248qtf.81.1487142203305; Tue, 14 Feb 2017 23:03:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.60.146 with HTTP; Tue, 14 Feb 2017 23:03:22 -0800 (PST) Received: by 10.237.60.146 with HTTP; Tue, 14 Feb 2017 23:03:22 -0800 (PST) In-Reply-To: References: <20170213120938.hr3zu7flnm33v3zn@scotland.uxdom.org> <58A1A8A3.3030603@quip.cz> <8700dd14-cf15-20b9-38a6-e4181e4928ee@dann.ro> <20170214115708.pcw2poookycue3kk@scotland.uxdom.org> <58A2F845.5090603@quip.cz> <20170214132649.h3xwbcfrtjxk74si@scotland.uxdom.org> <20170214134158.vmczv6pramkscxhd@scotland.uxdom.org> From: Stephen Stuart Date: Tue, 14 Feb 2017 23:03:22 -0800 Message-ID: Subject: Re: tap interfaces disappears after bhyve guests shutdowns To: "C. L. Martinez" 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.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: Wed, 15 Feb 2017 07:03:24 -0000 On Feb 14, 2017 05:42, "C. L. Martinez" wrote: On Tue, Feb 14, 2017 at 01:26:49PM +0000, C. L. Martinez wrote: > On Tue, Feb 14, 2017 at 01:29:57PM +0100, Miroslav Lachman wrote: > > C. L. Martinez wrote on 2017/02/14 12:57: > > > On Mon, Feb 13, 2017 at 02:02:48PM +0100, Daniel Niculescu wrote: > > > > > > > > Thanks Daniel. I have tried what you say, but ping doesn't works between host and guest. If I put an ip to the bridge works ok, but not when I assign an ip to tap interface. > > > > > > Any idea why?? > > > > Are you using IPs from the same subnet on host and in a guests? What IP did > > you assign to tap / bridge? > > > > Miroslav Lachman > > Yes. For host: 172.22.55.1/24 and for guest 172.22.55.29/24. When I assign IP 172.22.55.1 to the bridge on host side, host and guest can communicate. But when I assign 172.22.55.1 to a tap interface on the host and create a bridge with host's tap interface and guest's tap interface, there is no comms between them ... And I don't understand why ... > > > -- > Greetings, > C. L. Martinez Ok, I think I have found the problem (but not the solution :( ) ... prodif: flags=3D8843 metric 0 mtu 1= 500 ether 02:bc:f9:66:98:01 nd6 options=3D9 groups: bridge id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: tap11 flags=3D143 ifmaxaddr 0 port 7 priority 128 path cost 2000000 member: tap10 flags=3D143 ifmaxaddr 0 port 6 priority 128 path cost 2000000 pubif: flags=3D8843 metric 0 mtu 15= 00 ether 02:bc:f9:66:98:02 nd6 options=3D9 groups: bridge id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: tap21 flags=3D143 ifmaxaddr 0 port 9 priority 128 path cost 2000000 member: tap20 flags=3D143 ifmaxaddr 0 port 8 priority 128 path cost 2000000 tap10: flags=3D8943 metric = 0 mtu 1500 options=3D80000 ether 00:bd:1d:15:f7:0a nd6 options=3D29 media: Ethernet autoselect status: active groups: tap Opened by PID 79946 tap11: flags=3D8943 metric = 0 mtu 1500 options=3D80000 ether 00:bd:24:15:f7:0b inet 172.22.55.1 netmask 0xffffffe0 broadcast 172.22.55.31 nd6 options=3D29 media: Ethernet autoselect status: no carrier groups: tap tap20: flags=3D8943 metric = 0 mtu 1500 options=3D80000 ether 00:bd:2b:15:f7:14 nd6 options=3D29 media: Ethernet autoselect status: active groups: tap Opened by PID 79946 tap21: flags=3D8943 metric = 0 mtu 1500 options=3D80000 ether 00:bd:31:15:f7:15 inet 172.30.77.1 netmask 0xfffffff8 broadcast 172.30.77.7 nd6 options=3D29 media: Ethernet autoselect status: no carrier groups: tap .. As you can see with tap21 and tap11 (tap interfaces assigned to host) status is: no carrier ... =C2=BF=C2=BF=C2=BF=C2=BF=C2=BF???? Why?? Both are= assigned to bridges ... Those tap interfaces have no carrier because they have not been opened by a guest VM and paired with a vtnet interface. A tap interface is how the vtnet interface inside the guest VM shows up on the host side. No guest VM, no tap. If you want the host to be able to exchange IP packets with the guest VM locally, the bridge (on the host) and vtnet interface (in the guest VM) need to be numbered in the same prefix. The tap interfaces don't get IP address assignments, the corresponding vtnet interfaces inside the VMs do. Stephen From owner-freebsd-virtualization@freebsd.org Wed Feb 15 14:19:49 2017 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 B99DBCE0DFB for ; Wed, 15 Feb 2017 14:19:49 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (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 46AF1F9C for ; Wed, 15 Feb 2017 14:19:49 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: by mail-wm0-x22f.google.com with SMTP id c85so43063395wmi.1 for ; Wed, 15 Feb 2017 06:19:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=7SLdfqfghytQSqGz5/dcaFHdS6JRyqWy5Cs0t32mTkk=; b=JIVkYulXTv2iClGD85BMLfHlIE2c5ZtNKvgvQMcRH62EoO6q6xrA5HHsCepsRXzAU/ TfXhB1h9rtjHaCzDHxK332Le8V6uW+q7ID5ZEPqM53LQmLpIHSiYdrTlZfEAUmF+M6Av 8G8aJ13RsguuMLsr8TEUOSh+fTCQCUKKN7iVkJMdSKRKJ/46SRtV3w8kZ/m0y900UqND +k9c+ZzD4hHYteStoZG/vQTDb3SI6cRCXuR++45AOAsbYuqIyhZXpxNfIsvupOdoa4M9 1ZDlqkSatnkL8LPREkEJbh6O1/se62gE+6/KBC1GnsNqFNFKxjFLgpUP5MJpYAtWwu/s b86w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=7SLdfqfghytQSqGz5/dcaFHdS6JRyqWy5Cs0t32mTkk=; b=MSnqTeN/rSqlAk5aWoLg4LFjBpStEUvaiYPcKA5lrryZDW4/bdTGBmeHLA2wCrMVSJ /BLVQ2cCna1NbBiwTmPwln5EX7hWa7las64Xcv73cnQiEB0ex+IIZvbKGI2laNsOWFfT qW8Mu3i/COeNwIKk9jnVA66r3fOTq+TxTkXI8P1/5CYUblk80KcuD6iUpW4Q4j2tzUKx PR/5SL6mRtgVZDdshtV/L5NeYCkX7KvqzSywVGex/Unb9tq1ChzLcerVmlajIJZSkfo7 bFscAIRMPVRlLnwpDftwLMY0/2jO0QlXPbjJ5THhu0/WbHtSnamTgBG/p4Nf71miAxfO WH7Q== X-Gm-Message-State: AMke39nwaph9AAWHrefjLgtq3LzqUgGCq8JOM+pr0HUtTsk40qEtoERPwxo0ebyQrk1g7w== X-Received: by 10.28.0.73 with SMTP id 70mr7890820wma.109.1487168387010; Wed, 15 Feb 2017 06:19:47 -0800 (PST) Received: from localhost (231.red-79-150-68.dynamicip.rima-tde.net. [79.150.68.231]) by smtp.gmail.com with ESMTPSA id 40sm5090334wry.22.2017.02.15.06.19.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Feb 2017 06:19:46 -0800 (PST) Date: Wed, 15 Feb 2017 14:19:55 +0000 From: "C. L. Martinez" To: freebsd-virtualization@freebsd.org Subject: Re: tap interfaces disappears after bhyve guests shutdowns (SOLVED) Message-ID: <20170215141955.uw6jakbfjro7ytuz@scotland.uxdom.org> References: <20170213120938.hr3zu7flnm33v3zn@scotland.uxdom.org> <58A1A8A3.3030603@quip.cz> <8700dd14-cf15-20b9-38a6-e4181e4928ee@dann.ro> <20170214115708.pcw2poookycue3kk@scotland.uxdom.org> <58A2F845.5090603@quip.cz> <20170214132649.h3xwbcfrtjxk74si@scotland.uxdom.org> <20170214134158.vmczv6pramkscxhd@scotland.uxdom.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) 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, 15 Feb 2017 14:19:49 -0000 On Tue, Feb 14, 2017 at 11:03:22PM -0800, Stephen Stuart wrote: > On Feb 14, 2017 05:42, "C. L. Martinez" wrote: > > On Tue, Feb 14, 2017 at 01:26:49PM +0000, C. L. Martinez wrote: > > On Tue, Feb 14, 2017 at 01:29:57PM +0100, Miroslav Lachman wrote: > > > C. L. Martinez wrote on 2017/02/14 12:57: > > > > On Mon, Feb 13, 2017 at 02:02:48PM +0100, Daniel Niculescu wrote: > > > > > > > > > > > Thanks Daniel. I have tried what you say, but ping doesn't works > between host and guest. If I put an ip to the bridge works ok, but not when > I assign an ip to tap interface. > > > > > > > > Any idea why?? > > > > > > Are you using IPs from the same subnet on host and in a guests? What IP > did > > > you assign to tap / bridge? > > > > > > Miroslav Lachman > > > > Yes. For host: 172.22.55.1/24 and for guest 172.22.55.29/24. When I > assign IP 172.22.55.1 to the bridge on host side, host and guest can > communicate. But when I assign 172.22.55.1 to a tap interface on the host > and create a bridge with host's tap interface and guest's tap interface, > there is no comms between them ... And I don't understand why ... > > > > > > -- > > Greetings, > > C. L. Martinez > > Ok, I think I have found the problem (but not the solution :( ) ... > > prodif: flags=8843 metric 0 mtu 1500 > ether 02:bc:f9:66:98:01 > nd6 options=9 > groups: bridge > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > member: tap11 flags=143 > ifmaxaddr 0 port 7 priority 128 path cost 2000000 > member: tap10 flags=143 > ifmaxaddr 0 port 6 priority 128 path cost 2000000 > pubif: flags=8843 metric 0 mtu 1500 > ether 02:bc:f9:66:98:02 > nd6 options=9 > groups: bridge > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > member: tap21 flags=143 > ifmaxaddr 0 port 9 priority 128 path cost 2000000 > member: tap20 flags=143 > ifmaxaddr 0 port 8 priority 128 path cost 2000000 > tap10: flags=8943 metric 0 > mtu 1500 > options=80000 > ether 00:bd:1d:15:f7:0a > nd6 options=29 > media: Ethernet autoselect > status: active > groups: tap > Opened by PID 79946 > tap11: flags=8943 metric 0 > mtu 1500 > options=80000 > ether 00:bd:24:15:f7:0b > inet 172.22.55.1 netmask 0xffffffe0 broadcast 172.22.55.31 > nd6 options=29 > media: Ethernet autoselect > status: no carrier > groups: tap > tap20: flags=8943 metric 0 > mtu 1500 > options=80000 > ether 00:bd:2b:15:f7:14 > nd6 options=29 > media: Ethernet autoselect > status: active > groups: tap > Opened by PID 79946 > tap21: flags=8943 metric 0 > mtu 1500 > options=80000 > ether 00:bd:31:15:f7:15 > inet 172.30.77.1 netmask 0xfffffff8 broadcast 172.30.77.7 > nd6 options=29 > media: Ethernet autoselect > status: no carrier > groups: tap > > .. As you can see with tap21 and tap11 (tap interfaces assigned to host) > status is: no carrier ... ¿¿¿¿¿???? Why?? Both are assigned to bridges ... > > > Those tap interfaces have no carrier because they have not been opened by a > guest VM and paired with a vtnet interface. > > A tap interface is how the vtnet interface inside the guest VM shows up on > the host side. No guest VM, no tap. > > If you want the host to be able to exchange IP packets with the guest VM > locally, the bridge (on the host) and vtnet interface (in the guest VM) > need to be numbered in the same prefix. The tap interfaces don't get IP > address assignments, the corresponding vtnet interfaces inside the VMs do. > Ok, I have solved the problem. I am using source policy routing in this installation, because I need to route Internet traffic via wlan0 interface. Due to the impossibility to bridge wlan interface, I have created two routing tables. Adding default route to rtable 1, solved the problem. Many thanks to all for your help. -- Greetings, C. L. Martinez From owner-freebsd-virtualization@freebsd.org Wed Feb 15 23:44:03 2017 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 84136CE02BC for ; Wed, 15 Feb 2017 23:44:03 +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 732ECC47 for ; Wed, 15 Feb 2017 23:44:03 +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 v1FNi2hc029617 for ; Wed, 15 Feb 2017 23:44:03 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 212711] [typo] bhyve: virtio-rnd PCI ID doesn't match viorng driver from Redhat Date: Wed, 15 Feb 2017 23:44:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cem@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: mfc-stable10? mfc-stable11? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 15 Feb 2017 23:44:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212711 Conrad Meyer changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cem@freebsd.org --- Comment #5 from Conrad Meyer --- Can this fixed bug be closed? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Thu Feb 16 01:16:47 2017 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 0D9B8CDEED5; Thu, 16 Feb 2017 01:16:47 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail04.adl6.internode.on.net (ipmail04.adl6.internode.on.net [150.101.137.141]) by mx1.freebsd.org (Postfix) with ESMTP id 7599F175B; Thu, 16 Feb 2017 01:16:45 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp121-45-93-6.bras1.adl6.internode.on.net (HELO leader.local) ([121.45.93.6]) by ipmail04.adl6.internode.on.net with ESMTP; 16 Feb 2017 11:37:48 +1030 Subject: Re: Status of bhyve To: Andrea Venturoli , freebsd-questions@freebsd.org References: <607fc3c1-5546-dbce-488b-983163ff1e98@netfence.it> Cc: "freebsd-virtualization@freebsd.org" From: Shane Ambler Message-ID: Date: Thu, 16 Feb 2017 11:37:44 +1030 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <607fc3c1-5546-dbce-488b-983163ff1e98@netfence.it> 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, 16 Feb 2017 01:16:47 -0000 CC'ing to freebsd-virtualization as a better place to ask this. On 16/02/2017 05:11, Andrea Venturoli wrote: > Hello. > > I've been searching the web for a while, but the info I got is sparse > (many howtos, little on the big picture) and it's not always clear what > is current and what is outdated. > > I might be in need to permanently run a Windows 64b VM (with SQL server) > on a new FreeBSD box, so... Permanently as in a development environment or production? > What's the current status of bhyve? > I mean, it is it production ready (meaning no critical feature is > missing and I can count on this VM to behave properly nearly as much as > the host)? > Any difference between 10.3 and 11.0? (I got the idea the former will be > supported for longer and I'd have to upgrade my poudriere in order to > install the latter). 11.0 includes a "VNC accessible framebuffer driver" which is not in 10.x This will allow you to vnc into the bhyve instance during boot to install/repair windows. You will need to run poudriere on an 11 host to build 11 packages, while you can sometimes have success building newer systems than the host, building 11 packages on a 10 host does fail for many ports. > > How well does it run Windows? > Would I better run W7 instead of W10 (or the other way round)? > What's the maximum amount of RAM I can dedicate to a VM? > > > How does it compare to VirtualBox wrt to stability and performance? > (I know I can find benchmarks, but, again, it's hard to tell whether > they can be trusted or considered current). > > > Should I use a dedicated disk (or disk mirror) for better speed? > Or should I use a dedicated partition on the host's disk/disk mirror? > Will a ZFS volume perform as good as a partition? > > > > Any caveat or hint? > > > > bye & Thanks > av. -- FreeBSD - the place to B...Sharing Devices Shane Ambler From owner-freebsd-virtualization@freebsd.org Thu Feb 16 05:21:45 2017 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 62A07CE135B for ; Thu, 16 Feb 2017 05:21:45 +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 46278C9E for ; Thu, 16 Feb 2017 05:21:45 +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 v1G5Lirc065707 for ; Thu, 16 Feb 2017 05:21:45 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 212711] [typo] bhyve: virtio-rnd PCI ID doesn't match viorng driver from Redhat Date: Thu, 16 Feb 2017 05:21:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: grehan@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: mfc-stable10? mfc-stable11? X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 16 Feb 2017 05:21:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212711 Peter Grehan changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Closed Resolution|--- |FIXED --- Comment #6 from Peter Grehan --- Yep; closing. Yet to MFC but will get to that. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Thu Feb 16 09:57:11 2017 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 27B3ACE159C for ; Thu, 16 Feb 2017 09:57:11 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 04D677CC for ; Thu, 16 Feb 2017 09:57:11 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 042BACE159B; Thu, 16 Feb 2017 09:57:11 +0000 (UTC) Delivered-To: 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 03D25CE159A for ; Thu, 16 Feb 2017 09:57:11 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: from mail-wr0-x22d.google.com (mail-wr0-x22d.google.com [IPv6:2a00:1450:400c:c0c::22d]) (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 925927C4 for ; Thu, 16 Feb 2017 09:57:10 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: by mail-wr0-x22d.google.com with SMTP id 89so3316086wrr.3 for ; Thu, 16 Feb 2017 01:57:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Iwe2p8OYC1p2G2h7wOTC6ECit9Jms2fuLXb89Yr7JBg=; b=i5+kn1fjhMynaLhjU64CSfNBF5MqdIQX7Io808+qUlC8AK1TIzG37RNsP1OFwM1pp2 1Ut6gWPB6llIId4/Qaom/jKCMrfDJw3GsOu+aCbEc5GY0Dy+M4wYCxtQXDVZvxVvgIRg 17f9p/2Unxet/dIYwoJOtsg5rhmmNWtXPD3rauYziCqXWVSJR0gIsZ1BZMeunXsV5qEl TJnWkDkhWOakhMb8iXYqRaK1s4m8Y3JJEmeWSq5YMlyiV1RDx/9/v3XzTFf2Jje1GFSR txTvxQLY1qlewgBLYkqnbA2n5v3ZtMywBeQksG9T1ZNrMkfiUm5kpP62cGOC46hCRkxF BxXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Iwe2p8OYC1p2G2h7wOTC6ECit9Jms2fuLXb89Yr7JBg=; b=rSKg4hJCSr3UfxYOlAbRjhWKHdYfCMduXGP0eo03DRgRXi0FSyJNSwLOBQAbmlHH7X EovSTZ0MC5EO4DjPy/noFkh1AXcELd9ajKrH4qD1gcpZZcJE1hB9J2YURwuVYN0IBVE1 CKpiMM6o23W1ySxl1X0gkn51wImjpoWITDrN96LrMNHSvOVG1HigV27Ou+f3qQDPgs1Q pc2Kgv8+lqkuHMcf3FwGMU6yIaLpKqV8rItyTuzlKsRp1wWfpWhvpFhogk+qQxq6NbCr Nn8A33BxSHB5G9h+o3z7scIoupZ5RmFITa7I0XrVZvva4yp3/26R+byYh0MLlYxmIApC uulw== X-Gm-Message-State: AMke39knS4qXNNOhXjCpvo6x22ir5d5xa7KFJ7+iMZyUdds1zcxGVsm0hydeaIka4J4DVw== X-Received: by 10.223.138.9 with SMTP id w9mr1391841wrw.50.1487239028103; Thu, 16 Feb 2017 01:57:08 -0800 (PST) Received: from localhost (231.red-79-150-68.dynamicip.rima-tde.net. [79.150.68.231]) by smtp.gmail.com with ESMTPSA id 36sm1606205wrk.57.2017.02.16.01.57.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Feb 2017 01:57:07 -0800 (PST) Date: Thu, 16 Feb 2017 09:57:18 +0000 From: "C. L. Martinez" To: virtualization@freebsd.org Subject: Re: Installing Freebsd guests under bhyve without using scripts Message-ID: <20170216095718.45g3nvmhakyffijn@scotland.uxdom.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) 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, 16 Feb 2017 09:57:11 -0000 On Mon, Feb 13, 2017 at 03:47:34PM -0800, Anish Gupta wrote: > Yes, you need bhyveload to load guest OS, setup hypervisor nested{EPT/NPT] > page table etc, see vmrun.sh > > ${LOADER} -c ${console} -m ${memsize} -d ${BOOTDISK} ${loader_opt} \ > ${vmname} > > LOADER=bhyveload > > and then use 'bhyve' to start and run guest/VM. > > ${FBSDRUN} -c ${cpus} -m ${memsize} ${apic_opt} -A -H -P \ > -g ${gdbport} \ > -s 0:0,hostbridge \ > -s 1:0,lpc \ > ${devargs} \ > -l com1,${console} \ > ${installer_opt} \ > ${vmname} > > FBSDRUN=bhyve > > Of course ${memsize}, ${vmname} etc must match between bhyveload and bhyve. > > -Anish > Many thanks Anish -- Greetings, C. L. Martinez From owner-freebsd-virtualization@freebsd.org Thu Feb 16 12:08:54 2017 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 48779CE2FE7 for ; Thu, 16 Feb 2017 12:08:54 +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 37EAB12BD for ; Thu, 16 Feb 2017 12:08:54 +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 v1GC8qkH090771 for ; Thu, 16 Feb 2017 12:08:54 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk Date: Thu, 16 Feb 2017 12:08:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: decui@microsoft.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 16 Feb 2017 12:08:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211746 --- Comment #14 from Dexuan Cui --- BTW, anyone knows how to change the kernel base address (physical address)? Currently it should be 2MB, and I tried to change it to 128MB like this: --- a/sys/conf/ldscript.amd64 +++ b/sys/conf/ldscript.amd64 SECTIONS { /* Read-only sections, merged into text segment: */ - kernphys =3D CONSTANT (MAXPAGESIZE); + kernphys =3D 0x8000000; . =3D kernbase + kernphys + SIZEOF_HEADERS; .interp : { *(.interp) } .hash : { *(.hash) } But it looks this doesn't work: in efi_copy_finish(), the 'dst' showed 0 rather than 128MB. I did "make cleanworld; make buildkernel build world". --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Thu Feb 16 15:33:26 2017 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 E0FACCE1C9F for ; Thu, 16 Feb 2017 15:33: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 D071616D7 for ; Thu, 16 Feb 2017 15:33: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 v1GFXNE3090535 for ; Thu, 16 Feb 2017 15:33:26 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk Date: Thu, 16 Feb 2017 15:33:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marcel@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 16 Feb 2017 15:33:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211746 --- Comment #15 from Marcel Moolenaar --- Maybe because of sys/boot/common/load_elf.c, line 329? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Thu Feb 16 17:08:06 2017 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 22938CE15F0 for ; Thu, 16 Feb 2017 17:08:06 +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 116A510B2 for ; Thu, 16 Feb 2017 17:08:06 +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 v1GH85O2040466 for ; Thu, 16 Feb 2017 17:08:05 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 212711] [typo] bhyve: virtio-rnd PCI ID doesn't match viorng driver from Redhat Date: Thu, 16 Feb 2017 17:08:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: mfc-stable10? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 16 Feb 2017 17:08:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212711 --- Comment #7 from commit-hook@freebsd.org --- A commit references this bug: Author: grehan Date: Thu Feb 16 17:07:20 UTC 2017 New revision: 313811 URL: https://svnweb.freebsd.org/changeset/base/313811 Log: MFC r311702 Use correct PCI device id for virtio-rng. This prevented the device from attaching with a Windows guest (most other guests use the device type for matching) PR: 212711 Changes: _U stable/11/ stable/11/usr.sbin/bhyve/virtio.h --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Thu Feb 16 17:09:08 2017 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 CC35CCE169E for ; Thu, 16 Feb 2017 17:09:08 +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 BB3EA125D for ; Thu, 16 Feb 2017 17:09:08 +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 v1GH985M041717 for ; Thu, 16 Feb 2017 17:09:08 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 212711] [typo] bhyve: virtio-rnd PCI ID doesn't match viorng driver from Redhat Date: Thu, 16 Feb 2017 17:09:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: mfc-stable10? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 16 Feb 2017 17:09:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212711 --- Comment #8 from commit-hook@freebsd.org --- A commit references this bug: Author: grehan Date: Thu Feb 16 17:08:44 UTC 2017 New revision: 313812 URL: https://svnweb.freebsd.org/changeset/base/313812 Log: MFC r311702 Use correct PCI device id for virtio-rng. This prevented the device from attaching with a Windows guest (most other guests use the device type for matching) PR: 212711 Changes: _U stable/10/ stable/10/usr.sbin/bhyve/virtio.h --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Fri Feb 17 05:33:05 2017 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 325E2CDFDCD for ; Fri, 17 Feb 2017 05:33:05 +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 1929B17E0 for ; Fri, 17 Feb 2017 05:33:05 +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 v1H5X48S041927 for ; Fri, 17 Feb 2017 05:33:04 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 216493] [Hyper-V] Mellanox ConnectX-3 VF driver can't work when FreeBSD runs on Hyper-V 2016 Date: Fri, 17 Feb 2017 05:33:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: decui@microsoft.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 17 Feb 2017 05:33:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216493 --- Comment #3 from Dexuan Cui --- (In reply to Dexuan Cui from comment #2) Updates: Issue 2: Linux has made a patch (not posted yet) and we'll need to port it: https://www.spinics.net/lists/netdev/msg421306.html Issue 4: We may need to port more patches that were mentioned here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1650058/commen= ts/7 " Mellanox has told me that the following three commits are needed for SR-IOV= in Azure: 1. d585df1c5ccf net/mlx4_core: Avoid command timeouts during VF driver device shutdown 2. 7c3945bc2073 net/mlx4_core: Fix when to save some qp context flags = for dynamic VST to VGT transitions 3. 291c566a2891 net/mlx4_core: Fix racy CQ (Completion Queue) free " and the 4th patch: commit 0cd9302734111abc0b5912b695336f2ee63cb22b net/mlx4_core: Reset flow activation upon SRIOV fatal command cases --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Fri Feb 17 08:50:33 2017 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 DEDF0CE0DE9 for ; Fri, 17 Feb 2017 08:50:33 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (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 6F2AC1BF9 for ; Fri, 17 Feb 2017 08:50:33 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id r141so5130749wmg.1 for ; Fri, 17 Feb 2017 00:50:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=w4FOLycJrNPH+Fd+nr15LIDvET8jwMP+7c+iWXB8tkY=; b=rDCtJTqbdRgf+Fyjesow9cLS0yos4sCy1KbAK4vioJOVC6sOigmgXoDG7pceC5TANV pMj6+6zGu7v21GvtyyIoXjJY+/CO4ZjKg1lHlQ3ggxQsK3/kpxdw9eb0r7uCKbF6Ijg/ cT9jd94fsp0hQUwxE5KZfxGejECGnCUh7/iVUsjTTJ9y0HXcG7gguc8WkKMDqCrUZi9s 50MoCUvTGxKvullAz6uRjsff0ciUEDtjlEMd1HkLqwSGNrYdMJF0hRt2QeK47zPibSls /J1y8MNpS2IDzGE10JCkGg7T4ofS7yp6UkO/YrPnnc7qcWpHOXX9XvHvxDSheUwoMrYe hq7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=w4FOLycJrNPH+Fd+nr15LIDvET8jwMP+7c+iWXB8tkY=; b=RcWO2DRsOU44LCj2zd+KNJAv1i3P1/yTJedEAdJHTqi+M3LkuWZlWdQCVCINoRMdqU dxaQuU3u14Z5xUrAhy1xbqJykCBqlFpUqNK1RxJHIBgVgniWJW0Nb03Eu6Byjqp/Atgx SqhV9H2/w/Q80zux+UFKp2tJBo+jgp4tKsGYdTF7BY+DGyZXa8Xp4+DKehwsE4MEguRj RcmCY0FRTtrugzcIM5E9Fm9erQMBMnZwM9pSuQEx14xk36lvpOZuukXjzsgC9gRA1NZc BUOn0aksJxqBLZlQqWOK8Y+6WYFalE34e2xezcarjFXlvbc37RUYVB1yxDm3X45PPlE2 M1Wg== X-Gm-Message-State: AMke39lTdN+Bjlo8fHy1n8ZvApb0TugTRTq6a+3CD0iLpbe68bKPErDv7kBJzQSyup88Eg== X-Received: by 10.28.210.139 with SMTP id j133mr2025506wmg.67.1487321428731; Fri, 17 Feb 2017 00:50:28 -0800 (PST) Received: from localhost (231.red-79-150-68.dynamicip.rima-tde.net. [79.150.68.231]) by smtp.gmail.com with ESMTPSA id m29sm12123499wrm.38.2017.02.17.00.50.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Feb 2017 00:50:28 -0800 (PST) Date: Fri, 17 Feb 2017 08:50:39 +0000 From: "C. L. Martinez" To: freebsd-virtualization@freebsd.org Subject: Providing serial consoles to multiple bhyve guests Message-ID: <20170217085038.55yztxw5a233byzu@scotland.uxdom.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) 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, 17 Feb 2017 08:50:34 -0000 Hi all, How can I use more than one serial console for several bhyve guests? According to nmdm(4) man page only two nullmodem devices can be created: nmdm0A and nmdm0B (and only nmdm0A can be assigned to one bhyve guest). Then, how can I access to these bhyve guests? I have tried to add vnc channel, but it doesn't works ..:( Thanks. -- Greetings, C. L. Martinez From owner-freebsd-virtualization@freebsd.org Fri Feb 17 09:08:54 2017 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 583CECE1608 for ; Fri, 17 Feb 2017 09:08:54 +0000 (UTC) (envelope-from paul@redbarn.org) Received: from family.redbarn.org (family.redbarn.org [IPv6:2001:559:8000:cd::5]) (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 49BCD1500 for ; Fri, 17 Feb 2017 09:08:54 +0000 (UTC) (envelope-from paul@redbarn.org) Received: from [IPv6:2001:559:8000:c9:5810:ddfd:6b97:1a32] (unknown [IPv6:2001:559:8000:c9:5810:ddfd:6b97:1a32]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by family.redbarn.org (Postfix) with ESMTPSA id 21ABE61F8D; Fri, 17 Feb 2017 09:08:53 +0000 (UTC) Message-ID: <58A6BDA4.8070403@redbarn.org> Date: Fri, 17 Feb 2017 01:08:52 -0800 From: Paul Vixie User-Agent: Postbox 5.0.10 (Windows/20170123) MIME-Version: 1.0 To: "C. L. Martinez" CC: freebsd-virtualization@freebsd.org Subject: Re: Providing serial consoles to multiple bhyve guests References: <20170217085038.55yztxw5a233byzu@scotland.uxdom.org> In-Reply-To: <20170217085038.55yztxw5a233byzu@scotland.uxdom.org> Content-Type: text/plain; charset=ISO-8859-1 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, 17 Feb 2017 09:08:54 -0000 C. L. Martinez wrote: > Hi all, > > How can I use more than one serial console for several bhyve guests? `pkg install rtty` > According to nmdm(4) man page only two nullmodem devices can be > created: nmdm0A and nmdm0B (and only nmdm0A can be assigned to one > bhyve guest). Then, how can I access to these bhyve guests? assuming that you can give each guest a name, use them like this: > root@mm2:/home/vixie # cd /usr/local/rtty > root@mm2:/usr/local/rtty # ls -l dev > lrwxr-xr-x 1 root wheel 11 Dec 25 2015 demo -> /dev/nmdm2A > lrwxr-xr-x 1 root wheel 11 Feb 8 04:08 hpfeeds -> /dev/nmdm8A > lrwxr-xr-x 1 root wheel 11 Jan 15 02:54 usql -> /dev/nmdm5A > lrwxr-xr-x 1 root wheel 11 Jan 1 2016 x -> /dev/nmdm3A > lrwxr-xr-x 1 root wheel 11 Jan 15 21:44 yeti-dns -> /dev/nmdm7A as you can imagine, i'm using the B ports for bhyve consoles. > I have tried to add vnc channel, but it doesn't works ..:( it's pretty straightforward. i wrote rtty in 1990 when serial lines weren't virtual. > [mm2.redbarn:amd64] console yeti-dns > connected > (use (CR)~? for minimal help; also (CR)~q? and (CR)~s?) > [authorized] > [vixie@/dev/pts/6 connected] > > FreeBSD/amd64 (yeti-dns.tisf.net) (ttyu0) > > login: > > FreeBSD/amd64 (yeti-dns.tisf.net) (ttyu0) > > login: > [rtty exiting] i like rtty better than "cu" or "tip" because multiple people can connect at the same time, and because everything is logged always: > root@mm2:/usr/local/rtty # ls -l log > -rw-r----- 1 root wheel 4253207 Feb 17 05:44 demo > -rw-r----- 1 root wheel 218105 Feb 12 21:39 hpfeeds > -rw-r----- 1 root wheel 184779 Jan 15 22:57 usql > -rw-r----- 1 root wheel 1374759 Feb 3 04:08 x > -rw-r----- 1 root wheel 257801 Feb 17 09:03 yeti-dns huh. i guess i need to rotate those. -- P Vixie From owner-freebsd-virtualization@freebsd.org Fri Feb 17 09:25:23 2017 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 C4C8DCE1B36 for ; Fri, 17 Feb 2017 09:25:23 +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 B42BB1E19 for ; Fri, 17 Feb 2017 09:25:23 +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 v1H9PLv4070019 for ; Fri, 17 Feb 2017 09:25:23 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk Date: Fri, 17 Feb 2017 09:25:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: decui@microsoft.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 17 Feb 2017 09:25:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211746 --- Comment #16 from Dexuan Cui --- (In reply to Marcel Moolenaar from comment #15) Probably. IMO this means we can't freely change the 2MB kernphys. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Fri Feb 17 10:33:58 2017 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 DD05FCE2DE9 for ; Fri, 17 Feb 2017 10:33:58 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward1h.cmail.yandex.net (forward1h.cmail.yandex.net [87.250.230.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9BD041EF9 for ; Fri, 17 Feb 2017 10:33:58 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from smtp3m.mail.yandex.net (smtp3m.mail.yandex.net [IPv6:2a02:6b8:0:2519::125]) by forward1h.cmail.yandex.net (Yandex) with ESMTP id 090F920C9F; Fri, 17 Feb 2017 13:33:54 +0300 (MSK) Received: from smtp3m.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3m.mail.yandex.net (Yandex) with ESMTP id 4DA2C2840CC0; Fri, 17 Feb 2017 13:33:52 +0300 (MSK) Received: by smtp3m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 1v3ongLfAG-Xq3CBwtO; Fri, 17 Feb 2017 13:33:52 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0,1 0 Subject: Re: Providing serial consoles to multiple bhyve guests To: "C. L. Martinez" , freebsd-virtualization@freebsd.org References: <20170217085038.55yztxw5a233byzu@scotland.uxdom.org> From: Boris Samorodov Message-ID: Date: Fri, 17 Feb 2017 13:33:43 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <20170217085038.55yztxw5a233byzu@scotland.uxdom.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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, 17 Feb 2017 10:33:59 -0000 Hi! 17.02.2017 11:50, C. L. Martinez пишет: > > How can I use more than one serial console for several bhyve guests? > According to nmdm(4) man page only two nullmodem devices can be > created: nmdm0A and nmdm0B (and only nmdm0A can be assigned to one > bhyve guest). Then, how can I access to these bhyve guests? I use sysutils/vm-bhyve for bhyve management. Using console is a breeze: --- % sudo vm console --- -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-virtualization@freebsd.org Fri Feb 17 11:29:41 2017 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 F2270CE2F81 for ; Fri, 17 Feb 2017 11:29:41 +0000 (UTC) (envelope-from ml@netfence.it) Received: from smtp209.alice.it (smtp209.alice.it [82.57.200.105]) by mx1.freebsd.org (Postfix) with ESMTP id 903491EC9 for ; Fri, 17 Feb 2017 11:29:40 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.ventu (82.52.25.226) by smtp209.alice.it (8.6.060.28) (authenticated as acanedi@alice.it) id 588F429D0322E61F; Fri, 17 Feb 2017 12:29:31 +0100 Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) by soth.ventu (8.15.2/8.15.2) with ESMTP id v1HBTRT3095704; Fri, 17 Feb 2017 12:29:30 +0100 (CET) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.ventu: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu Subject: Re: Status of bhyve To: freebsd-virtualization@freebsd.org, Harry Schmalzbauer References: <607fc3c1-5546-dbce-488b-983163ff1e98@netfence.it> From: Andrea Venturoli Message-ID: Date: Fri, 17 Feb 2017 12:29:27 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <607fc3c1-5546-dbce-488b-983163ff1e98@netfence.it> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit 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, 17 Feb 2017 11:29:42 -0000 On Thu, 16 Feb 2017 10:46:34 +0100, Harry Schmalzbauer wrote: > Hello, > it depends on the features you need. Not much, really. Running SQL Server Express (for now) with decent performance. > · virtio-blk and jumbo frames (e1000 works with jumbo frames but > performance is not comparaable with ESXi e1000(e)) > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215737 I don't think the underlying network equipment will support Jumbo Frames :( > · PCI-Passthru is very picky. If you have a card with BAR memorysize < | > != pagesize, byhve(4) won't accept it. > > · device(9) as block storage backend (virtio-blk, ahci-hd) doesn't work > if you use any PCI-passthru device > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215740 I don't think I'd need PCI passthrough (I'm fine with a disk and a network card). > · virtio-blk isn't virtio-win (Windows driver) compatible, guest will crash! > > · virtio-net doesn't work with latest Windows drivers, which is not a > bhyve(4) problem as far as I can tell. Version 0.1.118 works, newer ones > are known to have problems on other hypervisors too. Good to know. > · See if_bridge(4) for some limitations (all members need to have > exactly the same MTU, uplink gets checksum offloading disabled). > Generally, soft-switching capabilities ar not comparable with those of > ESXi, especially not the performace (outside netmap world). This is a good point. :( > Other than that, it's rock solid for me > ... >> How well does it run Windows? >> Would I better run W7 instead of W10 (or the other way round)? Fine. >> Should I use a dedicated disk (or disk mirror) for better speed? >> Or should I use a dedicated partition on the host's disk/disk mirror? >> Will a ZFS volume perform as good as a partition? > > ZVOL is the best option offering great performance (depending on your > pool setup of yourse) as long as there is the PCI-passthru bug mentioned > above. Thanks again. bye av. From owner-freebsd-virtualization@freebsd.org Fri Feb 17 11:29:50 2017 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 08541CE2FAA for ; Fri, 17 Feb 2017 11:29:50 +0000 (UTC) (envelope-from ml@netfence.it) Received: from smtp205.alice.it (smtp205.alice.it [82.57.200.101]) by mx1.freebsd.org (Postfix) with ESMTP id 9038F1EF0 for ; Fri, 17 Feb 2017 11:29:49 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.ventu (82.52.25.226) by smtp205.alice.it (8.6.060.28) (authenticated as acanedi@alice.it) id 588F425B04F8C206; Fri, 17 Feb 2017 12:29:36 +0100 Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) by soth.ventu (8.15.2/8.15.2) with ESMTP id v1HBTWoL095707; Fri, 17 Feb 2017 12:29:35 +0100 (CET) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.ventu: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu Subject: Re: Status of bhyve To: freebsd-virtualization@freebsd.org, Shane Ambler References: <607fc3c1-5546-dbce-488b-983163ff1e98@netfence.it> From: Andrea Venturoli Message-ID: <70fc3d5f-4341-8852-5c5f-f9c06be6caf0@netfence.it> Date: Fri, 17 Feb 2017 12:29:32 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <607fc3c1-5546-dbce-488b-983163ff1e98@netfence.it> 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, 17 Feb 2017 11:29:50 -0000 On Thu, 16 Feb 2017 11:37:44 +1030, Shane Ambler wrote: > CC'ing to freebsd-virtualization as a better place to ask this. Thanks, I hadn't noticed this list; I subscribed now. >> I might be in need to permanently run a Windows 64b VM (with SQL server) >> on a new FreeBSD box, so... > > Permanently as in a development environment or production? Production. > 11.0 includes a "VNC accessible framebuffer driver" which is not in 10.x Then, if the "thing" will start, 11.0 will be. bye & Thanks av. From owner-freebsd-virtualization@freebsd.org Fri Feb 17 12:14:38 2017 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 C3F92CE39E4; Fri, 17 Feb 2017 12:14:38 +0000 (UTC) (envelope-from alexander.nusov@nfvexpress.com) Received: from sender-of-o52.zoho.com (sender-of-o52.zoho.com [135.84.80.217]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 91A821A0B; Fri, 17 Feb 2017 12:14:37 +0000 (UTC) (envelope-from alexander.nusov@nfvexpress.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1487333665; s=zoho; d=nfvexpress.com; i=alexander.nusov@nfvexpress.com; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc:Content-Transfer-Encoding:Message-Id:References:To; l=2543; bh=Dp0WRRa9QkywQvhJBugTpYEdoRtv5DT3AoizAIvXn8I=; b=PWohflxKthgkcXB3P6cx8D+Wk56K2ntbD49KJ/6K+inyqQZh45ZEgEjWuvImJpUJ /1s739fQD9kloLZF0ugtQmVOAr51Y2BBLd6jekbZqVi2Ma8kZui37PNXdKPDvTqRMxY +Kg4dxGLNKG15ZozxXOx333cZZPmSqa827IhBUgM= Received: from [192.168.1.68] (95-30-222-83.broadband.corbina.ru [95.30.222.83]) by mx.zohomail.com with SMTPS id 1487333664989701.5437218934198; Fri, 17 Feb 2017 04:14:24 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: Status of bhyve From: Alexander Nusov In-Reply-To: Date: Fri, 17 Feb 2017 15:13:49 +0300 Cc: Andrea Venturoli , freebsd-questions@freebsd.org, "freebsd-virtualization@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <59CBEFEE-5263-4CEF-AB0C-FE92BF74129C@nfvexpress.com> References: <607fc3c1-5546-dbce-488b-983163ff1e98@netfence.it> To: Shane Ambler X-Mailer: Apple Mail (2.3259) 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, 17 Feb 2017 12:14:38 -0000 Hello, Do have plans for Suspend/Resume?=20 I'm really waiting for this feature. -- Alexander > On Feb 16, 2017, at 4:07 AM, Shane Ambler = wrote: >=20 >=20 > CC'ing to freebsd-virtualization as a better place to ask this. >=20 > On 16/02/2017 05:11, Andrea Venturoli wrote: >> Hello. >>=20 >> I've been searching the web for a while, but the info I got is sparse >> (many howtos, little on the big picture) and it's not always clear = what >> is current and what is outdated. >>=20 >> I might be in need to permanently run a Windows 64b VM (with SQL = server) >> on a new FreeBSD box, so... >=20 > Permanently as in a development environment or production? >=20 >> What's the current status of bhyve? >> I mean, it is it production ready (meaning no critical feature is >> missing and I can count on this VM to behave properly nearly as much = as >> the host)? >> Any difference between 10.3 and 11.0? (I got the idea the former will = be >> supported for longer and I'd have to upgrade my poudriere in order to >> install the latter). >=20 > 11.0 includes a "VNC accessible framebuffer driver" which is not in = 10.x > This will allow you to vnc into the bhyve instance during boot to > install/repair windows. >=20 > You will need to run poudriere on an 11 host to build 11 packages, > while you can sometimes have success building newer systems than the > host, building 11 packages on a 10 host does fail for many ports. >=20 >>=20 >> How well does it run Windows? >> Would I better run W7 instead of W10 (or the other way round)? >> What's the maximum amount of RAM I can dedicate to a VM? >>=20 >>=20 >> How does it compare to VirtualBox wrt to stability and performance? >> (I know I can find benchmarks, but, again, it's hard to tell whether >> they can be trusted or considered current). >>=20 >>=20 >> Should I use a dedicated disk (or disk mirror) for better speed? >> Or should I use a dedicated partition on the host's disk/disk mirror? >> Will a ZFS volume perform as good as a partition? >>=20 >>=20 >>=20 >> Any caveat or hint? >>=20 >>=20 >>=20 >> bye & Thanks >> av. >=20 >=20 >=20 > --=20 > FreeBSD - the place to B...Sharing Devices >=20 > Shane Ambler >=20 > _______________________________________________ > 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" From owner-freebsd-virtualization@freebsd.org Fri Feb 17 12:41:25 2017 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 96215CE3E9F for ; Fri, 17 Feb 2017 12:41:25 +0000 (UTC) (envelope-from harry@whaev.de) Received: from mailgw.mhh.whaev.de (wumag.mhh.whaev.de [88.217.161.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2BC131371 for ; Fri, 17 Feb 2017 12:41:23 +0000 (UTC) (envelope-from harry@whaev.de) Received: from mabos.narc.mhh.whaev.de (mabos.narc.mhh.whaev.de [172.17.224.224]) by mailgw.mhh.whaev.de (8.14.9/8.14.9) with ESMTP id v1HCavLq042911; Fri, 17 Feb 2017 13:36:57 +0100 (CET) (envelope-from harry@whaev.de) Received: from titan.inop.mo1.omnilan.net (s1.omnilan.de [217.91.127.234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mabos.narc.mhh.whaev.de (Postfix) with ESMTPSA id E411112DAA; Fri, 17 Feb 2017 13:36:56 +0100 (CET) Message-ID: <58A6EE64.6080201@whaev.de> Date: Fri, 17 Feb 2017 13:36:52 +0100 From: Harald Schmalzbauer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: "C. L. Martinez" CC: freebsd-virtualization@freebsd.org Subject: Re: Providing serial consoles to multiple bhyve guests References: <20170217085038.55yztxw5a233byzu@scotland.uxdom.org> In-Reply-To: <20170217085038.55yztxw5a233byzu@scotland.uxdom.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (mailgw.mhh.whaev.de [172.17.224.227]); Fri, 17 Feb 2017 13:36:57 +0100 (CET) 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, 17 Feb 2017 12:41:25 -0000 Bezüglich C. L. Martinez's Nachricht vom 17.02.2017 09:50 (localtime): > Hi all, > > How can I use more than one serial console for several bhyve guests? According to nmdm(4) man page only two nullmodem devices can be created: nmdm0A and nmdm0B (and only nmdm0A can be assigned to one bhyve guest). Then, how can I access to these bhyve guests? Am I wrong if I assume you confused the A/B hard-connected limit of two interfaces with the possibility to create nmdmN[AB] number of nmdm(4) devices? Simply use nmdm1A/B, nmdm2A/B etc. Not sure if I got the question rigth, answers from others don't go into that direction... > I have tried to add vnc channel, but it doesn't works ..:( I haven't had VNC problems besides keymapping. It's done twice and I haven't found a way or a client to disable keymapping locally on a session basis. Have you used the "wait" option for fbuf? Did the vm start to run after VNC connection attempt? Best, -harry From owner-freebsd-virtualization@freebsd.org Fri Feb 17 14:29:34 2017 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 295A3CE38F3 for ; Fri, 17 Feb 2017 14:29:34 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::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 C05671CA3 for ; Fri, 17 Feb 2017 14:29:33 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: by mail-wm0-x232.google.com with SMTP id v77so11393667wmv.0 for ; Fri, 17 Feb 2017 06:29:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=nzaY6AJVAA+XgYjK2NSIHkAj2ZOMUlMx1mkYi0pj9SQ=; b=RVyAlr9FZKLCj5xZked+Clo2+eCDghhSWOIx0DJWTYgLUoJcDtv2x+V0uq5qw1gqtf XcGGjY8EdKRHXptXweiJ//PwMpqHo1RSidPp8RLZ8/OcpDg1buAMFvLkMdTPED/0aQ2h HgG31m+2oG7qF+abTADb8Enq4PqfwkhJhTgaXhpBetuRBiHxlkKgXyKt+JiF30LGflac jfwz+capeMq+pg+LguQ1H6ojeSkrUOtGReo7fwbv8ZTKsg7cB0wWmZg7OzXUcNcn8ht0 r01lip8EV9H0IQwk3zVjfZs3LjY5gKlggECGFFk1H0B/Fli28Luz0F2hamOaMewoISPT /KNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=nzaY6AJVAA+XgYjK2NSIHkAj2ZOMUlMx1mkYi0pj9SQ=; b=X0bs6gt9J1iKnPbIoGVbcNKgNi40+HPEtUCz9WEKowuDJbBcZ0k/BqzGSbJBJJALrg LXBjWfAVnyQ/gdvNNelET2Lti0PENhq0lbAiRDbJlE2I3j/+fKz4hn8qvA1VWSsKboRw MlxEbYwxEQGnWR06QU5AdmqcYxT6VSAzuQO3X+GXh2XeDyVdrNy9wcwa5sjcqa5ppMGG 0Xm5lVgempaKdg0NsXildqb/0JliJGjigS3fNWP6QcNPNONY7dscs/CjLFuS3DmUSmlC Z/CAYYd9iMfxoSPMjUyH1f9aSGC36Uw1E+krIFi9h6YydKVTsLSetRqzFvB7XmO8pd4n /rlg== X-Gm-Message-State: AMke39nq/d3e7kBr/rUNMvG9C31IUa4vZnvAjw1/PRqTp6tJa2VyNXh03zmSNi0J875e0w== X-Received: by 10.28.137.203 with SMTP id l194mr3873662wmd.63.1487341771148; Fri, 17 Feb 2017 06:29:31 -0800 (PST) Received: from localhost (231.red-79-150-68.dynamicip.rima-tde.net. [79.150.68.231]) by smtp.gmail.com with ESMTPSA id d29sm1907675wmi.19.2017.02.17.06.29.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Feb 2017 06:29:30 -0800 (PST) Date: Fri, 17 Feb 2017 14:29:41 +0000 From: "C. L. Martinez" To: freebsd-virtualization@freebsd.org Subject: Re: Providing serial consoles to multiple bhyve guests Message-ID: <20170217142940.d3erp3uhljtlld43@scotland.uxdom.org> References: <20170217085038.55yztxw5a233byzu@scotland.uxdom.org> <58A6EE64.6080201@whaev.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <58A6EE64.6080201@whaev.de> User-Agent: NeoMutt/20170113 (1.7.2) 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, 17 Feb 2017 14:29:34 -0000 On Fri, Feb 17, 2017 at 01:36:52PM +0100, Harald Schmalzbauer wrote: > Bezüglich C. L. Martinez's Nachricht vom 17.02.2017 09:50 (localtime): > > Hi all, > > > > How can I use more than one serial console for several bhyve guests? According to nmdm(4) man page only two nullmodem devices can be created: nmdm0A and nmdm0B (and only nmdm0A can be assigned to one bhyve guest). Then, how can I access to these bhyve guests? > > Am I wrong if I assume you confused the A/B hard-connected limit of two > interfaces with the possibility to create nmdmN[AB] number of nmdm(4) > devices? > Simply use nmdm1A/B, nmdm2A/B etc. > Not sure if I got the question rigth, answers from others don't go into > that direction... > Yes, that was my question. Thanks Harry. I have read too quickly :) > > > I have tried to add vnc channel, but it doesn't works ..:( > > I haven't had VNC problems besides keymapping. It's done twice and I > haven't found a way or a client to disable keymapping locally on a > session basis. > Have you used the "wait" option for fbuf? Did the vm start to run after > VNC connection attempt? > Yes, but I don't see anything in vncviewer console. Can be a problem with graphics controller on my laptop (my laptop is the bhyve host)? -- Greetings, C. L. Martinez From owner-freebsd-virtualization@freebsd.org Fri Feb 17 17:10:58 2017 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 14A13CE3C1A for ; Fri, 17 Feb 2017 17:10:58 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mx0.gentlemail.de (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A7629120B for ; Fri, 17 Feb 2017 17:10:57 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mh0.gentlemail.de (mh0.gentlemail.de [78.138.80.135]) by mx0.gentlemail.de (8.14.5/8.14.5) with ESMTP id v1HHAsKG040633; Fri, 17 Feb 2017 18:10:54 +0100 (CET) (envelope-from freebsd@omnilan.de) Received: from titan.inop.mo1.omnilan.net (titan.inop.mo1.omnilan.net [IPv6:2001:a60:f0bb:1::3:1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mh0.gentlemail.de (Postfix) with ESMTPSA id 3ED11DD3; Fri, 17 Feb 2017 18:10:54 +0100 (CET) Message-ID: <58A72E9D.3050500@omnilan.de> Date: Fri, 17 Feb 2017 18:10:53 +0100 From: Harry Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: "C. L. Martinez" CC: freebsd-virtualization@freebsd.org Subject: Re: Providing serial consoles to multiple bhyve guests References: <20170217085038.55yztxw5a233byzu@scotland.uxdom.org> <58A6EE64.6080201@whaev.de> <20170217142940.d3erp3uhljtlld43@scotland.uxdom.org> In-Reply-To: <20170217142940.d3erp3uhljtlld43@scotland.uxdom.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Greylist: ACL 119 matched, not delayed by milter-greylist-4.2.7 (mx0.gentlemail.de [78.138.80.130]); Fri, 17 Feb 2017 18:10:54 +0100 (CET) X-Milter: Spamilter (Reciever: mx0.gentlemail.de; Sender-ip: 78.138.80.135; Sender-helo: mh0.gentlemail.de; ) 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, 17 Feb 2017 17:10:58 -0000 Bezüglich C. L. Martinez's Nachricht vom 17.02.2017 15:29 (localtime): > On Fri, Feb 17, 2017 at 01:36:52PM +0100, Harald Schmalzbauer wrote: >> Bezüglich C. L. Martinez's Nachricht vom 17.02.2017 09:50 (localtime): … >>> I have tried to add vnc channel, but it doesn't works ..:( >> I haven't had VNC problems besides keymapping. It's done twice and I >> haven't found a way or a client to disable keymapping locally on a >> session basis. >> Have you used the "wait" option for fbuf? Did the vm start to run after >> VNC connection attempt? >> > Yes, but I don't see anything in vncviewer console. Can be a problem with graphics controller on my laptop (my laptop is the bhyve host)? Just to be sure: There was a UEFI loader in use? fbuf is only for GOP, so if you boot with CSM, you won't see anything since there's no VGA emulation. Only UEFI-GOP. Best, -harry From owner-freebsd-virtualization@freebsd.org Fri Feb 17 17:25:08 2017 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 CD873CE3E81 for ; Fri, 17 Feb 2017 17:25:08 +0000 (UTC) (envelope-from paul@redbarn.org) Received: from family.redbarn.org (family.redbarn.org [IPv6:2001:559:8000:cd::5]) (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 BDBE21BDF for ; Fri, 17 Feb 2017 17:25:08 +0000 (UTC) (envelope-from paul@redbarn.org) Received: from [IPv6:2001:559:8000:c9:5810:ddfd:6b97:1a32] (unknown [IPv6:2001:559:8000:c9:5810:ddfd:6b97:1a32]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by family.redbarn.org (Postfix) with ESMTPSA id A2B2061F8D; Fri, 17 Feb 2017 17:25:02 +0000 (UTC) Message-ID: <58A731EE.6090004@redbarn.org> Date: Fri, 17 Feb 2017 09:25:02 -0800 From: Paul Vixie User-Agent: Postbox 5.0.10 (Windows/20170123) MIME-Version: 1.0 To: "C. L. Martinez" CC: "freebsd-virtualization@freebsd.org" Subject: Re: Providing serial consoles to multiple bhyve guests References: <20170217085038.55yztxw5a233byzu@scotland.uxdom.org> <58A6BDA4.8070403@redbarn.org> <20170217103120.qsbqozgkstpicxcc@scotland.uxdom.org> In-Reply-To: <20170217103120.qsbqozgkstpicxcc@scotland.uxdom.org> Content-Type: text/plain; charset=ISO-8859-1 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, 17 Feb 2017 17:25:08 -0000 C. L. Martinez wrote: > >> `pkg install rtty` >> > Thanks Paul. But, do I need to start some daemon? the rtty documentation explains how to start it up. > And what options do > I need in bhyve command line?? Something like: "bhyve -A -H -P -W -c > 1 -u -l com1,/dev/rtty0..."?? you'll connect guest com1 to the host's /dev/nmdm?B ports, and symlink rtty's dev entries to the host's /dev/nmdm?A ports. "?" is the name of the vm. -- P Vixie From owner-freebsd-virtualization@freebsd.org Fri Feb 17 18:34:41 2017 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 9B1D0CE3DDD for ; Fri, 17 Feb 2017 18:34:41 +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 706791A98 for ; Fri, 17 Feb 2017 18:34:41 +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 v1HIYbHL050490 for ; Fri, 17 Feb 2017 18:34:41 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk Date: Fri, 17 Feb 2017 18:34:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marcel@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 17 Feb 2017 18:34:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211746 --- Comment #17 from Marcel Moolenaar --- I think the complexity of having the kernel at any other physical address is what has us do the staging/copying. It was a quick-n-dirty mechanism that avoided a lot of work and complexity -- which is ok if you don't know it's worth/needed to go through all that hassle. And I guess it looks like we now hit a case that warrants us to start looking at a real solution. As an example (for inspiration): For Itanium I had the kernel link against a fixed virtual address. The load= er built the VA-to-PA mapping based on where EFI allocated blobs of memory. The mapping was loaded/activated prior to booting the kernel and the loader gave the kernel all the information it needed to work with the mapping. This mak= es it possible to allocate memory before the VM system is up and running. Ultimately the mapping needs to be incorporated into the VM system and this= is where different CPU architectures have different challenges and solutions. Note that there are advantages to having the kernel link against a virtual address. In general it makes it easier to load or relocate the kernel anywh= ere and this enables a few capabilities that other OSes already have and then s= ome. There are also downsides. You may need to support a large VA range if you w= ant to support pre-loading CD-ROM images or run entirely form a memory disk tha= t's preloaded. A few GB of address space would be good to have. Anyway: It's probably time that to you restate this bug into an architectur= al (x86-specific for now) problem and have a discussion on the arch@ mailing l= ist. We need a more people involved to bring this to a closure. Good luck --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Sat Feb 18 02:47:52 2017 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 2CEAFCE2D70 for ; Sat, 18 Feb 2017 02:47:52 +0000 (UTC) (envelope-from b4@gewt.net) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (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 042E71056 for ; Sat, 18 Feb 2017 02:47:51 +0000 (UTC) (envelope-from b4@gewt.net) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 7A80920843 for ; Fri, 17 Feb 2017 21:47:50 -0500 (EST) Received: from web5 ([10.202.2.215]) by compute7.internal (MEProxy); Fri, 17 Feb 2017 21:47:50 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gewt.net; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=mqOZyx+Zf5I2ilRidDpTcymsEXA=; b=N1+GpwK0zz1MIp3yYZJRl fYVbEac2D4wcBQhhtGitBXvod6Slqg27c/6aKSi/0BbtCG3vKZCI4kZE+ib7t6Sv B8/dgyfvg3F0zHuzx2IxYARuCA5J/dcGkLA2y7SDG0HE7zbK7P4fKY2RP6Qj8E7q Y+v1yHvYRe7B3uddXaSWhI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=smtpout; bh=mqOZyx+Zf5I2ilRidDpTcymsE XA=; b=JJzJqRF6Fb0xg1K/zjwSAvvKekqHOqM5e99q5lsgoqgO7HiSivy5Dj33l qDQkHiq6sJFNZNCLrChw06gOf91Jizt7YQxMwbdgxOwr2FkBqeqPO2FzSznUDOPL LqWh0yhlMDDbIvBKRPiLg2oL3craTykOY4x8tI7QRtaBuS6rMQ= X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 596EC6ABFB; Fri, 17 Feb 2017 21:47:50 -0500 (EST) Message-Id: <1487386070.315899.884896824.4A9F927B@webmail.messagingengine.com> From: Cory Smelosky To: freebsd-virtualization@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-715c2c0c Subject: FreeBSD 11.0-RELEASE failing to probe virtual scsi controller on HyperV 2016 Date: Fri, 17 Feb 2017 18:47:50 -0800 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: Sat, 18 Feb 2017 02:47:52 -0000 Probably user error I bet. Trying to boot FreeBSD 11 on HyperV 2016 w/ virtual hardware version 2 (UEFI works! wooo!) except it doesn't get very far. Screenshot: http://imgur.com/a/zViXX -- Cory Smelosky b4@gewt.net