homebrew-virt-manager icon indicating copy to clipboard operation
homebrew-virt-manager copied to clipboard

virt-manager installation error

Open orgazmer opened this issue 4 years ago • 67 comments

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 https://github.com/jeffreywildman/homebrew-virt-manager/issues/180 virt-manager: command not found https://github.com/jeffreywildman/homebrew-virt-manager/issues/177 bump virt-manager/view-viewer and deps https://github.com/jeffreywildman/homebrew-virt-manager/pull/166 virt-manager: command not found https://github.com/jeffreywildman/homebrew-virt-manager/issues/169 virt-manager broken on Big Sur after minor update https://github.com/jeffreywildman/homebrew-virt-manager/issues/170 Error installing virt-manager https://github.com/jeffreywildman/homebrew-virt-manager/issues/145 cannot install virt-manager, error with python version despite having python 3.9 installed https://github.com/jeffreywildman/homebrew-virt-manager/issues/172 Assertion Error When Running Virt-Manager on MacOS BigSur https://github.com/jeffreywildman/homebrew-virt-manager/issues/174 osx virt-manager console screen is black https://github.com/jeffreywildman/homebrew-virt-manager/issues/113 Virt-manager wont build. Update to libvirt-python https://github.com/jeffreywildman/homebrew-virt-manager/pull/171 virt-manager crashing with Python quit unexpectedly while using the libgdk-3.0.dylib https://github.com/jeffreywildman/homebrew-virt-manager/issues/62

orgazmer avatar Sep 16 '21 12:09 orgazmer

+1

jresteban avatar Sep 16 '21 13:09 jresteban

@jresteban @orgazmer Try my fork. It works https://github.com/jeffreywildman/homebrew-virt-manager/pull/181 . Try https://github.com/Krish-sysadmin/homebrew-virt-manager

krishjainx avatar Sep 16 '21 19:09 krishjainx

@Krish-sysadmin thanks!! it works fine in Mojave 10.14.4 and Catalina 10.15.7

jresteban avatar Sep 17 '21 07:09 jresteban

@jresteban @orgazmer Try my fork. It works #181 . Try https://github.com/Krish-sysadmin/homebrew-virt-manager

==> Installing virt-manager from jeffreywildman/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-20210917-83625-1e5rltf/libvir 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-q52btqux/setup.py'"'"'; file='"'"'/private/tmp/pip-req-build-q52btqux/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-p1d4l4an/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-q52btqux/setup.py'"'"'; file='"'"'/private/tmp/pip-req-build-q52btqux/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-p1d4l4an/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:

orgazmer avatar Sep 17 '21 09:09 orgazmer

==> Installing virt-manager from jeffreywildman/virt-manager

@orgazmer you are installing from jeffreywildman repository. Try: brew remove virt-manager brew remove virt-viewer brew untap jeffreywildman/homebrew-virt-manager

and run

brew tap Krish-sysadmin/homebrew-virt-manager brew install virt-manager virt-viewer

jresteban avatar Sep 17 '21 09:09 jresteban

@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

krishjainx avatar Sep 17 '21 15:09 krishjainx

==> Installing virt-manager from jeffreywildman/virt-manager

@orgazmer you are installing from jeffreywildman repository. Try: brew remove virt-manager brew remove virt-viewer brew untap jeffreywildman/homebrew-virt-manager

and run

brew tap Krish-sysadmin/homebrew-virt-manager brew install virt-manager virt-viewer

it works !! Thanx !!! :-)

orgazmer avatar Sep 19 '21 22:09 orgazmer

@Krish-sysadmin getting an install error on both forks related to a dependency on "intltool"

tried running: brew install intlool but no luck as it doesn't seem to available anywhere. Wondering if you've tested your fork on a fresh installation of macOS within the past week. So far I'm getting this on all of my new ones. thanks!

MurlengNik avatar Sep 23 '21 15:09 MurlengNik

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!

krishjainx avatar Sep 23 '21 16:09 krishjainx

Whenever I try to run it, it returns a segmentation fault. This is on Big Sur M1.

DUOLabs333 avatar Sep 30 '21 23:09 DUOLabs333

Whenever I try to run it, it returns a segmentation fault. This is on Big Sur M1.

i have the same problem!

orgazmer avatar Oct 01 '21 07:10 orgazmer

I don't use M1 mac so can't reproduce the error. Sorry

krishjainx avatar Oct 02 '21 19:10 krishjainx

fork didn't help

