1
|
$
sudo
apt-get
install
qemu-kvm qemu-system libvirt-bin virt-manager bridge-utils vlan
|
-
qemu-kvm 和 qemu-system 是 KVM 和 QEMU 的核心包,提供 CPU、内存和 IO 虚拟化功能
-
libvirt-bin 就是 libvirt,用于管理 KVM 等 Hypervisor
-
virt-manager 是 KVM 图形化管理工具
-
bridge-utils 和 vlan,主要是网络虚拟化需要,KVM 网络虚拟化的实现是基于 linux-bridge 和 VLAN,后面我们会讨论。
1
2
3
|
sudo
apt-get
install
xinit
sudo
apt-get
install
gdm
sudo
apt-get
install
kubuntu-desktop
|
1
2
3
4
5
6
7
8
9
10
|
deb http:
//mirrors
.163.com
/ubuntu/
trusty main restricted universe multiverse
deb http:
//mirrors
.163.com
/ubuntu/
trusty-security main restricted universe multiverse
deb http:
//mirrors
.163.com
/ubuntu/
trusty-updates main restricted universe multiverse
deb http:
//mirrors
.163.com
/ubuntu/
trusty-proposed main restricted universe multiverse
deb http:
//mirrors
.163.com
/ubuntu/
trusty-backports main restricted universe multiverse
deb-src http:
//mirrors
.163.com
/ubuntu/
trusty main restricted universe multiverse
deb-src http:
//mirrors
.163.com
/ubuntu/
trusty-security main restricted universe multiverse
deb-src http:
//mirrors
.163.com
/ubuntu/
trusty-updates main restricted universe multiverse
deb-src http:
//mirrors
.163.com
/ubuntu/
trusty-proposed main restricted universe multiverse
deb-src http:
//mirrors
.163.com
/ubuntu/
trusty-backports main restricted universe multiverse
|
1
|
# apt update
|
1
|
PermitRootLogin
yes
|
1
2
3
|
# service ssh restart
ssh
stop
/waiting
ssh
start
/running
, process 27639
|
1
2
|
# egrep -o '(vmx|svm)' /proc/cpuinfo
# vmx
|
1
2
|
# service libvirt-bin status
libvirt-bin start
/running
, process 1478
|