*Update*: I was earlier running this on a shared server that I did not have
sudo access on (not that I actually used sudo in the build process). But
the build seems to work fine on my local machine with the following
dependencies satisfied. I read on other forums that the *KVM: Permission
denied* issue occurs due to /dev/kvm permission issues.

sudo apt install qemu-kvm qemu virt-manager virt-viewer libvirt-clients
libvirt-daemon-system bridge-utils virtinst libvirt-daemon

Thank you for your time!
Rajesh

On Tue, Dec 6, 2022 at 11:24 AM Rajesh Shashi Kumar <
reachrajesh...@gmail.com> wrote:

> Hi,
>
> I am following the instructions here to get GPU full-system simulations
> running but I run into the following error while trying to build the
> disk-image. Has anyone run into this before?
>
> Thanks,
> Rajesh
>
> ==> qemu: Overriding default Qemu arguments with qemuargs template
> option...
> 2022/12/06 11:11:37 packer-builder-qemu plugin: Executing
> /usr/bin/qemu-system-x86_64: []string{"-display", "none", "-machine",
> "type=pc,accel=kvm                  ", "-vnc", "127.0.0.1:99", "-smp",
> "cpus=16,sockets=16", "-boot", "once=d", "-fda", "/tmp/packer1604514371",
> "-cpu", "host", "-m", "8192M", "-driv                  e",
> "file=rocm42/rocm42-image/rocm42,if=virtio,cache=writeback,discard=ignore,format=raw",
> "-drive", "file=/tmp/5757/cache/packer/e94c06241a5e6ba0
>  c4b9618ddcda39ba2ee27e9a.iso,media=cdrom", "-name", "rocm42", "-device",
> "virtio-net,netdev=user.0", "-netdev", "user,id=user.0,hostfwd=tcp::3088-
>                :22"}
> 2022/12/06 11:11:37 packer-builder-qemu plugin: Started Qemu. Pid: 1326911
> 2022/12/06 11:11:37 packer-builder-qemu plugin: Qemu stderr:
>  Specify the 'raw' format explicitly to remove the restrictions.
>
> *2022/12/06 11:11:37 packer-builder-qemu plugin: Qemu stderr: Could not
> access KVM kernel module: Permission denied2022/12/06 11:11:37
> packer-builder-qemu plugin: Qemu stderr: qemu-system-x86_64: failed to
> initialize KVM: Permission denied*
>
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to