[root@localhost ~]# yum install python-virtinst libvirt bridge-utils virt-manager qemu-kvm-tools virt-viewer qemu-kvm spice-server spice-gtk spice-protocol
[root@localhost ~]# modprobe kvm
[root@localhost ~]# modprobe kvm-intel
[root@localhost ~]# service libvirt restart
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
BRIDGE=br0
IPV6INIT=no
HWADDR=00:0c:29:2f:bc:75
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.200.128
GATEWAY=192.168.200.1
NETMASK=255.255.255.0
DNS1=192.168.200.1
IPV6INIT=no
DELAY=0
virt-install \
-n Win7_64 \
-r 512 \
-f /mnt/vms/Win7_64.img \
-s 16 \
--vcpus=2 \
--os-type windows \
--os-variant=win7 \
--network bridge=br0 \
--graphics spice,port=5930,listen=192.168.200.128,password=123456 \
--video qxl \
--channel spicevmc \
[root@localhost ~]# modprobe kvm
[root@localhost ~]# modprobe kvm-intel
[root@localhost ~]# service libvirt restart
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
BRIDGE=br0
IPV6INIT=no
HWADDR=00:0c:29:2f:bc:75
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.200.128
GATEWAY=192.168.200.1
NETMASK=255.255.255.0
DNS1=192.168.200.1
IPV6INIT=no
DELAY=0
virt-install \
-n Win7_64 \
-r 512 \
-f /mnt/vms/Win7_64.img \
-s 16 \
--vcpus=2 \
--os-type windows \
--os-variant=win7 \
--network bridge=br0 \
--graphics spice,port=5930,listen=192.168.200.128,password=123456 \
--video qxl \
--channel spicevmc \
--cdrom /home/vanlos/workspace/isos/Win7_64.iso