Contents[Show]

1. Intro

My first steps into serious virtualization, necessitated because my current, and only, physical server runs CentOS 6, which will be end-of-life 2020-11-30.

VMware ESXi refused to play nicely with my lab-server, so looked to Proxmox for further endeavours into virtualization at home.

 

2. Notes

Notes are in no particular order, but usually noted down as they arise.

 

2.1. Proxmox host

2x Intel Xeon This email address is being protected from spambots. You need JavaScript enabled to view it. /16 cores)
Perc 6i
6x 2 TB SAS Seagate Constellation, RAID5, 12 GB total; 9 TB usable
1x CDROM
24 GB RAM

  • The filesystem used upon Proxmox install was XFS.
  • Proxmox was installed on the raid array, as I wasn't able to install it to the internal USB-stick.
  • The swap partition was 2 GB.

 

2.2. Extra configs on proxmox host

  • # apt install ntp htop ncdu lsb-release
  • # nano /etc/ntp.conf
  •  NTP
    • server 192.168.0.1 iburst
    • pool 0.se.pool.ntp.org iburst
    • pool 1.se.pool.ntp.org iburst
    • pool 2.se.pool.ntp.org iburst
    • pool 3.se.pool.ntp.org iburst
      • See reference [8].
  • Monitoring PERC raids; see Using perccli with Dell PE R710 and Perc 6/i.

 

2.3. No guest agent configured

See ref's [4,5].

 

2.4. Check Proxmox repos

Specifically that the no-subscription repo is active.

See reference [7].

 

2.5. Template LAMP-Ubuntu-18.04

1 CPU
1024 MB RAM
32 GB disk
DHCP

 

2.5.1. Upload Ubuntu Server-ISO to Proxmox repository

Upload via web-GUI is possible too, but I encountered a problem with ISO's uploaded this way - the ISO wasn't bootable for some reason after upload.

The ISO is visible in the web-GUI; Folder view/Storage/local/Content.

root@dragonborn:~# cd /var/lib/vz/template/iso/
root@dragonborn:/var/lib/vz/template/iso# wget http://cdimage.ubuntu.com/releases/18.04.4/release/ubuntu-18.04.4-server-amd64.iso

 

2.5.2. Installed stuff and general settings

  • LAMP (Ubuntu Server 18.04.4 LTS, Apache 2.4.29, MySQL 5.7.29, Php 7.2)
  • Tasksel at install: choose LAMP server and OpenSSH server.
  • After install: apt install qemu-guest-agent htop ncdu
  • UFW config:
    • # ufw default deny incoming
      # ufw default allow outgoing
      # ufw allow ssh
      # ufw allow http
      # ufw allow https
      # ufw allow from 192.168.0.0/24
      # ufw enable
      # ufw status
  •  ...

 

2.6. Uninstall ceph

Follow the instructions very carefully, or you may end up with a broken system!

See reference [6].

 

2.7. Config for root-user on Proxmox host

  • Edit /root/.bashrc and enable aliases as needed.

 

 

3. Errors and problems and how to resolve them 

3.1. Can't shutdown or stop a VM

https://forum.proxmox.com/threads/bug-vm-dont-stop-shutdown.9020/post-51154

 

3.2. VM is locked (snapshot-delete)

https://forum.proxmox.com/threads/cannot-remove-snapshot-vm-is-locked-snapshot-delete.37567/

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4. Sources

  1. https://endoflife.software/operating-systems/linux/centos
  2. https://www.howtoforge.com/tutorial/how-to-install-proxmox-ve-4-on-debian-8-jessie/
  3. http://cdimage.ubuntu.com/releases/18.04.4/release/
  4. https://jonspraggins.com/the-idiot-installs-the-qemu-agent-on-a-windows-10-vm-on-proxmox/
  5. https://pve.proxmox.com/wiki/Qemu-guest-agent#Linux
  6. https://forum.proxmox.com/threads/remove-ceph.59576/
  7. https://pve.proxmox.com/wiki/Package_Repositories#sysadmin_no_subscription_repo
  8. https://www.pool.ntp.org/zone/se