Xen / libvirt – 尝试启动域时,“读取数据时文件结束:input/输出错误”

当我尝试使用virsh启动域时,出现以下string错误:

virsh # start vimes error: Failed to start domain vimes error: End of file while reading data: Input/output error error: Failed to reconnect to the hypervisor 

在这种情况下拖拽日志文件,我得到以下输出:

/var/log/libvirt/libxl/vimes.log

 libxl: debug: libxl_create.c:1362:do_domain_create: ao 0x7f4e1c0017e0: create: how=(nil) callback=(nil) poller=0x7f4e1c0019c0 

dmesg的

 [ 852.559719] libvirtd[2187]: segfault at ffffffffffffffff ip 00007f4e45472614 sp 00007f4e3e6b60d8 error 7 in libc-2.19.so[7f4e453ed000+19e000] 

/var/log/libvirt/libxl/libxl-driver.log

 xc: debug: hypercall buffer: cache current size:4 xc: debug: hypercall buffer: cache hits:13 misses:4 toobig:1 xc: debug: hypercall buffer: total allocations:18 total releases:18 xc: debug: hypercall buffer: current allocations:0 maximum allocations:4 xc: debug: hypercall buffer: cache current size:4 xc: debug: hypercall buffer: cache hits:13 misses:4 toobig:1 xc: debug: hypercall buffer: total allocations:18 total releases:18 xc: debug: hypercall buffer: current allocations:0 maximum allocations:4 xc: debug: hypercall buffer: cache current size:4 xc: debug: hypercall buffer: cache hits:13 misses:4 toobig:1 

我在如何进行中有点不知所措。 从错误信息中不清楚实际上出了什么问题。 主机和客户都运行OpenSuse 13.2,

对我来说,我们面临同样的问题。

请看Bugzilla – Bug 909547 https://bugzilla.opensuse.org/show_bug.cgi?id=909547

和暂时的部分解决方法(直到主机重启!!)在opensuse论坛中描述https://forums.opensuse.org/showthread.php/502307-openSUSE-13-1-gt-13-2-upgrade-issues-with-xen -libvirt-和virt-manager中

解决方法:

  1. 以root身份确保在Virtual Machine Manager中没有列出任何内容,并确认没有vm正在使用xl listvirsh list

  2. 转到Yast > Software > Software Management ,searchlibvirt 。 删除libvirtlibvirt-daemonlibvirt-glib-1_0-0libvirt-pythonperl-Sys-Virt ,当出现冲突提示时,使用第一个选项来卸载冲突。

  3. 备份或删除/usr/share/virt-manager及其内容。 (该文件夹将在重新安装时重新创build。)
  4. 使用xen hypervisor重新启动,并以root身份login。 (通常我没有使用桌面内核来做这件事)
  5. 按照步骤2预计这次安装列出的软件包。
  6. Yast > 虚拟化 > 安装pipe理程序和工具只勾选xen工具,然后确定。

    如果在这一点上,你会碰巧重新启动。 它会打破系统,你会得到尝试安装虚拟机的EOF错误。

  7. 转到“ 启动器” >“ 应用程序” >“ 系统” >“ 虚拟化” >“ 虚拟机pipe理器” 。 除了本地主机(xen)之外,不应该列出任何东西。

  8. 现在,您有两种select来安装虚拟机,方法是单击我相信使用virt-install的“Create a new virtual machine”button,或单击button旁边的箭头,然后单击vm-install 。 (我一直在使用后者)

以root身份运行vm-install –use-xl

在13.2中的错误。 阅读https://bugzilla.opensuse.org/show_bug.cgi?id=909547