From owner-freebsd-xen@freebsd.org Sun May 9 01:22:47 2021 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 3D016645598 for ; Sun, 9 May 2021 01:22:47 +0000 (UTC) (envelope-from sww1235@gmail.com) Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fd5yt1JJdz4SgF for ; Sun, 9 May 2021 01:22:45 +0000 (UTC) (envelope-from sww1235@gmail.com) Received: by mail-il1-x130.google.com with SMTP id v13so11052931ilj.8 for ; Sat, 08 May 2021 18:22:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nLS/O9s0BNXpLev6lrMneRWr3YRxYZeQIVqa3ocLcY4=; b=g6nBPyq7kZpqvlRUEu8YrIN8k+Mph+I0JR8KINno/lln3mS1B+AhxICwOzBCG65Tnb xAuX9CpXwy9z0bz8PHeMvsPEpEozR5Jl9DIJ/x4SVbCgq6munUJHqEN9ZMSlyRwNxUfr IhDtOfFhqeLOkzHqGI7p7zRZ7z66pHvopsTKmS4suymyxzwQP5UItdOUruYt2YUejYom squfjs9ql8uQvSw7o+uRca5tTxrGlk6mpr0195Tp2FjPAz6CFeUOCDZCB5CS82n0gwYw 6aljPUHi7sTpdeKfIuSiGYe1sUtlV5VsWmd9Zmg24uYzluRzyB6Bq+HiVzoPqpd10yJ3 9aww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nLS/O9s0BNXpLev6lrMneRWr3YRxYZeQIVqa3ocLcY4=; b=TRyJubpcqdY91pYDEFejZ50EaKD2tRwiQwqM3ftaUasP+bEV1aMoRqrU0Mm6+sSFqT YqOfDntD9B5YSkQf/m+FNiGSAmJQDv2Zm+HWtxrc6cwin1msi4L1OBb8ASGYZCQ6VHbk IeaGcO4iDJij0CyvOWK85TzL11NjcFFv34zJIeaA8NZIM0Ww9mldcPZpxDT56tS0l4+8 xYgDtP2ZUTPE4LES/01iB953iFiZgR0cw9+LpyKjJ0DtuEcz4dqm8zBHI2kJEjn5jAIn RJM0hK7IuciQ0PW7EKf6PJgCrTgOtG2Fl67Ha6vHhJugnsvz3fV4t3DVu7N/GitFzEDQ sepA== X-Gm-Message-State: AOAM530mjcNuMyq40BrzOC/3OQgmPQ9BFYuIkdFD0K+3kFDDSxZjYyNu Rp+ODaYfELeTNF0r4m6t9A2TFKE5BqSslwRxR0WP8pAZQ+g= X-Google-Smtp-Source: ABdhPJy5EKpcn0LFybTLQU+H/AqjOAZwe3mq6jHT2hTD2zysfyvZqDveD/oL4jcdmWtVTmeu6oOist4t0I40HdMb/6U= X-Received: by 2002:a05:6e02:1baf:: with SMTP id n15mr15852017ili.148.1620523364747; Sat, 08 May 2021 18:22:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Stephen Walker-Weinshenker Date: Sat, 8 May 2021 19:22:37 -0600 Message-ID: Subject: Re: [SUSPECTED SPAM]Re: HEADS UP: FreeBSD/Xen dom0 UEFI support To: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Cc: freebsd-xen@freebsd.org X-Rspamd-Queue-Id: 4Fd5yt1JJdz4SgF X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=g6nBPyq7; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sww1235@gmail.com designates 2607:f8b0:4864:20::130 as permitted sender) smtp.mailfrom=sww1235@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::130:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-xen@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::130:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::130:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-xen] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.34 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: Sun, 09 May 2021 01:22:47 -0000 On Mon, Apr 26, 2021 at 3:30 AM Roger Pau Monn=C3=A9 wrote: > On Sun, Apr 25, 2021 at 05:10:44PM -0600, Stephen Walker-Weinshenker wrot= e: > > On Thu, Apr 22, 2021 at 12:58 AM Roger Pau Monn=C3=A9 > > wrote: > > > > > On Wed, Apr 21, 2021 at 08:32:18PM -0600, Stephen Walker-Weinshenker > wrote: > > > > Hello Roger: > > > > > > > > Thank you for your work on this. I am new to Xen and FreeBSD but am > > > willing > > > > to help test this and get it in a release version. > > > > > > > > I have 3 Intel NUC 8v5PNK that I am planning on using for Xen hosts= , > but > > > > they can only boot in UEFI mode (intel disabled BIOS booting per > their > > > > official documentation even though it is still an option in the BIO= S > > > > /shrug). Until this patch came along I could not get any Xen > distribution > > > > to boot since they all require BIOS mode. > > > > > > > > I have 2 of the 3 NUCS running 14.0-CURRENT at git commit > > > > 55fc118be8f0cd20e2123cfd2728c5f32317a9fa (after your patch was > merged) > > > and > > > > I have attempted to follow the instructions at > > > > > > > > https://docs.freebsd.org/en_US.ISO8859-1/books/handbook/virtualization-ho= st-xen.html > > > > in order to get the Xen kernel booting. Unfortunately, when I > rebooted > > > > after making the changes, I get an error saying: > > > > > > > > >Loading Xen kernel... > > > > >Failed to load Xen kernel '/boot/xen' > > > > >can't load 'kernel' > > > > > > > > > >can't load 'kernel' > > > > > > Did you update the loader on the EFI partition? > > > > > > After an installworld on my box I would usually do: > > > > > > # mount -t msdosfs /dev/ada0p1 /mnt/ > > > # cp /boot/loader.efi /mnt/EFI/freebsd/loader.efi > > > # umount /mnt > > > > > > To update the EFI loader. You might have to check the output of > > > `efibootmgr -v`to make sure you are replacing the correct loader. I > > > guess there must also be a way to do this with efibootmgr. > > > > > > For whatever reason my EFI partition nvd0p1 was already mounted at > > /boot/efi, > > so my copy command was > > # cp -f /boot/loader.efi /boot/efi/efi/freebsd/loader.efi > > > > I did this prior to the last reboot after changing the boot config as > > recommended by > > > > This fixed the issue of the xen kernel not booting on one of the boxes. > > (did the copy prior to the final reboot) Looks like I will have to > > reinstall the OS on the other one (not a big deal) > > > > Now, I am just getting a blank screen on boot. I am unable to ssh into > the > > Dom0 either. > > What's your Xen command line? (ie: xen_cmdline string in > loader.conf) > > Which version of Xen are you using? > > Do you have serial output available on those boxes? That might help > get some messages if everything else fails. > > Roger. > Sorry for the delay in responding. Real life took precedence over this testing. xen_cmdline=3D"dom0_mem=3D2048M dom0_max_vcpus=3D1 dom0=3Dpvh com1=3D115200= ,8n1 guest_loglvl=3Dall loglvl=3Dall console=3Dvga,com1" xen-kernel version =3D 4.14.1_1 xen-tools version =3D 4.14.1_1 Both installed from packages, rather than ports. These boxes are Intel NUCs that I normally manage over intel AMT using mesh commander. I tried enabling the virtual serial port through AMT but no dice. I know the nucs have a hardware serial port, but I don't have the cable to attach to the header at the moment. I have ordered some headers and crimp pins to attach to the serial port for more debugging, but they will not get here for about a week. I also tried connecting directly to the NUC's HDMI port but I just got a blank screen again, after all the boot messages appeared. Thank you again. --=20 Stephen Walker-Weinshenker sww1235@gmail.com From owner-freebsd-xen@freebsd.org Mon May 10 10:31:33 2021 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 D3370633161 for ; Mon, 10 May 2021 10:31:33 +0000 (UTC) (envelope-from roger.pau@citrix.com) Received: from esa2.hc3370-68.iphmx.com (esa2.hc3370-68.iphmx.com [216.71.145.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.hc3370-68.iphmx.com", Issuer "HydrantID SSL CA G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fdy5c4vgfz3Dxr for ; Mon, 10 May 2021 10:31:32 +0000 (UTC) (envelope-from roger.pau@citrix.com) IronPort-SDR: SwCtTZqC5+mNJi0WBrFESMngmit1joup6Q0A+OvIDVAvflBHv8JoDNMg2waoQlJAk3ZureC0GW +eOVedaAhDhCPgbIdr85JwOcWyqR1GqknUwfNGF+OmrA0fBeKezg2VzKadbEfcnPFI8Wh/x/+F 0A0uGASsGBr9FXTD5ADUIubRgH/eEMTdWjPQIkeoNSpvUGq4wzde9DMZFi0a6EuUf/IA/rSQ/N o08MEA3eJt1xLNj+McvAsOfMc6T5AhpikEmPcyRPIazQhtK3lMgVfZgQ70jp2qG8NJLh/rdU8a +TE= X-SBRS: 5.1 X-MesageID: 43420006 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED IronPort-HdrOrdr: A9a23:3gWPYqAH+Lm+AEDlHeijsceALOsnbusQ8zAXPh9KJiC9I/b1qy nxppkmPH/P6Qr4WBkb6Le90Y27MAnhHPlOkPQs1NaZLXLbUQ6TQr2KgrGSoQEIdxeOk9K1kJ 0QD5SWa+eAfWSS7/yKmTVQeuxIqLLskNHK9JXjJjVWPHlXgslbnnZE422gYytLrWd9dP4E/M 323Ls4m9PsQwVbUizVbUN1E9TrlpnurtbLcBQGDxko5E2lljWz8oP3FBCew1M3Ty5P6a1Kyx mFryXJooGY992rwB7V0GHeq75MnsH699dFDMuQzuAINzTXjBqybogJYczNgNkMmpDt1L8Wqq iPn/95VP4Drk85P1vF7icF4jOQkArHsBTZuBulaRKJm72LeNo4Y/Axzb6xPCGprHbIh+sMpJ 6j6Vjp/qa/PSmw6RgV2OK4IC2CtnDE6kbKwtRjxUC2b+MlGclsRNskjTxo+dE7bWTH1Lw= X-IronPort-AV: E=Sophos;i="5.82,287,1613451600"; d="scan'208";a="43420006" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mBYRE7MSpr3eFWMTbWyhyHmUDfbPPgEk1cmRSYwcnwprYKYuvD7AnDBe0LtI4zvlFA4rEMXND305GT+UCmOS5+Yww2s3hQW7cZKyFwz90tJKWldPhFChE8JrhkAKUZJxlBV07cd1YFzGpEuSQgGq+WuIQGsEVKnGzUXQzTthBpbXWEkidB3o7BBwERzSkkVNbtCAUFXHvRx1pK6Ym55pCaO4egZBXaDcepkZiEkL3OKcEByUyU/hW30qWooxv0qMbv0KNlOHy4/8zmmb6nCjO4ITK2Tmxa/OI4Q8FenSI1SDUjtk6ES5wavUyTYfWrW6TYq21LaHkOzuM6xwVaqDmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MghU4y1ab2XfxAcL+n9JfxDjmr6Hc3JN/zbWc7ab5Zs=; b=LdDEQAwbrPe4whtkEjjfDUkbypAgsuYxACy+Sn4/0Qso/PoHHB/ifkB+b2lAifGwfRA+E3ShsSZBP0tk6ISzR3rFkukUYtIXb4Gsc4yoRP+C2l5lqS2RHAW2gSxMclCtiarIVMH1gTpnJ8JDiQEj6FL6zDJt94D8dHxWUY47JVU35ki6X5W0hjli39AZJSEdH3OBepvh4UPXJiL8usJ+epzPByjYel1btnyLMgYArRTvuIqABVVs4TEkU8z0mfXuQZ7Z2s20sJD5f8v51V1M19UAfl7OxGdoIsyEm84HL2nB8UBeaIjSXTLgvjPEjS9P8HUgFbz405YAeZpTwwjLnA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none Date: Mon, 10 May 2021 12:31:20 +0200 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: Stephen Walker-Weinshenker CC: Subject: Re: [SUSPECTED SPAM]Re: HEADS UP: FreeBSD/Xen dom0 UEFI support Message-ID: References: Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-ClientProxiedBy: MR2P264CA0025.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500::13) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 480a9d1b-4d2a-43f9-efd3-08d9139ec407 X-MS-TrafficTypeDiagnostic: DS7PR03MB5463: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yqCQGblZEvsKqhaUtFfA15agdT160YtJxjuymr24B6+gMea7DWew8ToYpvoQhX69tf6e/dpVbawmDOu6/bQeNajvMTwa5aaMUVtRIA/kgNmy56W2m+OwAky3QqmcKWhZ1xXpWL5k4ZXgfxTouBcp9qyODXUgfEl82gCzvQ4nLTB9v2axOuzoIqZg/VwhYOVdLb1nfNecbAucVWZ6kUynbdqzYarru17QAw6/0zF0nQ3fJtSJLPdIJPiFHk6SEz4uax3VEycS8YaDb3/j+JavkPa1W2wZy1Xek1mxb526cgHUjPpAjp5UwJP3UCfEt93NXydLUw1nQOkCCf8EYlqcLIBW0n/H9u80mZ17QAwfVbGudSGWv8pVqsuudiaDgRj7Dq5/rX9rt9cEB8SG69iGQ5uqZdciMXDti8AWDqlPTtPypDpCQsa4mL2ISuLaua7OVWVgq6DpQLw+BTZPNfP2AYCpgH+Mwe9kArU6h0klcjExi6bQuOYvoLG+4lS1XpeNnjawmXjUpE/tPQw2ittFSItHhqgSiExieitR9EFCXhwMrWq76SI/QDXqoCEgJHd5femYV4TiW0F5RqZareBDBCv5Bolz5txq1sLfXlwBu0waIHcI0T0AGXbo6lJaYmlybY+R9d+qzXV4BvbbGUmmO/mYdsZPHrEenwBT+oG2l64OXgBtLeipzhYsrxoAUb8D X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR03MB5608.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(7916004)(4636009)(39860400002)(366004)(376002)(346002)(396003)(136003)(6486002)(26005)(85182001)(6916009)(6496006)(83380400001)(8676002)(53546011)(86362001)(956004)(66556008)(186003)(16526019)(478600001)(8936002)(9686003)(33716001)(6666004)(38100700002)(316002)(966005)(4326008)(66946007)(2906002)(5660300002)(66476007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?OTJteTVNNWd2QndpaXVUR1c3K1JJVjN5RDAzVEJoNVJMbzRBQTFSMk90aHIr?= =?utf-8?B?YVJqT2p2NGJuQkRFNXRRT05IRUUzWCtJVGppek1qaTMyRkRBUWhCRVBVb0Nl?= =?utf-8?B?QlV0TmNYZHdtUnp5NFZ4RURxaEFoQ01sUG1PNW90NXZZdmowbElybVZEbkZY?= =?utf-8?B?Ri9QL2haMHFTTnpRZk9TNzhKMlVKWmppYnpId0NhL2N1N1BRb1N5LzA4Z0VI?= =?utf-8?B?QWNvdXZXY1lVVU15TFZpOGZ0YnZyNlNXMWQxSE5nckVualFKV1R2Q2dEVXEx?= =?utf-8?B?T3RMVThkaG96dm1VL0ErZSs4em1INlpQRWhCK0IzckFWQnY4THN6Q2tWODBJ?= =?utf-8?B?d1UxYm5Na3pLOTBKaUpPdTQzSzJONWcwN0ZSZmFEZkQvZUZOUU1JMjBFWFVH?= =?utf-8?B?RlhJQml5LzdXTEM5WjJ3di9mdWhsakZjTTBXVFVXZGJIellwVmlVUUIvT0tU?= =?utf-8?B?OERVdk5BOGpkemlkRzBaako4L2IwakQwdkNuOTBXdWQ3KysxaDZNMW93ay81?= =?utf-8?B?UVJ1OWJncmF0ZXR1NnZBcXJldDJpUTAxckdYS0dSajdON3lweDZRbkt1blBH?= =?utf-8?B?eDZIbUZlL2pPOG5uSnZLYTZ3MmVYQ2c5QVVjZ0xraExJUGk4d1AxZzB5Y3p0?= =?utf-8?B?aEpDL09ocTdudUMwYjVZWFBXalJOSTAvZHl1RGtQY2tRVVhwYStqbHoybEFD?= =?utf-8?B?Ym9zWStWNVA4YWxRTUx0K0pMdTZDL2dYOXhvR0RqNGFCajI4SnBjSTdKci9U?= =?utf-8?B?L2NDakJ3WVZ1T1BreGZHTk9BNHpac1YzYXg0ZW40STNPa2dwejcvUUtMSzZZ?= =?utf-8?B?bFl3RXd0dTdQVml5SkdWcUpHdW5iNm5vVTVkNWx6aXZnQld5TFFMNXE4M2Q2?= =?utf-8?B?VVltUVNiRWd5MWpCZ0hMbEFRSUJiN0cyVVdSZU5STXpFd1kvNUVWbmJhNlNY?= =?utf-8?B?bzNWVS82a1g4NERlcFhPV1FiVUovWEpRYXFMSm5XWTNrVHM1V2htM2RSdDA0?= =?utf-8?B?a2lJcS83Snl5a295SW1NejRDZjI0eWFkaGxvM1pDMHk0bkVySlVRa0Q3NTBk?= =?utf-8?B?TkxCK1c2cHVNdFpRL2V4S2MwdTRpamhnRm1FTWNIRjhkU3ZkRmh4SXREU096?= =?utf-8?B?ODJhNXBpSTNZamtpWXlJekJmSnQ1Rm5HSXZQR3pLd1VEYXBXeGowb1U2Z0Mw?= =?utf-8?B?d3ZHdTVvV3hMbmFMTitXTW5ZdDNZanNldlMyaFpMaEpweHoxYUFQdFBvRkhY?= =?utf-8?B?ZHluZHdwSUVOcVpmQTI5dVFTMGcrY3M5cWZmbnFkUnlvNGFpV3g0d2ZtYWJo?= =?utf-8?B?U2RnN0FyZzhBZ2tjazZIWDV5OEIzUmVMbnI1eU1FTGdpR1l0WlEzMFk5dWZt?= =?utf-8?B?U0Q4QVFGNlVzako1bGlEcjdjeVBlcm5tOFM2S0xvM1VuelZCQStnYTNyU0hy?= =?utf-8?B?S1RxUWE5N2NmaXB6bzBWRk10Y2VDczBWdS82MFZGNXUvNmdVZ3N3L0NzaXd4?= =?utf-8?B?RGQzQmhhWk9WRm11ZTYzb1ZTb3h0c2NSdm1zbUJ1akJmam0yM1ozT1l0WUkz?= =?utf-8?B?dCtxL0JpSjRSeDhEdUphN2xNYW14dTJhZEdYYjIvcGQ2UlFVQlgzbzByZG03?= =?utf-8?B?ekdUVkcwRDVIRXBLMFgvM0hSNEE5VFd3QjNoMjAzQTJ4dnFFYVJPeGlCTmQr?= =?utf-8?B?VEdjMEo5ZzladlByZ1ltQjU4Vm5CSjR0TllrclQ5cGZQd3ljM1h5WTRheWpa?= =?utf-8?Q?FqZOvtzCmsxQ1k5r0mhbf3q4u+XZTSvrfGQjAzM?= X-MS-Exchange-CrossTenant-Network-Message-Id: 480a9d1b-4d2a-43f9-efd3-08d9139ec407 X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2021 10:31:26.5435 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LpVT7WYrVC0Mt+FxGpTAc/xnCb2sAA50cqvqNzc3NzTnBTKPlqV5gJ8yBxOMZXLwceQMMLusBHtr+PeOjwon3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR03MB5463 X-OriginatorOrg: citrix.com X-Rspamd-Queue-Id: 4Fdy5c4vgfz3Dxr X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.20 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[citrix.com:s=securemail,citrix.onmicrosoft.com:s=selector2-citrix-onmicrosoft-com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+exists:216.71.145.153.spf.hc3370-68.iphmx.com]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RWL_MAILSPIKE_GOOD(0.00)[216.71.145.153:from]; DWL_DNSWL_LOW(-1.00)[citrix.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[216.71.145.153:from]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[citrix.com,reject]; DKIM_TRACE(0.00)[citrix.com:+,citrix.onmicrosoft.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com]; 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.145.0/24, country:US]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; MAILMAN_DEST(0.00)[freebsd-xen] X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.34 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, 10 May 2021 10:31:33 -0000 On Sat, May 08, 2021 at 07:22:37PM -0600, Stephen Walker-Weinshenker wrote: > On Mon, Apr 26, 2021 at 3:30 AM Roger Pau Monné > wrote: > > > On Sun, Apr 25, 2021 at 05:10:44PM -0600, Stephen Walker-Weinshenker wrote: > > > On Thu, Apr 22, 2021 at 12:58 AM Roger Pau Monné > > > wrote: > > > > > > > On Wed, Apr 21, 2021 at 08:32:18PM -0600, Stephen Walker-Weinshenker > > wrote: > > > > > Hello Roger: > > > > > > > > > > Thank you for your work on this. I am new to Xen and FreeBSD but am > > > > willing > > > > > to help test this and get it in a release version. > > > > > > > > > > I have 3 Intel NUC 8v5PNK that I am planning on using for Xen hosts, > > but > > > > > they can only boot in UEFI mode (intel disabled BIOS booting per > > their > > > > > official documentation even though it is still an option in the BIOS > > > > > /shrug). Until this patch came along I could not get any Xen > > distribution > > > > > to boot since they all require BIOS mode. > > > > > > > > > > I have 2 of the 3 NUCS running 14.0-CURRENT at git commit > > > > > 55fc118be8f0cd20e2123cfd2728c5f32317a9fa (after your patch was > > merged) > > > > and > > > > > I have attempted to follow the instructions at > > > > > > > > > > > https://docs.freebsd.org/en_US.ISO8859-1/books/handbook/virtualization-host-xen.html > > > > > in order to get the Xen kernel booting. Unfortunately, when I > > rebooted > > > > > after making the changes, I get an error saying: > > > > > > > > > > >Loading Xen kernel... > > > > > >Failed to load Xen kernel '/boot/xen' > > > > > >can't load 'kernel' > > > > > > > > > > > >can't load 'kernel' > > > > > > > > Did you update the loader on the EFI partition? > > > > > > > > After an installworld on my box I would usually do: > > > > > > > > # mount -t msdosfs /dev/ada0p1 /mnt/ > > > > # cp /boot/loader.efi /mnt/EFI/freebsd/loader.efi > > > > # umount /mnt > > > > > > > > To update the EFI loader. You might have to check the output of > > > > `efibootmgr -v`to make sure you are replacing the correct loader. I > > > > guess there must also be a way to do this with efibootmgr. > > > > > > > > For whatever reason my EFI partition nvd0p1 was already mounted at > > > /boot/efi, > > > so my copy command was > > > # cp -f /boot/loader.efi /boot/efi/efi/freebsd/loader.efi > > > > > > I did this prior to the last reboot after changing the boot config as > > > recommended by > > > > > > This fixed the issue of the xen kernel not booting on one of the boxes. > > > (did the copy prior to the final reboot) Looks like I will have to > > > reinstall the OS on the other one (not a big deal) > > > > > > Now, I am just getting a blank screen on boot. I am unable to ssh into > > the > > > Dom0 either. > > > > What's your Xen command line? (ie: xen_cmdline string in > > loader.conf) > > > > Which version of Xen are you using? > > > > Do you have serial output available on those boxes? That might help > > get some messages if everything else fails. > > > > Roger. > > > > Sorry for the delay in responding. Real life took precedence over this > testing. > > xen_cmdline="dom0_mem=2048M dom0_max_vcpus=1 dom0=pvh com1=115200,8n1 > guest_loglvl=all loglvl=all console=vga,com1" Can you try adding 'watchdog' to xen_cmdline and see if that forces the box to reboot after it goes black? If Xen is able to boot, and the problem is with FreeBSD dom0 you might try also adding vga=keep to xen_cmdline, that way we might get some output from dom0 (if that's indeed where the issue is happening). > xen-kernel version = 4.14.1_1 > xen-tools version = 4.14.1_1 > > Both installed from packages, rather than ports. > > These boxes are Intel NUCs that I normally manage over intel AMT using mesh > commander. I tried enabling the virtual serial port through AMT but no > dice. I never tried using the AMT serial port, first thing would be to get it to work with plain FreeBSD, then we can see about getting it working with Xen. FWIW, a lot of the test boxes I work with use SoL, and I would expect the AMT serial to work as well. > I know the nucs have a hardware serial port, but I don't have the > cable to attach to the header at the moment. I have ordered some headers > and crimp pins to attach to the serial port for more debugging, but they > will not get here for about a week. I did the original EFI work on a NUC7i7DNHE using the serial port. Last time I tried HDMI worked with Xen. > I also tried connecting directly to the NUC's HDMI port but I just got a > blank screen again, after all the boot messages appeared. Are those messages that you see Xen boot messages or FreeBSD boot messages? Does the box reboot itself? I'm afraid we will require some more information to help diagnose what's going on. Thanks, Roger.