how to tell if you can use kvm
2012-10-12 14:44
471 查看
kvm
Check out https://help.ubuntu.com/community/KVM for more updated and complete informationon installing KVM on Ubuntu.
kvm is qemu plus some great kernel level stuff for VT enabled CPUs.
Some rough notes:-
How to tell if you can use kvm
Intel CPU
grep vmx /proc/cpuinfo
However, if you have an Intel CPU it's possible that your computer manufacturer may have turned off VT in the BIOS. See below for more info.
AMD CPU
grep svm /proc/cpuinfo
On some Gigabyte motherboards it is turned off in the BIOS if you use "Load safe defaults" (GiBy M61SME-S2
nF405 RLVSM bios < F7)
If you see something you have it, if you don't you don't.
Install it
sudo apt-get install kvm qemu
Load the modules
sudo modprobe kvm
Load Intel module
If you have an Intel CPUsudo modprobe kvm-intel
Note if you get this when you load the module then it may mean VT is switched off in the BIOS.
$ sudo modprobe kvm-intel FATAL: Error inserting kvm_intel (/lib/modules/2.6.20-15-generic/kernel/drivers/kvm/kvm-intel.ko): Operation not supported
Typing dmesg you may find the following at the end:-
kvm: disabled by bios
You might need to enable the virtualization setting in the BIOS. Each BIOS is different and it can be difficult to find (it may be in the "Advanced" section or under "CPU" or "Security"). You may also need to power shutdown for the changes to take effect (some bios will do this automatically). |
Load AMD module
If you have an AMD CPUsudo modprobe kvm-amd
Add yourself to the group
sudo addgroup `whoami` kvm
Create a KVM disk image
This example makes a virtual disk that grows on the fly:qemu-img create -f qcow2 virtualdisk.img 10G
Start the emulator
For example:-kvm -hda virtualdisk.img -cdrom cdrom.iso -m 256 -net nic -net user -soundhw all
Load the modules more permanently
Once you know it all works, edit /etc/modules and add the following two lineskvm kvm-intel
or
kvm kvm-amd
相关文章推荐
- How you can use qemu/kvm base images to be more productive
- ★ Learn how you can use Adobe Creative Suite to create skins for Flex and AIR applications.
- How to tell if you’re running the 32 bit or 64 bit kernel in Mac OS X Snow Leopard
- How can you decide to use UINavigationBar, UIToolbar and UITabbar
- mysql:If 'mysql' is not a typo you can use command-not-found to lookup the package that contains
- How can you tell if you have an antique Tiffany lamp?
- How to tell if you're American
- [ios] how to findout the language you use on ios devices.
- how to use adb and gdbserver with VirtualBox - KVM (qemu)
- How to Manage and Use LVM (Logical Volume Management) in Ubuntu In our previous article we told you
- How to resolve: You do not have a license to use this ActiveX control
- How to tell if a file is an EXE or a DLL?
- How You Can Use RSS
- How can we use transfer function to skip search page while going from one component to another?
- how to check if you have TURNIN successfully?
- C++ How to tell if a .lib file was compiled with compiler option /MT, /MD, /MTd, /MDd, /clr etc?
- Using RestTemplate, how to send the request to a proxy first so I can use my junits with JMeter?
- 【DB2】If 'db2' is not a typo you can run the following command to lookup the package that contains the binary: command-not-found db2 bash: db2: command not found
- Mac环境下mysql初始化密码问题--If you lose this password, please consult the section How to Reset the Root Password in the MySQL reference manual.
- Given a list of numbers ( fixed list) Now given any other list, how can you efficiently find out if