From b876e48d2e0838da9f860d8d789fa18787ae91d9 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Nov 15 2021 03:24:16 +0000 Subject: testing -device nvme requires serial When testing to see if -device supports nvme, the `,serial=` option is required. Use a value of `testing9999` to avoid collisions with other values possibly in use. --- diff --git a/inventory/standard-inventory-qcow2 b/inventory/standard-inventory-qcow2 index ad3a2f7..ed7bfea 100755 --- a/inventory/standard-inventory-qcow2 +++ b/inventory/standard-inventory-qcow2 @@ -435,7 +435,7 @@ def start_qemu(image, cloudinit, skip_missing_device, portrange=(2222, 5555)): # check for supported devices # - key is the name used in provision.fmf # - value is the name used by qemu - supported_devices = {"nvme": "nvme", + supported_devices = {"nvme": "nvme,serial=testing9999", "scsi": "virtio-scsi-pci"} cmd_tmpl = "echo quit | %s -device %%s -S -monitor stdio" % ( " ".join([qemu_path] + qemu_common_params)