[SOLVED] qemu exited with code 1

RodMor

New Member
Oct 11, 2022
10
0
1
Hello,

Any idea why I get this error?

Code:
root@svr-lab:~# qm start 199
kvm: -device ide-cd,bus=ide.1,unit=1,drive=drive-ide3,id=ide3,bootindex=103: Can't create IDE unit 1, bus supports only 1 units
start failed: QEMU exited with code 1

Thank you.
 
please share the config of the VM - `qm config 199`

How many cd-rom drives have you added and at what position?
 
VM config:

Code:
root@svr-lab:~# qm config 199
agent: 1
balloon: 2048
bios: ovmf
boot: order=scsi0;ide2;net0;ide3
cores: 2
cpu: host
efidisk0: HVDisk-Lab:199/vm-199-disk-0.qcow2,efitype=4m,pre-enrolled-keys=1,size=528K
ide2: HVDisk-Lab:iso/WIN_SERVER_STD_CORE_2019_1809.18_64BIT_ENGLISH_Updated-AUG-2021.ISO,media=cdrom,size=5445092K
ide3: HVDisk-Lab:iso/virtio-win-0.1.225.iso,media=cdrom,size=519590K
lock: suspended
machine: pc-q35-7.1
memory: 4096
meta: creation-qemu=7.1.0,ctime=1672222113
name: Win-Server-2k19
net0: virtio=C2:XX:XX:61:XX:36,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsi0: HVDisk-Lab:199/vm-199-disk-1.qcow2,cache=writeback,iothread=1,size=64G
scsihw: virtio-scsi-single
smbios1: uuid=a9d8db75-5bfe-4ce5-a03e-994e7491834d
sockets: 1
vga: virtio
vmgenid: 3ea6d62a-bcb9-4ccd-a301-2fe5bb9b7ca5

I have 2 CD-ROM drives, because I will need VirtIO drivers for install Win Server 2k19.
Thank you for your help!
 
boot: order=scsi0;ide2;net0;ide3 ide2: HVDisk-Lab:iso/WIN_SERVER_STD_CORE_2019_1809.18_64BIT_ENGLISH_Updated-AUG-2021.ISO,media=cdrom,size=5445092K ide3: HVDisk-Lab:iso/virtio-win-0.1.225.iso,media=cdrom,size=519590K
I think the work-around is to use ide0 and ide2, not ide2 and ide3. Change ide3 to ide0 for example.
 
Second tentative:

Code:
root@svr-lab:~# qm config 199
agent: 1
balloon: 2048
bios: ovmf
boot: order=scsi0;net0;ide0;ide1
cores: 2
cpu: host
efidisk0: HVDisk-Lab:199/vm-199-disk-0.qcow2,efitype=4m,pre-enrolled-keys=1,size=528K
ide0: HVDisk-Lab:iso/WIN_SERVER_STD_CORE_2019_1809.18_64BIT_ENGLISH_Updated-AUG-2021.ISO,media=cdrom,size=5445092K
ide1: HVDisk-Lab:iso/virtio-win-0.1.225.iso,media=cdrom,size=519590K
machine: pc-q35-7.1
memory: 4096
meta: creation-qemu=7.1.0,ctime=1672222113
name: Win-Server-2k19
net0: virtio=xx:xx:xx:xx:xx:36,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsi0: HVDisk-Lab:199/vm-199-disk-1.qcow2,cache=writeback,iothread=1,size=64G
scsihw: virtio-scsi-single
smbios1: uuid=a9d8db75-5bfe-4ce5-a03e-994e7491834d
sockets: 1
vga: virtio
vmgenid: 3ea6d62a-bcb9-4ccd-a301-2fe5bb9b7ca5


root@svr-lab:~# qm start 199
kvm: -device ide-cd,bus=ide.0,unit=1,drive=drive-ide1,id=ide1,bootindex=103: Can't create IDE unit 1, bus supports only 1 units
start failed: QEMU exited with code 1
root@svr-lab:~#

Any idea?
 
Second tentative:

Code:
root@svr-lab:~# qm config 199
agent: 1
balloon: 2048
bios: ovmf
boot: order=scsi0;net0;ide0;ide1
cores: 2
cpu: host
efidisk0: HVDisk-Lab:199/vm-199-disk-0.qcow2,efitype=4m,pre-enrolled-keys=1,size=528K
ide0: HVDisk-Lab:iso/WIN_SERVER_STD_CORE_2019_1809.18_64BIT_ENGLISH_Updated-AUG-2021.ISO,media=cdrom,size=5445092K
ide1: HVDisk-Lab:iso/virtio-win-0.1.225.iso,media=cdrom,size=519590K
machine: pc-q35-7.1
memory: 4096
meta: creation-qemu=7.1.0,ctime=1672222113
name: Win-Server-2k19
net0: virtio=xx:xx:xx:xx:xx:36,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsi0: HVDisk-Lab:199/vm-199-disk-1.qcow2,cache=writeback,iothread=1,size=64G
scsihw: virtio-scsi-single
smbios1: uuid=a9d8db75-5bfe-4ce5-a03e-994e7491834d
sockets: 1
vga: virtio
vmgenid: 3ea6d62a-bcb9-4ccd-a301-2fe5bb9b7ca5


root@svr-lab:~# qm start 199
kvm: -device ide-cd,bus=ide.0,unit=1,drive=drive-ide1,id=ide1,bootindex=103: Can't create IDE unit 1, bus supports only 1 units
start failed: QEMU exited with code 1
root@svr-lab:~#

Any idea?
Don't use ide2 and ide3. Also, don't use ide0 and ide1. Either use ide0 and ide2 or use ide1 and ide3.
 
Last edited:
It works :)

Last config:

Code:
oot@svr-lab:~# qm config 199
agent: 1
balloon: 2048
bios: ovmf
boot: order=scsi0;net0;ide0;ide2
cores: 2
cpu: host
efidisk0: HVDisk-Lab:199/vm-199-disk-0.qcow2,efitype=4m,pre-enrolled-keys=1,size=528K
ide0: HVDisk-Lab:iso/WIN_SERVER_STD_CORE_2019_1809.18_64BIT_ENGLISH_Updated-AUG-2021.ISO,media=cdrom,size=5445092K
ide2: HVDisk-Lab:iso/virtio-win-0.1.225.iso,media=cdrom,size=519590K
machine: pc-q35-7.1
memory: 4096
meta: creation-qemu=7.1.0,ctime=1672222113
name: Win-Server-2k19
net0: virtio=xx:xx:xx:xx:xx:xx,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsi0: HVDisk-Lab:199/vm-199-disk-1.qcow2,cache=writeback,iothread=1,size=64G
scsihw: virtio-scsi-single
smbios1: uuid=a9d8db75-5bfe-4ce5-a03e-994e7491834d
sockets: 1
vga: virtio
vmgenid: 3ea6d62a-bcb9-4ccd-a301-2fe5bb9b7ca5
root@svr-lab:~#

Thank you very much for your help!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!