Proxmox VE is an open-source virtual environment for KVM virtual machines. In this tutorial, you will learn how to create a virtual machine on a freshly installed Proxmox VE server. You will learn to upload an ISO of your choice from Debian. Finally, you will also learn how to configure basic networking so that your VM can connect to the internet.
- A Dedicated Server from Snel.com with Proxmox VE operating system installed.
- ISO image file of the Debian OS you want to install. You can download that from the Debian website or you can purchase it at Snel.com.
Step 1: Log in to your Proxmox web GUI
Find out the
primary IP address of your server from the
service details page of your server in My.snel.com client area.
From your favorite browser, go to
https://your-ip-address:8006. Instead of the IP address, you may also use the auto-generated server domain name found on the same page. Eg.
Make sure to type
https as Proxmox GUI is only available over a secure connection. You may get a warning by the browser that certificate is not trusted, click on
advanced, and proceed to the Proxmox web interface.
In the Proxmox GUI login page, enter
root as username and password from the
service details page of the snel client area. Leave the
Linux PAM standard authentication in the Realm dropdown and click on the
Login button to log in.
Step 2: Upload ISO to Proxmox VE
After logging in, on the left side panel, you will see the node managed by Proxmox. Expand the node to see the list of attached local disks.
Now, click on the
local disk from the left side pane and then click on the
Content tab to see the list of ISO and container images. On a fresh installation, you won’t see any ISO images.
Click on the
Upload button from the content section.
This will open up the upload popup. Select
ISO image from the content drop-down and select the ISO file you want to upload. Click the
Upload button to upload the ISO file.
Once the upload finishes, you will see the ISO file in GUI.
Step 3: Create a Virtual Machine
Now that we have the ISO file uploaded, click on the
Create VM button from the top.
This will open up a pop-up to create a virtual machine.
General tab, provide any
Name to your virtual machine. You can use the default values for other fields. Click
Next to go to the OS tab. Select
local storage and choose the ISO image you have uploaded. On Guest OS type, select
5.x-2.6 Kernel in the version dropdown.
System tab, leave the default settings and click
Hard Disk tab, select any storage disk, and provide the guest VM disk size in GB. Make sure to enable the
Discard option, this will make sure that a TRIM action in the guest OS will discard the storage space used by deleted files.
You also have the option to choose Raw disk image(raw) or QEMU image format(qcow2). raw is slightly faster than qcow2 as it has very little overhead and no associated metadata. Where qcow2 offers additions features such as compression, AES encryption, and incremental backups. Choose according to your use-case.
Next to go to the CPU tab.
CPU tab, select the numbers of CPU core you want to assign to the VM.
Memory tab, provide the amount of RAM you want to assign to guest VM.
Network settings, leave the default settings, and click
Next to go to the Confirm tab.
Review the VM configuration again and click the
Finish button. You will see that the VM is created and available on the left side pane.
Step 4: Install Operating System on VM
Start button on top of your virtual machine summary interface to start the VM.
Once the VM is running, click on the
Console dropdown button and select
This will open up a virtual console that you can use to install the operating system of your choice. Follow the operating system installer’s instructions.
Your operating system installer may warn you about failed automatic networking configuration. You can proceed with the installation without a working network interface. We will configure the network once the operating system is installed.
Reboot your system once the operating system installed.
Once your server is rebooted, login into your VM again using noVNC console. Click on the
Console dropdown button on top of your virtual machine summary interface and select
noVNC. You should see the login screen of your VM.
Log in with the username and password you chose while installing your operating system.
Step 5: Set up Networking
Find out the IP address associated with your server by going to the
IP management page of your server in the snel client area.
Make a note of any IP address other than the primary IP address of the host.
We will need the
Network Mask, and
Nameservers in the next steps.
On noVNC terminal, check the name of the ethernet device by running
ip add. It should show you two interfaces, one
lo, which is the loopback interface. Ignore this one and note the name of the other interface in format
Edit the network configuration file.
Add the following line at the end.
auto ens18 iface ens18 inet static address 128.204.192.xxx netmask 255.255.255.0 gateway 184.108.40.206 dns-nameservers 220.127.116.11 18.104.22.168
Make sure to replace
ens18 to your ethernet device name. Also, substitute appropriate values that you got from the
IP Management page of your server in the snel client area.
Save the file and exit from the editor.
Bring the device up by running the command:
ip link set ens18 up
Restart networking by running:
systemctl restart networking
resolvconf is not installed, you will need to add nameservers to
resolvconf is not installed by running:
apt -qq list resolvconf
If you get no output than the package is not installed on your server. If you get some output than the package is installed and you can skip to Step 6.
/etc/resolv.conf file using:
Add the following lines into the file:
nameserver 22.214.171.124 nameserver 126.96.36.199
Save the file and exit from the editor.
Step 6: Test Network Connectivity
If you have successfully configured your networking, try pinging
google.com now to see if you are connected to the internet.
You should see a successful response.
In this tutorial, we learned how to create a virtual machine of your choice of Debian operating system into Proxmox VE. We also learned how to upload the ISO file before creating the VM. Once the VM running, we successfully set up networking to connect the VM to the internet.