all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH qemu-server] cfg2cmd: also set smm=off for "none" type display
@ 2021-11-11 12:05 Oguz Bektas
  2021-11-11 13:04 ` Fabian Ebner
  0 siblings, 1 reply; 2+ messages in thread
From: Oguz Bektas @ 2021-11-11 12:05 UTC (permalink / raw)
  To: pve-devel

issue reported in community forum [0]

like "serial[n]" display we also need to set this option for
"none", otherwise we get a boot loop like in [1].

[0]: https://forum.proxmox.com/threads/debian-vms-wont-start-anymore.99508
[1]: https://forum.proxmox.com/threads/pve-7-0-all-vms-with-cloud-init-seabios-fail-during-boot-process-bootloop-disk-not-found.97310/post-427129

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
---
 PVE/QemuServer.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 9b76512..94576e1 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -3410,7 +3410,7 @@ my sub should_disable_smm {
     my ($conf, $vga) = @_;
 
     return (!defined($conf->{bios}) || $conf->{bios} eq 'seabios') &&
-	$vga->{type} && $vga->{type} =~ m/^serial\d+$/;
+	$vga->{type} && $vga->{type} =~ m/^(serial\d+|none)$/;
 }
 
 sub config_to_command {
-- 
2.30.2





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [pve-devel] [PATCH qemu-server] cfg2cmd: also set smm=off for "none" type display
  2021-11-11 12:05 [pve-devel] [PATCH qemu-server] cfg2cmd: also set smm=off for "none" type display Oguz Bektas
@ 2021-11-11 13:04 ` Fabian Ebner
  0 siblings, 0 replies; 2+ messages in thread
From: Fabian Ebner @ 2021-11-11 13:04 UTC (permalink / raw)
  To: pve-devel, Oguz Bektas

Am 11.11.21 um 13:05 schrieb Oguz Bektas:
> issue reported in community forum [0]
> 
> like "serial[n]" display we also need to set this option for
> "none", otherwise we get a boot loop like in [1].
> 
> [0]: https://forum.proxmox.com/threads/debian-vms-wont-start-anymore.99508
> [1]: https://forum.proxmox.com/threads/pve-7-0-all-vms-with-cloud-init-seabios-fail-during-boot-process-bootloop-disk-not-found.97310/post-427129
> 

Tested for my reproducer and indeed, with display none and without this 
patch, there is a boot loop.

Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
Tested-by: Fabian Ebner <f.ebner@proxmox.com>

> Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
> ---
>   PVE/QemuServer.pm | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
> index 9b76512..94576e1 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -3410,7 +3410,7 @@ my sub should_disable_smm {
>       my ($conf, $vga) = @_;
>   
>       return (!defined($conf->{bios}) || $conf->{bios} eq 'seabios') &&
> -	$vga->{type} && $vga->{type} =~ m/^serial\d+$/;
> +	$vga->{type} && $vga->{type} =~ m/^(serial\d+|none)$/;
>   }
>   
>   sub config_to_command {
> 




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-11 13:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11 12:05 [pve-devel] [PATCH qemu-server] cfg2cmd: also set smm=off for "none" type display Oguz Bektas
2021-11-11 13:04 ` Fabian Ebner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal