Cloning KVM virtual machine using CLI Rumi, July 21, 2021 To clone your VM and spawn new instances in KVML # virt-clone --original {Domain-Vm-Name-Here} --auto-clone OR # virt-clone --original {Domain-Vm-Name-Here} --name {New-Domain-Vm-Name-Here} --auto-clone OR # virt-clone --original {Domain-Vm-Name-Here} \ --name {New-Domain-Vm-Name-Here} --file {/var/lib/libvirt/images/File.Name.here} Examples: Cloning Guests with virt-clone First VM/domain with devices to clone must be paused or shutoff. To gracefully shutdown a domain named ubuntu-box1, run: $ sudo virsh shutdown ubuntu-box1 OR you can paused it as follows: $ sudo virsh suspend ubuntu-box1 $ virsh list Sample outputs: Domain ubuntu-box1 suspended Id Name State ---------------------------------------------------- 1 freebsd running 5 ubuntu-box1 paused Let us generate a new guest name, and paths for new storage automatically for a vm called ubuntu-box1 $ sudo virt-clone --original ubuntu-box1 --auto-clone Sample outputs: WARNING Setting the graphics device port to autoport, in order to avoid conflicting. Allocating 'ubuntu-box-1-clone.qcow2' | 40 GB 00:00:04 Clone 'ubuntu-box1-clone' created successfully. The above command cloned the guest called “demo” on the default connection, auto generating a new name called ubuntu-box1-clone and disk clone path. You can start or resume original domain: $ sudo virsh start ubuntu-box1 OR $ sudo virsh resume ubuntu-box1 Next, start ubuntu-box1-clone, enter: $ sudo virsh start ubuntu-box1-clone Verify it: $ virsh list For better managibility you can install virt-manager and use mobaxtreme tool to connect to the virt-manager GUI on your PC.. Related Administrations KVM CentOSCentOS 7KVM
Fix: Unable to start TLS: SSL connect attempt failed error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed when connecting to ldap master.Cannot determine services – exiting September 1, 2018 My ZImbra 8.6 was throwing the following error once after my letsencrypt SSL got expired: Unable to start TLS: SSL connect attempt failed error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed when connecting to ldap master.Cannot determine services – exiting The Fix: In order to fix the problem you need to modify the following… Read More
How to setup vsftpd FTP with SSL on Ubuntu 12.04 December 7, 2015December 7, 2015 This tutorial teaches you, how to setup vsftpd server on Linux based dedicated Web server. The tutorial also teaches you how to add the ftp users and lock the directory to individual users(In this scenario,lock the users into their individual web directory). In Ubuntu 12.04, vsftpd with chrooted users gives the following… Read More
How to see time stamps in bash history? April 22, 2020 Is there any way I can see at what time the commands were executed from the bash history? We can see the order but is there any way I can get the time also? Bottom-Line: Execution time in the Bash history: HISTTIMEFORMAT=”%d/%m/%y %T ” # for e.g. “29/02/99 23:59:59” HISTTIMEFORMAT=”%F… Read More