[AMD Official Use Only - General] Hi Rajesh,
Thanks for the update. I'm glad you were able to get it worked out. Ideally we wouldn't *require* sudo access but for KVM in general I think it is going to highly depend on how the system was setup and there are some things that packer won't be able to get around in some setups. -Matt From: Rajesh Shashi Kumar via gem5-users <gem5-users@gem5.org> Sent: Tuesday, December 6, 2022 10:00 AM To: gem5 users mailing list <gem5-users@gem5.org> Cc: Rajesh Shashi Kumar <reachrajesh...@gmail.com> Subject: [gem5-users] Re: KVM error while trying to build disk-image for GPU-FS Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding. 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<mailto: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<https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2F127.0.0.1%3A99%2F&data=05%7C01%7Cmatthew.poremba%40amd.com%7C73baa4c8d4df4a9b18e208dad7b41346%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C638059465668444213%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=YgnhJn5JpnL1eVGpTYIC5C0bcKEZjr67otAUbhHohqI%3D&reserved=0>", "-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 denied 2022/12/06 11:11:37 packer-builder-qemu plugin: Qemu stderr: qemu-system-x86_64: failed to initialize KVM: Permission denied
<<attachment: winmail.dat>>
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org