virsh nodeinfo

To see information about a KVM node, run

Example

See virsh

virsh

virsh command is used to manage KVM vps. It is part of libvirt package.

http://libvirt.org

To list KVM virtual machines, run

Start a VM

To shutdown a VM, run

To delete a VM, run

Connect to Remote Server

This will take your SSH key.

List All VM

List All Running VM

Get Info About a VM

Change Memory of a VM

Find

Replace With

Load configuration

Start VM

See kvm

LXD container snapshot and restore

lxc allow you to take snapshot, restore snapshot of a container.

Here we create a snapshot, then delete the /etc folder from the container. Now the container is useless. Restore the container from snapshot to get it work again.

lxc list containers

Install LXD on Ubuntu

LXD is tool to manage LXC (Linux Containers). lxd allow you to create and manage light weight linux containers, it is like docker, but more like an actual virtual machine. LXD is more user friendly than using LXC directly, have more features like clustering of servers.

On Ubuntu/Debian, run

Before you start using lxd, run

Just press enter for all questions. Defaults should work. lxd is demaon, only used one time during “lxd init”. After this, you will be using lxc command for everything.

To create a container, run

To list all containers, run

lxc list containers

To stop a VM, run

To start VM,

lxc

lxc is Linux Container, allow you to run light weight virtual servers on your computer.

It is better use LXD instead of LXC as LXD provide much easier to use interface to LXC.

To install lxc, run

To create a VM, use

To list VM, use command lxc-ls

To start a VM, run

To login to a VM, run

lxc-create

Delete a disk partition in VMWare ESXI

To delete a partition in VMWare ESXI, you can use command

First find out all disks available on your server using command

On my server, it show following

I want to delete the partition

To do this, i run

Here is help for partedUtil

VMWare ESXI Commands

To find vmware version, run

Example

To find IP address, run

See VMWare esxcli