New openmediavault-kvm plugin

    • Official Post

    I gave the wrong directory. /etc/libvirt/storage/autostart is what you want.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Hi, I want to create a macos vm. I need to configure args to get this running:


    Code
    args: -device isa-applesmc,osk="..." -smbios type=2 -device usb-kbd,bus=ehci.0,port=2 -global nec-usb-xhci.msi=off -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off -cpu host,vendor=GenuineIntel,+invtsc,+hypervisor,kvm=on,vmware-cpuid-freq=on

    Where can I do this?


    In proxmox its the following file: /etc/pve/qemu-server/YOUR-VM-ID-HERE.conf


    I am trying to accomplish the following proxmox howto with openmediavault-kvm: https://www.nicksherlock.com/2…os-13-ventura-on-proxmox/


    Thanks and regards Hoppel

    ----------------------------------------------------------------------------------
    openmediavault 6 | proxmox kernel | zfs | docker | kvm
    supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x10tb wd red | digital devices max s8
    ---------------------------------------------------------------------------------------------------------------------------------------

    Edited 3 times, last by hoppel118 ().

    • Official Post

    Where can I do this?

    You should run my script. It takes the vm name as an input parameter but you might need to adjust some of the variables at the top of the script - https://github.com/ryecoaaron/scripts/blob/main/mac.sh

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • You should run my script. It takes the vm name as an input parameter but you might need to adjust some of the variables at the top of the script - https://github.com/ryecoaaron/scripts/blob/main/mac.sh

    Wow! Is there anything you don't have already done? :)


    Sadly the script didn't work:



    There are 2 error messages:


    Code
    Error: Error when defining a domain from .xml
    Error: missing name information

    and there is also a warning:


    Code
    Warning: The home directory /run/uuidd you specified cannot be accessed: No such file or directory

    Any idea?


    Thanks Hoppel

    ----------------------------------------------------------------------------------
    openmediavault 6 | proxmox kernel | zfs | docker | kvm
    supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x10tb wd red | digital devices max s8
    ---------------------------------------------------------------------------------------------------------------------------------------

  • It takes the vm name as an input parameter but you might need to adjust some of the variables at the top of the script

    upps... I didn't read your message completely. How does input parameter thing work? Your script didn't as for me the vm name. 'Do I have to hard code it into your script?


    Thanks Hoppel

    ----------------------------------------------------------------------------------
    openmediavault 6 | proxmox kernel | zfs | docker | kvm
    supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x10tb wd red | digital devices max s8
    ---------------------------------------------------------------------------------------------------------------------------------------

    • Official Post

    How does input parameter thing work?

    sudo ./mac.sh VMNAME

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • sudo ./mac.sh VMNAME

    OK, that looks better:


    What do think about these two messages:


    Code
    qemu: module block-block-dmg-bz2 not found, do you want to install qemu-block-extra package?
    qemu: module block-block-dmg-lzfse not found, do you want to install qemu-block-extra package?

    qemu-block-extra is already the latest package:

    Code
    apt install qemu-block-extra
    Paketlisten werden gelesen… Fertig
    Abhängigkeitsbaum wird aufgebaut… Fertig
    Statusinformationen werden eingelesen… Fertig
    qemu-block-extra ist schon die neueste Version (1:5.2+dfsg-11+deb11u2).
    0 aktualisiert, 0 neu installiert, 0 zu entfernen und 4 nicht aktualisiert.


    So I tried to start the new macos vm and saw the following red message block:


    Code
    500 - Internal Server Error
    Unable to - poweronKonnte Schnittstellen-MTU auf 'virbr0' nicht erhalten: Kein passendes Gerät gefunden


    After removing the network interface and adding my own network bridge, I see the macos setup guide. ^^


    You are my hero of the day! :)


    So, it installs big-sur. but I would like to install ventura.

    Code
    1. High Sierra (10.13)
    2. Mojave (10.14)
    3. Catalina (10.15)
    4. Big Sur (11.7) - RECOMMENDED
    5. Monterey (12.6)
    6. Ventura (13)
    Big Sur (11.7) - RECOMMENDED

    What do you think about ventura with kvm? Why is big-sur recommended?


    EDIT: I changed the variable from svers="big-sur" to svers="ventura" and now try my luck. But I am still interested in your opinion for Ventura in KVM. ;)


    EDIT 2: Ventura doesn't work:


    Any idea?


    EDIT 3: OK, my server doesn't support AVX2.0 natively. Maybe its solvable with this fix:


    GitHub - acidanthera/CryptexFixup: Various patches to install Rosetta Cryptex
    Various patches to install Rosetta Cryptex. Contribute to acidanthera/CryptexFixup development by creating an account on GitHub.
    github.com


    I am unsure...


    Next try "monterey". Looks better:



    OK, had to activate a macvtap network. Until now I only used omv network bridges with my vms. macOS doesn't recognize these omv bridges. macvtap to to omv bridge works.


    Now, it needs two hours:




    Thank you so much!


    Hoppel

    ----------------------------------------------------------------------------------
    openmediavault 6 | proxmox kernel | zfs | docker | kvm
    supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x10tb wd red | digital devices max s8
    ---------------------------------------------------------------------------------------------------------------------------------------

    Edited 5 times, last by hoppel118 ().

    • Official Post

    Yep, it is called hackintosh for a reason : ) The repo that does all of the work recommends big sur.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • At some point in time it stopped working. I had to remove the plugin from the command line. There is a lot of rubbish left. How to clean?



    7.0-22 (Sandworm)| Kernel 6.1.0-17 ... running on

    Supermicro A1SRi -- Intel® Atom processor C2758 8x 2,40 GHz -- 32 GB DDR3 RAM -- OMV installed to NE-512

    • Official Post

    At some point in time it stopped working. I had to remove the plugin from the command line. There is a lot of rubbish left. How to clean?

    Other than the lxc bridge, all I see is your docker "rubbish".

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    For fun I have been following along, all gets to the Install portion, but says I do not have access to the disk to install?

    Not an expert on installing OS X (especially when not using big sur) on kvm. So, not sure.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    I did sudo ./mac.sh VMNAME using the script!! and all defaults

    Why is that bad? Delete the VM in the plugin and then sudo rm -rfv /srv/ssd2/mac.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I mean, I did the defaults but I modified to my specific system and drive location. I just meant after changing to my specifics in the .sh file, I ran the command and it installed the VM, but when I run the VM and go through the installation of thew OS, says I do not have access to the drive, read/write I assume.

    Unless I am misunderstanding you.

    • Official Post

    I mean, I did the defaults but I modified to my specific system and drive location. I just meant after changing to my specifics in the .sh file, I ran the command and it installed the VM, but when I run the VM and go through the installation of thew OS, says I do not have access to the drive, read/write I assume.

    Unless I am misunderstanding you.

    I misunderstood what you mean by defaults. And I was confusing you and hoppel.


    As for why it doesn't work, I'm not really able to help. The script is just running the code from kholia/OSX-KVM. It used to work but I haven't used it a long time. And I don't know mac os well enough to build this into the plugin. Hence why it is still a script in my personal repo.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!