From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
Fiona Ebner <f.ebner@proxmox.com>
Subject: Re: [pve-devel] [PATCH qemu-server 2/2] config2cmd: warn when EFI disk is configured, but SeaBIOS is used
Date: Mon, 26 Sep 2022 11:40:31 +0200 [thread overview]
Message-ID: <07898f08-3610-c9be-fca8-de71ba35a609@proxmox.com> (raw)
In-Reply-To: <20220831124610.785526-2-f.ebner@proxmox.com>
On 31/08/2022 14:46, Fiona Ebner wrote:
> which can lead to operations like cloning the running VM failing.
hmm, could be a bit spammy as warning, but we do not have a level between
info and warning task log; log_notice() could be nice to get sometimes to have
something that isn't as "alarming" as warnings, to avoid normalizing warnings,
which could drown out a more "real" one (not saying this isn't problematic at
all, but there may be some setups that test around with different boot/fw and
want to avoid dropping the efidisk in between).
What about ignoring the efidisk in the clone, and similar affected cases but
warn there instead, while keep the start message here as info log (until we got
a notice log level)?
>
> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
> ---
> PVE/QemuServer.pm | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
> index 4e85dd02..3d7d70c5 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -3633,6 +3633,8 @@ sub config_to_command {
>
> push @$cmd, '-drive', "if=pflash,unit=0,format=raw,readonly=on,file=$ovmf_code";
> push @$cmd, '-drive', "if=pflash,unit=1$cache,format=$format,id=drive-efidisk0$size_str,file=${path}${read_only_str}";
> + } elsif ($conf->{efidisk0}) {
> + log_warn("EFI disk was not attached, because SeaBIOS is used");
> }
>
> if ($q35) { # tell QEMU to load q35 config early
next prev parent reply other threads:[~2022-09-26 9:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-31 12:46 [pve-devel] [PATCH qemu-server 1/2] config2cmd: make missing EFI disk warning more visible Fiona Ebner
2022-08-31 12:46 ` [pve-devel] [PATCH qemu-server 2/2] config2cmd: warn when EFI disk is configured, but SeaBIOS is used Fiona Ebner
2022-09-26 9:40 ` Thomas Lamprecht [this message]
2022-09-26 9:40 ` [pve-devel] applied: [PATCH qemu-server 1/2] config2cmd: make missing EFI disk warning more visible Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=07898f08-3610-c9be-fca8-de71ba35a609@proxmox.com \
--to=t.lamprecht@proxmox.com \
--cc=f.ebner@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox