Set I/O Priority for Proxmox/ OpenVZ Containers

Set I/O Priority for Proxmox/ OpenVZ Containers

Category : How-to

Get Social!

proxmox logo gradSince the 2.6.18-028stable021 kernel, it has been possible to set the I/O priority of an OpenVZ container. It is not currently possible to set any I/O limits for containers, only the priority. If you require I/O limits you should use KVM.

The higher the priority is for a container, the more time the container will have for using disks. You can choose between 0 – 7 inclusive, the default value is 4. The higher the value you use, the more I/O time your container will receive. Remember, as this is a priority system each container setting is relative to another. For example, if you set all your containers to priority 7, they will still receive the same amount of I/O time each.

To set the I/O priority of an OpenZV container, login to the host using the console and use the below command.

vzctl set [VM ID] --ioprio [Priority] --save

Replace [VM ID] with the ID of the container you would like to modify, and replace [Priority] with the priority value to use between 0 and 7. The below example sets the priority of container 200 to 7.

vzctl set 200 --ioprio 7 --save

You can also edit the config file directly. In Proxmox this is saved in /etc/pve/openvz/[VMID].conf

Add, or change the existing entry in the conf file to: IOPRIO=”[Priority]”

You will need to reboot the container for the changes to take effect.

 


How much disk space does Proxmox 2.x require?

Category : How-to

Get Social!

Proxmox can be installed on very little disk space. I tested Proxmox version 2.2 and installed it on a 10GB hard disk and Proxmox installed without an issue. On an earlier test, a 2GB hard disk was not sufficient and the installer showed an error.

The official webpage for Proxmox hardware requirements does not state a required or recommended size. I would suggest that more is better because each VM or OpenVZ container will be stored on your hard disk. If you have multiple hard disks, you should always put your OpenVZ containers and virtual disks on the fastest one. A common setup with just two disks is detailed below.

Disk A
  • Proxmox install
  • ISO images
  • OpenVZ templates
  • Backups
Disk B
  • OpenVZ containers
  • Virtual disks

This setup should reduce the time it takes to backup and create your OpenVZ containers and virtual machines as the reads and writes are on different disks. In addition it keeps your backups on a separate disk to the OpenVZ containers and virtual disks so if one disk fails, you will still have a copy.

For a test setup, two 250GB disks would be ample and enable you to try Proxmox and create multiple guests. For a production setup, the size of the disks would depend on the work load and volume of guests required. One thing is for sure though, faster is better. With SSD disks you will get the best performance with near zero seek time however they cost the most per gigabyte. For mechanical drives, use 15k rpm disks in a raid 0, or raid 10 for best speed and redundancy.


Proxmox 2.2 is now available

Category : Tech News

Get Social!

A new version of Proxmox is now available to download. If you are new to Proxmox you can download the 2.2 version ISO from http://www.proxmox.com/downloads/proxmox-ve/iso-images/132-proxmox-ve-2 or you can simply upgrade your existing Proxmox 2.1 install.

How to upgrade from Proxmox 2.x

Before upgrading to Poxmox 2.2, make sure all your VM’s have been stopped. Run the below commands on each server in your cluster.

apt-get update
apt-get dist-upgrade

Restart all Proxmox servers to complete the installation.

New features of Proxmox 2.2 include:

  • Support for up to 32 KVM network adapters
  • Live snapshot support for KVM images
  • Updated qemu-kvm to 1.2.0
  • New PVE Kernel 2.6.32-042
  • New option for SCSI controller in KVM

You can see the full change log at http://pve.proxmox.com/wiki/Roadmap#Proxmox_VE_2.2

Take a look at the below screenshots for some of the visible changes.

SCSI hardware selection:

Snapshot manager


Proxmox OpenVZ CPU units

Tags :

Category : How-to

Get Social!

openvz-logo-150px_new_3OpenVZ containers have a mechanism in place to prioritise CPU resource assignment. You can make sure that your most critical guests have the CPU resource they require.

In Proxmox you can set the CPU units attribute through the web GUI by clicking on the container to change, selecting the Options tab and double clicking CPU units.

