virt-manager启动本地连接报错:internal error: could not get interface XML description: File operation failed
2016-03-18 17:21
836 查看
0.环境:
操作系统:ubuntu 14.0.4
虚拟机管理工具(图形化):virt-manager
网络管理服务:network(network-manager 卸载了)
1.解决详情:
在命令行执行:virsh iface-list --all | tail -n +3 | cut -f2 -d' ' | while read intf; do if [ "$intf" != "" ]; then echo ++++ $intf ++++; virsh iface-dumpxml $intf; fi; done
发现如下的错误:
++++ eth0:1 ++++
错误: internal error: could not get interface XML description: File operation failed - Failed to read (null)
这是我为了连2个不同网段而建的一个虚拟网卡,显然virt-manager因为得不到我建的虚拟网卡的描述信息,而报的错,编辑/etc/network/interfaces把虚拟网卡的配置信息注释掉,重启network服务,好了,可以启动本地连接了
参考:https://bugzilla.redhat.com/show_bug.cgi?id=1185850
2.后记:
然而,如果按照上面的做法,就不能通过修改配置文件的方式添加虚拟网卡,这就意味者我每次开机,都得用“ifconfig 虚拟网卡名 虚拟网卡ip 掩码 ”手动添加一个虚拟网卡
操作系统:ubuntu 14.0.4
虚拟机管理工具(图形化):virt-manager
网络管理服务:network(network-manager 卸载了)
1.解决详情:
在命令行执行:virsh iface-list --all | tail -n +3 | cut -f2 -d' ' | while read intf; do if [ "$intf" != "" ]; then echo ++++ $intf ++++; virsh iface-dumpxml $intf; fi; done
发现如下的错误:
++++ eth0:1 ++++
错误: internal error: could not get interface XML description: File operation failed - Failed to read (null)
这是我为了连2个不同网段而建的一个虚拟网卡,显然virt-manager因为得不到我建的虚拟网卡的描述信息,而报的错,编辑/etc/network/interfaces把虚拟网卡的配置信息注释掉,重启network服务,好了,可以启动本地连接了
参考:https://bugzilla.redhat.com/show_bug.cgi?id=1185850
2.后记:
然而,如果按照上面的做法,就不能通过修改配置文件的方式添加虚拟网卡,这就意味者我每次开机,都得用“ifconfig 虚拟网卡名 虚拟网卡ip 掩码 ”手动添加一个虚拟网卡
相关文章推荐
- 测试用例设计之三——OATS PK Pairwise
- 使用Genymotion调试出现错误INSTALL_FAILED_CPU_ABI_INCOMPATIBLE解决办法
- 出现( linker command failed with exit code 1)错误总结
- 已存在的Rails项目部署到heroku
- 解决从jenkins打开robot framework报告会提示‘Opening Robot Framework log failed ’的问题
- 【论文笔记】residual neural network-kaiming he
- Apche Kafka 的生与死 – failover 机制详解
- 十四、职责链(Chain of Responsibility)模式--行为型模式(Behavioral Pattern)
- OC内存分析之retain与copy的简单测试示例
- Precompiling assets failed.remote
- Gradle sync failed: Unable to start the daemon process
- (算法-training)前缀表达式
- (算法-training)Anagrams问题
- 测试用例设计之二——Pairwise Testing——成对测试
- time_wait和clost_wait说明
- crossdomain.xml跨越
- Skipping failed optional dependency /chokidar/fsevents
- DetailsView设置列隐藏是设置Fields而不是Rows
- 修复.MYI'; try to repair it
- AIDL及IPC浅谈