Bootstrap

离线安装yum包

离线安装qemu-kvm libvirt virt-install 
在能连外网的机器上下载依赖包
yum install qemu-kvm libvirt virt-install python-requests gnutls-utils python-urllib3 --downloadonly  --downloaddir=/tmp/kvm
yum -y install yum-utils
repotrack --download_path=/tmp/kvm autogen-libopts (下载到autogen-libopts-5.18-5.el7.x86_64.rpm就可以终止)
tar -cvf /data/kvm.tar /tmp/kvm 

在物理机上使用离线包安装kvm等
tar -xvf /data/kvm.tar
vim /etc/yum.repos.d/myyum.repo
========================================================================
[test]
name=myyumsource
baseurl=file:///data/kvm
gpgcheck=0
========================================================================
createrepo /data/kvm/
yum clean all
yum list
yum install /data/kvm/autogen-libopts-5.18-5.el7.x86_64.rpm
yum install qemu-kvm libvirt virt-install 
 

;