:: Re: [DNG] tryng to install virt-man…
Startseite
Nachricht löschen
Nachricht beantworten
Autor: onefang
Datum:  
To: dng
Betreff: Re: [DNG] tryng to install virt-manager on Devuan 4 : ModuleNotFoundError: No module named 'gi'
On 2023-08-22 01:23:57, Mario Marietto via Dng wrote:
>    "virt isn't letting me do the things I want to do coz it's a limited
>    wrapper and the things I want to do are beyond its limits, so scripting
>    qemu directly is much easier".
>    you touched the very heart of the question. To allow a software or a piece
>    of hardware to do things which they were not expected to do is my
>    ultimate goal. I think that it is stimulating and it allows me to fight
>    against the rules that will never do what makes me happy or what is for me
>    cheaper. So I spend my whole days programming old software and old
>    hardware to extend their life (yes,I'm retired from work). And anyway,I
>    don't know if virt-manager has some limitations in the scenario where I am
>    working. Probably I make some mistakes due to my inexperience and lack of
>    knowledge.


I'm a semi-retired computer programmer and sysadmin. So I do lots of
volunteer work for things like looking after Devuans package mirrors, and
virtual world stuff. The real virtual world stuff that has been
operating for the last 16 years, not this new metaverse crap that is of
lower quality. I even did a parody virtual world metaverse farted, but
Meta set a really low bar to get down to, I'm 62. I can't limbo like I
used to. You can visit it from any other OpenSim based virtual world,
which is something this new metaverse hype promises, but hasn't delivered
yet. You can use it from VR, I added that to one of the viewers before
this generation of VR headsets came out. I was using an Oculus
development kit.

>    Where do you live ? Even here,where I live,there is a crisis. I think it
>    is increasing all over the western world. I have a theory for this....


Brisbane, Australia. Think we are straying off topic now.

>    On Tue, Aug 22, 2023 at 12:36 AM onefang <onefang_devuan@???>
>    wrote:

>
>      There's "solving problems" and there's "finding out some tool isn't
>      suited to the job".  I'm a programmer, so "virt isn't letting me do the
>      things I want to do coz it's a limited wrapper and the things I want to
>      do
>      are beyond it's limits, so scripting qemu directly is much easier".

>
>      There's just lots of things qemu can do that virt doesn't know how to
>      tell it to do.

>
>      As for solving problems, when the world stops sending me new problems
>      like I got nothing better to do, then I'll love to get back to solving
>      the fun problems.  Right now it's having to move for the second time
>      this
>      year, in the middle of a country wide rental crisis, where I'm beginning
>      to suspect the real estate agents are just making things harder to raise
>      the desperation levels, so they can raise prices.  And every third email
>      I'm getting from them is just proving how incompetent they are.  Latest
>      email is telling me the inspection for a home has been cancelled, I had
>      already inspected it and turned it down.  Pffft

>
>      On 2023-08-22 00:07:19, Mario Marietto via Dng wrote:
>      >    yeah,it's a wrapper,but comfortable. I have already scripted qemu
>      to run
>      >    the guest os directly. But I also want to understand why it does
>      not work
>      >    and I want to use it. Don't you like to solve problems ? Am I the
>      only
>      >    masochistic guy on the planet ? :)
>      >    On Mon, Aug 21, 2023 at 11:31 PM onefang
>      <onefang_devuan@???>
>      >    wrote:
>      >
>      >      If you are going to all this trouble, just dump virt and script
>      qemu
>      >      directly.  virt is merely a wrapper, and it doesn't cover
>      everything.

