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/Installationhttp://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。