Force stop xen vm using command line Rumi, February 6, 2023July 8, 2023 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 vm-shutdown uuid=<UUID from step 3> force=true If that just hangs, use CONTROL+C to kill it off and try to reset the power state. The force is required on this command xe vm-reset-powerstate uuid=<UUID from step 3> force=true If the VM is still not shutdown, we may need to destroy the domain. Run this command to get the domain id of the VM. It is the number in the first row of output. The list will be the VMs on the host. Dom0 will be the host itself and all numbers after are running VM list_domains Now run this command using the domain ID from the output of step 7 xl destroy <DOMID from step 7> To start the VM use- xe vm-start name-label=$VMN Related Administrations Configurations (Linux) XCP-NG XCP-NGXen
Wget, Apt and Git behind proxy December 22, 2020 For Wget Add/Comment out below line(s) in file ~/.wgetrc or /etc/wgetrc: http_proxy = http://[Proxy_Server]:[port] https_proxy = http://[Proxy_Server]:[port] ftp_proxy = http://[Proxy_Server]:[port] For Apt Create a new configuration file named proxy.conf.sudo touch /etc/apt/apt.conf.d/proxy.conf Open the proxy.conf file in a text editor.sudo vi /etc/apt/apt.conf.d/proxy.conf Paste it as following: Acquire { HTTP::proxy “http://127.0.0.1:8080”; HTTPS::proxy… Read More
Upgrading WordPress Core Manually April 14, 2022April 14, 2022 First create a full backup of your website. This is very important in case you make a mistake. Download the newest WordPress ZIP file from wordpress.org. Unzip the file into a directory on your local machine or in a separate directory on your website. Deactivate all of the plugins on… Read More
NMAP Security Scanner on Linux August 21, 2015February 11, 2017 First of all, you should get the “nmap” package installed in your system. On CentOS yum install nmap On Debian apt-get install nmap On Ubuntu sudo apt-get install nmap NMAP Commands: sudo nmap -sS [IP address] or [website address] sudo nmap -O –osscan-guess [IP address] or [website address] sudo nmap… Read More