Installing on QNap NAS?

qnap
nas

#6

Yeah, that’s even another good part about the VM. You have full access to all files and can install and fix whatever you want. It’s like as if you setup up a whole system yourself, only without the whole effort :wink:
You can run the web updater, can do manual updates on the CMD and reinstall Nextcloud at will. The only limitation is, that it’s in a virtual machine, if you can call it limitation. I think it’s nothing compared to the limitations of docker.

So right now the VM comes with NC12 pre-installed. After starting and setting up everything you can directly run the updater script or use the Web Updater to update to 12.0.1.


#7

Thank you @Schmu! It’s users like you that keeps me motivated. I’m really glad that you find the VM to be as good as you describe. :smiley:

Regarding the RAM, you need 2 GB and 2 cores at least dedicated to the VM. If you plan to install OnlyOffice (new in 12.0.1 version) you need at least 4 GB.

And no, running a VM isn’t a limitation, it’s a benefit. :wink:


#8

The limitation is however – there is no access to files from QNAP natively :slight_smile:


#9

Well it’s as if the NC server runs on a different device, so you access the NAS via network connection (though not leaving the NAS) and can still choose between many protocols (FTP, DAV, SMB, …) :wink:


#10

What he said- --^ :slight_smile:


#11

Isn’t it much more efficient (CPU/RAM) to run the Docker image instead of the VM?
Does anyone know how to put the parameters from an NC docker container (eg. wonderfalls image: https://hub.docker.com/r/wonderfall/nextcloud/) into the QNAP GUI?:
docker run -d --name db_nextcloud
-v /mnt/nextcloud/db:/var/lib/mysql
-e MYSQL_ROOT_PASSWORD=supersecretpassword
-e MYSQL_DATABASE=nextcloud -e MYSQL_USER=nextcloud
-e MYSQL_PASSWORD=supersecretpassword
mariadb:10

On my QNAP TS253A on the ContainerStation page I have the option to define an “command” an “environment”… for an Docker Image.


#12

My Nextcloud installation is operating on a QNAP-TS253A.

After evaluating several options I have decided to go a for a VM based on a Ubuntu Linux OS (Lubuntu to be exact) and simply installed the available Nextcloud snap.

Works fine for me since ~ 6 month.

Perceived performance compared to a Nextcloud on a Raspberry 3 is a lot better.

Only item which is irritating me right now, is that there is no upgrade of the nextcloud snap to v12.0, even though v12 is out for a while now.


#13

Hi,
Installing NextCloud as VM introduce a problem with managing IP Ports of the QNAP.
How did you setup NextCloud ports 443 and 80?
If we want to continue using QNAP Cloud services on port 443 this is a problem to install Nextcloud on another port than 443 since Letsencrypt certificate need port 443.
Please can you explain what you do?
Thanks.


#14

For the network connection my VM is configured to use the virtual switch.

As result the Linux OS Operating within the VM has its own IP Address within my network and its own exlusive Ports. There is no coupling or dependency to the QNAP OS and Services.

My Internet-Router simply forwards Port 80 and 443 to the IP Address of the Linux OS running within the VM.

P.S.: Port 80 because the automatic renewal of the let’s encrypt certificate requires this port.


#15

Thanks for your answer Mattias.

But you loose the Cloud functions of your QNAP NAS since they use port 80 and 443?
QSYNC and other tools are no more usables.
QNAP has the hability to manage CERT from Letsencrypt too and redirecting these port cut off this functionality.
So you don’t use QNAP Cloud?

Best,


#16

So you don’t use QNAP Cloud?

Nextcloud offers all the Cloud Services I need (for files, contacts, notes, calendar). For avoiding to disclose Data (even if it is just metadata), I did and do not use QNAP Cloud.

Though I am curious now :slight_smile: . Are there services QNAP Cloud can offer, which Nextcloud does not ?

But you loose the Cloud functions of your QNAP NAS since they use port 80 and 443?

My answer is as result not proven in reality, but should be sound nonetheless.

The use of a virtual Ethernet Switch (works similar to a e.g. small 5 port Switch from TP-Link, but just in SW inside the QNAP) to connect the VM, results in two separate Computers from network point of view.

The QNAP NAS and the VM. Both having their own IP Address and Protocol Stack.

  • QNAP NAS: 192.168.178.21
  • Nexctcloud VM (hosted by QNAP NAS): 192.168.178.22

As result there is no port conflict (e.g. for 80 and 443) and all the QNAP NAS Services should be fully usable.


#17

Nope :slight_smile:
I had plenty of sync problems with Qsync. So I migrate to Nextcloud :slight_smile:


#18

How about using docker or app(Stephane version) compared to VM? Because my QNAP is ARM based cpu (ARMx41).

How to sync with local nextcloud when I am outside of home?

Thank you.


#19

The thing about Docker containers are that they have no updating mechanism like snaps have. For ease of future maintenance (trying to think longer term), I wanted to install a snap, not a Docker container, on a QNAP TS-251A, and I was able to do it.

I installed the Nextcloud 13 “Candidate” snap (talked about here). To use snapd, I installed it inside a Linux Virtual Machine (using Debian 9.3, which was current at the time of installation), which I created from scratch on the QNAP . Perhaps this approach might sounds a bit old fashioned, but it proved to be the most straightforward and quick method after going down several unproductive rabbit holes. I suggest that this is actually the easiest fastest way to install Nextcloud on a QNAP, for those who already have good working knowledge of installing and administering a linux server, and are already familiar with a virtualization tool such as Virtualbox.

The QNAP has a default “App” (called “Container Station”) for installing containers (Docker, and/or LXC), but it can create Virtual Machines as well, if you install “Virtualization Station” in the QNAP’s “App Center” (in the web admin interface, both circled in Red here):

Here is what Virtualization Station looks like, below. It’s awesome:

It had all the toys I needed to manage the VM easily, like console access (right through the web admin interface!), and a graphical desktop inside the VM will work from that console. I can also do snapshots of the VM!

I don’t recommend downloading and trying to use a pre-made VM from the Internet (since using this approach, you probably won’t really save any time, and will probably get into a mess). Instead, I recommend just creating a new VM from scratch (“Create VM” button is circled in Red above), just using the VM format that “Virtualization Station” prefers to use natively. Then VM snapshots will be sure to work!

My entire Nextcloud install took about 9 hours, but if I had to do it all over again, following the straightforward advice above, it probably would have taken me, like 6ish hours (not wasting time with failed approaches). I have advanced knowledge of administering Debian linux servers, so there was no learning curve for me there. Use whatever distro you like most, the important thing is that you can install snapd in that distro (which gives you MANY options).


#20

Care to receive some compensation to install on my qnap?


#21

Sorry, can’t take you up on your offer. My SysAdmin days are over (doing it for money, as a professional job). My Nextcloud server is pretty much just for my own personal use, on a hobby-like basis.


#22

You could use the Nextcloud OVA image from TechAndMe and import it to your Qnap:


#23

Word to the wise, on your Qnap appliance, at present, DO NOT try to uninstall the “Container Station” app (thinking, you no longer need it, considering that all you need is “Virtualization Station”), or your Qnap will freeze badly.

See: Container Station uninstall stuck


#24

I have a QNAP TS-253Be and I’m wondering if the VM is still the best way to install NC onto my NAS? I noticed that this post is a bit dated.

I’ve tried to install QNAP Stephane’s NC .qpkg but its too complicated for my level of technical knowledge. So Im trying to find a more practicle and managable way of installing and using NC on my QNAP.

Any reply’s are welcomed.


#25

I suggest yes, make a good old VM, and then install Nextcloud using snapd inside it. The ability to snapshot your VM before Nextcloud installation and upgrades will be well worth the hassle of creating a VM. Having snapshot ability (somehow or other) will not go out of style, IMHO.

My original Nextcloud VM (posted about, above) is still running well, and I rely on it daily.