sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service
I/OAT DMA Engine | ? | https://en.wikipedia.org/wiki/I/O_Acceleration_Technology |
SRV/IOV Global Enable | Enabled | https://en.wikipedia.org/wiki/Single-root_input/output_virtualization |
X2Apic | Enabled | https://en.wikipedia.org/wiki/Advanced_Programmable_Interrupt_Controller |
IBM lab tests show that enabling the x2APIC support for Red Hat Enterprise Linux 6 guests can result in 2% to 5% throughput improvement for many I/O workloads.
numactl --hardware
When possible, create smaller VMs, instead of “Monster” VMs, that fit into a single NUMA node.
echo 100000 > /sys/block/sdX/queue/nr_requests
rbd --pool ceph-pool snap ls vm-100-disk-1
rbd snap rm ceph-pool/vm-100-disk-1@vzdump
sysprep.exe [/oobe | /audit] [/generalize] [/reboot | /shutdown | /quit] [/quiet] [/unattend:answerfile]
qemu-img convert -O qcow2 disk.vhdx /var/lib/vz/images/112/vm-112-disk-1.qcow2
/etc/sysctl.conf
net.ipv4.tcp_congestion_control=bbr
/etc/network/interface
pre-up ip link set <interface name> mtu 9000
post-up ip link set eth2 mtu 9000 && ip link set eth3 mtu 9000 && ip link set bond1 mtu 9000
Instantly ip link set <interface name> mtu 9000
shutdown: stops VMs, then move them to other nodes
reboot: stops VMs, put the into freeze state
qemu-img check -r all disk.vhdx qemu-img convert -O qcow2 disk.vhdx output.qcow2
Proxmox “no subscription” patch
/usr/share/pve-manager/ext6/pvemanagerlib.js
Modify
-if (data.status !== 'Active') { +if (false) {
System limits Hints for Redhat Linux
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
pvecm create YOUR-CLUSTER-NAME
pvecm status
pvecm add IP-ADDRESS-CLUSTER (from new node)
pvecm nodes
pvecm delnode NAME
ext3 have better performance, ext4 much faster fsck.
/etc/default/pve-cluster so that DEAMON_OPTS="-l"
(set local mode) and reboot
or try.
systemctl stop pve-cluster pmxcfs -l
/etc/network/interfaces /etc/hosts /etc/pve/cluster.conf
edit nano /etc/apt/sources.list and add public repo
# PVE pve-no-subscription repository provided by proxmox.com, NOT recommended for production use deb http://download.proxmox.com/debian stretch pve-no-subscription
edit nano /etc/apt/sources.list.d/pve-enterprise.list
disable enterprise by hash #
apt-get update && apt-get dist-upgrade
Clean directory /var/lib/rrdcached/* then restart.
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
Approx. 8GB
datacenter.cfg
migration: network=172.24.16.1/24,type=insecure
/etc/ksmtuned.conf
Cache -> Writeback Discard on -> LVM Thin
Set noop or deadline
/dev/X /c ext4 defaults,noatime,nodiratime,nobh,commit=40,barrier=0,data=writeback 0 2
Edit harddisk setting and check “discard”
#!/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
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
pct create 128 /mnt/pve/synology-vm/template/cache/aws-2-standard-amd64.tar.gz --arch amd64 --hostname amazon --rootfs ceph-rbd:128 --memory 1024 --cores 2 --ostype unmanaged --unprivileged 1
qemu-img convert -f qcow2 -O raw image.qcow2 image.raw