操作步骤
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'
有哪位高手 指点一个
Python 缺少urllib的包,你安装一个就好了,注意版本