runfalk / synology-wireguard

WireGuard support for some Synology NAS drives
MIT License
919 stars 131 forks source link

Support for VirtualDSM #63

Open RipleyBooya opened 3 years ago

RipleyBooya commented 3 years ago

Description Hello, i wanted to install this promising package onto my VirtualDSM (BareMetal Host is a DS918+). my use case: i use my VirtualDSM to connect to VPN as i don't want my physical NAS connected on any VPN.

Installation fail on the VirtualDSM with "this package is not supported on the platform of VirtualDSM" with package WireGuard-apollolake-1.0.20200729.spk or WireGuard-x86-1.0.20200729.spk (it may be normal, but i saw x86 and told myself "why not ?")

image

EDIT: I'm not sure, but it seems that the VirtualDSM arch is kvmx64.

i am not a dev at all, but i'm willing to help if you need a labrat/tester 👍 Thanks a lot for your time ! :)

NB: it's not urgent at all, i'm just really intersted in this package !

Synology NAS model VirtualDSM (Host is a DS918+)

Matige commented 3 years ago

As you have noticed, VirtualDSM architecture is kvmx64. pkgscripts-ng supports this architecture, and according to the platforms file kvmx64 uses kernel linux-3.10.x, so it is supported by Wireguard. In this case you just need to compile the package according to the instructions in the Compiling section.

jelbo commented 3 years ago

I built it for VirtualDSM version 7.0-41222, using sudo docker run --rm --privileged --env PACKAGE_ARCH=kvmx64 --env DSM_VER=7.0 -v /volume1/homes/myusername:/result_spk synobuild and the other steps fund on https://github.com/runfalk/synology-wireguard/pull/71. I'm using a DS920+ but that shouldn't matter.

I can install it, but it gives me an error: 'Failed to start "WireGuard". Please try again later or contact the package developer.' with the option for a Repair. Trying that gives a failed to run.

I don't know how to parse the resulting file (WireGuard-kvmx64-1.0.20210219.spk) (link) to check the parameters, but I think they're fine. Any clue, @Matige?

Matige commented 3 years ago

@jelbo I think you have not read the updated installation instruction from #71. Follow this instruction, pay attention to step 4 (this step is probably missing in your case).

jelbo commented 3 years ago

@Matige thanks, I indeed missed that. I now have a WireGuard has been successfully started Thanks a lot!