Sign In
Sign In

Creating Virtual Machines with Templates in Proxmox

Creating Virtual Machines with Templates in Proxmox
Hostman Team
Technical writer
Virtualization
03.09.2025
Reading time: 5 min

Proxmox is a powerful, free, and convenient virtualization platform that turns a single physical server into a flexible control center for virtual machines. Using a unified web interface, you can launch and manage multiple servers, create their backups, and combine them into local networks.

Virtualization is not only about environment isolation but also about deployment speed. A traditional operating system installation on virtual servers via an ISO image is a reliable but slow method: booting, manual installation, network configuration, and adding users. Such a process takes time and requires administrator attention at every step.

Modern infrastructure management practices require a different approach—fast, reproducible, and automatable.

Using ready-made cloud images in Proxmox allows you to get a working virtual machine (VM) in minutes, immediately ready for work and integration into workflows. With Cloud-Init, you can automatically add a user, set a password, add SSH keys, and configure network parameters.

In this guide, we will look at how to create a template from an Ubuntu 22.04 cloud image in Proxmox and, based on it, create new virtual machines and set up their parameters using Cloud-Init.

The described method is suitable for images in .img and .qcow2 formats.

This guide assumes that Proxmox is already deployed on your dedicated server.

Creating a Virtual Machine

Go to the Proxmox web interface at: https://your-ip-address:8006.

In it, create a VM, going through the tabs:

  • General: Set the virtual machine name and its ID. You can use any number as the ID—it is used to reference the server in console commands.

01a4d9ba 7252 430d 8594 Bfe293a5e075.png

  • OS: Select “Do not use any media.”

A3f1850c 2715 4926 9bbe 343c20125012.png

  • System: Check the QEMU Agent box for better integration between Proxmox and the guest OS.

727e9631 4c0f 4647 9e7e 5b265ee5d12b.png

  • Disks: Delete all disks—we will later use a disk from the image.

8faa7c3c 352f 4bfd B228 042918669ac1.png

  • CPU: Set 1 core. Leave other parameters at default. Change them only if you know what you’re doing.

E72dcec0 F114 491f Ae15 4c8b8709c1d5.png

  • Memory: Set minimal parameters.

817f90e6 29e5 493f B62f 73cff2f0db68.png

  • Network: Choose the interface to be used in the virtual machine, e.g., vmbr0.

71bfa53d 7e56 4b52 84ef 73cb52904518.png

Save, but do not start the virtual machine. Remember the VMID, as you will need it later.

Adding a Cloud Disk to the Virtual Server

On the Ubuntu downloads page, copy the link to the image with architecture amd64 and extension .img.

Image1

Next, you need to add a monitor emulator to the created virtual machine, since it may be missing in some images. It is required for the virtual machine console to work in the Proxmox interface.

Connect to the Proxmox server via SSH and run the following command (replace 100 with your VMID):

qm set 100 --serial0 socket --vga serial0

347b5e40 5891 4fba Afd7 5ff14f26f483.png

Then download the image to the server using wget:

wget https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img

Bind the disk image to the created machine:

qm disk import 100 jammy-server-cloudimg-amd64.img local-lvm

In our case, the storage name is local-lvm, but yours may differ.

After a successful import, you will see a notification like that:

882bf33a 2e7f 4a4e B1e0 1036d41e3e74.png

In the virtual machine settings, under Hardware, you will see the Unused disk:

E03c7a9a 7a02 422c Bbcd 464be0214da0.png

Go into its settings, check Advanced, enable Discard and SSD emulation, then click Add.

73f1ec95 44a2 4f68 87b3 320f3ba629aa.png

In the same section, delete the CD/DVD device—it is no longer needed.

1c3cc9de E873 42f9 Bf27 C308044c568a.png

Add a Cloud-Init disk:

  • Click Add, choose CloudInit Drive.

92a4d9f3 Efaf 460a 9b79 6a936c79f187.png

  • In its settings, select the storage location.

46dee6d2 81df 4ce4 Acd7 7b0f5bb45f25.png

Next, select the disk to boot the system from:

  • Go to OptionsBoot Order.

680de645 F3a8 47f1 961d Ef82fc3dd103.png

  • Uncheck existing boxes and choose the disk attached earlier.

D334bc24 63f0 43b2 A13c 165f1063f4b2.png

Check that the machine was created correctly:

  • Start it, then open the console via Start and Console in the top right corner.

10add5c5 Bbef 43cb 92b0 A2200506415e.png

  • Wait for the login prompt. If it appears, the boot was successful. You can then close the console.

