分类目录归档:Linux

KVM虚拟机安装

centos中kvm安装

yum install qemu-img qemu-kvm qemu-kvm-tools virt-manager virt-viewer virt-v2v virt-top libvirt libvirt-python libvirt-client python-virtinst bridge-utils tunctl
安装网桥
yum install bridge-utils.x86_64
Centos默认没有快照,需要添加源
cat   /etc/yum.repos.d/qemu-kvm-rhev.repo
[qemu-kvm-rhev]
name=oVirt rebuilds of qemu-kvm-rhev
baseurl=http://resources.ovirt.org/pub/ovirt-3.5/rpm/el7Server/
mirrorlist=http://resources.ovirt.org/pub/yum-repo/mirrorlist-ovirt-3.5-el7Server
enabled=1
skip_if_unavailable=1
gpgcheck=0

yum install qemu-kvm-rhev -y
快照命令
virsh list
virsh save vm vm.snapshot1

[root@localhost Downloads]# virsh list
 Id    Name                           State
----------------------------------------------------
 5     centos7.0                      running

[root@localhost Downloads]# virsh save centos7.0 vm.snapshot1

Domain centos7.0 saved to vm.snapshot1