Install virt-manager on Ubuntu
virt-manager is a GUI tool used to manage KVM virtial machines. To install virt-manager on Ubuntu, run
virt-manager is a GUI tool used to manage KVM virtial machines. To install virt-manager on Ubuntu, run
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 … Read more
To list all VM on a KVM server, run Example To view all Virtual machines including stopped VM’s, use –all option. To see all network See virsh
To see information about a KVM node, run virsh nodeinfo Example root@s3-m12:~# virsh nodeinfo CPU model: x86_64 CPU(s): 8 CPU frequency: 1861 MHz CPU socket(s): 1 Core(s) per socket: 4 Thread(s) per core: 2 NUMA cell(s): 1 Memory size: 16423092 KiB root@s3-m12:~# See 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 a Remote Server You need SSH Key based authentication setup. List All VM List All Running VM Get Info … Read more
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. To list all snapshots of a container, run To delete a snapshot, run Container snapshots are … Read more
To create LXD containers, run LXD is a tool to manage LXC (Linux Containers). lxd allow you to create and manage lightweight Linux containers, it is like docker, but more like an actual virtual machine. LXD is more user-friendly than using LXC directly, has more features like clustering of servers. On Ubuntu/Debian, run Before you … Read more
LXC is Linux Container, allows you to run lightweight virtual servers on your computer. It is better use LXD instead of LXC. LXD provides a much easier-to-use interface to LXC. Where LXC Container files stored? Create lxc container with lxc-create lxc error Unable to fetch GPG key from keyserver LXC container networking not working Static … Read more
lxc-create is used to create lxc container. To create a container, run lxc-create -t download -n CONTAINER_NAME_HERE This will list all available containers. You can select the OS you want to use. To specify OS, you can use the following examples lxc-create -t download -n mycontainer-1 — -d ubuntu -r focal -a amd64 lxc-create -t … Read more
To delete a partition in VMWare ESXI, you can use command partedUtil First find out all disks available on your server using command ls /vmfs/devices/disks/ On my server, it show following [root@ns3048991:~] ls /vmfs/devices/disks/ t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________ vml.01000000004e34473354343459202020202020202020202020484753542048 t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________:1 vml.01000000004e34473354343459202020202020202020202020484753542048:1 t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________:2 vml.01000000004e34473354343459202020202020202020202020484753542048:2 t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________:3 vml.01000000004e34473354343459202020202020202020202020484753542048:3 t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________:5 vml.01000000004e34473354343459202020202020202020202020484753542048:5 t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________:6 vml.01000000004e34473354343459202020202020202020202020484753542048:6 t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________:7 vml.01000000004e34473354343459202020202020202020202020484753542048:7 t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________:8 vml.01000000004e34473354343459202020202020202020202020484753542048:8 t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________:9 vml.01000000004e34473354343459202020202020202020202020484753542048:9 t10.ATA_____HGST_HUS726020ALA610____________________N4G3TSMY____________ vml.01000000004e34473354534d59202020202020202020202020484753542048 t10.ATA_____HGST_HUS726020ALA610____________________N4G3TSMY____________:1 … Read more