Blog

How to Create a VM in Proxmox and rebuild it with another OS

Published on: December 17, 2021 by Abin Raaj

How to Create a VM in Proxmox and rebuild it with another OS

Scenario:

Proxmox VE is a platform to run virtual machines and containers. It is based on Debian Linux and completely open-source.

1. How to Create a VM in Proxmox VE?
There are three main steps to create a VM in Proxmox VE.

  1. Uploading an ISO to Proxmox VE
  2. Creating a VM in Proxmox VE
  3. Installing an OS in Proxmox VE

These steps are explained in detail below:

1.Uploading an ISO to Proxmox VE

The first step when creating a VM in any hypervisor is to make sure we have the ability to install an OS on the VM. Uploading your ISO is easy Proxmox UI. You can follow the below steps to upload an ISO to Proxmox VE.

1.a)Login into the Proxmox by entering your username and Password.

1.b) Click on the expand button at the left end of the Datacenter.

1.c) This will list all the nodes in it. Expand it by clicking on the expand button at the left end of a node.

1.d) Click local from the side panel on the left-hand side of your screen.

1.e)Under the “Content” section, click the Upload button at the top of the screen.

1.f)) A pop-up window will appear on the screen which enables you to select the ISO file from your local system. Click on the upload button after selecting the ISO file. The time it takes for your ISO to upload will be dependent upon the speed of your network and the size of the ISO. Once the upload is complete, you are ready to create your VM in Proxmox.

 

1.g) There is also a method to have the ISO file in the Proxmox server. i.e. Downloading the ISO file to the server. The steps to download an ISO file to the server is given below:

  • After accessing the server via SSH, change the directory to “/var/lib/vz/template/iso”
    cd /var/lib/vz/template/iso
  • Then find the URL of the ISO that is to be downloaded. The URL for Ubuntu 18.04 is given in the example below:
    https://releases.ubuntu.com/18.04/ubuntu-18.04.5-desktop-amd64.iso
  • Then download the iso file using the wget or axel command
    wget https://releases.ubuntu.com/18.04/ubuntu-18.04.5-desktop-amd64.iso
    or
    axel https://releases.ubuntu.com/18.04/ubuntu-18.04.5-desktop-amd64.iso
  • The iso file will be downloaded to the location “/var/lib/vz/template/iso”

2. Creating a VM in Proxmox VE

2.a) To create a VM in Proxmox VE, click Create VM at the top of the screen

2.b) This will bring up the following pop-up window. Give your VM a name and then click the Next button

2.c) On the OS tab, choose your ISO image to install your OS. Once you have chosen your operating system, click Next

2.d) You can click Next on the System tab

2.e) On the Hard disk tab, choose how much storage space your need for your VM. After selecting the hard disk space, click the Next button

2.f) On the CPU tab, choose the number of cores you need for your VM. Once you have set your CPU settings, click Next

2.g) On the Memory tab, select how much RAM you wish to allocate to your VM. Click Next to advance to the Network tab

2.h) You can click on the Next button in the Network tab.

2.i) Once you reach the Confirm tab, ensure the information is correct, and then click Finish. Your VM will be created with the parameters you have chosen.

1.Installing an OS in Proxmox VE

The actual installation of the OS will differ depending on the OS you choose. However, you can easily begin the installation in Proxmox VE’s user interface. To begin, choose your VM from the “Server View” panel on the left-hand side of your screen.

Start the VM by clicking the Start button at the top of the screen.

Once the VM has started, click the Console button at the top of the screen and select the noVNC console.

After this, follow your operating system’s installation instructions. Windows operating system installation steps are explained below.

Launching Windows install:

Follow the installer steps until you reach the installation type selection where you need to select “Custom (advanced)”

Now click “Load driver” to install the VirtIO drivers for the hard disk and the network.

1.Hard disk: Browse to the CD drive where you mounted the VirtIO driver and select folder “vioscsi\w10\amd64” and confirm. Select the “Red Hat VirtIO SCSI pass-through controller” and click next to install it. Now you should see your drive.

2.Network: Repeat the steps from above (click again “Load driver”, etc.) and select the folder “NetKVM\w10\amd64”, confirm it and select “Redhat VirtIO Ethernet Adapter” and click next.

3.Memory Ballooning: Again, repeat the steps but this time, select the “Balloon\w10\amd64” folder, then the “VirtIO Balloon Driver” and install it by clicking next. With these three drivers, you should be well covered to run a fast virtualized Windows 10 system.

Choose the drive and continue the Windows installer steps.

2. How to rebuild a VM with another OS in Proxmox VE?
While rebuilding, there is a chance of losing your current data. So to be safe take a backup of all contents in the server.

To rebuild the operating system of a VM with another operating system in Proxmox, you can follow the following steps.

  • First, stop the VM. To stop the VM click on the shut down after clicking the VM which is to be stopped

  • Under the “Options” section, select “OS Type”, and click on “Edit” on the top of the screen.

  • Select the OS and version which you need from the popup window and click on OK.

  • Then restart the VM by clicking on the Start button.

Your VM should now be running the new OS.

Category : Linux

Abin Raaj

Abin Raaj

Abin Raaj is currently working as System Engineer at SupportSages. He is well-versed in Linux and server management and interested in new technologies. The dedication and work-ethic he shows in the workplace combined with his ability to build good relationships and decision-making skill has earned him the role of Team Leader. He is proficient in WordPress and loves working with WordPress websites. In his free time, Abin enjoys playing football, badminton, and discovering new music.

You may also read:

Comments

Add new commentSIGN IN

Let's Connect

Categories

Your Cart

Cart is empty.

Subtotal
₹0.00
APPLY
0
Send this to a friend