44adb0a6 B03b 4e14 9a8f Ae1212d681f6.png

Creating a Template from the Virtual Server

In Proxmox, a template is a “blueprint” for a VM with pre-configured basic parameters.

To create a template from this virtual machine:

  • Right-click it in the VM list.
  • In the menu, select Convert to template.

0a8757a9 2c54 4f13 A2aa B88972fd86d2.png

After conversion, the virtual machine icon will change.

Now, based on this template, we can create virtual machines with parameters defined via Cloud-Init.

Creating a Virtual Server from the Template

For example, let’s create a virtual server with the user Hostman.

  • Right-click the template and select Clone.

83be3602 Fa68 432b 8c91 B785c477e905.png

  • Enter a name and choose Full Clone so that the virtual machine is independent of the template.

Fce681e6 C2d2 4192 972e 300eb01b699d.png

  • Open the new machine’s settings and configure CPU and RAM parameters.

67ce5ec9 Eafe 46e7 B421 F27b64206331.png

To change disk size:

  • Select the disk in the list, then in Disk Action choose Resize.

69a13058 3db9 4759 9ab9 32234edd7157.png

  • Enter how many gigabytes to add to the existing size. For example, if you add 10 GB, a disk of 12.2 GB will be created, since the original image disk size is 2.2 GB.
  • Click Resize disk.

9713e392 Ecef 46bf 8813 248aaeeccc16.png

Go to the Cloud-Init section. Here you can:

  • Specify the user and set a login.

Image2

  • Set a password.

Image3

If you specify the root user and set a password, you will be able to log in as root with the new password. This is useful if you don’t need to create a new user.

Other Cloud-Init options include:

  • SSH public key: Add the SSH key for server access. By default, in a virtual server created from this image, SSH login with a password is disabled.
  • Upgrade packages: Set to yes to update packages when the server is created.
  • IP Config: Assign a static IP address (useful if virtual machines will use different external IPs). You can also use DHCP for a dynamic address.

28a92e6d 820b 4438 919b 3111e4a18bee.png

After specifying all required parameters:

  • Start the machine and open the console.
  • Log in as Hostman.

console

  • Verify that the server was created with the desired configuration.

console

Conclusion

With templates, we can quickly add virtual machines with different operating systems and required configurations, modify user parameters in Cloud-Init, and configure the network.

In addition, cloud image sizes take up significantly less disk space. For example, the Ubuntu 22.04 cloud image is only 646 MB, while the ISO image is 2 GB.

This method of creating virtual machines is especially valuable when speed, stability, and predictability of results are important: in test environments, DevOps infrastructure, and when massively deploying identical services.

Most importantly, it frees up time that would otherwise be spent on endless "Next" clicks in the installer, allowing you to focus on truly important tasks: infrastructure development and optimization.

Virtualization
03.09.2025
Reading time: 5 min

Similar

Virtualization

Installing and Configuring Hyper-V Server 2019

