Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求救,虚拟机安装系统时提示error : cannot execute binary /usr/local/bin/qemu-system-x86_64: 权限不够 #103

Open
runningsnai1 opened this issue Nov 22, 2024 · 2 comments

Comments

@runningsnai1
Copy link

image
修改权限后sudo chmod +x /usr/local/bin/qemu-system-x86_64,还是不行
大佬能帮忙看看是什么问题嘛

@ramon-victor
Copy link

I had this problem on my Debian and I managed to solve it with these steps:

  1. Remove the qemu-img from /usr/local/bin/:

sudo rm /usr/local/bin/qemu-img

  1. Verify the correct location of qemu-img from the Debian package:

which qemu-img

It should point to /usr/bin/qemu-img

  1. Make sure the correct qemu-img is executable:

ls -l /usr/bin/qemu-img

  1. Verify the permissions on the images directory:

ls -ld /var/lib/libvirt/images/

Restart libvirtd:

sudo systemctl restart libvirtd

After doing these steps, try creating your VM again. The system should now use the proper qemu-img binary from /usr/bin/ instead of the one in /usr/local/bin/.

If you still have issues, you might want to check:

sudo virsh pool-list --all
sudo virsh pool-info default

This will verify that your storage pool is properly configured and accessible.

@zhaodice
Copy link
Owner

试试看 sudo chmod +x /usr/local/bin/qemu-system-x86_64 呢(?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants