码迷,mamicode.com
首页 > Web开发 > 详细

kali kvm Requested operation is not valid: network 'default' is not active

时间:2017-04-23 01:14:03      阅读:256      评论:0      收藏:0      [点我收藏+]

标签:nat   operation   last   ==   requested   型号   sync   logs   tmp   

今天安装完kvm,满是幸福的装了个xp,重启后出现了一个错误

Requested operation is not valid: network default is not active

详情:

Details:

Error starting domain: Requested operation is not valid: network ‚default‘ is not active

Traceback (most recent call last):
File „/usr/share/virt-manager/virtManager/asyncjob.py“, line 91, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File „/usr/share/virt-manager/virtManager/asyncjob.py“, line 127, in tmpcb
callback(*args, **kwargs)
File „/usr/share/virt-manager/virtManager/domain.py“, line 1355, in startup
self._backend.create()
File „/usr/lib/python2.7/dist-packages/libvirt.py“, line 1029, in create
if ret == -1: raise libvirtError (‚virDomainCreate() failed‘, dom=self)
libvirtError: Requested operation is not valid: network ‚default‘ is not active



 

解决办法:

sudo virsh net-start default
sudo virsh net-autostart default

 

原因需要查看命令

启动虚拟机命令: virt-manager
sudo virsh net-list --all
python@kali:~$ sudo virsh net-list --all
 Name                 State      Autostart     Persistent
----------------------------------------------------------
 default              active     no            yes    // 看是no,所以导致了这个错误

 

同时要注意一个问题,就是在虚拟机配置

虚拟网络接口

  网络源:  虚拟网络default: NAT

  设备型号: rtl8139 

 

 

kali kvm Requested operation is not valid: network 'default' is not active

标签:nat   operation   last   ==   requested   型号   sync   logs   tmp   

原文地址:http://www.cnblogs.com/renfanzi/p/6750000.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!