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

No such file or directory when importing to Virt-Manager. #14

Closed
aia832003 opened this issue May 1, 2022 · 15 comments
Closed

No such file or directory when importing to Virt-Manager. #14

aia832003 opened this issue May 1, 2022 · 15 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@aia832003
Copy link

aia832003 commented May 1, 2022

I'm getting the following error when attempting to import into Virt Manager. I'm running Fedora 35 GNOME desktop.

./make.sh --add
template.xml has been generated in /home/aia832003/Documents/notAperson535-OneClick-macOS-Simple-KVM-61657ee
[sudo] password for aia832003: 
error: Failed to define domain from template.xml
error: Cannot check QEMU binary /run/current-system/sw/bin/qemu-system-x86_64: No such file or directory
@notAperson535
Copy link
Owner

@aia832003 before we try anything else, run git pull --rebase in the root directory, and try it again.

@aia832003
Copy link
Author

@notAperson535 git pull --rebase
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

@notAperson535
Copy link
Owner

@aia832003 install git, then do a git clone https://github.com/notAperson535/OneClick-macOS-Simple-KVM.git, and try again

@aia832003
Copy link
Author

aia832003 commented May 2, 2022 via email

@notAperson535
Copy link
Owner

@aia832003 are you using a custom qemu binary?

@notAperson535
Copy link
Owner

notAperson535 commented May 2, 2022

@aia832003 actually try creating a symlink to /run/current-system/sw/bin/

@notAperson535
Copy link
Owner

@aia832003 sorry, I said the wrong directory create a symlink to /run/current-system/sw/bin/

@aia832003
Copy link
Author

I'm using the repo version of qemu and best I can tell /sw/bin is not a valid directory in Fedora. Does that help? I can't find that directory on my Ubuntu machine either. I've never done do a symlink either. Sorry for any confusion. I just wanted to get this in Virt-Manager where it was a little easier to manage.

@notAperson535
Copy link
Owner

notAperson535 commented May 2, 2022

@aia832003 install the regular version of QEMU.

@aia832003
Copy link
Author

aia832003 commented May 2, 2022 via email

@notAperson535
Copy link
Owner

@aia832003 remove the old qemu repository version and remove the symlink I told you to use. Then try again.

@AbrarSL
Copy link

AbrarSL commented May 6, 2022

I got this error as well. I fixed it by manually editing the template.xml file. I changed the line that referred to run/current-system/sw/bin/qemu-system-x86_64 with /usr/bin/qemu-system-x86_64 which is where the binary is actually stored on my system (Arch Linux).

@notAperson535
Copy link
Owner

I got this error as well. I fixed it by manually editing the template.xml file. I changed the line that referred to run/current-system/sw/bin/qemu-system-x86_64 with /usr/bin/qemu-system-x86_64 which is where the binary is actually stored on my system (Arch Linux).

that sounds like it should work

@notAperson535 notAperson535 added the bug Something isn't working label May 6, 2022
@notAperson535
Copy link
Owner

I got this error as well. I fixed it by manually editing the template.xml file. I changed the line that referred to run/current-system/sw/bin/qemu-system-x86_64 with /usr/bin/qemu-system-x86_64 which is where the binary is actually stored on my system (Arch Linux).

that sounds like it should work

@aia832003

@notAperson535 notAperson535 pinned this issue May 7, 2022
@notAperson535 notAperson535 added the good first issue Good for newcomers label May 7, 2022
@notAperson535
Copy link
Owner

I'm assuming this is closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants