Setup Synology on Proxmox in a VM - Poor Man's Synology

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome back to the credible Dev YouTube channel today I got something special for you I learned something new last night I've always wanted a sonology but the cost has always been a barrier for me and last night I stumbled across a solution to be able to get this up and running in prox MOX you could also do this on bare metal hardware but what we're going to be talking about today is doing this in proxmox on a VM so I'm excited to show this to many of you may already know this or have done it yourself so I apologize if I'm late to the party but before we get into it I just want to thank all the new subscribers I want to thank you for checking out my videos hitting that like button we're almost at 1,000 subs and I can't be more excited for that so thank you to everybody let's go ahead and jump into today's video so like I said we're going to be setting up a sonology NZ on proxmox inside of a VM and this is possible through a couple of specialized uh boot loaders that are available and the DSM or dis station manager software is actually open source and I think there's some controversy around that because they use a GPL license but they don't want people using it I don't know so this is kind of a gray area thing I guess you could say and sonology has came out according to a couple of blogs and said do not do this it's it's not acceptable uh it violates our turns views blah blah blah blah so if you're going to do this I suggest you only do it in a home lab environment on a temporary basis you don't want to have this running long term because you're violating the terms of service if you want to use it long term go out and buy the sonology but if you want to test it out like me and just get to know how it works and expand your knowledge on it then sure go ahead and try this out and if you run a business not sure if I mentioned that certainly do not do this at all like I said we have a couple of boot loaders and and there may be more than these two but I only looked at two of them and the first one is this automated red pill loader and it hasn't been updated since February but I did try it out on my initial run through on this and it worked perfectly fine so this is one option and the other option is Arc and it's also Arc red pill loader for DSM that's the disc station manager which is sonology OS basically and the boot loader tricks the uh DSM software into thinking that the underlying device in our case of em is an actual sonology piece of Hardware so that's the purpose of the bootloader here and then the DSM software gets installed and that gives you the the OS that you would have on a typical sonology of course sonology Services you're not going going to have access to because the serial number for your device is not going to be a legitimate serial number there might be something to do with the MAC address I'm not 100% sure there but definitely the serial number you're not going to be able to access certain services like the active backup for instance but I believe you are able to use the surveillance tools that are in there I haven't tested that out I don't have any of that kind of equipment in my home to be able to test it out right now but I've read that you are able to use those features so just keep that in mind as you're setting this up so like I said tried both of these they they worked perfectly fine for me setting them up on proxmox the setup experience is kind of the same up until a certain point there are a couple of differences but they're not they're not any big differences at all regardless of which one of these that you choose you're probably going to be able to follow this guide but the arc one is more updated you can see it just had a release yesterday so I would suggest trying it out first and if you have problems with it you're not able to get it to work maybe then you try out the other one so this is the one we're going to be using for the video today and to get started you're going to download the latest release here when you go to the release page the one that we're going to want is the top one here that ends in IMG doz so you're going to download that and you're going to extract it and it's going to have a IMG file in it and that's what we're going to upload to proxmox so you should be familiar with this if you're not you can go check out my proxmox video I kind of go over uploading isos and images and stuff like that in that video I have it linked down below and if you don't have proxmox already you can check out that video and it'll get you started as well so you can see I've already uploaded both of these image files but basically you just go to your storage and it depends you may have uh it in a different place I keep must mine here but you may have yours in local either way click upload and upload the IMG file and then from there we're going to need to create a VM and we're going to make a few modifications to it we're going to jump into the proxmox shell and we're going to run a few commands there in order to attach this image file as a hard disk on the VM and then we're also going to be passing through a couple of hard dis that I have physically and the proxmox server so if we take a look at the dis on my server these last two disc here they're both two terabyte these are the two that we're going to pass through to actually use as volumes on the sonology so like I said to get started we're going to create a VM first so we'll right click on proxmox and I'll click create VM we'll just keep the default number that it gives there and give it a name you can name it whatever you want for the OS page we're going to choose do not use any media because we're not going to be booting up from any ISO file or anything like that for the system keep everything the default here on the disk page we're going to remove this scuzzy device here because we're going to be manually attaching disc to the to the VM for the CPU we'll give it two cores for the memory you want to do 4 gabt minimum so we'll change that for Network you can make changes here if you want I'm going to change this to the vmx net3 adapter and if you need to change anything else here such as choosing a different interface you can do that otherwise just go ahead and hit next and then we'll hit finish and we'll wait for that to create the VN and once this finishes we'll hop into the shell and we'll run a few commands here all right so looks like that's done so we'll go ahead and hop into the shell here now the first thing that we need to do is import that bootloader image into the VM that we just created so first you have to find where that image file is and it could be in a few different places for me it's going to be in Mount and I think it's PVE oops and there's my ISO storage that's going to be template and ISO so we can see here that I have that arc. IMG file for you it might be in CD VAR it's SB VZ maybe and then template and then ISO so it could be here for you or somewhere else you have to figure that out but check out those two places might be where it is of course your folder names when it comes to like this ISO storage folder it might be different so let's go back where mine is all right so we have the arc. IMG file here and if you are going with the other boot loader you'll have this arpl file but we're going to be using the arc one here so we type in qm disk import and then we use our VM number our VM ID which in our Cas was 107 so 107 and then arc. IMG that's the image file and then this next one's going to be the storage that we want to put this on and I want to put it on DS1 and you can see over here this is where I want this hard dis to be created so we'll go ahead and hit enter on that and once that's finished we will have an attached device so if we go go to the device and we go to Hardware we'll see this unused dis here so you need to click on that you click on edit and we want to change this to SATA and we want to change this in my case I I'm going to go with right back now if you're not sure what to do here there is a page which I'll link down below which covers what exactly these mean so right back is going to be fast but you could lose data on a power outage so choose what's best for you there and then we'll hit add so now we can see we have a SATA zero device so now we need to add the other two hard dis that we're going to use and you may have one disc or mult you know three or four disc whatever for your case but for mine I have two dis that I want to add to this anology so if we go to dis the two disc I was showing you earlier is uh Dev sde and SDF so we want to find the IDS of these two dis and then we will we'll add them as SATA devices so we go back to the shell and we want to find the ID of these devices so we'll type in LS space DL and then Dev slisk slby ID if I could spell that would be great so it's going to spit out a bunch of stuff depending on what have set up on your proxmox but if you scroll up you're going to see all the different dis that are available in your system and here we can see SDF and sde which I was talking about a moment ago so we want to copy this part of it right here and you're going to want to paste that somewhere keep it handy because we're going to be using these in the next step so I'm going to copy both of these and store those off to the [Music] side and then then we're going to want to attach these drives and we do that by running qm set and then our bmid which was 107 and then we're going to make the SATA drives and this first one's going to be SATA one because we already have SATA zero and then we're going to do Dev slisk slby ID slash and then we're going to paste in that value that we just copy on that now we need to do the same thing again for the second disc or however many dis that you have you just want to make sure you change the SATA number we're going to change that to SATA 2 and then we need to update this ID here and we'll paste that in and hit enter all right so now we have all of our drives attached so we'll go back to the device and we can see these two new drives that we have here now the next thing that we need to do is make sure that this SATA zero one is what boots because it has the boot loader on it so we'll go to options and then boot order and we'll uncheck these we'll check the Theta zero one and just go ahead and move it up to the top and hit okay now one thing I'm going to do this isn't required but I want to give this a static IP address so I'm going to go in here and I'm going to copy this Mac address and then I want to go over to pfSense and um you can go to Services if you have pfss and you can go to the dccp server and scroll all the way down the bottom and click on ADD and we'll paste in that Mac address then I'll give it an IP address there and our host name is going to be sonology and we'll hit save that way when the VM comes up it'll have that IP address so now we can go ahead and go to the console and we can start it up and you can either press enter on this or you can just wait a couple of seconds and it'll boot automatically detected our network card wait for it to get an IP address and you can see it got the static IP that I gave it now here's where it's a little different depending on which one of the boot loaders that you chose they both have a graphical interface but with the other boot loader you have to go to an IP address in your browser with a specific port in order to get to this interface and you may manage it from there with this one it just takes you right into it so we're going to choose the model and this is the sonology model now the one that I'm going to choose is the DS 423 plus and that is the disc station DS 423 Plus at the 4 Bay that's the one that we are going to choose you can choose whichever one's most appropriate for you here the Eder on that this is talking about the disk station manager software whether you want 7.1 or 7.2 we'll choose the latest and it's detecting three disc that's going to be the disc that the boot loader's on and then the two dis that I attached with enter now here's some additional modules and things or extensions that you can add I'm not going to add anything here but you may need to like the nvme cache if you have a nvme drive that you've also attached that you want to use as a cache device you could do that here or whatever other options you can check out in the wiki which I'll have linked down below what all these do if you need more explanation on it so we're just going to go ahead and hit [Music] enter enter again and then it's asking us if we want to build the bootloader we're going to say yes now it's asking if we want to boot into the boot loader which we do go ahead and hit yes to that and then you'll wait a minute and your VM will reboot now you can either wa a few seconds here you can go ahead and press enter on boot DSN now this address here uh the IP address that you either assigned to it or that it got from DHCP and then Port 5000 that's where you're going to be able to connect to the website in order to finish setting it up it also brings up uh this about going to finds. sony.com I didn't need to do that in my experience but you may need to to go to that side it's going to search your network for where this sonology device is but for my case I'm just going to go ahead and pull up this address here so we'll go to a new tab here face that in and it recognizes that sonology DS 423 plus which is what I selected during the bootloader configuration we'll hit install we'll keep this option should automatically download and install the latest DSM hit next it's warning us that the data on those drives will be deleted you understand and you have to confirm by typing the model in so we'll do that and then it'll take a few moments here for it to do the install and then it'll restart it and then you'll be presented with the login or the account setup page and the rest of the disc station manager setup so I'll go ahead and jump to that all right so this is the page you should come to whenever the setup is complete so we go ahead and click on start and we need to give the device a name just keep it consistent with what we did in proxmox an administrator account a super secure [Music] password inter know what hit next now on this option you want to make sure you click on notify me when DSM or package updates are available and I will install them manually and this is because of the whole boot loader situation and everything we have set up if you let it automatically install updates it's possible that it could brick the system then you have to set it up again and we are not going to create aaly account because you're not going to be able to link this sonology to that account anyways because of the whole serial number thing so we will skip that we don't want to do the analytics so we'll just H submit and here it's asking if it wants us to install these uh I haven't tested these out so I'm not sure whether they work properly and this kind of set up feel free to try those and let us know in the com comments but right now I'm not 100% sure so we'll hit no thanks enable multiactor authentication great thing to do you should do that we're not going to do it for the purposes of the video and another warning about that okay now create a storage pool and volume so we'll click on create now start this is going to be the raid type uh if you're not familiar with these you can kind of go through them and they give you a description for most people it's probably going to be the shr if we go over to their website which I'll link this down below you'll get a description of each one of them as along with the sonology hybrid raid which is that shr that's the one I'm going to choose for this video go next we need to check the drives that we're going to add to this pool so we check both drives hit next we'll skip the drive check and then modify allocated size we'll just change this to Mac and we're going to use butter FS so we can have the snapshots and stuff like that at next we're not able to encrypt it right now maybe something that you want to consider with it next and then wead apply it warns us again that all the data is going to be erased okay I'll take just a moment to set up depending on how many drives you chose and the size of the drives and once everything's set up you'll be able to see the two drives and that you have a storage pool created if you go to the overview you little picture of Theology and this would look different depending on which model that you chose and now we have healthy drives in Bay one and two so from here you can go ahead and start exploring in the DSM OS and you have a control panel you can come in here and you can change things like network settings and whether you want it to be available externally all sorts of stuff in here to play with and I haven't Dove too deep into these yet outside of just creating a share so if you go to share folder and you click on Create and create a share folder this will be like a for a SMB share NFS share things like that give it a name let's call it test you can give it a description if you want if you had more than one volume created you could choose it here we only have one and then you have a couple of other options here that you can set up for your specific use case like if you don't want it to show up in my network places on Windows stuff like that we'll go ahead and hit next and you can set up encryption we're not going to do that so we'll just skip it and we can set up a data check sum to validate the integrity of the data and we can enable a quota we're not going to do any of that here sit next here you grant your permissions we will grant this user that I Creed read write and we'll say that nobody else has access so now that is created the share folder and if we go to file Services when you see that SB is enabled NFS is not currently enabled but let's try to connect to this new SMB share that I just created so we will go to SMB colon slash then we need the IP [Music] address and we'll go to test that and we are a registered user and this is going to be the user on sonology and there we go we're connected to the SMB sh that we discre so that's going to be it for this video expect some more videos possibly about the sonology as I kind of explore with it and learn more about it if you have experiences you want to share down below that might help other people or you got some information that's pretty cool about sonology that you want to let everybody know about leave a comment down below we would all appreciate it again thank you for checking out this video subscribing to my channel be sure to hit that like button if this video helped you out or you just found it interesting that's all I got for you today I hope everybody has a great weekend and I'll see you in the next one
Info
Channel: credibleDEV
Views: 27,383
Rating: undefined out of 5
Keywords: active backup for business synology, dsm 7.2, nas, proxmox, synology
Id: vuj-Mu828-I
Channel Id: undefined
Length: 23min 39sec (1419 seconds)
Published: Fri Sep 08 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.