DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Notes about kvm


Test If Your Processor Supports VT

egrep -c '(vmx|svm)' /proc/cpuinfo

If it is bigger than 0, VT is supported. 'vmx' is the VT of intel, while 'svm' is that of amd.

Ref: http://www.howtogeek.com/howto/linux/linux-tip-how-to-tell-if-your-processor-supports-vt/

Install

Ubuntu

sudo apt-get install kvm

Setup a Gust OS

cd ~/VirtualBoxVMs/kvmtest

kvm-img create winxp.img 4G

kvm -drive file=winxp.img -cdrom ~/warez/OS/tomatoXp.iso -boot d -m 512

use ctrl+alt+del to release mouse.

Ref:http://wiki.ubuntu.com.cn/Kvm%E6%95%99%E7%A8%8B#.E5.8F.8B.E6.83.85.E8.BF.9E.E6.8E.A5

CentOS

$ yum install kvm python-virtinst libvirt libvirt-python virt-manager virt-viewer libguestfs-tools

$ service libvirtd restart

$ virt-install --name vm1 --ram=1024 --vcpu=1 --cdrom ./warez/CentOS-6.4-x86_64-LiveDVD.iso --graphics none --disk path=vm1.img,size=10



Published

Jul 6, 2013

Last Updated

Jul 6, 2013

Category

Tech

Tags

  • kvm 1

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor