Start a new detach session using tmux
In order to start a tmux session background, following command can be used
tmux new-session -d [-s <session_name>]
In order to start a tmux session background, following command can be used
tmux new-session -d [-s <session_name>]
If the VM got in error and can not do migration, then the VM needs to exit from error state.
ha-manager set vm:100 --state disabled
Note: The <application>
below is Word
, Excel
, PowerPoint
File > Options > Save and uncheck the box next to AutoSave OneDrive and SharePoint Online files by default on <application>
pve-no-subscription
In order to update PVE, server needs to be under pve-no-subscription
Following error occurred if the subscription hasn't changed.
starting apt-get update
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://ftp.debian.org/debian bullseye InRelease
Get:3 http://ftp.debian.org/debian bullseye-updates InRelease [39.4 kB]
Err:4 https://enterprise.proxmox.com/debian/pve bullseye InRelease
401 Unauthorized [IP: 51.79.159.216 443]
Reading package lists...
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/bullseye/InRelease 401 Unauthorized [IP: 51.79.159.216 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve bullseye InRelease' is not signed.
TASK ERROR: command 'apt-get update' failed: exit code 100
Got to Updates => Repositories
, add No-Subscription
in the list, and disable pve-enterprise
subscription.
After reboot PVE, following error occurred.
# systemctl status pve-cluster
...
Jun 26 09:33:26 pve01 pmxcfs[3506]: [quorum] crit: quorum_initialize failed: 2
Jun 26 09:33:26 pve01 pmxcfs[3506]: [quorum] crit: can't initialize service
Jun 26 09:33:26 pve01 pmxcfs[3506]: [confdb] crit: cmap_initialize failed: 2
Jun 26 09:33:26 pve01 pmxcfs[3506]: [confdb] crit: can't initialize service
Jun 26 09:33:26 pve01 pmxcfs[3506]: [dcdb] crit: cpg_initialize failed: 2
Jun 26 09:33:26 pve01 pmxcfs[3506]: [dcdb] crit: can't initialize service
Jun 26 09:33:26 pve01 pmxcfs[3506]: [status] crit: cpg_initialize failed: 2
Jun 26 09:33:26 pve01 pmxcfs[3506]: [status] crit: can't initialize service
...
# journalctl -u corosync.service
...
Jun 26 09:26:17 pve01 corosync[1826]: [MAIN ] failed to parse node address 'pve01.xx.xx'
Jun 26 09:26:17 pve01 corosync[1826]: [MAIN ] Corosync Cluster Engine exiting with status 8 at main.c:1417.
Jun 26 09:26:17 pve01 systemd[1]: corosync.service: Main process exited, code=exited, status=8/n/a
Jun 26 09:26:17 pve01 systemd[1]: corosync.service: Failed with result 'exit-code'.
Jun 26 09:26:17 pve01 systemd[1]: Failed to start Corosync Cluster Engine.
...
Change ring0_addr pve01.xx.xx
of node in pve01 corosync.conf
to IP address.
After node pve01 in Proxmox VE cluster crushed, reinstall new pve01 in same hardware.
This just follows the normal installation steps.
Tried many tries, end up using following steps to add the replacement node.
pvecm delnode <old_node>
ssh-keygen -f "/etc/ssh/ssh_known_hosts" -R "<old_node>"
ssh-keygen -f "/root/.ssh/known_hosts" -R "<old_node>"
pvecm add <existing_node>
pvecm updatecerts
Edit file /etc/pve/corosync.conf
change the vote number.
zpool import -f <old_local_pool>
Run following commands to check and set acceptable votes in existing node in the cluster
pvecm status
pvecm expected 3
pvecm delnode pve01
ssh-keygen -f "/etc/ssh/ssh_known_hosts" -R "pve01"
ssh-keygen -f "/root/.ssh/known_hosts" -R "pve01"
or manual edit two files.
Run following command in NEW NODE
pvecm add <existing_node>
pvecm updatecerts
Make sure SSH Key authentication is working
cp /etc/pve/nodes/pve02/pveproxy-ssl.* /etc/pve/nodes/pve01
local-zfs
filesystemIf the previous node was using zfs, then now change to ext4, local-zfs
needs to be removed.
vi /etc/pve/storage.cfg
If need to disable cluster, following command can be used
systemctl stop pve-cluster
/usr/bin/pmxcfs -l
systemctl restart pve-cluster
Cluster Manager
Wiki - Cluster Manager
Correct procedure for zpool removal
VM in Proxmox was locked as Config Locked (Suspended). To unlock it, run following command in shell
qm unlock <vm_id>
If two or more nodes down in Proxmox cluster, then user can not login to Proxmox web page. In order to login, the number of Expected votes
needs to be changed.
This change is only temporary, and cannot be changed to smaller than current Total votes
.
Run following command to check status
pvecm status
Run following command to change Expected votes
pvecm expected 2
Change quorum_votes
in file /etc/pve/corosync.conf
, to set different quorum vote for each node.
The vote of node can be 0, if this node is only a test node in the cluster.
The vote of node can be more than 1, if the node has more important role, such as TrueNAS running.
The reason to move Proxmox VE server to another machine is, I got issue when booting up Proxmox installation USB disk from a MacBook Pro. So I decided to use existing Proxmox VE server USB disk boot from this MacBook Pro.
The previous Proxmox Virtual Environment USB disk, must be an UEFI disk, because MacBook Pro is a UEFI machine.
The network configuration /etc/network/interfaces
needs to be changed due to different network interface name.
First, change the interface name, which can be found using ip a
command, the two lines need to be updated.
auto lo
iface lo inet loopback
iface enp0s10 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.1.205/24
gateway 192.168.1.254
bridge-ports enp0s10
bridge-stp off
bridge-fd 0
The WIFI interface can be disabled if it is not used.
#iface wlp1s0 inet manual
To convert Ubuntu to Proxmox Virtual Environment, the migration is required.
The Ubuntu server has following configuration
/boot
and /boot/efi
filesystems./
is on iSCSI diskDuplicating USB device partition to 2GB VM disk
mkfs.vfat /dev/sda1
mkfs.btrfs /dev/sda2
/boot/efi
If don't change UUID for /boot/efi
, later will need to change /etc/fstab
file after reboot.
/boot
Using following command to duplicate UUID for BTRFS filesystem
Retrieve partition from USB Ubuntu
sfdisk -d /dev/sda
Create partitions on 2GB VM disk
Duplicate UUID of partition /boot/efi
Duplicate UUID of partition /boot
btrfstune -U /dev/sda2
ip a
mount /dev/sda2 /boot
/boot/grub/grub.cfg
Change all interface names in the grub.cfg.
linux /vmlinuz-5.4.0-113-generic ... ip=192.168.1.99::192.168.1.254:255.255.255.0:fish:ensXX::192.168.1.55