How to use Proxmox VE remotely over Meshnet
Learn how you can incorporate Meshnet into your Proxmox VE configuration for secure remote access.
Last updated
Learn how you can incorporate Meshnet into your Proxmox VE configuration for secure remote access.
Last updated
© 2024 Nord Security. All Rights Reserved.
Virtual machines (VMs) are emulated computers that operate within a physical machine, enabling multiple operating systems to run simultaneously on a single computer. VMs are useful for developers, system administrators, and organizations that need to create and manage multiple environments for testing, development, and production purposes. A popular hypervisor for personal and enterprise solutions is Proxmox.
Proxmox Virtual Environment (VE) is a free and open-source virtualization platform that allows for centralized management of virtual machines, containers, and other virtualized resources. It supports a wide range of virtualization technologies, providing flexibility in managing virtual infrastructure. By including Meshnet in the Proxmox setup, you can enable secure remote control of the hypervisor. This configuration allows you to maintain and manage your virtual infrastructure from anywhere in the world.
This article describes how you can install Meshnet on your Proxmox system and remotely control your VMs. /
Proxmox provides you with two installation methods:
Installing Proxmox VE as a standalone operating system (OS).
Installing Proxmox VE on top of an already present Debian system.
For most users, a standalone Promox VE OS is recommended. However, enthusiasts may opt to choose the second method. For this article, a standalone Proxmox VE 8.2 installation is used.
To install Proxmox VE:
Download the Proxmox VE ISO installer from the Proxmox downloads page.
Follow the instructions provided in the Proxmox installation wiki.
Once the installation finishes, you should see the local IP address and port of your Proxmox VE web interface.
Proxmox is fully controlled from the web interface. While you can manage some of the settings via the command line, the web interface provides a convenient alternative with a graphical user interface (GUI). To access Proxmox VE:
On another local device, open your internet browser.
In the URL bar, enter the previously presented local IP and port combination and press Enter.
Enter the user details during Proxmox installation and click Login.
In the User name field, type in root
.
In the Password field, type in the password you created during Proxmox installation.
Now you should see the Proxmox VE web interface.
Note
Since Proxmox is using self-signed SSL certificates, you may see a “Your connection is not private” message. To proceed further:
Click Advanced.
Select Proceed to <IP> (unsafe).
For more information, see the Proxmox certificate management documentation page.
The first thing you should do after installing a new OS is fetch and install all available system updates. They can range from simple dependency updates to security upgrades.
By default, the Proxmox VE installation uses an enterprise Proxmox update repository, which requires an enterprise subscription to access. To use the free version of Proxmox, you can change the update repository by taking the following steps:
From the menu on the left, under Datacenter, select proxmox.
Go to Updates > Repositories.
In the APT repositories table, select the enterprise Proxmox repository entry and click Disable.
Click the Add button.
From the Repository dropdown list, select No-subscription and click Add.
The No-subscription repository is now added to your Proxmox VE.
After changing the Proxmox repository, you can update your system by taking these steps:
Switch to the Updates section.
Click the Refresh button to fetch all available updates. Close the pop-up window when the scan finishes.
Click the Upgrade button to install the available updates.
In the Proxmox Console window, type in Y and press Enter to proceed.
Once the process is finished, close the Proxmox Console window and reboot your Proxmox machine.
With your Proxmox VE instance updated, you can start setting up Meshnet. Because Proxmox is based on Debian, you can install NordVPN the same way as on a standard Linux machine.
Follow these steps to set up NordVPN on your Proxmox VE:
Open your Proxmox VE web interface.
From the list on the left, select Shell.
Download and install the NordVPN Linux client by running this command:
Log in to your NordVPN account.
You can log in to your NordVPN account without the use of a graphical user interface (GUI) in two ways:
By running the nordvpn login
command with the --token
flag
By running the nordvpn login
command with the --callback
flag
Instructions for both methods are outlined below.
Tip
To preserve your token when logging out of the NordVPN app, use the nordvpn logout --persist-token
command. Otherwise, your token will be revoked.
Upon logging in, enable Meshnet with this command:
To view the Nord name and Meshnet IP address of your instance, enter the following command:
With Meshnet enabled on your Proxmox machine, you can access the Proxmox web interface remotely by following these steps:
Copy the Nord name of the Proxmox machine from the NordVPN application.
Open your internet browser.
In the URL bar, paste the copied Nord name followed by :8006/
and press Enter.
On the Your connection is not private page, select Advanced > Proceed to <Nord Name>.
Log in to your Proxmox account.
Now you can remotely use Proxmox and its features, such as creating VMs, from any device connected to your Meshnet.
With Proxmox and Meshnet configured, you can deploy various VMs remotely from the Proxmox web interface.
First, you need to import an installation ISO file for your VMs operating system to Proxmox. You can import ISO images in the following two methods.
To upload an ISO image from the device that you are currently using:
Open your Proxmox web interface.
From the menu on the left, select the local (proxmox) storage entry.
Select ISO images and click Upload.
In the pop-up dialog, click Select file.
Locate the ISO file for your preferred VM and click Open.
Click Upload.
Once the upload is finished, you can see the uploaded file in the ISO images menu and use it for VM deployment.
To configure a new VM on Proxmox VE:
In the upper-right corner, click Create VM.
In the Name field, enter a custom name for your VM and click Next.
In the ISO image field, select an ISO file that you imported previously.
Finish creating the VM by selecting the required fields and clicking Next.
In the Confirm section, double-check your VM configuration and click Finish.
Once the VM is created, you can see its entry in the menu on the left.
To start your new VM:
In the menu on the left, select the VM you want to start.
In the upper-right corner, click Start.
In a few seconds, the VM is started, and you can interact with it by switching to the Console section.