cholzer

Members
  • Posts

    105
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

cholzer's Achievements

Apprentice

Apprentice (3/14)

6

Reputation

  1. I gave this another whirl - same outcome. I can only partially access devices/services on my network. No one else has this problem? https://forums.unraid.net/topic/126490-wireguard-unable-to-ssh-into-vm-running-on-unraid/?do=findComment&comment=1153218
  2. thx for your reply! Unraid: 192.168.1.5 (my main network - gateway 192.168.1.1) 192.168.2.5 (this interface is used so that my brother also has access to the SMB shares from his network, that is the only thing this interface is used for) Ubuntu VM running on Unraid: (br0 - static IP) 192.168.1.26 Windows VM running on Unraid: (br0 - static IP) 192.168.1.10 docker image plex: (host) 192.168.1.5 docker image n8n: (br0 - static IP) 192.168.1.21 docker image code-server: (br-0 static IP) 192.168.1.9 on my Router: port 51820 (UDP) forwarded to 192.168.1.5 Network I am connecting from: 192.168.123.0/24 ------------------- The following happens with "remote tunneled access" as well as "remote access to LAN" ------------------- Through the Unraid Wireguard tunnel I can: access the WebGUI of Unraid 192.168.1.5 access the WebGUI of Plex on 192.168.1.5:32400 access the WebGUI of docker image code-server on 192.168.1.9:8443 access the SMB shares on unraid 192.168.1.5 Through the Wireguard tunnel I can not: ping nor access the WebGUI of any other device on my network (i.e. 192.168.1.1 - router) access the WebGUI of docker image n8n on IP 192.168.1.21:5678 ping nor ssh (putty) into the Ubuntu VM ping nor remote desktop into the Windows VM I have the exact same issues when I use the "wireguard-easy" docker on unraid - however using wireguard-easy on my RPI works just great. blow are my routing tables. I have no idea where these came from or what they are used for: br-b14fa2d6b9b6 br-b14fa2d6b9b6 shim-br0 virbr0
  3. Tried a couple more things, but I always run into the same issue that SSH does not work through the wireguard tunnel.
  4. Goals: connect to my home network via wireguard have access to all shares / webgui's of devices on my home network do NOT use the internet connection of my home network (my remote device uses its own local internet connection) be able to ssh into my VMs Currently I run wireguard-easy on a RPI, and it achieves all the above goals. But I thought I could use the wireguard implementation in Unraid instead and replace the RPI that way. So to achieve the above goals I selected "Peer type of access: remote access to LAN" in the Unraid Wireguard config. That way I achieved goals 1 ,2, and 3. HOWEVER I cannot ssh into my VMs through that tunnel, the connection cant be established. I also run into the same issue when I use the "Wireguard-easy" docker in unraid. So I guess there is some networking issue inside unraid preventing me from using ssh through the tunnel?
  5. I have wireguard-easy on my rPI and have been very happy with it. So I though I should try the docker version because I could then get rid of my rPI. Using this docker I can connect to network shares and web gui's on my home network. I have set it to bridge mode and assigned a static IP. However using this docker I cannot SSH into a virtual machine through that wireguard tunnel - putty only throws a "network error: Software caused connection abort". Using wireguard-easy on my rPI I do not have that problem, I can ssh into my VMs just fine.
  6. I just ran into this issue as well. I recently switched from running Plex in a VM to the Plex Official Docker on Unraid. I use Plex DVR which records into a share on unraid. From my windows PC I can add/rename/delete files in that share just fine (drwxrwxrwx). The problem is that I can not delete files/folders created by Plex DVR (drwxr-xr-x). The folders/files newly created by the Plex Docker are owner by "nobody" drwxr-xr-x (the older folders were created by my old VM running Plex drwxrwxrwx).
  7. This might be an alpine specific issue because it works just fine with Ubuntu
  8. You are right! Deleted the folder now the vDisk size setting shows up again. There should be a notification inside the Vm creation page to explain what is going on.
  9. I selected the Ubuntu template, shouldnt there be a "size" option for the primary vDisk? Unraid 6.10.3 I have to add 2 more vDisks to eventually get the size option for the 3rd.
  10. Hey guys! I am tearing my hair out over this. I have created an Unraid Mount Tag for a share in an Alpine Linux VM. This WORKS when I mount it via the terminal using mount -t 9p -o trans=virtio,version=9p2000.L,posixacl,cache=loose onedrive /mnt/unraid/onedrive however this in /etc/fstab does not mount it onedrive /mnt/unraid/onedrive 9p trans=virtio,version=9p2000.L,_netdev,rw 0 0 Anyone an idea what I am doing wrong?
  11. Hey! Currently I can get the Exos X16 12TB for 60€ less than an IronWolf 12TB. Anyone got experience with the Exos X16 in UnRaid? On paper it seems like a no brainer to use the Exos X16... right?
  12. it's a nice starting point but lacks much of what I wanted (compare the scripts). 😉
  13. I have stitched together this script because I could not find any solution for my usecase. Thx to @mgutt and his backup script I took some parts from Goal: Connect hot-swap-able disk to unraid automatically mount the disk (can be disabled) automatically perform (multiple) mirror backup jobs which simply copy all changes from the SourceDir to the DestinationDir (including deletions) automatically unmount the disk once the backup(s) are done (can be disabled) safely remove the disk once everything is done thx to notifications that are sent for each step of the process Required: some kind of hot-swap-able storage media Unassigned Devices Plugin Setup: connect your backup storage media make sure it has a mount point click on the little "gear" icon paste the script below into the script window adjust the Backup Jobs configuration section save done click on mount to test if the script is working correctly if everything is working click on unmount if you want to automate the entire process: click on the little "gear" icon again enable "automount" and set "unmount_after_backup to 1 Hope someone finds this helpful! #!/bin/bash PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin ######## # SIMPLE MIRROR BACKUP / V01 - 2022-07-14 / by cholzer # This script is meant to be used in the script area of a disk inside the Unassigned Devices plugin ######## # I stitched together this backup script as I could not find a solution for my Offline Backups which are done onto hot-swapable disks. # With this script you can define multiple backup jobs - you get a notification for each important action. # # The whole backup process gets super easy if you choose to enable "automount" for the disk in Unassigned Devices and enable "unmount" in the config section below then . # Just plug in the disk and the script starts the backup and unmounts the disk once it is done so that you can safely unplug the disk. # ######## # Do your modifications below ######## # Here you can setup all your backup jobs. # The mountpoint of the disk you add this script to inside Unassigned Devices is automatically used as destination target. # You can set a subfolder per backup if you'd like to use one. # Use Unraids new file manager to find the exact source path (available in Unraid 6.10 and later) backup_jobs=( # sourcePath # destinationPath-Subfolder (/ for none) #jobName "/mnt/user/documents" "/Backup" "Documents" "/mnt/user/photos" "/Backup" "Photos" ) # Unmount the backup disk - (Will only be done if the backup was successful) unmount_after_backup=0 # Notifications: # You can disable notifications if you really want to. notifications=1 # rsync options which are used while creating the full and incremental backup rsync_options=( --human-readable # output numbers in a human-readable format --delete # when a file was deleted in source directory it will be delete in the destination directory too --exclude="[Tt][Ee][Mm][Pp]/" # exclude dirs with the name "temp" or "Temp" or "TEMP" --exclude="[Tt][Mm][Pp]/" # exclude dirs with the name "tmp" or "Tmp" or "TMP" --exclude="Cache/" # exclude dirs with the name "Cache" --exclude=".Recycle.Bin/" # exclude dirs with the name ".Recycle.Bin" ) #### # WARNING! DRAGONS BELOW! Do not change anything that comes next unless you know what you are doing! #### ## Available variables: # ACTION : if mounting, ADD; if unmounting, UNMOUNT; if unmounted, REMOVE; if error, ERROR_MOUNT, ERROR_UNMOUNT # DEVICE : partition device, e.g. /dev/sda1 # SERIAL : disk serial number # LABEL : partition label # LUKS : if the device is encrypted, this is the partition device, e.g. /dev/sda1 # FSTYPE : partition filesystem # MOUNTPOINT : where the partition is mounted # OWNER : "udev" if executed by UDEV, otherwise "user" # PROG_NAME : program name of this script # LOGFILE : log file for this script case $ACTION in 'ADD' ) if [ "$OWNER" = "udev" ]; then # do your hotplug stuff here sleep 1 else # do your user initiated stuff here # sync the file system to commit all writes to disk sync -f "$MOUNTPOINT" # notification if [ "$notifications" == 1 ]; then /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Unassigned Devices" -d "Device mounted" -i "normal" fi ######## Lets run the Backup Job(s) # remove the trailing slash from the source and destination path should there be one remove_trailing_slash() { [[ "${1%?}" ]] && [[ "${1: -1}" == "/" ]] && echo "${1%?}" || echo "$1"; } # now lets loop through each individual backup job for i in "${!backup_jobs[@]}"; do case $(($i % 3)) in 0) src_path="${backup_jobs[i]}"; continue ;; 1) dst_path="$MOUNTPOINT${backup_jobs[i]}"; continue ;; 2) job_name="${backup_jobs[i]}" ;; esac # check user settings src_path=$(remove_trailing_slash "$src_path") dst_path=$(remove_trailing_slash "$dst_path") echo "Source Path is $src_path" "Destination Path is $dst_path" # Notification Backup Started if [ "$notifications" == 1 ]; then /usr/local/emhttp/webGui/scripts/notify -s "`hostname` Backup Job: "$job_name" started" -d "Sync started. `date`" fi # first we need to make sure that the log directory does exists, if it doesn't, create it if [ ! -d "$MOUNTPOINT"/rsync-logs/"$job_name"/ ]; then mkdir -p "$MOUNTPOINT"/rsync-logs/"$job_name"/; fi # Now lets run the actual backup job. # It does a mirror, which means that all changes including deletions are pushed from the source directory to the destination directory. # Folders named '.Recycle.Bin' are excluded rsync -av --log-file="$MOUNTPOINT"/rsync-logs/"$job_name"/log.`date '+%Y_%m_%d__%H_%M_%S'`.log --progress "${rsync_options[@]}" "$src_path" "$dst_path" # Notifications sync complete or error if [ "$notifications" == 1 ]; then latestRsyncLog=$(ls -tr "$MOUNTPOINT"/rsync-logs/"$job_name"/ |tail -1) if [ $? -eq 0 ] then /usr/local/emhttp/webGui/scripts/notify -s "`hostname` Backup Job: "$job_name" completed" -d "Sync okay! `date`" else /usr/local/emhttp/webGui/scripts/notify -s "`hostname` Backup Job: "$job_name" FAILED" -i "alert" -d "Sync ERROR! `date`" -m "`tail -5 "$MOUNTPOINT"/rsync-logs/"$job_name"/"$latestRsyncLog"`" fi fi done sleep 1 fi # unmount the backup disk once the rsync backup finished if [ "$unmount_after_backup" == 1 ]; then /usr/local/sbin/rc.unassigned umount $DEVICE fi ;; 'UNMOUNT' ) # do your stuff here # since we also get notified once the disk was unmounted, I commented this notification out # /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Unassigned Devices" -d "Device unmounting" -i "normal" ;; 'REMOVE' ) # do your stuff here # notification if [ "$notifications" == 1 ]; then /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Unassigned Devices" -d "Device unmounted" -i "normal" fi ;; 'ERROR_MOUNT' ) # do your stuff here # notification if [ "$notifications" == 1 ]; then /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Unassigned Devices" -d "Error mounting device" -i "alert" fi ;; 'ERROR_UNMOUNT' ) # do your stuff here # notification if [ "$notifications" == 1 ]; then /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Unassigned Devices" -d "Error unmounting device" -i "alert" fi ;; esac
  14. ein forced umount kann dazu führen dass unraid diese disk als aus einem "broken array" ansieht und man diese erst nach einem reboot von unraid wieder mounten kann (fragt mich woher ich das weis 😅 ) unmount sollte man daher nur unassigned devices machen lassen, nicht manuell via 'umount'. aus meinem script /usr/local/sbin/rc.unassigned umount '/dev/disk/by-uuid/3C9751517A72CC80' uuid muss man natürlich die seiner disk eintragen
  15. no update on github in over 1 year, guess this is dead? any other app to backup vm's?