Hyper-V is a hypervisor that provides hardware virtualization. Each virtual machine operates on virtual hardware. Hyper-V allows you to create virtual hard disks, virtual switches, and other devices that can be added to virtual machines. Hyper-V Installation The installation involves activating the corresponding role in Windows Server 2019 Datacenter or Standard. Launch the Server Manager. Select Add Roles and Features. Choose Hyper-V from the menu. Click Add Features to add all necessary Microsoft Hyper-V components. Next, configure the roles. This is done in three sections. First, Virtual Switches: Select a network interface. It will serve as the virtual switch for the hypervisor. Do not use the primary interface for this, as you will need it for physical access to the server. The next section is Migration. You can leave the default settings as they suit our purposes. On the Default Stores tab, also leave the standard parameters. You can change the directories where the virtual hard disk and VM configuration files are stored at any time in the hypervisor settings. You have prepared the configuration for installation. To start it, click on Install. Hyper-V Configuration The next step in working with Hyper-V is configuration. But first, check the server configuration. Launch the Run window (press Win+R) and execute the command sconfig. In response, a window displaying the configuration will appear. There is a lot of information, so pay attention to these key parameters: Domain/Workgroup — specified when creating the server. Computer Name — also set in the previous step. Configure Remote Management — enabled by default. This feature will be useful later for management through special utilities or the PowerShell console. Remote Desktop — an option that allows you to manage the machine remotely, enabled by default. Network Settings — network parameters of the virtual switch. You specified these when configuring the server while working with the Virtual Switches section. You do not need to change or configure anything further if you created virtualization servers according to the previous section. You can proceed to remotely manage the server. Remote Management You can manage the server in two ways. The most convenient method is through the Windows Admin Center (WAC) web interface. You can download it for free from the Microsoft website: Windows Admin Center Overview. When installing WAC, use the default settings; there is no need to change any configurations. After installation, you will gain access to the web interface, which should be opened by the name or IP address of the remote host. Another management method is through the PowerShell console. You enabled this capability when you installed several components along with the hypervisor. To verify that everything is working, launch the PowerShell console and execute: Get-Command –Module Hyper-V | Measure-Object In response, you will receive the number of cmdlets designed to manage the infrastructure. These cmdlets duplicate the capabilities of WAC. The difference is that with the web interface, you click buttons, while in PowerShell, you input commands. For example, you can check network settings through the console with: Get-NetIPConfiguration The same information is displayed when connecting to the server through WAC. Another example is checking for IPv6 support. Execute the following command in PowerShell: Get-NetAdapterBinding -InterfaceDescription "Hyper-V Virtual Ethernet Adapter" | Where-Object -Property DisplayName -Match IPv6 | Format-Table -AutoSize If the Enabled field shows True, then IPv6 support is enabled on the Hyper-V Server. You can try to disable it using the command: Disable-NetAdapterBinding -InterfaceDescription "Hyper-V Virtual Ethernet Adapter" -ComponentID ms_tcpip6 After executing this cmdlet, there will be no output; it simply quietly disables IPv6 support. You can check the status with another command: Get-NetAdapterBinding All of this can also be done using Windows Admin Center. The choice between WAC and PowerShell depends on the tasks you need to accomplish. For example, WAC is good for quickly changing settings, while PowerShell cmdlets are convenient for automation. Suppose setting up a virtual machine is a routine task. It can be tedious to configure another host through WAC each time. In that case, you can write a script executing the required commands through PowerShell. Firewall Configuration To manage the Windows Server 2019 firewall, you can use Advanced Firewall rules. It’s more convenient to configure them through PowerShell. To see the list of available requests for regulating the firewall, execute: Get-Command -Noun *Firewall* -Module NetSecurity Set the rules for remote access. To do this, execute the following commands sequentially in PowerShell: Enable-NetFireWallRule -DisplayName "Windows Management Instrumentation (DCOM-In)"Enable-NetFireWallRule -DisplayGroup "Remote Event Log Management"Enable-NetFireWallRule -DisplayGroup "Remote Service Management"Enable-NetFireWallRule -DisplayGroup "Remote Volume Management"Enable-NetFireWallRule -DisplayGroup "Windows Defender Firewall Remote Management"Enable-NetFireWallRule -DisplayGroup "Remote Scheduled Tasks Management" You can conveniently check the status through the Windows Admin Center web interface. Launch it, connect to the server, and go to the Firewall section. The rules are divided into three tabs: General, Inbound, and Outbound. Creating Disk Storage You have already created disk storage. Remember the Default Stores section when installing Microsoft Hyper-V Server? In that section, you needed to specify a folder where all the data would be stored.If you left the default settings, that’s okay. They can be changed at any time through the web interface.The Hyper-V settings are located in the Settings section. Here, the same two folders that were available when creating the server can be modified. The first directory is the Virtual Hard Disk Path. This is the path to the folder that serves as the virtual hard disk. The second directory is the Virtual Machines Path. This is where the configuration files for the virtual machines are stored. You can specify any directories to use for storing data and configuration files. Configuring Virtual Machines Hyper-V virtualization is needed to create virtual server hostings on a single physical server. Let’s finally move on to this part. Download a trial virtual machine for Hyper-V from the official Microsoft website. In it, you will find a trial version of the OS, Visual Studio, an included Linux subsystem with pre-installed Ubuntu, developer mode enabled, and a Windows terminal: Microsoft Developer Downloads. The Windows 11 virtual machine can be created through the Windows Admin Center in just a few clicks. Launch the WAC web interface. Go to the Virtual Machines section. Create a new virtual machine. Specify the path to the extracted files of the trial image. Add the hard disk image. Click Create to start the virtual machine creation process. You can also start the VM through WAC. Creating Backups For security and data preservation, it is necessary to create backups of virtual machines. Typically, the built-in utility wbadmin is used for this purpose. However, the default installation of Hyper-V does not add it to the server. To fix this, add a new role — Windows Server Backup. Open the Server Management Console. Click Add Roles and Features. Select Windows Server Backup from the list. After adding the role, the wbadmin utility will be available on the server. To check that it is working and to get a list of all virtual machines, execute the command: wbadmin get virtualmachines The command will return a list of virtual machines. Note the host name for which you want to create a backup. You need to add it to the command syntax: wbadmin start backup -backuptarget:D: -hyperv:"Windows11" -quiet Replace "Windows11" with the name of your virtual machine. This command will initiate the backup creation process. After completing the process, a log will be saved in the backup folder. You can also manage backups on Microsoft Hyper-V through the Windows Server Backup application. Open the Server Management Console. In the Tools menu, select Windows Server Backup. Open the Action tab and start a one-time backup — Backup Once. Select Different Options. Choose the Full Server configuration to back up all data on the server, including applications and even the system state. Specify a remote shared folder as the destination. Enter the address of the remote shared folder. Enable inheritance (the Inherit option) if you want the backup to be accessible to everyone who has access to the remote shared folder. Provide the credentials of a user with write permissions to the shared network directory. Confirm the backup configuration. After the process is complete, open the remote shared folder you specified as the destination for the backup using File Explorer. You should see a directory named WindowsImageBackup containing the backup data. Scheduled Backups The utility for backups on MS Hyper-V Server can also be used to create backups on a schedule. In the Windows Server Backup application, select Backup Schedule. Specify that you need to back up the entire server. Configure the frequency of the backups. For example, you can set it to back up every day at 11:00 PM. Choose the destination; it can be a separate disk or a remote shared folder. Save the configuration. You can flexibly configure the scheduled backup settings: change the time, store backups on separate disks, or transfer them to a network folder. The key is to ensure that the data is easy to restore. Windows Server Backup provides all the necessary tools for this.
01 November 2024 · 8 min to read
Virtualization

