首页 新闻 会员 周边 捐助

kvm 安装虚拟机报错

0
悬赏园豆:5 [待解决问题]

操作步骤
grep -E '(vmx|svm)' /proc/cpuinfo

yum install -y qemu-kvm libvirt

yum install -y virt-install

systemctl enable libvirtd

systemctl start libvirtd

qemu-img create -f raw /opt/CentOS-7-x86_64.raw 10G

virt-install --virt-type kvm --name CentOS-7-x86_64 --ram 1024 --cdrom=/tmp/CentOS-7-x86_64-DVD-1611.iso --disk path=/opt/CentOS-7-x86_64.raw --network network=default --graphics vnc,listen=0.0.0.0 --noautoconsole

报错:

Traceback (most recent call last):
File "/usr/share/virt-manager/virt-install", line 29, in <module>
import virtinst
File "/usr/share/virt-manager/virtinst/init.py", line 89, in <module>
from virtinst.distroinstaller import DistroInstaller
File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 23, in <module>
from . import urlfetcher
File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 34, in <module>
import requests
File "/usr/lib/python2.7/site-packages/requests/init.py", line 58, in <module>
from . import utils
File "/usr/lib/python2.7/site-packages/requests/utils.py", line 32, in <module>
from .exceptions import InvalidURL
File "/usr/lib/python2.7/site-packages/requests/exceptions.py", line 10, in <module>
from .packages.urllib3.exceptions import HTTPError as BaseHTTPError
File "/usr/lib/python2.7/site-packages/requests/packages/init.py", line 95, in load_module
raise ImportError("No module named '%s'" % (name,))
ImportError: No module named 'requests.packages.urllib3'
有哪位高手 指点一个

goodphp的主页 goodphp | 初学一级 | 园豆:197
提问于:2018-11-25 19:33
< >
分享
所有回答(1)
0

Python 缺少urllib的包,你安装一个就好了,注意版本

寻找普拉多 | 园豆:299 (菜鸟二级) | 2018-11-25 20:19
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册