安装KVM

1.查看你的CPU是否支持虚拟化

grep -E '(vmx|svm)'   /proc/cpuinfo

2.安装kvm

sudo apt-get install kvm libvirt-bin ubuntu-vm-builder  bridge-utils kvm-pxe uml-utilities

3.安装kvm GUI管理软件

sudo apt-get install virt-manager virt-viewer

4.设置网桥修改IP地址
edit /etc/network/interfaces

auto lo
iface lo inet loopback
auto eth1
iface eth1 inet manual
auto br100
iface br100 inet static
       address 192.168.70.xx  //修改host的IP地址
       network 192.168.70.0
       netmask 255.255.255.0
       broadcast 192.168.70.255
       gateway 192.168.70.1
      //设置网桥
       bridge_ports eth1
       bridge_stp off
       bridge_fd 0
       bridge_maxwait 0

你可能感兴趣的:(ubuntu,UML)