>      >
>      >      On 2023-08-21 14:19:47, Mario Marietto via Dng wrote:
>      >      >    Another round,another problem. Probably I'm a little bit
>      >      masochistic
>      >      >    because what I do everyday is to find problems to solve
>      them,like a
>      >      lot of
>      >      >    computer enthusiasts. This time I'm trying to use qemu 5.1
>      with
>      >      >    virt-manager and libvirt. Devuan 4 is the host o.s that I'm
>      running
>      >      on my
>      >      >    ARM chromebook. By default it uses qemu and its
>      >      dependencies,version 5.2.
>      >      >    I remember that I can't use qemu 5.2,because it doesn't have
>      any
>      >      support
>      >      >    for KVM. For this reason,I've compiled qemu 5.1 from source.
>      Below
>      >      I shown
>      >      >    how I have configured it such as a little piece of
>      compilation
>      >      messages :
>      >      >    apt install libgtk-3-dev libpulse-dev libgbm-dev
>      >      libspice-protocol-dev
>      >      >    libspice-server-dev libusb-1.0-0-dev libepoxy-dev
>      >      >    cd /usr/share
>      >      >    mv qemu qemu_
>      >      >
>      >      >    cd /usr/lib
>      >      >    mv qemu qemu_
>      >      >
>      >      >    cd /usr/lib/arm-linux-gnueabihf
>      >      >    mv qemu qemu_
>      >      >
>      >      >    cd /usr/lib/ipxe
>      >      >    mv qemu qemu_
>      >      >
>      >      >    cd /usr/share/bash-completion/completions/
>      >      >    mv qemu qemu_
>      >      >    mv qemu-kvm qemu-kvm_
>      >      >    mv qemu-system-i386 qemu-system-i386_
>      >      >    mv qemu-system-x86_64 qemu-system-x86_64_
>      >      >    cd /usr/bin
>      >      >    mv qemu-system-arm qemu-system-arm_
>      >      >    cp /root/Desktop/qemu-v5.1.0/arm-softmmu/qemu-system-arm
>      /usr/bin
>      >      >    CFLAGS=-Wno-error ./configure --target-list=x86_64-softmmu
>      >      --enable-opengl
>      >      >    --enable-gtk --enable-kvm --enable-guest-agent
>      --enable-spice
>      >      >    --audio-drv-list="oss pa" --enable-libusb
>      >      >
>      >      >    install -d -m 0755 "/usr/local/share/qemu"
>      >      >    install -d -m 0755 "/usr/local/var"/run
>      >      >    install -d -m 0755 "/usr/local/include"
>      >      >    install -d -m 0755 "/usr/local/bin"
>      >      >    install -c -m 0755 qemu-ga qemu-keymap ivshmem-client
>      >      ivshmem-server
>      >      >    qemu-nbd qemu-storage-daemon qemu-img qemu-io qemu-edid 
>      >      "/usr/local/bin"
>      >      >    strip "/usr/local/bin/qemu-ga" "/usr/local/bin/qemu-keymap"
>      >      >    "/usr/local/bin/ivshmem-client"
>      "/usr/local/bin/ivshmem-server"
>      >      >    "/usr/local/bin/qemu-nbd"
>      "/usr/local/bin/qemu-storage-daemon"
>      >      >    "/usr/local/bin/qemu-img" "/usr/local/bin/qemu-io"
>      >      >    "/usr/local/bin/qemu-edid"
>      >      >    install -d -m 0755 "/usr/local/libexec"
>      >      >    install -c -m 0755 scsi/qemu-pr-helper qemu-bridge-helper
>      >      >    "/usr/local/libexec"
>      >      >    strip "/usr/local/libexec/qemu-pr-helper"
>      >      >    "/usr/local/libexec/qemu-bridge-helper"
>      >      >    set -e; for x in bios.bin bios-256k.bin bios-microvm.bin
>      >      sgabios.bin
>      >      >    vgabios.bin vgabios-cirrus.bin vgabios-stdvga.bin
>      >      vgabios-vmware.bin
>      >      >    vgabios-qxl.bin vgabios-virtio.bin vgabios-ramfb.bin
>      >      >    vgabios-bochs-display.bin vgabios-ati.bin openbios-sparc32
>      >      >    openbios-sparc64 openbios-ppc QEMU,tcx.bin QEMU,cgthree.bin
>      >      pxe-e1000.rom
>      >      >    pxe-eepro100.rom pxe-ne2k_pci.rom pxe-pcnet.rom
>      pxe-rtl8139.rom
>      >      >    pxe-virtio.rom efi-e1000.rom efi-eepro100.rom
>      efi-ne2k_pci.rom
>      >      >    efi-pcnet.rom efi-rtl8139.rom efi-virtio.rom efi-e1000e.rom
>      >      >    efi-vmxnet3.rom qemu-nsis.bmp bamboo.dtb canyonlands.dtb
>      >      >    petalogix-s3adsp1800.dtb petalogix-ml605.dtb multiboot.bin
>      >      linuxboot.bin
>      >      >    linuxboot_dma.bin kvmvapic.bin pvh.bin s390-ccw.img
>      >      s390-netboot.img
>      >      >    slof.bin skiboot.lid palcode-clipper u-boot.e500
>      >      >    u-boot-sam460-20100605.bin qemu_vga.ndrv edk2-licenses.txt
>      >      >    hppa-firmware.img opensbi-riscv32-sifive_u-fw_jump.bin
>      >      >    opensbi-riscv32-virt-fw_jump.bin
>      >      opensbi-riscv64-sifive_u-fw_jump.bin
>      >      >    opensbi-riscv64-virt-fw_jump.bin; do \
>      >      >            install -c -m 0644
>      /root/Desktop/qemu-v5.1.0/pc-bios/$x
>      >      >    "/usr/local/share/qemu"; \
>      >      >    done
>      >      >    set -e; for x in pc-bios/edk2-aarch64-code.fd
>      >      pc-bios/edk2-arm-code.fd
>      >      >    pc-bios/edk2-arm-vars.fd pc-bios/edk2-i386-code.fd
>      >      >    pc-bios/edk2-i386-secure-code.fd pc-bios/edk2-i386-vars.fd
>      >      >    pc-bios/edk2-x86_64-code.fd
>      pc-bios/edk2-x86_64-secure-code.fd; do
>      >      \
>      >      >            install -c -m 0644 $x "/usr/local/share/qemu"; \
>      >      >    done
>      >      >    install -d -m 0755 "/usr/local/share/qemu/firmware"
>      >      >    set -e; tmpf=$(mktemp); trap 'rm -f -- "$tmpf"' EXIT; \
>      >      >    for x in 50-edk2-i386-secure.json 50-edk2-x86_64-secure.json
>      >      >    60-edk2-aarch64.json 60-edk2-arm.json 60-edk2-i386.json
>      >      >    60-edk2-x86_64.json; do \
>      >      >            sed -e 's,@DATADIR@,/usr/local/share/qemu,' \
>      >      >                   
>      "/root/Desktop/qemu-v5.1.0/pc-bios/descriptors/$x"
>      >      >
>      >      >    "$tmpf"; \
>      >      >            install -c -m 0644 "$tmpf" \
>      >      >                    "/usr/local/share/qemu/firmware/$x"; \
>      >      >    done
>      >      >    for s in 16x16 24x24 32x32 48x48 64x64 128x128 256x256
>      512x512; do
>      >      \
>      >      >            mkdir -p "/usr/local/share/icons/hicolor/${s}/apps";
>      \
>      >      >            install -c -m 0644
>      >      >    /root/Desktop/qemu-v5.1.0/ui/icons/qemu_${s}.png \
>      >      >                   
>      >      "/usr/local/share/icons/hicolor/${s}/apps/qemu.png"; \
>      >      >    done; \
>      >      >    mkdir -p "/usr/local/share/icons/hicolor/32x32/apps"; \
>      >      >    install -c -m 0644
>      >      /root/Desktop/qemu-v5.1.0/ui/icons/qemu_32x32.bmp \
>      >      >           
>      "/usr/local/share/icons/hicolor/32x32/apps/qemu.bmp"; \
>      >      >    mkdir -p "/usr/local/share/icons/hicolor/scalable/apps"; \
>      >      >    install -c -m 0644
>      /root/Desktop/qemu-v5.1.0/ui/icons/qemu.svg \
>      >      >           
>      "/usr/local/share/icons/hicolor/scalable/apps/qemu.svg"
>      >      >    mkdir -p "/usr/local/share/applications"
>      >      >    install -c -m 0644 /root/Desktop/qemu-v5.1.0/ui/qemu.desktop
>      \
>      >      >            "/usr/local/share/applications/qemu.desktop"
>      >      >    make -C po install
>      >      >    make[1]: Entering directory '/root/Desktop/qemu-v5.1.0/po'
>      >      >    for obj in bg.mo de_DE.mo fr_FR.mo hu.mo it.mo sv.mo tr.mo
>      >      zh_CN.mo; do \
>      >      >        base=$(basename $obj .mo); \
>      >      >        install -d /usr/local/share/locale/$base/LC_MESSAGES; \
>      >      >        install -m644 $obj
>      >      /usr/local/share/locale/$base/LC_MESSAGES/qemu.mo;
>      >      >    \
>      >      >    done
>      >      >    make[1]: Leaving directory '/root/Desktop/qemu-v5.1.0/po'
>      >      >    install -d -m 0755 "/usr/local/share/qemu/keymaps"
>      >      >    set -e; for x in da     en-gb  et  fr     fr-ch  is  lt  no 
>      pt-br 
>      >      sv
>      >      >    ar      de     en-us  fi  fr-be  hr     it  lv  nl        
>      pl 
>      >      ru     th
>      >      >    de-ch  es     fo  fr-ca  hu     ja  mk  pt  sl     tr
>      bepo    cz;
>      >      do \
>      >      >            install -c -m 0644
>      >      /root/Desktop/qemu-v5.1.0/pc-bios/keymaps/$x
>      >      >    "/usr/local/share/qemu/keymaps"; \
>      >      >    done
>      >      >    install -c -m 0644
>      /root/Desktop/qemu-v5.1.0/trace-events-all
>      >      >    "/usr/local/share/qemu/trace-events-all"
>      >      >    These are the resulting versions of my frankenstein
>      operation :
>      >      >    root@devuan:/usr/share# virsh version
>      >      >    Compiled against library: libvirt 7.0.0
>      >      >    Using library: libvirt 7.0.0
>      >      >    Using API: QEMU 7.0.0
>      >      >    Running hypervisor: QEMU 5.1.0
>      >      >
>      >      >    At this point I've run virt-manager. It has been able to
>      detect
>      >      qemu,but I
>      >      >    get the following error :
>      >      >    Warning : Failed to set up UEFI. The Libvirt version does
>      not
>      >      support
>      >      >    UEFI. Install options are limited.
>      >      >    Do you have some suggestions to give me to fix this error ?
>      I'm
>      >      sure to
>      >      >    have missed something, thanks.

>      >
>      >      > _______________________________________________
>      >      > Dng mailing list
>      >      > Dng@???
>      >      > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

>      >
>      >      --
>      >      A big old stinking pile of genius that no one wants
>      >      coz there are too many silver coated monkeys in the world.
>      >      _______________________________________________
>      >      Dng mailing list
>      >      Dng@???
>      >      https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

>      >
>      >    --
>      >    Mario.

>
>      > _______________________________________________
>      > Dng mailing list
>      > Dng@???
>      > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

>
>      --
>      A big old stinking pile of genius that no one wants
>      coz there are too many silver coated monkeys in the world.
>      _______________________________________________
>      Dng mailing list
>      Dng@???
>      https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

>
>    --
>    Mario.


> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng



--
A big old stinking pile of genius that no one wants
coz there are too many silver coated monkeys in the world.