首页 > 代码库 > kali kvm Requested operation is not valid: network 'default' is not active

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

今天安装完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 defaultsudo 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