Installing Windows on VMware

Virtualization is a technology for creating virtual versions of physical resources, enabling diverse, isolated virtual machines to run. A hypervisor is a software or hardware that plays a key role in virtualization, allowing the creation and management of virtual machines on a physical computer or cloud server. A type-2 hypervisor (hosted) runs on top of an already installed operating system called the host OS. Examples include: Oracle VirtualBox Parallels Desktop VMware Workstation This article provides a step-by-step guide to installing Windows 11 on VMware. By reading it, you'll learn: How to install VMware Workstation on your computer How to correctly configure the installed hypervisor How to create a virtual machine with Windows 11, and much more System Requirements for VMware Workstation System requirements for VMware Workstation can vary depending on the program version and operating system. The minimum system requirements are as follows: Processor: 64-bit processor with a clock speed above 1.3 GHz and virtualization support (Intel VT-x or AMD-V) RAM: Minimum 2 GB, but 4 GB or more is recommended Free disk space: At least 2.5 GB of free space for installation OS: VMware Workstation supports various versions of Windows and Linux For the latest system requirements for a specific version of VMware Workstation, refer to VMware's official resources or the software documentation. Downloading VMware Workstation Since VMware has been bought by Broadcom, the first thing to do is register an account at broadcom.com. Go to broadcom.com and click "Register". Enter your email address and then the verification code sent to your email. Provide your details to complete the registration and create an account. Now let’s proceed to downloading VMware. Log into your Broadcom account. In the product drop down list select "VMware Cloud Foundation". Search for "VMware Workstation Pro." Click on the link: Scroll down to “References” and click on the first link: Click on the version you need. In this article case, we will use the latest Windows version for personal use. This version is provided for free. With it, you will receive a fully functional product without needing to buy a license for or activate VMware Workstation 17 Pro. Check the "I agree to Terms and Condition" box and click on the "Download" button on the right. The system will prompt you to go through an extra verification step. Agree and fill in your data. Click on the download button again. The download will begin. Installing VMware Workstation Now we can start installing the software. After download is complete, run the installer file. You should see the VMware Workstation Pro setup window. Click "Next." In the next window, check the box next to "I accept the terms in the License Agreement" and click "Next”. The installer then prompts you to specify the installation path for VMware Workstation and provides two options: Enhanced Keyboard Driver: This option offers additional functionality for working with the keyboard in virtual machines, enhancing key processing and security and allowing extra key combinations between the host and guest OS. Add VMware Workstation Console Tools to System Path: This option automates certain aspects of hypervisor operation. Select these options based on your needs and preferences. We will include both in the installation. In the next window, the installer offers two options: Check for product updates on startup Join the VMware Customer Experience Improvement Program We skip this step by leaving the checkboxes empty and click "Next." Finally, you will be prompted to create desktop and Start menu shortcuts. Select these options based on your preferences. After specifying all parameters and options, click "Install." This completes the VMware Workstation installation. Now, we proceed to launch it and run our first virtual machine on Windows. Launching VMware Workstation and Creating Your First Virtual Machine Now, we'll work in the VMware Workstation environment, perform basic configuration, and prepare a virtual machine for installing Windows 11. You will need the original Windows 11 ISO image for VMware, which you can download from the official Microsoft website or other trusted sources. After installing VMware Workstation, launch it. The hypervisor's main window will open. First, configure the directory where all virtual machines will be stored. Open the "Edit" tab and select "Preferences…". In the "Workspace" tab of the opened window, you can change the path to the virtual machine storage directory. Now we can create our first virtual machine. Go to the "File" tab and select "New Virtual Machine…". The New Virtual Machine Wizard will open. Select the first option, "Typical installation," which automates much of the setup process. The second option, "Custom installation," involves manually configuring various hardware types, but you can do this after creating the virtual machine. Next, specify the installation type for the guest OS. The system offers three options: Install from a physical disk Install from an ISO image Install the operating system later We choose the second option and add the previously downloaded Windows 11 ISO image using the "Browse…" button. The system then prompts you to name the virtual machine and specify its storage location. Leave the default settings and click "Next." In the next window, the wizard prompts you to configure virtual machine encryption. A TPM (Trusted Platform Module) module is required for the guest OS to function correctly. All your files will be encrypted using a password, which you need to enter in the respective fields. The system offers two types of encryption: Encrypt all virtual machine files Encrypt only the files necessary to support TPM We chose the second type of encryption and checked the box to save the password in the credential manager. Next, the wizard will ask for the required disk space for the OS and the file storage method. Leave the default settings and proceed to the next step. You will see the preliminary parameters of the virtual machine. These can be changed by clicking "Customize Hardware…," or left unchanged. The virtual machine is created and ready to launch. The next section describes installing and configuring Windows 11 in VMware. Installing and Configuring Windows 11 in VMware Workstation After creating the virtual machine, you can start installing Windows 11. To install Windows 11 in VMware Workstation, select the previously created virtual machine from the list and click the start button in the top menu. When starting the virtual machine, you may encounter the following error: This error indicates that the first requirement from the "System Requirements for VMware Workstation" section has not been met, specifically the lack of virtualization support. To fix this, enter the BIOS settings and enable the SVM Mode parameter. After starting the virtual machine, you will be prompted to boot from CD or DVD. Switch to the active window area to boot from the installation image and quickly press any key on the keyboard, such as "Enter." The standard Windows 11 installation process will begin, which is the same as installing on a physical computer. First, select the installation language, time and currency format, and keyboard layout. Next, choose the required operating system type and accept the license agreement. Then, the system will prompt you to choose the installation type. Since we are installing the system for the first time and not upgrading, we select the second option. The penultimate step of the installation is choosing the disk space. We select the created 64 GB disk, which will later have the necessary system partitions created. Click "Next" to start the Windows 11 installation process. The final step is the initial setup of the installed OS. This includes: Choosing the region and language Configuring the keyboard layout and input method Setting up a Microsoft account Selecting privacy settings and other configurations After completing this step, the Windows 11 desktop will appear. This signifies the completion of Windows 11 installation on the virtual machine. Installing VMware Tools VMware Tools is a software package provided by VMware that is installed inside virtual machines to ensure more efficient operation and integration between the host system and the virtual machine. To install VMware Tools, click the "VM" tab in the menu and select "Install VMware Tools…". This will add a virtual DVD drive with installation files to the guest OS. Select "setup64" among the files and start the installation. After completing the installation, restart the system. Conclusion In this article, we have detailed the installation of Windows 11 on VMware Workstation, covering all steps from downloading VMware Workstation on the host system to installing Windows 11 on the created virtual machine. Virtualization through VMware allows for flexible use of your computer's resources, ensuring isolation and efficient management of virtual machines.
27 August 2024 · 8 min to read
Virtualization

