Changes between Version 5 and Version 6 of CentOS_6_YUM


Ignore:
Timestamp:
02/24/16 23:48:50 (8 years ago)
Author:
sky
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CentOS_6_YUM

    v5 v6  
    5555yum localinstall --nogpgcheck -y https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
    5656
    57 ## KVM
     57}}}
     58
     59
     60== CentOS 6 KVM ==
     61
     62{{{
     63## 安装KVM
    5864yum install kvm qemu-kvm python-virtinst libvirt libvirt-python virt-manager libguestfs-tools policycoreutils-python bridge-utils
    5965
     66## ifcfg-br0
     67DEVICE=br0
     68TYPE=Bridge
     69ONBOOT=yes
     70NM_CONTROLLED=no
     71BOOTPROTO=static
     72IPADDR=10.1.1.3
     73NETMASK=255.255.255.0
     74
     75## ifcfg-eth0
     76DEVICE=eth0
     77HWADDR=F8:BC:12:46:B9:B9
     78TYPE=Ethernet
     79BRIDGE=br0
     80UUID=5bf0bd52-9408-4782-b2dc-eb2427c75339
     81ONBOOT=yes
     82NM_CONTROLLED=no
     83BOOTPROTO=none
     84
     85## wget http://mirrors.163.com/centos/6/isos/x86_64/CentOS-6.7-x86_64-minimal.iso
    6086mkdir -p /opt/kvm && qemu-img create -f qcow2 /opt/kvm/template.qcow2 22G
    6187
    6288virt-install \
    63 --connect qemu:///system \
    6489--virt-type kvm \
    6590--description "Which is the template for VMs" \
     
    7499--graphics vnc,listen=0.0.0.0
    75100
     101virt-clone \
     102--original template \
     103--name test101 \
     104--file /opt/kvm/test101.qcow2
     105
    76106}}}