Ran into an issue where esxtop was basically displaying a bunch of CSV data that was hard to make sense of in a terminal.
From reading here https://kb.vmware.com/s/article/2001448
It appears that the issue is that the environment TERM variable is not specified.
To fix, specify the terminal to use
To get a list of terminals available, run the following
find /usr/share/terminfo -type f
Log into the VM through ssh or XenCenter. Next remove xs-tools with yum
yum remove -y `rpm -qa | grep xe-guest`
reboot the machine.
XenServer tools should now be removed.
To increase a Windows VM disk size you’ll first need to shut down the VM and then increase the disk size from XenCenter. When you boot back up into the VM, the extra space shows up as unallocated. All that needs to be done is the main partition needs to be extended.
Open up the Windows Disk Management Utility. You can do this by clicking on the start button, typing in disk management and hit enter. This will bring up the Disk Management program.
In disk manager, you should see the Unallocated space at the end of Disk 0, i.e. your main drive. Right click on your main partition (C:) and click Extend Volume. You will be presented with a wizard that will walk you through extending your disk.
Before increasing the VM’s disk size.
The unallocated space is the extra space that we added via XenCenter. Right click on the middle partition (C:), and click extend.
After were are finished extending the partition, we see that our main partition is about 8GB larger.
Recovery Mode can be helpful if you need to do certain task like operate on the VM with the disk unmounted or you need to reset a root password.
All of the following is done through XenCenter
To boot the VM into recovery mode all you have to do is
- Shutdown the VM
- Insert boot media i.e. (DVD, cd, iso image, etc.) into DVD Drive 1:
- Start VM in Recovery Mode. In the main menu click on VM –> Start/Shut Down –> Start in Recovery Mode
When the VM boots up it will boot off of whatever is in DVD Drive 1.
We can list the VM’s by running
You can export a VM using either the name of the VM or by using the uuid. The above command list both so you can use which ever one you want.
You will also need to shutdown the VM your going to export.
xe vm-shutdown vm=ubuntu
Export by Name
The name of the VM is”ubuntu”.
xe vm-export vm=ubuntu filename=/backup/ubuntu.xva
Export using uuid
xe vm-export uuid=b24dcd65-5e12-4576-2f39-46ecab9362ab filename=/backup/ubuntu.xva
xe vm-import vm=centos5 filename=/backup/ubuntu.xva