==> Installing virt-manager from krish-sysadmin/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-20211004-53387-wai36j/libvirt-python-7.6.0
Last 15 lines from /Users/slam/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-vftfff4u/setup.py'"'"'; __file__='"'"'/private/tmp/pip-req-build-vftfff4u/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-rv8_d26z/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.8.0/share/libvirt/api/libvirt-api.xml
    Found 492 functions in /usr/local/Cellar/libvirt/7.8.0/share/libvirt/api/libvirt-api.xml
    Found 0 functions in libvirt-override-api.xml
    Generated 402 wrapper functions
    Missing type converters:
    int *:1
    ERROR: failed virNodeDeviceGetAutostart
    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-vftfff4u/setup.py'"'"'; __file__='"'"'/private/tmp/pip-req-build-vftfff4u/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-rv8_d26z/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/krish-sysadmin/homebrew-virt-manager/issues

macos x86 10.15.7

any suggestions to try out?

slamdev avatar Oct 04 '21 17:10 slamdev

The Fork isn't working for me either

Last 15 lines from /Users/dave/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-h8f9difz/setup.py'"'"'; file='"'"'/private/tmp/pip-req-build-h8f9difz/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-nqa8x8cy/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.8.0/share/libvirt/api/libvirt-api.xml Found 492 functions in /usr/local/Cellar/libvirt/7.8.0/share/libvirt/api/libvirt-api.xml Found 0 functions in libvirt-override-api.xml Generated 402 wrapper functions Missing type converters: int *:1 ERROR: failed virNodeDeviceGetAutostart 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-h8f9difz/setup.py'"'"'; file='"'"'/private/tmp/pip-req-build-h8f9difz/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-nqa8x8cy/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/krish-sysadmin/homebrew-virt-manager/issues

DaveB91 avatar Oct 05 '21 02:10 DaveB91

@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!

krishjainx avatar Oct 05 '21 16:10 krishjainx

Thanks @Krish-sysadmin - Works now Now.. Anyone know how I can open a .vv file with this?

DaveB91 avatar Oct 06 '21 02:10 DaveB91

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

krishjainx avatar Oct 06 '21 05:10 krishjainx

@Krish-sysadmin I am unable to open .vv file using the steps that you mentioned. Once I open it via the ~/Applications/oVirt-Console.app, it asks me to enter the connection address again. Not sure what's the problem. Can you please help?

Screenshot 2021-10-08 at 1 15 51 PM

sidd-satish avatar Oct 08 '21 07:10 sidd-satish

@sidd-satish Try running virt-manager <path/to/.vv file> and let me know how that goes

krishjainx avatar Oct 08 '21 14:10 krishjainx

@Krish-sysadmin This is the error I am getting

Error starting Virtual Machine Manager: Unhandled command line options '['/Users/siddharth/Downloads/pve-spice.vv']'

Traceback (most recent call last):
  File "/usr/local/Cellar/virt-manager/2.2.1_3/libexec/share/virt-manager/virt-manager", line 347, in <module>
    main()
  File "/usr/local/Cellar/virt-manager/2.2.1_3/libexec/share/virt-manager/virt-manager", line 270, in main
    raise RuntimeError("Unhandled command line options '%s'" % leftovers)
RuntimeError: Unhandled command line options '['/Users/siddharth/Downloads/pve-spice.vv']'

sidd-satish avatar Oct 08 '21 14:10 sidd-satish

FWIW, I couldn’t get it working either. I just use virt-viewer in CrossOver now.

DaveB91 avatar Oct 08 '21 20:10 DaveB91

Whenever I try to run it, it returns a segmentation fault. This is on Big Sur M1.

Same here.

david9991 avatar Oct 14 '21 11:10 david9991

I believe this is associated with an erroneous system call. I believe virt-manager itself does not support M1.

krishjainx avatar Oct 14 '21 15:10 krishjainx

This is the cause of the crash on M1. https://gitlab.gnome.org/GNOME/pygobject/-/issues/455

david9991 avatar Oct 15 '21 07:10 david9991

Did you fix it? @david9991

krishjainx avatar Oct 15 '21 16:10 krishjainx

Did you fix it? @david9991

No, I don't know much about gobject-introspection. :)

david9991 avatar Oct 18 '21 01:10 david9991

Did you fix it? @david9991

There was PR for gobject-introspection already. However, two months passed, gnome guys seem to care only what they care. For m1(arm64), my repo works:

https://github.com/Damenly/homebrew-virt-manager

Damenly avatar Oct 22 '21 02:10 Damenly

@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 avatar Oct 26 '21 20:10 phlobbi

@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

krishjainx avatar Oct 26 '21 20:10 krishjainx