Installation of KVM
Mandatory prerequisite:
1.
Linux 64 bit Operating System (The commands mentioend are for Ubuntu Linux
Operating System latest version).
Installing KVM (Hypervisor for Virtualization)
1. Please check if the Virtualization flag
is enabled in BIOS
Run
the command in terminal
egrep
-c 'vmx|svm)' /proc/cpuinfo
If
the result is any value higher than 0, then virtualization is enabled.
If
the value is 0, then in BIOS enable Virtualization – Consult system
administrator
for
this step.
2. To check if your OS is 64 bit,
Run
the command in terminal
uname
-m
If
the result is x86_64, it means that your Operating system is 64 bit Operating
system.
3. Few KVM packages are availabe with Linux
installation.
To
check this, run the command,
ls
/lib/modules/{press tab}/kernel/arch/x86/kvm
The
three files which are installed in your system will be displayed
kvm-amd.ko kvm-intel.ko kvm.ko
4. Install the KVM packages
1. Switch to root (Administrator) user
sudo -i
2. To install the packages, run
the following commands,
apt-get
update
apt-get install
qemu-kvm
apt-get
install libvirt-bin
apt-get
install bridge-utils
apt-get
install virt-manager
apt-get
install qemu-system
5. To verify your installation, run the
command
virsh
-c qemu:///system list
it shows output
Id Name State
-------------------------------------------
If Vms are running, then it shows name of
VM. If VM is not runnign, the system shows blank output, whcih means your KVM
installation is perfect.
6. Run the command
virsh
–connect qemu:///system list –all
7. Working with KVM
run
the command
virsh
version (this
command displays version of software tools installed)
nodeinfo
(this command displays your system information)
quit
(come out of the system)
No comments:
Post a Comment