Hello, welcome to NETVN channel
In this video I will show you how to build a private cloud server on VMware hypervisor
I will increase my cloud storage by adding a separate physical hard drive
Also I will configure connection to cloud storage without port forwarding on router
I have prepared a 500 GB hard drive for my private cloud
Hope you have a hard drive with a larger capacity for your cloud storage, like 4TB for example
On Windows, check to see if the computer has detected a new physical hard drive
The hypervisor used in this video is VMware Workstation Player
So if you want to add a physical hard drive to the vmware virtual machine, you need to delete all the existing partitions
You put the physical hard drive in the unallocated state
To add a physical hard drive to a vmware virtual machine you must open the vmware hypervisor with administrative privileges
Now you create a new virtual machine ubuntu
The operating system used in this video is ubuntu server
So that you do not have to wait long, I have downloaded the iso file to install the ubuntu server operating system on your computer
Next you edit the virtual machine to fit the purpose of this video
You remove the default virtual hard drive of the virtual machine
You configure the network as a bridge so other computers can connect to your private cloud
Next you add a physical hard drive to your virtual machine
Add Hard Disk SATAT
Use a physical disc
The physical hard drive for the virtual machine is Physical disk 1
physical disk 0 is the hard disk running the Windows operating system
physical disk 1 corresponds to disk 1 in the disk management of the Windows operating system
Our virtual machine already has a physical hard drive, the next thing is to install the ubuntu server operating system for it
You start the virtual machine and start the installation
You choose the language that is right for you, and I will choose the language is English
I recommend that you assign a static ip address to the virtual machine
Virtual machine with ip address is very convenient for next steps
Like here I assign ip address 10.11.32.184 to ubuntu server virtual machine
With the hard disk you leave as default, it's quite complicated for a novice to the ubuntu server operating system
Next you will be asked to create an admin account, you usually write it down to use in the next steps
Don't forget to enable openssh server, it will help you to connect to ubuntu server from physical computer
After the preparation steps, the installation will begin
It will take about 10 minutes to complete the ubuntu server OS installation
So I have installed the ubuntu server operating system on the virtual machine
To check the ip address of the virtual machine I use the command hostname -I
From the physical computer I connect to the virtual machine using ssh
You open a command prompt and use ssh to connect to the virtual machine ubuntu server
The command used is ssh net@10.11.32.184
You enter the admin password when prompted
The admin username and password is generated when you install the ubuntu server operating system on the virtual machine
To build private cloud storage, nextcloud is a great choice
Before installing nextcloud, you should update and upgrade the ubuntu server operating system
You update with the command sudo apt update
Next you upgrade with the command sudo apt upgrade
To install nextcloud on ubuntu server you use the command sudo snap install nextcloud
You only need this one command to install nextcloud on ubuntu
If you forgot the ip address of the ubuntu server then you use the command hostname -I
Next, open any browser and enter the ip address of the virtual machine to configure nextcloud
You will be asked to create an admin account for nextcloud
You write this account down to use in the next steps
Nextcloud suggests you to install some software
But so you don't have to wait long I won't install those softwares
You can install these software for nextcloud after building the cloud storage server
Let's check how much is our cloud storage
Surprised with a 500GB hard drive I only have 85GB of cloud storage
Don't worry you need to use the following commands to get maximum capacity for your cloud
You reopen the command window and use the following commands
lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
One more command
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
You refresh your browser and check your cloud storage again
Hooray, the storage has changed to 429GB
If your hard disk has a larger capacity, it will be much larger
But as you can see, you can only access nextcloud from your local network
So what to do if you want to access nextcloud from the internet?
First of all you enable https for nextcloud
sudo nextcloud.enable-https self-signed
Refresh your browser and you should see https in the address bar
We try to upload a file to see if there is an error or not
So the file is uploaded successfully and there are no errors
By default, nextcloud only allows computers in the local network to access it
So you need to edit the file config.php
sudo nano /var/snap/nextcloud/current/nextcloud/config/config.php
You scroll down and find the line like I'm highlighting
You replace the ip address with the star character
This way you allow access to nextcloud from anywhere
Don't forget to save your changes to config.php
Use the key combination ctrl x to exit
Press the y key to agree to the changes
In this part I will show you how to access nextcloud without forwarding ports on router
To do that I use ngrok
First you install ngrok with the command sudo snap install ngrok
You just need to register a free account of ngrok
ngrok has a free and paid version
In this video I use the free version
Next command helps you to connect to your ngrok account
You just need to copy and paste the command to succeed
The last command is ngrok http 443
This is the domain name to access your cloud
Let's try it
So you can access your nextcloud without forwarding ports on the router
A hard-to-remember domain name for the free ngrok plan
To get a custom domain name you should consider using a paid plan
You can also use port forwarding on your router and register a free duckddns domain name to access nextcloud from the internet
This method is suitable if you can't access the router but still want to access nextcloud from the internet
Next I will try on my phone and see the results
I have the nextcloud app pre-installed on my phone
I will connect to nextcloud with the domain name I got in the previous step
Thanks for watching, if it's helpful, don't forget to like and subscribe
I will upload two photos to my private cloud
As you can see nextcloud work fine