ubuntu安装KVM

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。

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值