This setting dictates the minimum amount of CPU time, or CPU units, the guest will have. Before you change the setting you will need to find out how many CPU units your system has available. Run vzcpucheck to find out how many CPU units you have available.

Power of the node: 1360020 indicates the maximum CPU units your system has available for use. You can now distribute these CPU units to your guests however, this setting should be used as a minimum amount of CPU time your guest will have. The guest will only use the allocated resource if it needs it, otherwise will be available for other guests.

For example, if you wanted to give a container 20% of the total CPU time, you would would enter 272004.

1360020 * 20% = 272004
(Total units) * (desired %)

This value can be entered into the Proxmox web GUI under Options on the container screen.

proxmox cpu units

If you prefer the command line, on the host you can use the vzctl set command:

vzctl set 101 --cpuunits 272004 --save

Updates for Proxmox (Debian security updates)

Category : Tech News

Get Social!

There are new updates for Proxmox released today for common setups but don’t get too excited, these are from the Debian repository and are just security releases.

After testing these should be applied straight away.

Some of the more common packages are listed below. Your Proxmox setup may be different depending on what software you have installed.

  • bind9-host
  • dnsutils
  • libbind9-60
  • libdns69
  • libisc62
  • libisccc60
  • libisccfg62
  • liblwres60

Install Proxmox

Category : How-to

Get Social!

What is Proxmox?proxmox logo grad

Proxmox is a hypervisor which can host hardware virtualized virtual machines as well as OpenVZ containers. See the OpenVZ wiki for more information on containers and how they differ to the hardware virtualisation environments.

Compare Proxmox against other Hypervisors: http://www.proxmox.com/products/proxmox-ve/comparison

System Requirements

Recommended

  • Dual or Quad Socket Server (Quad/Six/Hexa Core CPUs)
  • CPU: 64bit (Intel EMT64 or AMD64)
  • Intel VT/AMD-V capable CPU/Mainboard (for KVM Full Virtualization support)
  • 8 GB RAM is good, more is better (grab as much as possible)
  • Hardware RAID with batteries protected write cache (BBU) or flash protection
  • Fast hard drives, best results with 15k rpm SAS, Raid10
  • Two Gbit NIC (for bonding), additional NIC´s depending on the preferred storage technology and cluster setup
  • Fencing hardware (only needed for HA)

Minimum (for testing)

  • CPU: 64bit (Intel EMT64 or AMD64)
  • Intel VT/AMD-V capable CPU/Mainboard (for KVM Full Virtualization support)
  • Minimum 1 GB RAM
  • Hard drive 10 GB
  • One NIC

Download Proxmox

Use the below URL to find and download the latest version of Proxmox ISO. You will then need to burn the ISO to a blank CD or DVD.

http://www.proxmox.com/downloads/category/iso-images-pve

Install Proxmox

Make sure the CD Rom is in the CD tray and turn on your computer. You must have the CD Rom as one of the first bootable devices which can be set in your BIOS.

When the installation CD loads, you will be presented with the below screen. Press Return to begin loading the installer.

The next screen is the License Agreement. Click on Accept to continue.

If you only have one hard disk in your machine, simply click Next at the below screen.

If you have more than one disk, select the disk to install Proxmox to and click Next.

Enter your Country which should set your Time zone and Keyboard layout to match. Then click Next.

Enter a Password for the root account and E-Mail. Then click Next.

Enter the Hostname (FQDN) for the proxmox server as well as the IP AddressNetmaskGateway and DNS Server. If you have DHCP on your network, these settings will be filled in with values from the DHCP server.

Click Next to begin installing Proxmox.

When the install completes, click Reboot to restart your machine and complete your Proxmox install.

When your server has rebooted you will be sent to the login screen. Here you can use the account root and the password you entered during the installation.

Congratulations – your Proxmox server is ready to use. You can access the web interface using the IP address you entered during the installation, https and port 8006.

Example: https://10.10.10.200:8006/

 


Visit our advertisers

Quick Poll

Do you use ZFS on Linux?

Visit our advertisers