kvm virtual machine host Log

Step: running the virtual machine in
[root @ localhost ~] # grubby --update-kernel = ALL --args = "console = ttyS0"
Step: Restart VM
[root @ localhost ~] # reboot
to

The third step: Log
[root @ zxw6 ~] # virsh console centos7.0
connected to the domain centos7.0
escape character is ^]


CentOS Linux 7 (Core)
Kernel 3.10.0-514.el7.x86_64 on an x86_64

localhost login: root
密码:
Last login: Mon Jul 22 20:49:46 from 192.168.126.1
[root@localhost ~]#


Five, KVM virtualization passthrough
KVM virtualization requires a processor support for virtualization technology, when we need to be nested VM virtual machine, we need to make a virtual machine processor support VT function to achieve the effect of pass-through .

nested nested virtual machine (kvm on kvm): nested technology, simply put, is to run virtual machines on the virtual machine.

KVM and VMWare virtual machine different nesting principle, VMWare is the first layer of hardware virtualization technology, the second layer is completely out of the simulation software, we can only do so VMWare two nested. KVM is a characteristic to pass all of the physical CPU virtual machine, all theoretically can be nested N multilayer.

1, see the level of client support VT
# grep VMX / proc / cpuinfo
inquiry failed to prove that a layer of KVM virtual machine, not the host processor VT pass-through function successfully. So, there is no support for VT function, we can not achieve nested KVM virtual machine in the virtual machine layer. 2, on a physical server to prepare for nested virtual machine --- CPU virtualization passthrough (1) # vim /etc/modprobe.d/kvm-nested.conf #, add the following statement in a file (due screenshots problem, actually no need to add a blank line) Options kvm_intel nested. 1 =
 



 

# Enable the host module kvm_intel nested virtualization function, and the permanent passthrough
(2) kvm reload module
# modprobe -r kvm_intel -r parameters: remove off kvm_intel module
# modprobe kvm_intel kvm_intel loading module
(3) Verify It is loaded successfully
#cat / sys / module / kvm_intel / parameters / nested

 

Y --- "Y" represents a function of cpu virtualization passthrough opening 3, to do virtual edit passthrough virtual machine configuration file #virsh Edit centos7 (the Name the Virtual Machine) <cpu MODE = 'Host-passthrough'>
 


host-passthrough physical CPU directly exposed to the virtual machine, the virtual machine can see is the physical CPU model

4, enter the virtual machine to see if the cpu pass-through success

 

在一层虚拟机中查看cpu是否支持虚拟化

 

 

Guess you like

Origin www.cnblogs.com/itzhao/p/11318541.html