forked from Proxmox-Port/Proxmox-Port
39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
|
|
index b26da505..fc8ca388 100644
|
|
--- a/PVE/QemuServer.pm
|
|
+++ b/PVE/QemuServer.pm
|
|
@@ -599,9 +604,9 @@ EODESCR
|
|
},
|
|
cdrom => {
|
|
optional => 1,
|
|
- type => 'string', format => 'pve-qm-ide',
|
|
+ type => 'string', format => 'pve-qm-scsi',
|
|
typetext => '<volume>',
|
|
- description => "This is an alias for option -ide2",
|
|
+ description => "This is an alias for option -scsi",
|
|
},
|
|
cpu => {
|
|
optional => 1,
|
|
|
|
@@ -2394,7 +2400,7 @@ sub parse_vm_config {
|
|
if ($@) {
|
|
$handle_error->("vm $vmid - unable to parse value of '$key' - $@");
|
|
} else {
|
|
- $key = 'ide2' if $key eq 'cdrom';
|
|
+ $key = 'scsi2' if $key eq 'cdrom';
|
|
my $fmt = $confdesc->{$key}->{format};
|
|
if ($fmt && $fmt =~ /^pve-qm-(?:ide|scsi|virtio|sata)$/) {
|
|
my $v = parse_drive($key, $value);
|
|
@@ -2426,8 +2432,8 @@ sub write_vm_config {
|
|
delete $conf->{snapstate}; # just to be sure
|
|
|
|
if ($conf->{cdrom}) {
|
|
- die "option ide2 conflicts with cdrom\n" if $conf->{ide2};
|
|
- $conf->{ide2} = $conf->{cdrom};
|
|
+ die "option scsi2 conflicts with cdrom\n" if $conf->{scsi2};
|
|
+ $conf->{scsi2} = $conf->{cdrom};
|
|
delete $conf->{cdrom};
|
|
}
|
|
|
|
sub start_swtpm {
|