Clustering in Proxmox VE

The Proxmox Virtual Environment (Proxmox VE) is a platform designed for clustering servers. This product allows you to deploy multiple virtual machines with various operating systems on a single computer. Additionally, it allows centralized management of an organization's IT infrastructure. This approach saves resources, easily protects critical services, and quickly recovers them after failures. Use Cases for Proxmox VE High-Availability: Ensuring fault tolerance. Load Balancing: Distributing workload. High Performance: Increasing performance. Distributed Computing: Performing distributed computing. Clusters consist of a group of servers connected by a high-speed communication channel. The system administrator sees them as a single entity, which provides access to the aforementioned functionalities. Each scenario has specific requirements for the elements forming a resilient cluster, so you should select servers based on their technical specifications. For example, pursuing high performance requires systems with high floating-point operation speeds and low network latency. In any case, a server with high availability is needed. These virtualization clusters differ from grid systems, which, although they combine servers similarly, have a heterogeneous structure and no specific availability requirements for individual nodes. How the Platform Works Proxmox VE's popularity stems from its open-source nature. The software can be used as-is or modified according to specific technical requirements. The platform is built on Debian Linux with an RHEL kernel, so finding a developer with relevant experience is usually not an issue. Even in its original form, it has powerful functionality. Things to keep in mind when using ProxmoxVE: It offers two types of virtualization: full virtualization with KVM and containers with LXC. You can add up to 32 physical machines per cluster. It's preferable to use the same release of Proxmox on all active hosts. Proxmox HA (High-Availability) mode requires at least three nodes in the cluster. Nodes use UDP/5404, UDP/5405, TCP/22 ports. Network latency between nodes should not exceed 2 milliseconds. We recommend downloading the distribution only from the official website. The software is available as ISO files for direct download or as a torrent. Other sources may offer edited versions with added functionalities but may be less manageable. Installation Connect to the server and mount the previously downloaded image. Select the disk for software installation from the dropdown in the GUI. The Options section allows additional partitioning parameters, including region settings. Set the ROOT authorization password and the email address of the Proxmox cluster system administrator. Enter the full domain name, server IP address, subnet mask, primary gateway, and DNS server address in the next window. Reboot the server by clicking the Reboot button to apply the changes. You can now access the system's web interface at https://IP_address:8006. Before using it, update the release to the current state and install protective software like Fail2Ban to guard against brute-force attacks. Subsequent steps include setting up storage and deploying virtual machines and operating systems. Creating a Test Cluster Before combining servers into a cluster to host critical data, it's recommended to launch the system in test mode. We'll do this with three servers of identical configuration (2 CPU cores and 2 GB of RAM each). Initially, each server operates in Standalone Mode upon OS installation. Create a new Proxmox cluster: Click Create Cluster in the Proxmox Cluster section. Name the future cluster and select the appropriate network connection. Click Create to generate a 2048-bit security key. The message "TASK OK" confirms the process is complete. Rechecking the status will show the Proxmox Node is now operating in cluster mode. Connecting to the Cluster To join a cluster: Open Join Information in the Cluster section. Copy the information from the Join Information section, which includes the server address and its fingerprint. Click Join Cluster, paste the copied data, enter the ROOT password for Node #1 Proxmox VE Cluster, and click Join. Repeat this process to connect the remaining nodes, resulting in a fully operational cluster on three servers. High Availability Setup Proxmox VE supports HA functions in both KVM and LXC virtualization modes. The ha-manager utility detects errors and failures, switching from a failed host to a functional one. This provides full automation of node fault tolerance. To achieve this, an NFS storage (example: 192.168.88.18) must be set up. Set Up Storage Add NFS Storage: In the GUI, navigate to Datacenter – Storage – Add – NFS. Enter the storage ID and server IP address. Select the desired directory from the Expert dropdown. Specify the data type in Content. Click Add to connect the storage to all active nodes. Configure HA Create an Ubuntu Container: Go to Datacenter – HA – Add. Enter the container ID, maximum restart attempts, and movement between hosts. Click Add to notify active cluster hosts to control the container with the specified ID in case of failure. Test Failure Response To test the protection mechanism: Power off Host #1. This guarantees a failure registration. The interface will show the system's reaction; the virtual machine resumes within 120 seconds from "freeze". To test quorum enforcement, use the command pvecm expected 1. This verifies that the HA mechanism switches the VM to Host #3. Reconnecting the first two servers restores the cluster, ready to handle any failures. The third node remains active, but can be manually switched. Conclusion This example illustrates Proxmox VE's High Availability mechanism in KVM virtualization and LXC container usage. Once activated, the system operates automatically and can be managed from any internet-connected computer. Ensuring sufficient machine power is crucial, as high-speed connections are typically available in data centers.
13 August 2024 · 5 min to read

Do you have questions,
comments, or concerns?

Our professionals are available to assist you at any moment,
whether you need help or are just unsure of where to start.
Email us
Hostman's Support