Announcement

Collapse
No announcement yet.

How to Create an Ubuntu 24.04 LTS Virtual Machine (VM) on Proxmox VE

Collapse
X
Collapse
  •  

  • How to Create an Ubuntu 24.04 LTS Virtual Machine (VM) on Proxmox VE


    In this article, I will show you how to create a Ubuntu 24.04 LTS virtual machine (VM) on Proxmox VE.

    This article is the foundation of the Proxmox VE Ubuntu 24.04 LTS VM GPU passthrough guide. Once you have a Ubuntu 24.04 LTS Proxmox VE VM set up, you can passthrough a GPU (i.e. NVIDIA GPU) to the Ubuntu 24.04 LTS VM and do amazing things on the VM.










    Table of Contents

    1. Downloading Ubuntu 24.04 LTS ISO Image and Uploading it to Proxmox VE
    2. Creating an Ubuntu 24.04 LTS VM on Proxmox VE
    3. Installing Ubuntu 24.04 LTS on the Proxmox VE VM
    4. Removing the Ubuntu 24.04 LTS ISO Image from the Proxmox VE VM
    5. Installing QEMU Guest Agent on the Ubuntu 24.04 LTS Proxmox VE VM
    6. Passthrough an NVIDIA GPU to the Ubuntu 24.04 LTS Proxmox VE VM
    7. Conclusion










    Downloading Ubuntu 24.04 LTS ISO Image and Uploading it to Proxmox VE

    To install Ubuntu 24.04 LTS on a Proxmox VE VM, you will need the ISO installation image of Ubuntu 24.04 LTS.

    You can download the ISO image of Ubuntu 24.04 LTS from the official Ubuntu website.

    Ubuntu has different flavors featuring different Linux desktop environments. You can use any Ubuntu flavors you desire. Only the installation methods will differ.

    Once you’ve downloaded an ISO installation image of Ubuntu, you must upload the Ubuntu ISO installation image on your Proxmox VE server.










    Creating an Ubuntu 24.04 LTS VM on Proxmox VE

    To create a new Ubuntu VM on Proxmox VE, click on Create VM from the top-right corner of the Proxmox VE web management interface.








    From the General tab:
    1. Type in a name for the VM.
    2. Click on Next to continue.








    From the OS tab:
    1. Select Use CD/DVD disc image file (iso).
    2. From the Storage dropdown menu, select the storage where you’ve saved the Ubuntu 24.04 LTS ISO image.
    3. From the ISO image dropdown menu, select the Ubuntu 24.04 LTS ISO installation image
    4. Select Linux as the Guest OS type.
    5. Click on Next to continue.








    From the Systems tab:
    1. Select q35 from the Machine dropdown menu.
    2. select VirtIO SCSI single from the SCSI Controller dropdown menu.
    3. Tick Qemu Agent.
    4. To use the traditional BIOS firmware (not UEFI firmware), select Default (SeaBIOS) or SeaBIOS from the BIOS dropdown menu.
    5. Click on Next to continue.








    To use the UEFI BIOS firmware on the Ubuntu VM:
    1. Select OVMF (UEFI) from the BIOS dropdown menu.
    2. Check the Add EFI Disk checkbox.
    3. Select a storage from the EFI Storage dropdown menu. The UEFI firmware disk image will be stored in this storage.
    4. Check Pre-Enroll keys checkbox.
    5. Click on Next to continue.








    To add a virtual disk to the Ubuntu VM, configure the following options from the Disks tab:
    1. Select VirtIO Block from the Bus/Device dropdown menu.
    2. From the Storage dropdown menu, select a storage where you want to store the virtual disk of the VM.
    3. In the Disk size (GiB) section, type in the desired amount of disk space (in GiB unit) to allocate for the VM.
    4. Click on Next to continue.








    To configure the CPU of the Ubuntu VM:
    1. From the Cores dropdown menu, select the number of CPU cores you want to assign to the Ubuntu VM.
    2. From the Type dropdown menu, select host.
    3. Click on Next to continue.








    To configure the Memory of the Ubuntu VM:
    1. In the Memory (MiB) section, type in the amount of memory/RAM you want to allocate to the VM.
    2. To use memory ballooning on the Ubuntu VM:
      • Check the Ballooning Device checkbox.
      • Type in the minimum amount of memory you want to allocate to the Ubuntu VM in the Minimum memory (MiB) section.

    The main purpose of memory ballooning:
      • To use physical memory more efficiently on the VM.
      • Free up unused physical memory of the VM.
      • Reuse the freed-up memory on other Proxmox VE VMs automatically.
    1. Click on Next to continue.

    NOTE: If you plan to passthrough a GPU or other PCI/PCIE devices to the VM, you must disable memory ballooning. Hardware passthrough will not work with memory ballooning enabled.








    To configure the network of the Ubuntu VM:
    1. Select VirtIO (paravirtualized) network adapter from the Model dropdown menu.
    2. Click on Next to continue.








    A summary of the configurations the Ubuntu VM will be created with should be displayed. Click on Finish to create the Ubuntu VM with those configurations.












    Installing Ubuntu 24.04 LTS on the Proxmox VE VM

    Once the Ubuntu Proxmox VE VM is created, do the following things to start the Ubuntu VM:
    1. Click on the newly created Ubuntu VM from the VM list to open it on the Proxmox VE web management console.
    2. Navigate to the Console section.
    3. Click on Start.








    The Ubuntu VM should boot from the Ubuntu 24.04 LTS ISO image.

    Select Try or Install Ubuntu from the GRUB boot menu and press .








    The Ubuntu installer should be displayed. You can install Ubuntu 24.04 LTS on the VM from here as usual.

    First, select your language and click on Next.








    Some accessibility options will be displayed. You can configure them as required.

    Once you’re done, click on Next.








    Select your keyboard layout and click on Next.








    As you’re installing Ubuntu 24.04 LTS on a VM, the wired network connection will work just fine. You don’t need any complex configuration.

    Click on Next.








    Select Install Ubuntu[1] and click on Next[2].








    Select Interactive installation[1] and click on Next[2].








    Select one of the apps selection options and click on Next[2].
    • Default selection: Ubuntu installer will install only the essential apps and utilities. This method will use up less disk space.
    • Extended selection: Ubuntu installer will install LibreOffice, more apps and utilities that the Default selection. This method will use more disk space.








    Click on Next.








    Select Erase disk and install Ubuntu[1]and click on Next[2].








    Type in the login user details[1] and click on Next[2].








    Select your timezone and click on Next.








    Click on Install.








    The Ubuntu installer should start installing Ubuntu 24.04 LTS on the VM. It will take a while to complete.








    Once Ubuntu 24.04 LTS is installed on the Proxmox VE VM, click on Restart now.








    Once you see the following window, Press .








    The Ubuntu VM should restart. Once the VM boots, you should see the Ubuntu 24.04 LTS login window. To log in to your Ubuntu 24.04 LTS VM, use the login password that you’ve set during the installation.








    Once you’ve logged in to your Ubuntu 24.04 LTS VM, you can use it as you like.










    Removing the Ubuntu 24.04 LTS ISO Image from the Proxmox VE VM

    Once Ubuntu 24.04 LTS is installed on the Proxmox VE VM, you can remove the Ubuntu 24.04 LTS ISO image from the VM.

    To remove the ISO image from the Proxmox VE VM:
    1. Navigate to the Hardware section of the Ubuntu VM.
    2. Select the CD/DVD Drive and click on Edit.
    3. Select Do not use any media.
    4. Click on OK to save the changes.








    The Ubuntu 24.04 LTS ISO image should be removed from the Ubuntu VM.










    Installing QEMU Guest Agent on the Ubuntu 24.04 LTS Proxmox VE VM

    After Ubuntu 24.04 LTS is installed on the Proxmox VE VM, make sure to install the QEMU Guest Agent on the Ubuntu VM to enable Proxmox VE integration.








    Passthrough an NVIDIA GPU to the Ubuntu 24.04 LTS Proxmox VE VM

    You can passthrough an NVIDIA GPU to the Ubuntu 24.04 LTS VM and use the VM like a real computer (get near-native GPU performance and video output directly on the monitor connected to the GPU).








    Conclusion

    I have covered the following topics (linked to additional resources as required):
    • Downloading the Ubuntu 24.04 LTS ISO image
    • Downloading ISO images of different Ubuntu 24.04 LTS flavors (i.e. Kubuntu, Ubuntu MATE, Xubuntu)
    • Uploading the Ubuntu 24.04 LTS ISO image to Proxmox VE ISO storage
    • Creating an Ubuntu VM on Proxmox VE
    • Installing Ubuntu 24.04 LTS on the Proxmox VE Ubuntu VM
    • Removing the Ubuntu 24.04 LTS ISO image from the CD/DVD Drive of the Proxmox VE Ubuntu VM
    • Installing QEMU Guest Agent on Ubuntu 24.04 LTS
    • Passing through an NVIDIA GPU on the Proxmox VE Ubuntu 24.04 LTS VM





    More...
      Posting comments is disabled.

    Categories

    Collapse

    Article Tags

    Collapse

    There are no tags yet.

    Latest Articles

    Collapse

    • Fortifying Linux Web Applications: Mastering OWASP ZAP and ModSecurity for Optimal Security
      by Kasimba



      by George Whittaker


      Introduction

      In an increasingly interconnected digital world, web applications are the backbone of online services. With this ubiquity comes a significant risk: web applications are prime targets for cyberattacks. Ensuring their security is not just an option but a necessity. Linux, known for its robustness and adaptability, offers a perfect platform for deploying secure web applications....
      11-29-2024, 05:12 PM
    • Harnessing Quantum Potential: Quantum Computing and Qiskit on Ubuntu
      by Kasimba



      by George Whittaker


      Introduction

      Quantum computing, a revolutionary paradigm, promises to solve problems that are computationally infeasible for classical systems. By leveraging the peculiar principles of quantum mechanics—superposition, entanglement, and quantum interference—quantum computing has emerged as a transformative force across industries. From cryptography and drug discovery to optimization and...
      11-27-2024, 06:22 PM
    • Using MAXQDA for Qualitative Data Analysis on Linux
      by Kasimba



      by George Whittaker


      Introduction

      Qualitative data analysis (QDA) is a cornerstone of research across various fields, from social sciences to marketing. It involves uncovering patterns, themes, and meanings within non-numerical data such as interviews, focus groups, and textual narratives. In this era of digital tools, MAXQDA stands out as a premier software solution for QDA, empowering researchers to organize...
      11-21-2024, 11:31 PM
    • HAProxy on Ubuntu: Load Balancing and Failover for Resilient Infrastructure
      by Kasimba



      by german.suarez


      Introduction

      In today’s fast-paced digital landscape, ensuring the availability and performance of applications is paramount. Modern infrastructures require robust solutions to distribute traffic efficiently and maintain service availability even in the face of server failures. Enter HAProxy, the de facto standard for high-performance load balancing and failover.


      This article...
      11-21-2024, 03:00 PM
    • Providing a license for package sources
      by Kasimba
      Arch Linux hasn't had a license for any package sources (such as PKGBUILD files) in the past, which is potentially problematic. Providing a license will preempt that uncertainty.

      In RFC 40 we agreed to change all package sources to be licensed under the very liberal 0BSD license. This change will not limit what you can do with package sources. Check out the RFC for more on the rationale and prior discussion.

      Before we make this change, we will provide contributors with...
      11-19-2024, 09:21 AM
    • Linux Binary Analysis for Reverse Engineering and Vulnerability Discovery
      by Kasimba



      by George Whittaker


      Introduction

      In the world of cybersecurity and software development, binary analysis holds a unique place. It is the art of examining compiled programs to understand their functionality, identify vulnerabilities, or debug issues—without access to the original source code. For Linux, which dominates servers, embedded systems, and even personal computing, the skill of binary analysis is...
      11-18-2024, 07:10 PM
    Working...
    X