proxmox-6

Proxmox 6 disable No valid subscription notice

To disable No valid subscription notice from proxmox, edit file

Find

This is on line 380. inside function checked_command

Replace with

Resart pveproxy

virt-manager kvm

virt-manager

virt-manager is a GUI tool to manage virtual machines.

On CentOS desktop, install it with

For installing on Ubuntu, see Install virt-manager on Ubuntu

Connect to remote KVM server

To connect to remote KVM server from virt-manager, Go to File > Add Connection

virt-manager kvm

If SSH port is not 22, use IP:PORT format to connect to KVM installation.

Once connected, you will see all VMs. Here we have 1 VM with name “foo”

You can double click on a VM to access its console/desktop.

virt-manager console

See kvm

VMWare ESXi

Clone VM on VMware ESXi using vmkfstools

Free version of VMware ESXi don’t provide option to clone virtual machine. If you want to clone a VM, you need to purchase expensive vSphere license.

There is a work around for this, you need to clone disk of an existing Virtual machine using vmkfstools.

To make clone of a VM disk, SSH into your VMWare ESXi server as user root. Then create clone of disk with

For new VM, i created a directory. Path to datastore directory may be differnt on your server, you can find it using “df -h” command and checking the file system.

Shutdown the Virtual Machine you want to clone the disk from. Run

In screenshot below, i first tried to clone with out creating destination folder. That resulted in error. After creating destination folder, vmkfstools command worked.

vmkfstools

Creating VM using cloned disk

Login to VMware ESXi web interface. Create a new VM. On the step where you select hardware, delete existing Disk. Add a new disk, browse and select the newly created clone disk. In this case – “/vmfs/volumes/disk2/ubuntu-clone/ubuntu-clone.vmdk”

VMWare ESXi

Once the VM creation is finished, you will be able to start the new VM. You can create a VM, then use it as template for creating new virtual machines.

See VMWare

virsh list

To list all VM on a KVM server, run

Example

See virsh

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.