OneClick-macOS-Simple-KVM icon indicating copy to clipboard operation
OneClick-macOS-Simple-KVM copied to clipboard

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

Open aia832003 opened this issue 2 years ago • 14 comments

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

aia832003 avatar May 01 '22 16:05 aia832003

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

notAperson535 avatar May 01 '22 17:05 notAperson535

@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).

aia832003 avatar May 01 '22 19:05 aia832003

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

notAperson535 avatar May 01 '22 22:05 notAperson535

I've tried that too.

Andrew Allen

On May 1 2022, at 5:50 pm, notAperson535 @.***> wrote:

@aia832003 @./0?redirect=https%3A%2F%2Fgithub.com%2Faia832003&recipient=cmVwbHkrQUNUN09VNTRZUk9BWEY1UE9GVE82WVdBUFJBU1RFVkJOSEhFUldMNkFBQHJlcGx5LmdpdGh1Yi5jb20%3D) install git, then do a git clone https://github.com/notAperson535/OneClick-macOS-Simple-KVM.git, and try again — Reply to this email directly, view it on GitHub @./1?redirect=https%3A%2F%2Fgithub.com%2FnotAperson535%2FOneClick-macOS-Simple-KVM%2Fissues%2F14%23issuecomment-1114355985&recipient=cmVwbHkrQUNUN09VNTRZUk9BWEY1UE9GVE82WVdBUFJBU1RFVkJOSEhFUldMNkFBQHJlcGx5LmdpdGh1Yi5jb20%3D), or unsubscribe @.***/2?redirect=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACT7OU5HZOHEI66XNIGJPLLVH4DCTANCNFSM5U2DVBLQ&recipient=cmVwbHkrQUNUN09VNTRZUk9BWEY1UE9GVE82WVdBUFJBU1RFVkJOSEhFUldMNkFBQHJlcGx5LmdpdGh1Yi5jb20%3D). You are receiving this because you were mentioned.

aia832003 avatar May 02 '22 03:05 aia832003

@aia832003 are you using a custom qemu binary?

notAperson535 avatar May 02 '22 11:05 notAperson535

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

notAperson535 avatar May 02 '22 11:05 notAperson535

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

notAperson535 avatar May 02 '22 11:05 notAperson535

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.

aia832003 avatar May 02 '22 11:05 aia832003

@aia832003 install the regular version of QEMU.

notAperson535 avatar May 02 '22 16:05 notAperson535

Thanks for your patience. I've used the installation directly from QEMU's site with the same results of missing file or directory when using the ./make.sh --add command.

Andrew Allen

On May 2 2022, at 11:45 am, notAperson535 @.***> wrote:

@aia832003 @./0?redirect=https%3A%2F%2Fgithub.com%2Faia832003&recipient=cmVwbHkrQUNUN09VWUlRS0lOWkVXTzZLQkxNTU9BUFU2VEZFVkJOSEhFUldMNkFBQHJlcGx5LmdpdGh1Yi5jb20%3D) install the regular version of QEMU, it should work fine. — Reply to this email directly, view it on GitHub @./1?redirect=https%3A%2F%2Fgithub.com%2FnotAperson535%2FOneClick-macOS-Simple-KVM%2Fissues%2F14%23issuecomment-1115111033&recipient=cmVwbHkrQUNUN09VWUlRS0lOWkVXTzZLQkxNTU9BUFU2VEZFVkJOSEhFUldMNkFBQHJlcGx5LmdpdGh1Yi5jb20%3D), or unsubscribe @.***/2?redirect=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACT7OU3QEVHNAWV4XCMPZELVIABDFANCNFSM5U2DVBLQ&recipient=cmVwbHkrQUNUN09VWUlRS0lOWkVXTzZLQkxNTU9BUFU2VEZFVkJOSEhFUldMNkFBQHJlcGx5LmdpdGh1Yi5jb20%3D). You are receiving this because you were mentioned.

aia832003 avatar May 02 '22 16:05 aia832003

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

notAperson535 avatar May 02 '22 18:05 notAperson535

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).

AbrarSL avatar May 06 '22 04:05 AbrarSL

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 avatar May 06 '22 11:05 notAperson535

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 avatar May 07 '22 14:05 notAperson535

I'm assuming this is closed

notAperson535 avatar Sep 02 '22 15:09 notAperson535