# rmmod kvm_intel # modprobe kvm_intel nested=1 # qemu-kvm /mnt/VMs/images/fedora/18/f18.qcow2 -m 2048 -cpu host
Contents
# grep -E '^flags.*(vmx|svm)' /proc/cpuinfo
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
# virsh nodeinfo CPU model: x86_64 CPU(s): 4 CPU frequency: 1900 MHz CPU socket(s): 1 Core(s) per socket: 2 Thread(s) per core: 2 NUMA cell(s): 1 Memory size: 8038060 KiB
# lsmod | grep -i kvm kvm_intel 124064 0 kvm 384721 1 kvm_intel
# find /sys/module/kvm_intel | grep -i nested /sys/module/kvm_intel/parameters/nested
# cat /sys/module/kvm_intel/parameters/nested N
# sysctl -w kvm-intel.nested=1
sysctl: cannot stat /proc/sys/kvm-intel/nested: No such file or directory
# lsmod | grep kvm_intel kvm_intel 124064 0 kvm 384721 1 kvm_intel
rmmod kvm_intel
# man modprobe | head
NAME modprobe - Add and remove modules from the Linux Kernel SYNOPSIS modprobe [-v] [-V] [-C config-file] [-n] [-i] [-q] [-b] [modulename] [module parameters...]
modprobe kvm-intel nested=1
# cat /sys/module/kvm_intel/parameters/nested Y
# systool -m kvm_intel -v | grep nested nested = "Y"
kvm-intel.nested=1
# echo "options kvm-intel nested=1" > /etc/modprobe.d/kvm-intel.conf