-
Notifications
You must be signed in to change notification settings - Fork 266
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
virt-manager installation error #184
Comments
+1 |
@jresteban @orgazmer Try my fork. It works #181 . Try https://github.com/Krish-sysadmin/homebrew-virt-manager |
@Krish-sysadmin thanks!! it works fine in Mojave 10.14.4 and Catalina 10.15.7 |
==> Installing virt-manager from jeffreywildman/virt-manager If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): These open issues may also help: |
@orgazmer you are installing from jeffreywildman repository. Try: and run
|
@jresteban yes, thanks for helping orgazmer out. Perhaps more people should star my fork so it comes first in search results so people don't face this issue in the first place |
it works !! Thanx !!! :-) |
@Krish-sysadmin getting an install error on both forks related to a dependency on "intltool" tried running: brew install intlool |
Yes, I have tested it on a fresh installation of macOS catalina and big sur like 5 days back and neither have I or my users faced any problem. Mind attaching a screenshot showing what you are running as well as telling me what macos version you are on? @MurlengNik Happy to help! |
Whenever I try to run it, it returns a segmentation fault. This is on Big Sur M1. |
i have the same problem! |
I don't use M1 mac so can't reproduce the error. Sorry |
fork didn't help
macos x86 10.15.7 any suggestions to try out? |
The Fork isn't working for me either
|
@slamdev @DaveB91 you need to update libvirt-python to newest version, take a look: https://github.com/radoslaw-karasinski-sauce/homebrew-virt-manager |
@slamdev @DaveB91 Yup, use https://github.com/Krish-sysadmin/homebrew-virt-manager . This is maintained actively by me. Just been AFK for a bit! |
Thanks @Krish-sysadmin - Works now |
Launch Automator, and click on a New project Use the Type "Application" Search for "shell" on the left hand side, and drag the "Run shell script" entry to the right Use the following: /usr/local/bin/remote-viewer "$@" Save this as say ~/Applications/oVirt-Console.app Now, the security policy of a Mac won't let you run this app made by an "untrusted developer", so in Finder, locate the .vv file, and then hold down the Control key. With the Control key pressed, click on the .vv file, and then right click, open with, look for the .app file you just made, and check the "Always Open With" checkbox in the bottom of the dialog. This took a couple of tries for it to work for me, so also try launching the file with the control key pressed, and selecting your .app file. Finally, in Chrome, after clicking on the Console button in oVirt, keep the downloaded file somewhere, and then click on the small downwards arrow on the list of downloads on the bottom, and select "Always open files of this type". After this, from now on, it should launch remote-viewer immediately after clicking on the console button. @DaveB91 |
@sidd-satish Try running virt-manager <path/to/.vv file> and let me know how that goes |
@Krish-sysadmin This is the error I am getting
|
FWIW, I couldn’t get it working either. I just use virt-viewer in CrossOver now.
|
Same here. |
I believe this is associated with an erroneous system call. I believe virt-manager itself does not support M1. |
This is the cause of the crash on M1. https://gitlab.gnome.org/GNOME/pygobject/-/issues/455 |
Did you fix it? @david9991 |
No, I don't know much about gobject-introspection. :) |
There was PR for gobject-introspection already. |
@Krish-sysadmin Using your fork worked perfectly for the installation, however, whenever I try to connect to a remote VM with remote-viewer, it just shows a black screen. Somehow it seems to be connected though, because the cursor changes appearance when I hover over the fields where the login prompt in the VM should be |
@phlobbi Hi, if I had more time on my hands I would love to help you out, but I don't right now, but I will soon. If you want, feel free to fork my fork and then fix the issue. I ran some tests and it doesn't seem excruciatingly hard to fix. Good luck! As of right now I don't have access to a mac machine and tend to stay on Linux so not sure I am the best person to ask. Thanks for the feedback |
@Damenly Thank you a lot! That fixed it for me! |
@Damenly THANKS! My path is different: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gtk+3.rb |
This worked. There is much celebration and joy today. |
@Damenly Your gtk fork fails to build for me:
|
I see. Homebrew has fixed the issue by patching fixes. So no more need to add my repo. cd /opt/homebrew/Library/Taps/homebrew/homebrew-core # or your homebrew path |
@Damenly: thanks a lot for your effort! |
@Damenly I installed from your repo and it seems to manage remote hosts well. I am however trying to get it to work with qemu:///session and it is not happy. I'm on the M1 Macbook Air FWIW Here's the output of
|
Sorry, I didn't get your usage scenario. |
libvirtd is supported on macos and is available via the default homebrew repo (homebrew-core). I can't personally confirm that it works with virt-manager but others seem to have had success (at least on x86_64). The libvirt formula in homebrew-core compiles on Apple silicon machines but needs patches in order to avoid the While virsh works, neither virt-manager nor virt-install seem to. |
Oh, I missed it. Let me try and figure out what’s going on. |
I have the same issue where virt-manager crash after try to connect the vm, but different error shown. Maybe this will help the investigation for this issue.
|
@liej6799 Are you sure this is the right connection string?
I'd try this again with qemu:///system rather than qemu:///session unless you know libvirtd is running in a usermode session (as it is on my M1 Mac). This page explains the difference: https://wiki.libvirt.org/page/FAQ#What_is_the_difference_between_qemu:.2F.2F.2Fsystem_and_qemu:.2F.2F.2Fsession.3F_Which_one_should_I_use.3F What command are you using to invoke virt-manager? |
This is the command i use to run the virt-manager
What I did is replace the user@libvirthost with [email protected] from the guide I also try virt-viewer
And this is the error after select the vm to connect:
|
Note that the To rule out issues deeper in libvirt or with the setup, I would first ensure that things like
work correctly. One thing that comes to mind is that you'll want to make sure that |
this is very very useful to me! Thanks too much! love you teh. |
Sure, anytime ;) @WowYouCanReallyDance |
Hi. I have same issue. I've made some research, and found bug appears when you try to open virtual machine with VNC display. If virtual machine configured to Spice display virt-manager works fine. I rebuild Run and replace all content with: class GtkVnc < Formula
desc "VNC viewer widget for GTK"
homepage "https://wiki.gnome.org/Projects/gtk-vnc"
url "https://download.gnome.org/sources/gtk-vnc/1.3/gtk-vnc-1.3.0.tar.xz"
sha256 "5faaa5823b8cbe8c0b0ba1e456c4e70c4b1ae6685c9fe81a4282d98cf00a211d"
license "LGPL-2.1-or-later"
depends_on "gettext" => :build
depends_on "gobject-introspection" => :build
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "gnutls"
depends_on "gtk+3"
depends_on "libgcrypt"
def install
mkdir "build" do
# This is workaround. MacOS has deprecate coroutine ucontext.
# It needs to be fixed in gtk-vnc - use gthread coroutines.
on_macos do
system "meson", *std_meson_args, "-Dwith-coroutine=gthread", ".."
end
on_linux do
system "meson", *std_meson_args, ".."
end
system "ninja", "-v"
system "ninja", "install", "-v"
end
end
test do
system "#{bin}/gvnccapture", "--help"
end
end PS. I use gtk-vnc-1.3.0 and removed all patches for previous version. Then build/install with:
@Damenly, I want to say thank you for virt-manager formula with virt-manager for version 3.2.0. |
Now you can use my tap: https://github.com/Menci/homebrew-libvirt-m1 I included the I'am trying to submit my patch of |
With my follow up, |
@Menci libvirt 8.1.0, which contains the CPU frequency detection fix that we worked on as well as proper hvf support, will be released in a couple of weeks. When that happens, I'll submit an update to Homebrew. So I think it's okay to just wait it out :) |
On the other hand, it would be great if the QEMU driver configuration tweaks you mention in your repo would be integrated in the Homebrew package or, even better, in upstream libvirt so that things work out of the box. |
I have the same problem,
I have the same problem. Have you solved it? |
Same here: ==> Installing virt-manager from jeffreywildman/virt-manager If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): These open issues may also help: Also tried "arthurk/homebrew-virt-manager" and "Krish-sysadmin/homebrew-virt-manager" with the same result. |
Could you please try my repo https://github.com/Damenly/homebrew-virt-manager? |
Thank you, @Damenly! It looks better, but still fails, eventually, with a different error: ➜ brew install virt-manager virt-viewer error: Multiple top-level packages discovered in a flat-layout: ['ui', 'po', 'man', 'data', 'virtinst', 'virtManager']. To avoid accidental inclusion of unwanted files or directories, If you are trying to create a single distribution with multiple packages
To find more information, look for "package discovery" on setuptools docs. If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): Btw, this is on Intel-based 2019 MacBook Pro with Big Sur Version: 11.6.5 (20G527). |
I have the same problem. So I just change my python version of virt-manager.rb file. itis ok now! like this:
|
Sorry for the late reply. Fixed in my repo. Thanks. |
brew install virt-manager
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 3 taps (hashicorp/tap, homebrew/core and homebrew/cask).
==> New Formulae
apache-pulsar bat-extras jpdfbookmarks librist osc-cli pkgconf selene vespa-cli viu
==> Updated Formulae
Updated 425 formulae.
==> New Casks
epilogue-operator gcs mathcha-notebook nimblenote remotion
==> Updated Casks
Updated 203 casks.
==> Downloading https://ghcr.io/v2/homebrew/core/harfbuzz/manifests/2.9.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/harfbuzz/blobs/sha256:991c547aad91d318700252b2b63dc33a8a203779c9e4e68154d772e24a2fbea7
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:991c547aad91d318700252b2b63dc33a8a203779c9e4e68154d772e24a2fbea7?se=2021-09-16T12%3A10%3A00Z&sig=VypheZ
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pango/manifests/1.48.10
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pango/blobs/sha256:ea25146681018c99e13404ee299f006679397c082a388c486c7a685ec8d8eca9
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:ea25146681018c99e13404ee299f006679397c082a388c486c7a685ec8d8eca9?se=2021-09-16T12%3A10%3A00Z&sig=W8T6Qi
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/adwaita-icon-theme/manifests/41.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/adwaita-icon-theme/blobs/sha256:b00bb687bcb075aba1ba256fbbab907cbb385c4ccc66c5b4045bb3d9b6b8f987
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:b00bb687bcb075aba1ba256fbbab907cbb385c4ccc66c5b4045bb3d9b6b8f987?se=2021-09-16T12%3A10%3A00Z&sig=0E4TfU
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libass/manifests/0.15.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libass/blobs/sha256:d11e2972aa5ae2e763cf4101712fac61421082db4d47720a8adc17b8a3e84a27
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:d11e2972aa5ae2e763cf4101712fac61421082db4d47720a8adc17b8a3e84a27?se=2021-09-16T12%3A10%3A00Z&sig=hjbiNg
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libvpx/manifests/1.10.0_1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libvpx/blobs/sha256:cadad4e7b1bf8d5188da826ac6ecbb7729e0a26ce4665b40fc04386e780c4dc3
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:cadad4e7b1bf8d5188da826ac6ecbb7729e0a26ce4665b40fc04386e780c4dc3?se=2021-09-16T12%3A10%3A00Z&sig=kNWO5o
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/srtp/manifests/2.4.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/srtp/blobs/sha256:feeac7058038e22e2259587a6270521c78df2768b05f680e6a0cf5d7deb4d148
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:feeac7058038e22e2259587a6270521c78df2768b05f680e6a0cf5d7deb4d148?se=2021-09-16T12%3A10%3A00Z&sig=9p7TXY
######################################################################## 100.0%
==> Downloading https://libvirt.org/sources/python/libvirt-python-6.10.0.tar.gz
Already downloaded: /Users/rooter/Library/Caches/Homebrew/downloads/c0ea3dcb750aed089cfed8d3988e3aef79b70d635cfd42c87db147e860647de4--libvirt-python-6.10.0.tar.gz
==> Downloading https://pypi.io/packages/source/i/idna/idna-2.8.tar.gz
Already downloaded: /Users/rooter/Library/Caches/Homebrew/downloads/89cd3c9503f30cf4794067fbb3bb85881a04d4a79002cd52dd006617f4dee6d5--idna-2.8.tar.gz
==> Downloading https://pypi.io/packages/source/c/certifi/certifi-2019.11.28.tar.gz
Already downloaded: /Users/rooter/Library/Caches/Homebrew/downloads/d305888203f80870f04cbff5b615679be127a718ffeec3b3ce5db16bdc4abfa2--certifi-2019.11.28.tar.gz
==> Downloading https://pypi.io/packages/source/c/chardet/chardet-3.0.4.tar.gz
Already downloaded: /Users/rooter/Library/Caches/Homebrew/downloads/0b520e43abac95fdb4182899f49c1c7ced69c67c4bc132b3801691b993eb33f9--chardet-3.0.4.tar.gz
==> Downloading https://pypi.io/packages/source/u/urllib3/urllib3-1.25.7.tar.gz
Already downloaded: /Users/rooter/Library/Caches/Homebrew/downloads/04dc027e49125d42a130fd408cde60c9d9a87ce021683a3e49bf067a62316261--urllib3-1.25.7.tar.gz
==> Downloading https://pypi.io/packages/source/r/requests/requests-2.22.0.tar.gz
Already downloaded: /Users/rooter/Library/Caches/Homebrew/downloads/4253f7dff3c4f4a5a7fe142af689d95ed2e77979f696451a78d96412e90b0f94--requests-2.22.0.tar.gz
==> Downloading https://virt-manager.org/download/sources/virt-manager/virt-manager-2.2.1.tar.gz
Already downloaded: /Users/rooter/Library/Caches/Homebrew/downloads/77e22463a35b2e2bde8d02253c10129aabb1e5dfbfe2e6f33ef87bd35955dcf2--virt-manager-2.2.1.tar.gz
==> Installing virt-manager from jeffreywildman/virt-manager
==> Installing dependencies for jeffreywildman/virt-manager/virt-manager: harfbuzz, pango, adwaita-icon-theme, libass, libvpx and srtp
==> Installing jeffreywildman/virt-manager/virt-manager dependency: harfbuzz
==> Pouring harfbuzz--2.9.1.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/harfbuzz/2.9.1: 68 files, 7.2MB
==> Installing jeffreywildman/virt-manager/virt-manager dependency: pango
==> Pouring pango--1.48.10.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/pango/1.48.10: 65 files, 3.0MB
==> Installing jeffreywildman/virt-manager/virt-manager dependency: adwaita-icon-theme
==> Pouring adwaita-icon-theme--41.0.all.bottle.tar.gz
🍺 /usr/local/Cellar/adwaita-icon-theme/41.0: 6,051 files, 22.7MB
==> Installing jeffreywildman/virt-manager/virt-manager dependency: libass
==> Pouring libass--0.15.2.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/libass/0.15.2: 11 files, 579.7KB
==> Installing jeffreywildman/virt-manager/virt-manager dependency: libvpx
==> Pouring libvpx--1.10.0_1.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/libvpx/1.10.0_1: 20 files, 5.2MB
==> Installing jeffreywildman/virt-manager/virt-manager dependency: srtp
==> Pouring srtp--2.4.1.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/srtp/2.4.1: 14 files, 481.5KB
==> Installing jeffreywildman/virt-manager/virt-manager
==> Patching
==> python3 -m venv --system-site-packages /usr/local/Cellar/virt-manager/2.2.1_3/libexec
==> /usr/local/Cellar/virt-manager/2.2.1_3/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/virt-manager--libvirt-python-20210916-77745-qahoyt/libvirt
Last 15 lines from /Users/rooter/Library/Logs/Homebrew/virt-manager/02.pip:
Running setup.py install for libvirt-python: started
Running command /usr/local/Cellar/virt-manager/2.2.1_3/libexec/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-req-build-77k_3pk0/setup.py'"'"'; file='"'"'/private/tmp/pip-req-build-77k_3pk0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-izoiq628/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/virt-manager/2.2.1_3/libexec/include/site/python3.9/libvirt-python
running install
running build
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/pkg-config --print-errors --atleast-version=0.9.11 libvirt
/usr/local/Cellar/virt-manager/2.2.1_3/libexec/bin/python3.9 generator.py libvirt /usr/local/Cellar/libvirt/7.7.0/share/libvirt/api/libvirt-api.xml
Found 487 functions in /usr/local/Cellar/libvirt/7.7.0/share/libvirt/api/libvirt-api.xml
Found 0 functions in libvirt-override-api.xml
Generated 397 wrapper functions
Missing type converters:
char ** *:1
ERROR: failed virDomainGetMessages
error: command '/usr/local/Cellar/virt-manager/2.2.1_3/libexec/bin/python3.9' failed with exit code 1
Running setup.py install for libvirt-python: finished with status 'error'
ERROR: Command errored out with exit status 1: /usr/local/Cellar/virt-manager/2.2.1_3/libexec/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-req-build-77k_3pk0/setup.py'"'"'; file='"'"'/private/tmp/pip-req-build-77k_3pk0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-izoiq628/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/virt-manager/2.2.1_3/libexec/include/site/python3.9/libvirt-python Check the logs for full command output.
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/jeffreywildman/homebrew-virt-manager/issues
These open issues may also help:
virt-manager crashed when opening a VM on remote host #180
virt-manager: command not found #177
bump virt-manager/view-viewer and deps #166
virt-manager: command not found #169
virt-manager broken on Big Sur after minor update #170
Error installing virt-manager #145
cannot install virt-manager, error with python version despite having python 3.9 installed #172
Assertion Error When Running Virt-Manager on MacOS BigSur #174
osx virt-manager console screen is black #113
Virt-manager wont build. Update to libvirt-python #171
virt-manager crashing with Python quit unexpectedly while using the libgdk-3.0.dylib #62
The text was updated successfully, but these errors were encountered: