-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Permissions issues with qemu-system-x86_64 #1
Comments
I've just checked the Docker Hub version and it works for me. I added some KVM instructions to the readme. Try the KVM section of the readme and you should be good to go. |
Ah, ok. I didn't know I needed to have that stuff installed as well on the host. I will test it out. |
I'm also having the issue. It seems that |
You may have more luck with something like this:
|
I have installed those dependencies and ran the systemctl commands and rebooted, but there's a new error now:
I noticed that one of the services that you said to start, virtlogd, doesn't seem to want to start. When running
The log for that service is:
Any ideas on where to go from here? |
Check if your hardware virt is on Try this Turn on docker daemon |
@sickcodes, I already have virt turned on, docker daemon running, and am part of the docker user group. The connection refused error went away (not sure how), but the permissions error is still there. Could it be that the user running in the Docker container is trying to use |
Try adding all these: EDIT: not required, see below for anyone reading. |
I've tried anything in the README and here, and (also) still have the same issue:
Ubuntu (Pop! OS) 20.04 BTW |
those two issues cause the permission denied error |
Why are we running qemu on the host? Can't that go inside the Docker container? |
Just tried
Still same error. |
Mines like this Try this:
|
Thanks, it worked for me. Ubuntu 20.04
|
These steps should set your host up for the QEMU on https://help.ubuntu.com/community/KVM/Installation |
I got it working after running |
Using the original run command For as much as I can tell, I only needed to run the following commands to get it working: sudo chmod 666 /dev/kvm
docker run --privileged --net host --cap-add=ALL -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev:/dev -v /lib/modules:/lib/modules sickcodes/docker-osx It's hard for me to exactly narrow down what needs to be run because I'd have to undo some of the other suggestion to see where it breaks. Hopefully this is all that's needed. |
Good to hear mate, I've added those tips to the troubleshooting page. It's probably both of those commands that you need might need, someone else might have a better answer to why. |
Also, after a relog/restart, I had to rerun |
Sticky tape fix but: It will turn on every relog. or just edit it and add that at the bottom. Something else might be fiddling with the permissions on reboot. |
After trying everything above - including following the qemu guide, this is the best I can get:
Seems like a lot of audio issues, I have alsa installed, and can restart it without errors with Plus the last gtk. |
Ignore the alsa utils error, it will always be there unless I change the OpenBoot-Core.sh script from upstream repo. Regarding the gtk error
My output is:
Are you running Wayland window manager? |
Mine is:
I'm using the default Pop! OS windows manager (not sure which one that is). |
Same issue here, outputs of above:
running manjaro-kde |
Same issue here running i3 on Arch |
Does this alternative application run without the error?
If you get the same error then it might have something to do with the x11 folder or the display number In the dockerfile, you can change the :0.0 to :0 That might work but it will take half an hour to build so I apologize in advance if it’s not the solution. Might have to dig deeper into the GTK error, could be missing some host libs since I am using Xfce and it’s window mananger compositor. Try pulling the image again as well just in case. Try installing virt-manager on the host. What does virt-manager look like on you guys’ displays? If all else fails, try installing the AUR qt5 virt mananger it takes like 20 mins but it fills all the lib gaps, if there are any. I’ll b back in a few hours though |
The dockerfile is trying to display on :0.0 but your desktop is running in :1. I will add the optional display argument. If you want to build it now, just edit the Dockerfile and change the display env variable near the bottom to whichever number display you have. I again apologize if that’s not the error though but some other debugging messages might pop up during the build too and that could help. |
I'll try tomorrow, it's getting really late now in Europe ;) |
Output of running teamviewer:
Tried passing DISPLAY=:0 from docker flags as well --env DISPLAY=:0 |
Ok it's an env issue, changing it now to always choose whichever display you're looking at |
Merge pull request #75 from MrBenFTW/master
In case anyone is a major bogus numpty like me - everyone here is getting |
When running the provided run command:
sudo docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx
, I get the following errors:I'm not sure what I did wrong. Even running the docker command with sudo doesn't do anything (not that I really expected it to).
The image I pulled is the one from Docker Hub of digest starting with 0eea6e25babb.
I'm running this with Docker CE version 19.03.11, build 42e35e61f3 on Ubuntu 18.04.
The text was updated successfully, but these errors were encountered: