Sunday, January 17, 2016

To run Red Hat KVM virtualization inside VMware workstation

On VMware, edit the virtual machine setting > Hardware tab > processor > check "Virtualize Intel VT-x/EPT or AMD-v/RVI".

To check whether the processor supports hardware virtualization:

# lscpu | grep -i virtualization

Virtualization:        VT-x

Note: VT-x for Intel processors and AMD-V for AMD processors.

The presence of this flag confirms that the processor on this host support hardware virtualization:

# grep -E 'vmx|svm' /proc/cpuinfo

flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq vmx ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c rdrand hypervisor lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi ept vpid fsgsbase smep

Note: vmx (for Intel processors) or svm (for AMD processors).

Look up group install:

# yum group list virtual*

Available environment groups:
   Virtualization Host

# yum group info "Virtualization Host"

Environment Group: Virtualization Host
 Environment-Id: virtualization-host-environment
 Description: Minimal virtualization host.
 Mandatory Groups:
   +base
   +core
   +virtualization-hypervisor
   +virtualization-tools
 Optional Groups:
   +debugging
   +network-file-system-client
   +remote-system-management
   +virtualization-platform

Install the virtualization environment group:

# yum -y group install "Virtualization Host"

No comments: