NavigationContentFooter
Jump toSuggest an edit

Deploying virtual machines with Proxmox on Scaleway Dedibox

Reviewed on 29 October 2024Published on 23 January 2020
  • dedicated-server
  • Proxmox
  • iso-file

Proxmox Virtual Environment (Proxmox VE) is an open-source management platform for virtual machines, based on Debian Linux. It integrates both, Linux Kernel Virtual Machines (KVM) and LXC containers. KVM provides full virtualization for complete Windows and Linux images whilst LXC containers are lightweight and perfect to run conflict-free Linux applications. Proxmox Virtual Environment is an alternative hypervisor to VMware ESXi or Microsoft HyperV. You can easily host Virtual Machines (VM) on a dedicated server.

The software provides an intuitive web interface as well as a complete REST-API to deploy and manage infrastructures.

Before you start

To complete the actions presented below, you must have:

  • A Dedibox account logged into the console
  • Owner status or IAM permissions allowing you to perform actions in the intended Organization
  • A Scaleway Dedibox
  • At least one failover IP with a virtual MAC address
Note

This tutorial assumes that you have already installed Proxmox VE on your Scaleway Dedibox. The automatic installation of Proxmox VE is available from your Dedibox console or manually using the KVM-over-IP device of your server.

Connecting to Proxmox

  1. Open a web browser on your computer and go to the Proxmox web interface, available at https://your_dedibox_ip:8006/
  2. Log into the web interface with the root user and the password you have set during the installation of Proxmox.
  3. The Proxmox dashboard displays:

Proxmox image store

Downloading LXC container images

LXC uses pre-built containers. Proxmox provides a selection of the most common containers for download directly from their servers. Before creating a container, an image needs to be downloaded onto the Proxmox host.

  1. Click Storage > Local to enter the Local Storage.
  2. Click Templates to download an image from Proxmox:
  3. Choose the image to download and click Download:

Uploading ISO-files

KVM uses a virtual CD-ROM drive to boot the OS installation system from an ISO file. ISO files are archive files that contain identical copies of the data found on optical discs. To create a KVM virtual machine, an installation media has to be uploaded first.

  1. Click Storage > Local to enter the Local Storage.
  2. Click Upload to upload an ISO file from your local computer:
  3. Choose a local file and upload it to the Proxmox server:

Deploying a virtual machine

Creating a LXC container

  1. Click Create CT to launch the LXC container creation wizard:

  2. Enter the Hostname for the container, a Password and its confirmation. Optionally you can enter or upload a public SSH key for authentication:

  3. Choose the template for the LXC container:

  4. Configure the virtual disk for the cluster. You can set the type of the storage and the capacity of the virtual disk:

  5. Set the number of virtual CPU cores available for the container:

  6. Set the amount of available RAM and Swap space for the container towards your requirements:

  7. Configure the network for the container. Set the parameters as follows to ensure your container has network access:

    • Name: Set this value to eth0
    • MAC Address: Set this value to the virtual MAC address associated to the failover IP of the container.
    • Bridge: Set this value to vmbr0.
    • IPv4: Configure the IPv4 of the container as Static, enter the failover IP in CIDR notation, and configure the unique gateway 62.210.0.1.
  8. Set the resolving DNS servers for the container. You can either configure the DNS servers provided by Scaleway Dedibox (51.159.47.28 and 51.159.47.26) or set your preferred DNS resolvers:

  9. A summary of the containers’ configuration displays. If everything is set correctly, click Finish to create the container:

  10. Start the container from the Proxmox web interface. You can use the web console to connect to your virtual machine and test the network connectivity using a ping-test:

Creating a KVM virtual machine

  1. Click Create VM to launch the KVM virtual machine creation wizard:
  2. Enter a Name for the virtual machine. The Node and VM ID values are pre-filled, leave them as they are.
  3. Choose the installation media for the virtual machine. Select CD/DVD disc image file (iso), choose the local storage, and select the ISO-file downloaded previously. Choose the Guest OS type. For a recent Linux distribution, select Type Linux and Version 5.x - 2.6 Kernel. For other OS types set the values according to the requirements of your operating system.
  4. Configure graphics card and SCSI controller available for the virtual machine. If no special requirements are needed, leave the default settings:
  5. Set the parameters of the virtual hard drive. You can go with the default settings and set the disk size to your requirements:
  6. Choose the CPU settings for the virtual machine. You may set the number of Sockets, Cores and the Type based on your own requirements:
  7. Set the amount of RAM for the virtual machine towards your requirements
  8. Configure the network interface. Set the bridge to vmbr0, the model to VirtIO (paravirtualized), and configure the virtual MAC address assigned to the failover IP of the virtual machine. The static network configuration is done in a later step, during the installation of the operating system.
  9. A configuration summary displays. Click Finish if all settings are correct to launch the creation of the virtual machine.
  10. Start the virtual machine from the Proxmox panel. It boots from the chosen ISO file. Connect to the virtual machine using the console and follow the steps of the operating systems’ setup wizard to complete the installation:
Tip

Follow the official documentation to learn more about VM templates and Clones or watch tutorials on the official Youtube canal.

Was this page helpful?
API DocsScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCareers
© 2023-2024 – Scaleway