Hi, The log seems to indicate that QEMU cannot use KVM on your machine. To resolve this problem, you can either enable KVM, or choose not to use KVM for creating the disk image. To not to use KVM, you'll need to remove the line: "accelerator": "kvm" in this file: https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/spec-2017/disk-image/spec-2017/spec-2017.json#9.
Regards, Hoa Nguyen On 5/30/21, Ange via gem5-users <gem5-users@gem5.org> wrote: > Hi, > > I am new to gem5, and I am trying to run SPEC CPU 2017 benchmark in full > system simulation on X86. I have been following this tutorial > https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/spec-2017, > but I am getting errors building my cpu2017-1.1.0.iso file using packer > ( ./packer build spec-2017/spec-2017.json). I have looked at the log, and I > think my error is coming from one of the log messages below; I have been > trying to fix this issue, but I have not been successful. > > packer version v1.3.4 > ubuntu version 20.04 > > 2021/05/28 14:35:39 packer-builder-qemu plugin: Started Qemu. Pid: 3412 > 2021/05/28 14:35:39 packer-builder-qemu plugin: Qemu stderr: WARNING: Image > format was not specified for '/tmp/packer701940508' and probing guessed > raw. > 2021/05/28 14:35:39 packer-builder-qemu plugin: Qemu stderr: > Automatically detecting the format is dangerous for raw images, write > operations on block 0 will be restricted. > 2021/05/28 14:35:39 packer-builder-qemu plugin: Qemu stderr: > Specify the 'raw' format explicitly to remove the restrictions. > 2021/05/28 14:35:39 packer-builder-qemu plugin: Qemu stderr: Could not > access KVM kernel module: No such file or directory > 2021/05/28 14:35:39 packer-builder-qemu plugin: Qemu stderr: > qemu-system-x86_64: failed to initialize KVM: No such file or directory > 2021/05/28 14:35:39 ui error: [1;31m==> qemu: Error launching VM: Qemu > failed to start. Please run with PACKER_LOG=1 to get more info. [0m > 2021/05/28 14:35:39 packer-builder-qemu plugin: failed to unlock port > lockfile: close tcp 127.0.0.1:5994: use of closed network connection > 2021/05/28 14:35:39 packer-builder-qemu plugin: failed to unlock port > lockfile: close tcp 127.0.0.1:3853: use of closed network connection > 2021/05/28 14:35:39 packer-builder-qemu plugin: Deleting floppy disk: > /tmp/packer701940508 > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s > _______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s