Posts by hoppel118

    ShamanRU If I understand you right, it is possible to create VLANs on a single bridge with your workaround, as long as you do not need untagged traffic to be passed:

    hoppel118 AFAIK the way netplan works means your have to create a bridge per VLAN and not VLANS on a single bridge. See this thread: OMV + KVM + VLAN not working

    Is this true?


    Thanks

    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

    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

    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

    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

    You could run HA in a VM using the KVM plugin.

    This is my new setup. It’s perfect! My Server UseCase is mainly NAS and home automation.


    With the KVM plugin it was really easy to build the Home Assistant OS VM. Thanks again ryecoaaron for this plugin! 😉


    Here I described what to do to get HAOS working with KVM on OMV6:



    This way I do not need Proxmox anymore. Even LXC is possible with the KVM plugin. Docker runs directly on the OMV host and not in the OMV VM. Even though it’s not an issue, I like to have it that way.


    And the best thing is, that I can use the Proxmox kernel on OMV for my ZFS Raid-Z2. Thank you so much ryecoaaron 😉


    Regards Hoppel

    henoobis How did you configure your SMART settings?


    „Power mode: Standby“ in combination with hd-idle is what stopped my disks to spin up:

    • "SMART Check Intervall" is 30 min (1800 sec)
    • "Power mode: Standby" -> Check the device unless it is in SLEEP or STANDBY mode. In these modes most disks are not spinning, so if you want to prevent a disk from spinning up each poll, this is probably what you want.


    These are the default settings:



    The following settings seem to be related to hdparm, so decided to use the following settings:


    • APM: 128 - Minimum power usage without standby (no spindown)
    • AAM: Disabled
    • Spindown time: Disabled



    hd-idle is configured the following way:



    My disks spin down after 20 min (1200 sec). My /etc/default/hd-idle looks as follows:

    Code
    START_HD_IDLE=true
    HD_IDLE_OPTS="-i 0 -a /dev/disk/by-id/ata-WDC_WD100EFAX-68LHPN0_xxx1 -i 1200 -a /dev/disk/by-id/ata-WDC_WD100EFAX-68LHPN0_xxx2 -i 1200 -a /dev/disk/by-id/ata-WDC_WD100EFAX-68LHPN0_xxx3 -i 1200 -a /dev/disk/by-id/ata-WDC_WD100EFAX-68LHPN0_xxx4 -i 1200 -a /dev/disk/by-id/ata-WDC_WD100EFAX-68LHPN0_xxx5 -i 1200 -a /dev/disk/by-id/ata-WDC_WD100EFAX-68LHPN0_xxx6 -i 1200 -a /dev/disk/by-id/ata-WDC_WD100EFAX-68LHPN0_xxx7 -i 1200 -a /dev/disk/by-id/ata-WDC_WD100EFAX-68LHPN0_xxx8 -i 1200 -l /var/log/hd-idle.log"


    You also want to have a look at this:



    You have to disable some HDD widgets in the Dashboard, if you don't want to spin up your disks, when you launch your dashboard.


    If this doesn’t work for you, I am out of ideas. ;)


    Regards Hoppel

    Yes, you are right! It was possible to create the container. This issue is solved now. Big thanks!


    But... How is it possible to connect to that container? :)



    I determined the ip address of that container on my router.


    It is not possible to log into the container via SSH or to create/establish a console connection via the omv web interface.

    Why are you trying export -i? What is the output of: dpkg -l | grep awk

    Yes, I was a bit quick with my post. I already recognized that it should be an awk option. I edited my last post and installed gawk. Please look at the result: RE: New openmediavault-kvm plugin


    But here is the output:


    Code
    dpkg -l | grep awk
    ii  gawk                                 1:5.1.0-1                      amd64        GNU awk, a pattern scanning and processing language
    ii  mawk                                 1.3.4.20200120-2               amd64        Pattern scanning and text processing language

    Hi ryecoaaron,


    thanks for your help. I really appreciate it. Here is the result:


    Code
    export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; awk -i inplace -F":" 'BEGIN{OFS = ":"} /root/{$2="$y$j9T$P4RwUIsVHEID3k9KZSs6J1$eHurABPnULY5g.BnxlWBAce1lKnUQJzE9HtX8QUuyN5"}{ print }' /data/lxc/vbus//etc/shadow
    
    awk: not an option: -i

    The option "-i" doesn't exist.


    awk version and gawk installation:



    Next try:


    Code
    export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; awk -i inplace -F":" 'BEGIN{OFS = ":"} /root/{$2="$y$j9T$P4RwUIsVHEID3k9KZSs6J1$eHurABPnULY5g.BnxlWBAce1lKnUQJzE9HtX8QUuyN5"}{ print }' /data/lxc/vbus//etc/shadow
    
    awk: inplace:59: warning: inplace::begin: Cannot stat `/data/lxc/vbus//etc/shadow' (No such file or directory)
    awk: inplace:59: fatal: cannot open file `/data/lxc/vbus//etc/shadow' for reading: No such file or directory


    Now I did the following and the export command worked:


    Code
    > mkdir /data/lxc/vbus
    > mkdir /data/lxc/vbus/etc/
    > touch /data/lxc/vbus/etc/shadow
    > export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; awk -i inplace -F":" 'BEGIN{OFS = ":"} /root/{$2="$y$j9T$P4RwUIsVHEID3k9KZSs6J1$eHurABPnULY5g.BnxlWBAce1lKnUQJzE9HtX8QUuyN5"}{ print }' /data/lxc/vbus//etc/shadow
    >


    When I now try to create the lxc container via the omv web interface, I get the following message:


    Code
    500 - Internal Server Error
    Directory is not empty!


    Any further idea? ;)


    Thanks and regards Hoppel

    It is failing to change the root password. What is the output of: stat /data/lxc/vbus//etc/shadow Guessing it is zfs related.

    Code
    stat /data/lxc/vbus//etc/shadow
     Datei: /data/lxc/vbus//etc/shadow
     Größe: 645           Blöcke: 8          EA Block: 4096   reguläre Datei
     Gerät: 881h/2177d    Inode: 525892      Verknüpfungen: 1
    Zugriff: (0640/-rw-r-----)  Uid: (    0/    root)   Gid: (   42/  shadow)
    Zugriff: 2023-01-03 16:45:36.108993900 +0100
    Modifiziert: 2022-12-30 06:26:59.253868609 +0100
    Geändert: 2023-01-03 16:45:36.108993900 +0100
    Geburt: 2023-01-03 16:45:36.108993900 +0100

    /data/lxc/vbus is on my ext4 root filesystem for the moment. So, it shouldn't be zfs related.


    When I click on "Save" the folder structure is created.


    But I can't finish the setup procedure because of error 500. What can be done? Where is my issue?


    Thanks Hoppel

    Hi, I want to use LXC. When creating a new container via the plugin web interface...



    ... I get the following message:


    Code
    500 - Internal Server Error
    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; awk -i inplace -F":" 'BEGIN{OFS = ":"} /root/{$2="$y$j9T$P4RwUIsVHEID3k9KZSs6J1$eHurABPnULY5g.BnxlWBAce1lKnUQJzE9HtX8QUuyN5"}{ print }' /data/lxc/vbus//etc/shadow' with exit code '2':

    Any idea what is wrong?


    Thanks Hoppel