# yum install virt-managerlibvirt libvirt-python python-virtinst libvirt-client virt-viewer virt-manager: virt-manager, also known as Virtual Machine Manager, provides agraphical tool for administering virtual machines. It uses libvirt-clientlibrary as the management API. libvirt: he libvirt package provides the server and host side librariesfor interacting with hypervisors and host systems. The libvirt package providesthe libvirtd daemon that handles the library calls, manages
virtualized guestsand controls the hypervisor. libvirt-python:The libvirt-python package contains a module thatpermits applications written in the Python programming language to use theinterface supplied by the libvirt API. python-virtinst:Provides the virt-install command for creatingvirtual machines.(提供virt-install命令安装虚拟机) libvirt-client:The libvirt-client package provides theclient-side APIs and libraries for accessing libvirt servers. Thelibvirt-client package includes the virsh command line tool to manage andcontrol virtualized
guests and hypervisors from the command line or a specialvirtualization shell. virt-viewer:开启图形控制台安装虚拟客户机需要
# vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=xxxxxxxxx
ONBOOT=yes
BRIDGE=br0
# vim /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.1.1.X
NETMASK=255.255.255.0
GATEWAY=x.x.x.x
# service network restart
# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.b8975a004d66 no eth0
virbr0 8000.52540077cd54 yes virbr0-nic
如果设置了防火墙,则使用以下命令放行
# iptables -I FORWARD -m physdev --physdev-is-bridged -j ACCEPT
# service iptables save
# service iptables restart