mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-05 12:30:55 +00:00
Change the SCSI controller type when editing a harddisk only when creating a VM.
If not, the following could happen: * user has a VM with two disks attached to a LSI controller * adding a third disk, he notices the iothread option, and clicks it * the scsihw type for all disks is changed now to virtio-scsi-single * on next cold restart, STOP 0x0000007B INACCESSABLE_BOOT_DEVICE for a Windows VM Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
8722af4a58
commit
2a2dce7037
@ -104,7 +104,10 @@ Ext.define('PVE.qemu.HDInputPanel', {
|
||||
|
||||
if (values.iothread && confid.match(/^(virtio|scsi)\d+$/)) {
|
||||
me.drive.iothread = 'on';
|
||||
params.scsihw = 'virtio-scsi-single';
|
||||
// do not silently change a VM-wide option after creating it
|
||||
if (me.insideWizard) {
|
||||
params.scsihw = 'virtio-scsi-single';
|
||||
}
|
||||
} else {
|
||||
delete me.drive.iothread;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user