User Tools

Site Tools


proxmox

OpenVZ / PROXMOX Tips

Proxmox “no subscription” patch
/usr/share/pve-manager/ext6/pvemanagerlib.js Modify

-if (data.status !== 'Active') {
+if (false) {

System limits Hints for Redhat Linux

Set ULIMIT

When you are using large JAVA applications, Databases
in Proxmox Hypervisor edit /etc/security/limits.conf

*    soft nofile 65535
*    hard nofile 65535
root soft nofile 65535
root hard nofile 65535
*    soft stack unlimited
*    hard stack unlimited
root soft stack unlimited
root hard stack unlimited
*    soft memlock unlimited
*    hard memlock unlimited
root soft memlock unlimited
root hard memlock unlimited

Cluster

pvecm create YOUR-CLUSTER-NAME
pvecm status
pvecm add IP-ADDRESS-CLUSTER (from new node)
pvecm nodes
pvecm delnode NAME

ext3 vs ext4

ext3 have better performance, ext4 much faster fsck.

How to edit Proxmox config without quorum

/etc/default/pve-cluster so that DEAMON_OPTS="-l"

(set local mode) and reboot
or try.

systemctl stop pve-cluster
pmxcfs -l 

Change node IP address

/etc/network/interfaces
/etc/hosts
/etc/pve/cluster.conf

Update

edit nano /etc/apt/sources.list

deb http://ftp.debian.org/debian jessie main contrib

# PVE pve-no-subscription repository provided by proxmox.com, NOT recommended for production use
deb http://download.proxmox.com/debian jessie pve-no-subscription


# security updates
deb http://security.debian.org/ jessie/updates main contrib

edit nano /etc/apt/sources.list.d/pve-enterprise.list
disable enterprise by hash #

apt-get update && apt-get dist-upgrade

Graphs Problems

Clean directory /var/lib/rrdcached/* then restart.

Network Bond

1) Remove vmbr0
2) Create bond0
3) Assign eth0 eth1 eth2 etc + Balance-RR (Switch support 2Gbit / up-down) or Balance-TLB (any switch 2Gb up / 1Gb down)
4 Create vmbr0 set IP and Bridge ports bond0


cat /proc/net/bonding/bond0

Root minimum size

Approx. 8GB

Speedup migration

datacenter.cfg

migration_unsecure: true

KSM Sharing default at 50% used

/etc/ksmtuned.conf

KVM IO

Cache -> Writeback
Discard on -> LVM Thin

Disable the USB tablet device

Do not use balloon driver

IO Scheduler in KVM

Set noop or deadline

Mount ext4 in KVM

/dev/X /c ext4    defaults,noatime,nodiratime,nobh,commit=40,barrier=0,data=writeback 0 2

SSD / LVM-Thin

Edit harddisk setting and check “discard”

Check IOMMU Support

#!/bin/sh
if [ $(dmesg | grep ecap | wc -l) -eq 0 ]; then
  echo "No interrupt remapping support found"
  exit 1
fi

for i in $(dmesg | grep ecap | awk '{print $NF}'); do
  if [ $(( (0x$i & 0xf) >> 3 )) -ne 1 ]; then
    echo "Interrupt remapping not supported"
    exit 1
  fi
done

Single node

You can disable

systemctl disable zed
systemctl disable zfs
systemctl disable zfs-import-scan
systemctl disable zfs-mount
systemctl disable zfs-share
systemctl disable zfs-zed

pve-ha-crm
pve-la-hrm
pve-firewall
pvefw-logger

Convert QCOW2 to RAW

qemu-img convert -f qcow2 -O raw image.qcow2 image.raw
proxmox.txt · Last modified: 2016/11/08 14:44 by Jan Forman