dboris

Members
  • Posts

    83
  • Joined

  • Last visited

Posts posted by dboris

  1. On 10/8/2023 at 1:46 PM, dboris said:

    It works. Reboot bug was because somehow virsh wasn't interpreting the VM name when using parenthesis.

    So the script part for sleep is : 

    virsh suspend HomeAssistant
    rc.usb_manager vm_action HomeAssistant disconnect


    And wake up :

    rc.usb_manager vm_action HomeAssistant prepare
    virsh resume HomeAssistant

    The irony at me having the same issue months later and searching again until I find my message.

  2. 22 hours ago, primeval_god said:

     

    So it really was out of luck that 10000 worked and 10001 failed !

     

     

    I searched and found on this topic some indications to use the terminal :

     

     

    dd if=/dev/zero of=/mnt/ssd/swap/swapfile bs=1M count=32768
    btrfs property set /mnt/ssd/swap/swapfile compression none
    mkswap -L swapfile /mnt/ssd/swap/swapfile
    chmod 600 /mnt/ssd/swap/swapfile
    swapon -v /mnt/ssd/swap/swapfile

     

    Would you mind validating that this matches the settings bellow ? :)

    765377615_Screenshot2024-02-21at09_10_10.thumb.jpg.3c8541d4ff75b0b90973d117add7132f.jpg

     

    I tried, but first row created the right file, but second row gets me :

    ERROR: failed to set compression for /mnt/ssd/swap/swapfile: Invalid argument

     

    And while the filehas been created after a few seconds, the options doesn't update to the right size on the pluggin.

     

    And regarding swapiness, should I run this ?

     

    sysctl /mnt/ssd/swap/swapfile.swappiness=10

     

    Thanks !

     

    Note that I'm doing this for GitLab CE repository that wants to eat all my ram.

    I probably could find the answers by googling, but I'm hopping some user may find this post useful.

  3. On 1/27/2024 at 12:29 AM, GollyJer said:

    Hi @dboris. Thanks for this guide.
    I'm having a strange issue.

     

    Traefik is set up and working pointing at other docker images, and other standalone servers on my network. So I know it's working properly.

     

    The problem is, whenever I enable the homeassistant and http settings in configuration.yaml on the HA side I'm unable to get the UI to load at all. It doesn't work from the normal local url or ip address url.  I end up having to SSH in and edit the yaml file to remove those settings.

     

    When I look at HA in the VNC console there are no errors and none in the logs.

    Did you run into anything like this? 

     


    No I don't face this issue. :/

     

    2 factor authentication worked for me on my mobile : had to log in manually on authelia. Once done, still working today.

  4. Hello :) I tried installing and removing entirely the docker multiple times without having any success.
    Basically I can't manage to access the GUI.
    I managed to crash my server as ram usage goes off the roof.

    I tried limiting the ram : still doesn't work.

     

    Edit : I checked the docker folder's permission and it was all messed up.
    I created the gitlab-ce folder myself and reinstalled it.

     

    Edit : The template was installing it on my media / HDD folder, for an unknown reason, when my app data should only be on my SSD drive.

     

    Edit it works this morning, but I cry : 7.44GB/used.

    CPU usage on the docker being displayed "0.46%".
    Overall CPU load is >90% and when I shut down the docker, load I goes back to 5-20%.

     

    87981875_Screenshot2024-02-19at06_19_43.thumb.jpg.be6839282fd5422a68356d171ce052ed.jpg

    1645858545_Screenshot2024-02-19at06_19_04.thumb.jpg.fefe7d37480afee85fe96b984725dbe6.jpg

      

    On 11/11/2018 at 6:05 PM, Squid said:

    Doesn't work for me, zero repos as well. Repports errors and GUI doesn't work if allocated with 4GB of memory, which should be it's minimum requirement for 500 users.

     

     

  5. I got once again the case where my folders disappeared after I made a change on a Folderview.

    I still have no idea on what caused the issue.
    I realised that typing "debug", only works when the plugin works ; after facing the bug I tried typing it, no results.

    Then I clicked previous page on my browser, validated, hopping to recover my settings ; itcreated an empty folder and all my previous folders were gone. I typed debug again and this time it worked.
    So I'm a bit annoyed of loosing my groups everytime ah ah ah.

    Which file could I back up to manually save my settings, so I can still use FolderView, and experiment to try to identify what cause that bug ?

     

    edit: I had already uninstalled the previous plugin.

     

    debug-DOCKER (1).json

  6. Hello hello.
    I'm having issues with cache getting filled until Docker can't start anymore.

    I enabled the secondary storage to fill out the cache.
    However, I still want my docker and often read-files to be on the cache.
    I also want the cache to offload to array when it's getting full.
    However I noticed that the "use cache pool" option is now gone on the GUI.
    What should I do to emulate that behaviour ?


    This is what I used to have :
    image.thumb.png.182c801ed1f6491e194fdb5f2ab656ae.png

     

    And this is what I have today ; no more "prefer" option.

    1760892262_Screenshot2023-10-13at08_49_56.thumb.jpg.7c66ca326cfe7acfb8f9852138e5bd82.jpg

     

    Thanks !

    • Like 1
  7. You want to access your Home Assistant VM remotely ? eg : with your phone companion app

    So simple, but couldn't find guide anywhere 😔 ! So here we are !

    It's basically Home Assistant Cloud for free.

    You will "simply" need to reverse proxy home assistant virtual machine with Traefik on Unraid ! 🥸


    You must already :

    • configure Home Assistant with a Fixed IP.
    • have a domain or a DDNS setup
    • have attributed a subdomain to point to home assistant
    • have successfully reverse proxied a service/docker (so you don't start with HA's VM)
    • MUST ABSOLUTELY have set up a double auth middleware (so you don't expose your HA VM to the rest of the world).

     

    I won't provide support for these steps. Ibracorp videos are a good starting point.

    I personally use ddns-updater, Cloudflare and Authelia.

     

    On Home Assistant, edit your configuration.yaml (with the file editor HA plugin) :

     

    homeassistant:
        external_url: "https://subdomain.domain.com" # provide your subdomain and domain, with no port
        internal_url: "http://homeassistant.local:8123" # local address with port
    
        
    http:
        use_x_forwarded_for: true
        ip_ban_enabled: false
        trusted_proxies:
            - 192.168.X.X/24 # replace X to fit your local devices

     

    On Traefik, edit fileConfig.yml, to include under "http:", and edit the following :

    • subdomain
    • domain
    • localip
    • localport
    • auth (if not already named auth, must be replaced with the identifier of your middleware)

     

    
      ## EXTERNAL ROUTING - Only use if you want to proxy something manually ##
      routers:
         HomeAssistantRouter:
           entryPoints: https
           rule: "Host(`subdomain.domain.com`)"
           service: HomeAssistantService
           middlewares:
             - auth
    
      ## SERVICES ##
      services:
         HomeAssistantService:
           loadBalancer:
             servers:
               - url: http://localip:localport

     

     

    Then go check on Traefik's UI to see if there's any error being reported. It should be all green.

    You'll just need to log on your Auth service before logging in Home Assistant. I tried from the Companion's app and it worked perfectly with Authelia.

     

    You are now set, enjoy the automations ! 👏

     

    42045278_Screenshot2023-10-08at15_27_16.thumb.jpg.537357dd08b3aeb8428fbcdada336878.jpg221674073_Screenshot2023-10-08at15_25_23.thumb.jpg.75f8b327f4ca0c4f4a5591436ec8e22a.jpg

    Screenshot 2023-10-08 at 15.14.25.jpg

    • Like 2
    • Thanks 2
  8. It works. Reboot bug was because somehow virsh wasn't interpreting the VM name when using parenthesis.

    So the script part for sleep is : 

    virsh suspend HomeAssistant
    rc.usb_manager vm_action HomeAssistant disconnect


    And wake up :

    rc.usb_manager vm_action HomeAssistant prepare
    virsh resume HomeAssistant

    • Like 1
  9. 1 hour ago, dboris said:

    I edited these commands by replacing and name of the VM with "HomeAssistant"... But somehow it calls a halt of the system and shut my sytem off when I wake it from sleep. Ah ah ah. I will investigate :).

     

    unraid.usbip-gui is not installed. Seems that's a common issue.
    I tried reinstalling the plugin and rebooting without success.

  10. I edited these commands by replacing and name of the VM with "HomeAssistant"... But somehow it calls a halt of the system and shut my sytem off when I wake it from sleep. Ah ah ah. I will investigate :).

  11. Hello, thanks for this awesome plugin !

    However I have an issue with Home Assistant and the new Sonoff ZigBee bridge USB Key.

    Each time my Unraid server comes out of sleep, I get a Virsh error on this USB device.
    I originally wanted to script a disconnection and reconnection of the key but your plugin provide a simpler way to do it than on the VM page.

    I just have to do VM detach and VM attach to some the error :).

     

    Would there be a way for me to script this, simpler, using your plugin ?
    If I could externally call your functions, it would be a neat way to do it.

    Thanks.

  12. Now I understand my issues ; I had the grey theme enabled.
    I realised the "move dockers around" were moved on the side : 

    image.png.41bf973d6b7bb4f0034105737446f3c7.png
    You should put a warning on front page with supported themes.

  13. I tried this pluggin on 6.12.3 and at three occasions the folders I had created disapeared... Lol, frustrating. Back to step 0. But looks better than the older version when it works.
    I hope it later improves on the unraid limited ordering / delaying.

  14. On 8/3/2023 at 8:41 AM, SimonF said:

    I cannot remember why I have it in on my test system, maybe was related to my ARC770 but maybe worth trying this, You will need to reboot for it to take effect. May also increase your power draw.

     

    root@computenode:~# cat /boot/config/modprobe.d/vfio.conf 
    options vfio-pci disable_idle_d3=0
    root@computenode:~# 
     

    Update : I was able to benchmark the GPU in a VM. The results were so underwhelming, probably because of the ReBAR requirements that I just stopped trying to improve the situations.

  15. Sooo it worked :)  !

     

    On the other hand I still randomly get the same error on

    [8086:460d] 00:01.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x16 Controller #1 (rev 02)


    I modified the script you gave me accordingly but I still get the bug.
    The UI of the server is unresponsive, but I was able to go check in the
     related reset_method file : it's empty.
    However, after crashes, I noticed it's usually not empty ("bus").

     

    GNU nano 7.2                                                         /etc/libvirt/hooks/qemu.d/Window11-Arc_reset                                                                    
    #!/usr/bin/env php
    
    <?php
    
    
    function log_to_log($m, $type = "NOTICE") {
            if ($type == "DEBUG" ) return NULL;
            $m              = print_r($m,true);
            $m              = str_replace("\n", " ", $m);
            $m              = str_replace('"', "'", $m);
            $cmd    = "/usr/bin/logger ".'"'.$m.'"' ;
            exec($cmd);
    }
    
    #Reset 
    #      echo > /sys/bus/pci/devices/0000:03:00.0/reset_method
    #      echo > /sys/bus/pci/devices/0000:04:00.0/reset_method
    #
    #               Note if this fails then the VM will not start.
    #
    $vmname = "Windows 11" ;
    log_to_log("Hooks Arc Clear" .$argv[2]." VM:".$argv[1]) ;
    
    if ($argv[2] == 'prepare' && $argv[1] == "$vmname"){
            log_to_log( "Clear /sys/bus/pci/devices/0000:03:00.0/reset_method") ;
            file_put_contents("/sys/bus/pci/devices/0000:03:00.0/reset_method", " ") ;
            log_to_log( "Clear /sys/bus/pci/devices/0000:04:00.0/reset_method") ;
            file_put_contents("/sys/bus/pci/devices/0000:04:00.0/reset_method", " ") ;
            log_to_log( "Clear /sys/bus/pci/devices/0000:01:00.0/reset_method") ;
            file_put_contents("/sys/bus/pci/devices/0000:01:00.0/reset_method", " ") ;
    }
    ?>

     

    389267825_Screenshot2023-08-01at22_53_03.thumb.png.314e57aa17bd875cf4c2ab69e22acac6.png

     

     

  16. As far as I understand, the ARC gpu won't crash if I clearing (both devices) by making sure that this file is empty using :

    nano /sys/bus/pci/devices/0000:03:00.0/reset_method
    
    same for the audio device : 0000:04:00.0

     

    So, the first thing I will do is make sure this manual fix works, restart the VM, clear, etc.

    I'll report my findings here tonight !

     

    On the other hand, I don't understand yet where I should put the script / the uuid part.

    I'll check the content of /etc/libvirt/hooks to get some clues tonight too.
     

    Don't hesitate if you have any ideas of the directions to take, even if it involves testing. My arrays cries in bad blocks already. I already spent countless (worthless?) hours trying to get that NUC's GPU working as it's a perfect candidate for my use case. Wish I had found that post last month.

     

  17. Does someone tested passing their Arc dGPU to a VM ?
    I still get the same system crash :). My poor array isn't enjoying the multiple hard reset.
    I would be interested to know if I messed up my configuration or if it's simply not working yet.

     

    • Upvote 1
  18. 5 hours ago, DeadDevil6210 said:

    I'm trying out the linked guido to make my own custom kernel, I'm just using 6.12.16 like the guide says but at the point where I have to do the following commands (Using terminal on the server)

    wget https://unraid-dl.sfo2.cdn.digitaloceanspaces.com/stable/unRAIDServer-6.12.2-x86_64.zip

    unzip unRAIDServer-6.12.2-x86_64.zip -d unRAIDServer cd unRAIDServer

    unsquashfs -d patches bzfirmware src

    cd ..

    cp -r unRAIDServer/patches/src/linux-*-Unraid/. linux/

     

    I strand on the "unsquashfs -d patches bzfirmware src"  step it says command not found what am I doing wrong?

     

    Error message: bash: unsquashfs: command not found
    cp: cannot stat 'unRAIDServer/patches/src/linux-*-Unraid/.': No such file or directory

     

    I think you are simply in the wrong directory.
    I got the same issue.

    Go down one directory and check for the presence of the unRAIDServer folder.

  19. On 7/11/2023 at 6:06 AM, lostcowboy said:

    Hello one of the members on Reddit made this guide and sent me there,Unraid 6.12 Custom Kernel.  As I am a complete Newbie to both Unraid and Linux I have not tried it.

     

    I tried with my A770M and I still get the same error.

    I was getting some errors before, but after adding the GPU and Audio as passthrough on boot, and audio as function in the VM, it seems ok on boot :

     

    "Make sure the GuC/HuC firmware loaded without any FAIL or ERROR." :

    cat /sys/kernel/debug/dri/0/gt/uc/guc_info
    cat /sys/kernel/debug/dri/0/gt/uc/huc_info
    [   15.979594] i915 0000:00:02.0: enabling device (0006 -> 0007)
    [   15.980248] i915 0000:00:02.0: [drm] VT-d active for gfx access
    [   15.980311] i915 0000:00:02.0: [drm] Using Transparent Hugepages
    [   15.989526] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=mem
    [   15.993661] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/adlp_dmc_ver2_16.bin (v2.16)
    [   15.993905] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
    [   16.160451] i915 0000:00:02.0: [drm] GuC firmware i915/adlp_guc_70.bin version 70.5.1
    [   16.160466] i915 0000:00:02.0: [drm] HuC firmware i915/tgl_huc.bin version 7.9.3
    [   16.174909] i915 0000:00:02.0: [drm] HuC authenticated
    [   16.175918] i915 0000:00:02.0: [drm] GuC submission enabled
    [   16.175921] i915 0000:00:02.0: [drm] GuC SLPC enabled
    [   16.176633] i915 0000:00:02.0: [drm] GuC RC: enabled
    [   16.177691] mei_pxp 0000:00:16.0-fbf6fcf1-96cf-4e2e-a6a6-1bab8cbe36b1: bound 0000:00:02.0 (ops i915_pxp_tee_component_ops [i915])
    [   16.177865] i915 0000:00:02.0: [drm] Protected Xe Path (PXP) protected content support initialized
    [   16.179762] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0
    [   16.190923] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
    [   16.195256] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
    [   16.195437] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
    cat: /sys/kernel/debug/dri/0/gt/uc/guc_info: No such file or directory
    cat: /sys/kernel/debug/dri/0/gt/uc/huc_info: No such file or directory

     

    However on the log I get the same errors and freezes than I had before updating the kernel.
    Once I boot the VM I get : 

     

    Jul 12 15:17:36 Server nmbd[9631]: [2023/07/12 15:17:36.016923,  0] ../../source3/nmbd/nmbd_become_lmb.c:398(become_local_master_stage2)
    Jul 12 15:17:36 Server nmbd[9631]:   *****
    Jul 12 15:17:36 Server nmbd[9631]:   
    Jul 12 15:17:36 Server nmbd[9631]:   Samba name server SERVER is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.1
    Jul 12 15:17:36 Server nmbd[9631]:   
    Jul 12 15:17:36 Server nmbd[9631]:   *****
    Jul 12 15:17:55 Server webGUI: Successful login user root from 192.168.1.10
    Jul 12 15:21:13 Server kernel: br0: port 2(vnet0) entered blocking state
    Jul 12 15:21:13 Server kernel: br0: port 2(vnet0) entered disabled state
    Jul 12 15:21:13 Server kernel: device vnet0 entered promiscuous mode
    Jul 12 15:21:13 Server kernel: br0: port 2(vnet0) entered blocking state
    Jul 12 15:21:13 Server kernel: br0: port 2(vnet0) entered forwarding state
    Jul 12 15:21:29 Server kernel: vfio-pci 0000:03:00.0: not ready 1023ms after FLR; waiting
    Jul 12 15:21:31 Server kernel: vfio-pci 0000:03:00.0: not ready 2047ms after FLR; waiting
    Jul 12 15:21:34 Server kernel: vfio-pci 0000:03:00.0: not ready 4095ms after FLR; waiting
    Jul 12 15:21:39 Server kernel: vfio-pci 0000:03:00.0: not ready 8191ms after FLR; waiting
    Jul 12 15:21:49 Server kernel: vfio-pci 0000:03:00.0: not ready 16383ms after FLR; waiting
    Jul 12 15:22:05 Server ntpd[1666]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
    Jul 12 15:22:06 Server kernel: vfio-pci 0000:03:00.0: not ready 32767ms after FLR; waiting
    Jul 12 15:22:42 Server kernel: vfio-pci 0000:03:00.0: not ready 65535ms after FLR; giving up
    Jul 12 15:22:55 Server kernel: vfio-pci 0000:03:00.0: not ready 1023ms after bus reset; waiting
    Jul 12 15:22:57 Server kernel: vfio-pci 0000:03:00.0: not ready 2047ms after bus reset; waiting
    Jul 12 15:23:00 Server kernel: vfio-pci 0000:03:00.0: not ready 4095ms after bus reset; waiting
    Jul 12 15:23:05 Server kernel: vfio-pci 0000:03:00.0: not ready 8191ms after bus reset; waiting
    Jul 12 15:23:15 Server kernel: vfio-pci 0000:03:00.0: not ready 16383ms after bus reset; waiting
    Jul 12 15:23:33 Server kernel: vfio-pci 0000:03:00.0: not ready 32767ms after bus reset; waiting
    Jul 12 15:24:09 Server kernel: vfio-pci 0000:03:00.0: not ready 65535ms after bus reset; giving up

     

    Once again, GPU is untouched, and audio is passed as a multifunction device.

     

  20. On 6/24/2023 at 10:59 PM, SimonF said:

    No 6.1 is a Long term vers. 6.4 may release tomorrow. I would expect betas for 6.13 to be on at least 6.3 timeframe unknown/SoonTM

    You were on point. 6.4 now released.

  21. On 6/29/2023 at 8:29 AM, Mirano said:

    Hey! i saw this post since i am planning on buying this: https://tweakers.net/pricewatch/1687200/intel-nuc-11-enthusiast-barebone/specificaties/

     

    Is it correct that you can use the iGPU for jelly or in my case plex and still use the nvidia or in your case intel gpu for passthrough to VM?

     

    And is your unraid instance booted uefi or non ?

     

    With this model, I can use both iGPU and dGPU at the same time as I mentionned.
    The only issue is the Intel Arc support.
    With a NVIDIA GPU you shouldn't be facing the sames issues.

    My instance of unraid is booted UEFI but it should't change much.