KVM - Managing KVM based Virtual machines : Using CLI
Managing KVM based Virtual machines : Using CLI n this tutorial, we will learn to create new VM with ‘virt-install’ & managing KVM based Virtual machines in CLI using command line tool named ‘virsh’. Firstly, we will create a new Virtual machine using ‘virt-install’, Creating new virtual machine Virt-install is a command line tool used to create KVM based virtual machines. To create a new virtual machine, run the following command $ virt-install –name=Win7 –disk path=/mnt/win7/Vol1.img –graphics spice –vcpu=2 –ram=2048 –location=/home/dan/Windows_7_pro.iso –network bridge=br0 Here virt-install is the command to create new VM, –name is the name of VM, –disk path , is the storage path for VM, –graphics , is the way to connect to VM (usually its spice), –vcpu, number of CPUs for the VM, –ram, is amount of memory for VM, –location , the source path of installation ISO, –network, is the bridge adapter to be used by VM> ...