[gem5-users] Re: Error Building the Disk Image SPEC CPU2017 using packer
Hi Ange-Thierry, The logs and the packer script seem fine to me. The installation process might get stuck somewhere and it doesn't show here. You can use VNC to inspect the process as detailed here: https://gem5art.readthedocs.io/en/latest/main-doc/disks.html#ii-inspect-the-building-process The VNC port to connect to should be shown in the log. It looks like, qemu: The VM will be run headless, without a GUI. If you want to qemu: view the screen of the VM, connect via VNC without a password to qemu: vnc://127.0.0.1:5982 Regards, Hoa Nguyen On 6/2/21, Ange via gem5-users wrote: > Hi, > > I have attached the PACKER_LOG as a link to an image because, as I mentioned > earlier, it stalls the whole VM, and I can't do anything. > From the last 3 logs, it stalls when the build is looking for an image > format, but I checked the spec-2017.json(attached below) file, and it > clearly states the format is raw. > I am looking into something similar to this solution > https://unix.stackexchange.com/questions/276480/booting-a-raw-disk-image-in-qemu > > but I have no luck so far. > > //PACKER_LOG file > https://drive.google.com/file/d/1GfVFFVEDO6VZx4X2RJUpqZ7vzFRFzoa9/view?usp=sharing > > //spec-2017.json file > https://drive.google.com/file/d/1dGQ84TFh3e3mwYHNHrGPzV5iHIgxniY6/view?usp=sharing > ___ > 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
[gem5-users] Re: Error Building the Disk Image SPEC CPU2017 using packer
Hi, I have attached the PACKER_LOG as a link to an image because, as I mentioned earlier, it stalls the whole VM, and I can't do anything. >From the last 3 logs, it stalls when the build is looking for an image format, >but I checked the spec-2017.json(attached below) file, and it clearly states >the format is raw. I am looking into something similar to this solution https://unix.stackexchange.com/questions/276480/booting-a-raw-disk-image-in-qemu but I have no luck so far. //PACKER_LOG file https://drive.google.com/file/d/1GfVFFVEDO6VZx4X2RJUpqZ7vzFRFzoa9/view?usp=sharing //spec-2017.json file https://drive.google.com/file/d/1dGQ84TFh3e3mwYHNHrGPzV5iHIgxniY6/view?usp=sharing ___ 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] Re: Error Building the Disk Image SPEC CPU2017 using packer
Hi Hoa, Thank you for your response. I tried your solution, and I also followed this tutorial for KVM installation (https://help.ubuntu.com/community/KVM/Installation), and both passed the step, but now when the build is on the step below "qemu: Overriding default Qemu arguments with qemuargs template option..." My VM stalls/hangs, and I can only shut it down. I understand the build process should take about an hour, but I have run the builds with and without KVM for about 5 hours, but it seems like it's stuck on the step above. I am wondering whether that is normal behavior and that I should just wait longer, or something is wrong because I should at least interact with my VM while it's building. ___ 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] Re: Error Building the Disk Image SPEC CPU2017 using packer
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 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