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


    安装时候参考的:http://www.ilanni.com/?p=6101

    今天安装完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 
  • 相关阅读:
    [转]NopCommerce MVC 插件机制分析
    压力测试的轻量级具体做法[转载]
    导入IP安全策略图解
    Grunt使用心得
    解决yarn管理资源管理,其他应用起不来
    Spark 读取mysql中的数据
    Spark 配置连接hive 元数据库(mysql)
    Linux安装anaconda和集成PySpark
    python(配置)
    Python 数据爬取(环境变量)
  • 原文地址:https://www.cnblogs.com/zknublx/p/9177074.html
Copyright © 2020-2023  润新知