Introduction
Proxmox VE is an open-source server platform for enterprise virtualization. As a Debian-based Linux distribution, Proxmox uses a modified Ubuntu kernel to run multiple virtual machines and containers on a single server. You can deploy and manage virtualized environments through a web console or a command line, ensuring simple and fast accessibility.
Read on to find out how to install and configure Proxmox.
Prerequisites
- A physical or dedicated server.
- 64bit CPU.
- At least 1GB of RAM (and additional RAM needed for guests).
- A USB stick with at least 1GB.
Install Proxmox Virtual Environment
Follow the steps below to install Proxmox VE on a physical or dedicated server.
Alternatively, boot up a phoenixNAP Bare Metal Cloud server with Proxmox installed and configured out of the box.
Bare Metal Cloud offers automated deployment with Proxmox servers typically deployed in 8 minutes (no additional costs)! See how easy it is to deploy a Bare Metal Cloud server.
Step 1: Download Proxmox ISO Image
The first step is to download the Proxmox VE ISO image.
1. Navigate to the official Proxmox Downloads page and select Proxmox Virtual Environment.
2. This takes you to the Proxmox Virtual Environment Archive, which stores ISO images and official documentation. Select ISO Images to continue.
3. At the time of writing, the latest version of the Proxmox VE ISO Installer is 7.1. If a newer version is available, it is listed at the top. Click Download and save the file.
Step 2: Prepare Installation Medium
Copy the Proxmox ISO image on a CD/DVD or a USB flash drive. Although both options are possible, it is assumed that most systems won't have an optical drive.
Plug in the USB drive and copy the ISO image to the USB stick using the command line or a USB formatting utility (such as Etcher or Rufus).
Note: Make sure your USB has at least 1 GB of storage. Also, back up and remove any data on the device as the process will erase any previously stored data.
If you are working on Linux, the fastest way to create a bootable USB is to run the command:
If needed, modify the file name and path in if=./proxmox-ve_*.iso
and make sure to provide the correct USB device name in of=/device/name
.
To find the name of your USB stick, run the following command before and after plugging in the device:
Compare the output. The additional entry in the second output is the name of the device.
Step 3: Launch the Proxmox Installer
1. Move to the server (machine) where you want to install Proxmox and plug in the USB device.
2. While the server is booting up, access the boot menu by pressing the required keyboard key(s). Most commonly, they are either Esc, F2, F10, F11, or F12.
3. Select the installation medium with the Proxmox ISO image and boot from it.
4. Next, the Proxmox VE menu appears. Select Install Proxmox VE to start the standard installation.
5. Read and accept the EULA to continue.
6. Choose the target hard disk where you want to install Proxmox. Click Options to specify additional parameters, such as the filesystem. By default, it is set to ext4.
7. Then, set the location, time zone, and keyboard layout. The installer autodetects most of these configurations.
8. Create a strong password for your admin credentials, retype the password to confirm, and type in an email address for system administrator notifications.
9. The final step in installing Proxmox is setting up the network configuration. Select the management interface, a hostname for the server, an available IP address, the default gateway, and a DNS server. During the installation process, use either an IPv4 or IPv6 address. To use both, modify the configuration after installing.
10. The installer summarizes the selected options. After confirming everything is in order, press Install.
11. remove the USB drive and reboot the system after installation.
Step 4: Run Proxmox
1. Once the system reboots, the Proxmox GRUB menu loads. Select Proxmox Virtual Environment GNU/Linux and press Enter.
2. Next, the Proxmox VE welcome message appears. It includes an IP address that loads Proxmox. Navigate to that IP address in a web browser of your choice.
3. After navigating to the required IP address, you may see a warning message that the page is unsafe because Proxmox VE uses self-signed SSL certificates. Click the IP link to proceed to the Proxmox web management interface.
4. To access the interface, log in as root and provide the password set when installing Proxmox.
5. A dialogue box pops up saying there is no valid subscription for the server. Proxmox offers an optional add-on service to which you can subscribe. To ignore the message, click OK.
Step 5: Create a VM
Now that you logged in to the Proxmox web console, follow these steps to create a virtual machine.
1. Before going through the steps to create a virtual machine, make sure you have ISO images for installation mediums. Move to the resource tree on the left side of your GUI.
Select the server you are running and click on local (pve1). Select ISO Images from the menu and choose between uploading an image or downloading it from a URL.
2. Once you have added an ISO image, spin up a virtual machine. Click the Create VM button.
3. Provide general information about the VM:
- Start by selecting the Node. If you are starting and have no nodes yet, Proxmox automatically selects node 1 (pve1).
- Provide a VM ID. Each resource has to have a unique ID.
- Finally, create a name for the VM. Use an easily identifiable name.
3. Next, switch to the OS tab and select the ISO image you want for your VM. Define the Type of the OS and kernel Version. Click Next to continue.
4. Modify system options (such as the Graphic card and SCSI controller) or leave the default settings.
5. Configure any Hard Disk options you want the VM to have. You can leave all the default settings. However, if the physical server uses an SSD, enable the Discard option.
6. The number of Cores the physical server has determines how many cores you can provide to the VM. The number of cores allocated also depends on the predicted workload.
7. Next, choose how much Memory (MiB) you want to assign to the VM.
8. Move on to the Network tab. It is recommended to separate the management interface and the VM network. For now, leave the default setting.
9. After clicking Next, Proxmox loads the Confirm tab that summarizes the selected VM options. To start the VM immediately, check the box under the listed information or start the VM manually later. Click Finish to create the VM.
10. See the newly created VM in the resource tree on the left side of the screen. Click on the VM to see its specifications and options.
Note: Learn how to delete a VM in Proxmox. The guide includes both the command line and GUI methods for deleting VM, VM disks, and VM snapshots.
Configure Proxmox Virtual Environment
After creating a virtual machine, move on to configuring the environment.
Start the VM at Boot
If the Start at boot option is set to No, the VM does not automatically start after rebooting the server. This means you need to log in to the Proxmox interface and start the VM manually.
To change the default setting, highlight the option and click the Edit button.
Check the box and click OK.
Increase/Decrease Virtual Disk Size
The simplest way to increase or decrease the virtual disk size of a VM is through the command line interface, which can be done online or offline.
When increasing disk space, modify the partition table and file system inside the VM to update to the new size.
When decreasing a VM's disk space, back up any data you want to save and reduce the file system and partition inside the VM first.
The main syntax for increasing/decreasing virtual disk size is:
For instance, to add 10G to a virtio0 disk on a VM with the ID 100, run:
Enable NAT Networking Mode
As mentioned above, it's a good idea to change the default bridge networking mode to prevent the Proxmox host and VMs from being on the same network. To create a separate network, enable NAT networking mode.
1. To do so, edit the Interfaces file. Open the command line and run:
The file shows that vmbr0
is the default bridge public network for Proxmox, as in the example below:
2. Save and exit the file.
3. Restart your network service for changes to take effect.
The NAT networking mode is now enabled.
Tidak ada komentar:
Posting Komentar