Cloning KVM virtual machine using CLI Rumi, July 21, 2021 To clone your VM and spawn new instances in KVML # virt-clone –original {Domain-Vm-Name-Here} –auto-clone OR # virt-clone –original {Domain-Vm-Name-Here} –name {New-Domain-Vm-Name-Here} –auto-clone OR # virt-clone –original {Domain-Vm-Name-Here} \ –name {New-Domain-Vm-Name-Here} –file {/var/lib/libvirt/images/File.Name.here} Continue Reading
How to remove Virtualbox extpack Rumi, May 19, 2021 The following commands show examples how to list extension packs and remove one: $ VBoxManage list extpacks Extension Packs: 1 Pack no. 0: Oracle Virtual Machine VirtualBox Extension Pack Version: 4.1.12 Revision: 77218 Edition: Description: USB 2.0 Host Controller, VirtualBox RDP, PXE ROM with E1000 support. VRDE Module: VBoxVRDP Usable:… Continue Reading
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