1. vmware安裝ubuntu-14.04.1-server-amd64.iso。
2. 安裝完成後關機--右鍵虛擬機器--setting--hardware--Processors--將
virtualize intel VT-x/EPT or AMD/RVI,
Virtualize CPU performance counters勾選。
3. 開機執行
grep vmx /proc/cpuinfo;
lscpu | grep Virtualization;
根據返回資訊,看是否支援虛擬化功能。
4. 安裝KVM:
(1).Install Qemu and KVM
apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager
(2). edit /etc/libvirt/qemu.conf and uncomment these lines...
user = "root"
group = "root“
(3). Restart libvirtd
service libvirtd restart
(4). Verify KVM is ok
$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
(5). Verify bridging has been configured
# ifconfig
.
.
.
virbr0 Link encap:Ethernet HWaddr 52:54:00:10:be:cd
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
reference:
https://help.ubuntu.com/community/KVM/Installation
http://www.howtogeek.com/117635/how-to-install-kvm-and-create-virtual-machines-on-ubuntu/
安裝好之後,Vmware--File--Export to OVF---儲存為模板檔案(Ubuntu_64-bit-disk1.vmdk, Ubuntu 64-bit.ovf, Ubuntu 64-bit.mf),以後可以直接拿來deploy。