DEV Community

Cover image for Creating VMs on Proxmox.
Andre Rocha
Andre Rocha

Posted on

Creating VMs on Proxmox.

Hey all, this post I will cover how I create virtual machines on proxmox. It is a very basic example without automation or anything. The purpose is simply create the infrastructure required for my adventure on installing an openshift cluster, the hard way...

Check main post!

Installing Openshift the hard way

Building VMs

This section is dedicated for the build of the virtual machines required for the openshift environment.

We are going to build the following VMs:

Hostname Function CPU Memory Storage Image Network IP address
ocp-bastion.ocp.lan Offline Registry/Proxy 4 8192 500 Ubuntu 24.04 ocp + external 192.168.1.10, 10.0.0.36
ocp-tools.ocp.lan DHCP+NTP 1 4096 32 Ubuntu 24.04 ocp 192.168.1.5
ocp-dns.ocp.lan DNS 1 4096 32 Ubuntu 24.04 ocp 192.168.1.6
ocp-lbexternal.ocp.lan External LB 1 2048 32 Ubuntu 24.04 ocp + external 192.168.1.6, 10.0.0.35
ocp-bootstrap.lab.ocp.lan bootstrap 4 16384 50 Rhcos-4.18.1 ocp 192.168.1.200
ocp-cp-1.lab.ocp.lan Control plane 8 16384 50 Rhcos-4.18.1 ocp 192.168.1.201
ocp-cp-2.lab.ocp.lan Control plane 8 16384 50 Rhcos-4.18.1 ocp 192.168.1.202
ocp-cp-3.lab.ocp.lan Control plane 8 16384 50 Rhcos-4.18.1 ocp 192.168.1.203
ocp-w-1.lab.ocp.lan Worker Node 4 8192 50 Rhcos-4.18.1 ocp 192.168.1.204
ocp-w-2.lab.ocp.lan Worker Node 4 8192 50 Rhcos-4.18.1 ocp 192.168.1.205
ocp-w-3.lab.ocp.lan Worker Node 4 8192 50 Rhcos-4.18.1 ocp 192.168.1.206

Downloading the ISO images

Bellow the necessary images for our openshift build:

Ubuntu 24.04 - I selected Ubuntu due to the ease of use and the number of available tutorials.

Rhcos-4.18.1-x86_64-live.x86_64.iso - This is an immutable OS ideal for container load and recommended for openshift installation.

Loading the image into proxmox

  • On the proxmox server, select the disk where the image will be stored.
  • Select ISO Images.
  • Click on Upload.

Upload Image

  • Select the location of the file and upload it to proxmox server.

Upload Image

Creating dedicated network

I am creating a new and isolated network to host my cluster. I want to simulate the scenario where it is common in my workplace, a totally isolated cluster.

  • Select your proxmox server and select network.

Creating a network step 1

  • Create a Linux bridge.

  • Apply the new configuration.

Creating a network step 3

Creating the VMs

Lets create the VMs that I have specified on the table above.

  • On proxmox, click create VM.

Creating a vm step 1

  • Choose the name.

Creating a vm step 2

  • Make the selection for image, disk, CPU, memory, network as the table. and confirm to create the VM.

Creating a vm step 3

Creating a vm step 4

Creating a vm step 5

Creating a vm step 6

Creating a vm step 7

Creating a vm step 8

Creating a vm step 9

  • For machines that have 2 networks connected, we have to add the second network after the VM is created. Click on the VM, Hardware and add a network device. Choose the OCP network.

Creating a vm step 10

Creating a vm step 11

Take note of the mac address, we will need this info to populate the DHCP server.

Creating a vm step 12

Repeat same process for all other nodes.

Top comments (0)