all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH qemu-server] boot order: Do not use efidisk as default
@ 2020-11-26 11:13 Dominic Jäger
  0 siblings, 0 replies; only message in thread
From: Dominic Jäger @ 2020-11-26 11:13 UTC (permalink / raw)
  To: pve-devel

This allows to specify an efidisk during create without specifying
boot order.  This enables creating a VM, importing a disk and
afterwards deciding where to attach it:

qm create 102 --bios ovmf --efidisk0 local:0
qm importdisk 102 /root/Windows10.vmdk local
qm set 102 --sata0 local:102/vm-102-disk-1.raw --boot order=sata0

Reported-by: Dominic Jäger <d.jaeger@proxmox.com>
Authored-by: Stefan Reiter <s.reiter@proxmox.com>
Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
---
 PVE/QemuServer/Drive.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/QemuServer/Drive.pm b/PVE/QemuServer/Drive.pm
index d560937..bb3e990 100644
--- a/PVE/QemuServer/Drive.pm
+++ b/PVE/QemuServer/Drive.pm
@@ -605,6 +605,7 @@ sub resolve_first_disk {
     my @disks = valid_drive_names();
     foreach my $ds (@disks) {
 	next if !$conf->{$ds};
+	next if $ds =~m/^efidisk/;
 	my $disk = parse_drive($ds, $conf->{$ds});
 	next if drive_is_cdrom($disk) xor $cdrom;
 	return $ds;
-- 
2.20.1




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-26 11:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-26 11:13 [pve-devel] [PATCH qemu-server] boot order: Do not use efidisk as default Dominic Jäger

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