Create a VPS on Proxmox server using almalinux 9? OS image boot or minimal?

Helposoft Staff

Administrator
Staff member
Points
179
Creating a VPS on your Proxmox server using AlmaLinux 9 involves several steps. Here is a detailed guide on how to do it, including information on which OS image to use.

Step 1: Download AlmaLinux 9 ISO​

  1. Download the AlmaLinux 9 ISO:
    • Visit the AlmaLinux official website and download the AlmaLinux 9 ISO image.
    • For a VPS setup, the minimal ISO is usually sufficient, but if you need more tools or a graphical interface, you might opt for the boot ISO. The minimal ISO is recommended for a server environment as it is lightweight and includes only the necessary packages.

Step 2: Upload ISO to Proxmox​

  1. Log into Proxmox Web Interface:
    • Open your browser and navigate to https://your_server_ip:8006 and log in.
  2. Upload ISO Image:
    • Navigate to Datacenter > your node > local (storage) > ISO Images.
    • Click Upload, select the AlmaLinux 9 ISO you downloaded, and upload it to Proxmox.

Step 3: Create a New Virtual Machine​

  1. Create a VM:
    • In the Proxmox web interface, click on Create VM.
    • Follow the VM creation wizard:
      • General: Assign a VM ID and name (e.g., almalinux9-vm).
      • OS: Select the AlmaLinux 9 ISO from the list.
      • System: Default settings are typically fine, but ensure you choose UEFI if required.
      • Hard Disk: Allocate storage for your VM (e.g., 20GB or more, depending on your needs).
      • CPU: Allocate CPU cores and set the socket count (e.g., 2 cores).
      • Memory: Allocate RAM (e.g., 2048MB or more).
      • Network: Use the default vmbr0 bridge and set up network settings.
  2. Confirm and Finish:
    • Review the settings and click Finish to create the VM.

Step 4: Install AlmaLinux 9 on the VM​

  1. Start the VM:
    • Go to Datacenter > your node > your VM.
    • Click Start.
  2. Access the Console:
    • Once the VM is running, click on the Console tab to access the VM console.
  3. Install AlmaLinux:
    • Follow the installation steps in the console. This will include:
      • Selecting the language.
      • Configuring the disk partitions (use the automatic partitioning for simplicity).
      • Setting up the root password and creating a user.
      • Configuring the network if needed (you may need to set up the static IP here).
  4. Complete Installation:
    • Finish the installation process and reboot the VM.

Step 5: Configure Networking​

  1. Set Up Networking in AlmaLinux:
    • Log into the VM via the console or SSH (if network configured) and set up the network interfaces.
    • Configure the network settings to match your Proxmox bridge settings, ensuring the VM can access the internet and be reachable.
  2. Edit Network Configuration Files:
    • Typically, you will need to edit the network configuration file:
      Code:
      sudo nano /etc/sysconfig/network-scripts/ifcfg-eth0
    • Ensure it looks something like this:
      Code:
      TYPE=Ethernet
      BOOTPROTO=static
      NAME=eth0
      DEVICE=eth0
      ONBOOT=yes
      IPADDR=your_vm_ip
      NETMASK=255.255.255.0
      GATEWAY=your_gateway_ip
      DNS1=8.8.8.8
      Restart Network Service:
  3. Code:
    sudo systemctl restart network

Step 6: Verify Access​

  1. Access the VPS:
    • You should now be able to access the VPS via SSH using the IP address you configured.

Additional Tips​

  • Snapshots: Consider taking snapshots of your VM at various stages to easily roll back if something goes wrong.
  • Firewall: Ensure your firewall settings on Proxmox and within AlmaLinux are correctly configured to allow the necessary traffic.
  • Updates: Regularly update both Proxmox and AlmaLinux for security and stability.
By following these steps, you should have a fully functional AlmaLinux 9 VPS running on your Proxmox server.
 
Top