Export/ Import VM to/from a backup file using command line on XenServer Rumi, April 18, 2021 Identify VM’s UUID We start by identifying a virtual machine we would lake to export to as a regular backup file. Run xe vm-list to list all available virtual machines and take a note of the virtual machine in question: # xe vm-list uuid ( RO) : 7371124f-7d4d-66b7-cbc7-a98b1457543e name-label (… Continue Reading
enable SNMP on Xen (XCP-NG) hypervisors Rumi, March 5, 2021 There are six steps to correctly configuring SNMP on your Citrix Xen hypervisor. These steps don’t require a system restart and are non-service affecting. To start, we assume you’re running Xen v6.x or v7.x, and are logged into the Xen CLI as root. 1. Enable the SNMP daemon Enable the… Continue Reading
Force Shutdown Xen VM Rumi, February 27, 2021 Instructions Disable High Availability (HA) so you don’t run into issues Log into the Xenserver host that is running your VM with issues via ssh or console via XenCenter Run the following command to list VMs and their UUIDs xe vm-list resident-on=<uuid_of_host> First you can try just the normal shutdown command with force xe… Continue Reading
Force Stop Proxmox LXC Rumi, November 21, 2020 First try to unlock the pct (assuming your troubled container is 101): pct unlock 101 if it works just stop and start again the vm. if it does’nt work (my case) try to stop with this lxc-stop –name 101 if it’s does’nt work (my case) you can force stop with… Continue Reading
Remove Proxmox Subscription Notice Rumi, November 1, 2020 Copy and paste following command to the terminal (6.1 and up) sed -i.backup “s/data.status !== ‘Active’/false/g” /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service (6.2-11 and up) sed -i.backup -z “s/res === null || res === undefined || \!res || res\n\t\t\t.false/false/g” /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service (6.2-12 and up) Continue Reading
Virtualbox fixing VRDE on 0.0.0.0 instead 127.0.0.1 Rumi, October 21, 2020 By default, Remote Display only works on localhost / 127.0.0.1 and cannot be accessed by ip address or hostname. Check VRDE / Remote Display IP Address You can check VRDE / Remote Display ip address using the following methods: Open command prompt and run netstat -an |find /i “listening” or netstat -an |find /i “[PORT_NUMBER]” and you shall notice it is listening on 127.0.0.1:PORT. Continue Reading
Remove Node from Proxmox Cluster Rumi, September 9, 2020 Step 1 : Migrate all VMs to another active node Migrate all VMs to another active node. You can use the live migration feature if you have a shared storage or offline migration if you only have local storage. Step 2 : Display all active nodes Display all active nodes in… Continue Reading
Fix Proxmox (PVE) “can’t lock file ‘/var/lock/qemu-server/lock-xxx.conf’ – got timeout” (Proxmox can’t shutdown/stop virtual machine) (Proxmox kill/force stop virtual machine) Rumi, August 14, 2020 The Issue When trying to “Stop” or “Shutdown” virtual machine from Proxmox (PVE) web gui, the “Cluster log” shows end task UPID:pve:xxxxxxxx:xxxxxxxx:xxxxxxx:qmstop:xxx:root@pam: can’t lock file ‘/var/lock/qemu-server/lock-xxx.conf’ -got timeout end task UPID:pve:xxxxxxxx:xxxxxxxx:xxxxxxx:qmreboot:xxx:root@pam: VM quit/powerdown failed The Fix We can manually delete the lock from following path /run/lock/qemu-server # The file will… Continue Reading
Reclaim disk space from a sparse image file qcow2/ vmdk Rumi, July 23, 2020July 23, 2020 Sparse disk image formats such as qcow2 only consume the physical disk space which they need. For example, if a guest is given a qcow2 image with a size of 100GB but has only written to 10GB then only 10GB of physical disk space will be used. There is some… Continue Reading
Proxmox Cloud-Init OS template creation Rumi, July 2, 2020 Introduction In this guide we will go over creating a Proxmox KVM Template from a Cloud Image. This same process will work for any Cloud-Init Openstack based image type you can find online. Having done a number of these for our Proxmox based VPS service I wanted to post up… Continue Reading