From owner-freebsd-xen@freebsd.org Mon Aug 31 07:55:14 2020 Return-Path: Delivered-To: freebsd-xen@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 552063B8D48 for ; Mon, 31 Aug 2020 07:55:14 +0000 (UTC) (envelope-from roger.pau@citrix.com) Received: from esa5.hc3370-68.iphmx.com (esa5.hc3370-68.iphmx.com [216.71.155.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "esa5.hc3370-68.iphmx.com", Issuer "HydrantID SSL ICA G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bg2YX4s5Rz4CYL for ; Mon, 31 Aug 2020 07:55:12 +0000 (UTC) (envelope-from roger.pau@citrix.com) IronPort-SDR: WJ+W6ihYW1I1IMWOR692Wc7O0UKb2bCP49lFQWkACiEnfLs9pKLwbcWD+3W4dkCVLgfbze+Zgw ewFOFhafMhppO9SGDwskV8toaUyZNLB5M0BW2h2KLVLFe4RrwIXG98btLpKvoKWIkZV5mTEIAm aAv1vQgYXDGuwt9lucOJ8YN/azZS0W82/vxRovxvZ179sbaxEJf804A9h3Kl3Nv024znAQCrgM +FP9kXgaktEK7CTw6SRVm8PI330XRuFElElT8dSKVPYpwx6ZLXxQnl9mDdLDqNZlblOZIYiRCS Vrw= X-SBRS: 2.7 X-MesageID: 25759882 X-Ironport-Server: esa5.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.76,374,1592884800"; d="scan'208";a="25759882" Date: Mon, 31 Aug 2020 09:55:03 +0200 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: Brian Buhrow CC: Subject: Re: The vnclisten parameter is ignored with hvm domains under xen-4.12.1 and FreeBSD-12.0 Message-ID: <20200831075009.GE734@Air-de-Roger> References: <20200828165658.GD734@Air-de-Roger> <202008282111.07SLB7TW001877@nfbcal.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <202008282111.07SLB7TW001877@nfbcal.org> X-ClientProxiedBy: AMSPEX02CAS01.citrite.net (10.69.22.112) To FTLPEX02CL06.citrite.net (10.13.108.179) X-Rspamd-Queue-Id: 4Bg2YX4s5Rz4CYL X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.94 / 15.00]; ARC_NA(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[216.71.155.168:from]; R_DKIM_ALLOW(-0.20)[citrix.com:s=securemail]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+exists:216.71.155.168.spf.hc3370-68.iphmx.com]; NEURAL_HAM_LONG(-1.02)[-1.022]; MIME_GOOD(-0.10)[text/plain]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DWL_DNSWL_LOW(-1.00)[citrix.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[216.71.155.168:from]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[citrix.com,reject]; DKIM_TRACE(0.00)[citrix.com:+]; NEURAL_HAM_SHORT(-0.72)[-0.723]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:16417, ipnet:216.71.154.0/23, country:US]; MAILMAN_DEST(0.00)[freebsd-xen] X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Aug 2020 07:55:14 -0000 On Fri, Aug 28, 2020 at 02:11:07PM -0700, Brian Buhrow wrote: > hello Roger. thanks for the quick reply. I think, after a careful > read of the xl.cfg man page plus a careful reading of the xen-tools source > code, I've figured out the issue. I'm sending the solution here so folks > will have it in the future. > > If one is configuring an hvm guest, any vfb specifications in the domain > configuration are ignored. Let me clarify this a bit. vfb is a para-virtualized frame buffer, so it needs a specific Xen vfb driver in the guest for it to be able to use the device (ie: it's not an emulated graphics card). > Instead, the parameters that normally get placed > in a vfb stanza must be placed as top level configuration items. For > example: > > For a PV guest: > vfb = [ 'vnc=1,vnclisten=10.14.200.200' ] > > Translates to, for an hvm guest: > > vnc = 1 > vnclisten = "10.14.200.200" OTOH, the global vnc parameter is indeed exclusive to HVM guests and is related to the emulated graphics card device. You could have a HVM guest making use of both the emulated graphics card (the global vnc parameter) and nmultiple para-virtualized vfb framebuffers, but those would be different outputs (like having more than one graphics card on a physical box). You cannot however make use of the global vnc parameter for PV guests, as they have no emulated graphics card. > > The xl.cfg man page doesn't say that in order for the vnc parameters to be > picked up for hvm guests with emulated graphics cards, those parameters > need to be specified as top level parameters in the config file. It took > reading the source code of the xen-tools xl code to figure that out. Sorry, I understand this is quite confusing. Do you think the man page could be modified to make this easier to understand and create less confusion? I'm quite sure the community would be happy to take a patch in order to clarify stuff. Thanks, Roger.