P2V 报错汇总

本文所记录的报错,是笔者操作中遇到的,如果没有在本文中没有你操作中的错误,还是查看日志/var/log/    会有virt-p2v8897877989.log  等这样的日志。

P2v 报错

virsh pool-define-as kvm_final --type dir --target /kvm/ pool kvm_final defined

error: Failed to reconnect to the hypervisor

error: no valid connection

error: Failed to connect socket to ‘/var/run/libvirt/libvirt-sock‘: No such file or directory

[[email protected] opt]# virsh pool-define-as kvm_final --type dir --target /kvm/ pool kvm_final defined

error: Failed to reconnect to the hypervisor

error: no valid connection

error: Failed to connect socket to ‘/var/run/libvirt/libvirt-sock‘: No such file or directory

问题:

error: Failed to reconnect to the hypervisor
error: no valid connection
error: Failed to connect socket to ‘/var/run/libvirt/libvirt-sock‘: No such file or directory

Further investigation found avahi was needed for this to work. The final fix was running
解决方法:

yum -y install avahi
/etc/init.d/messagebus restart
/etc/init.d/avahi-daemon restart
/etc/init.d/libvirtd restart
/sbin/chkconfig messagebus on
/sbin/chkconfig avahi-daemon on

问题:

virt-v2v: virt-v2v: Failed to launch guestfs appliance. Try running again with LIBGUESTFS_DEBUG=1 for more information

解决方法:

[[email protected] etc]# /etc/init.d/libvirtd restart

Stopping libvirtd daemon: [  OK  ]

Starting libvirtd daemon: 2016-07-05 16:30:28.714+0000: 19398: info : libvirt version: 0.10.2, package: 60.el6 (CentOS BuildSystem <http://bugs.centos.org>, 2016-05-11-04:19:11, worker1.bsys.centos.org)

2016-07-05 16:30:28.714+0000: 19398: warning : virGetHostname:2279 : getaddrinfo failed for ‘vcmy-p2v‘: No address associated with hostname

[  OK  ]

[[email protected] etc]# vi /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.31.207 vcmy-p2v

解决方法:运行 

1、libguestfs-test-tool

2、ln -s /usr/bin/qemu-kvm /usr/libexec/qemu-kvm

3、给/etc/virt-v2v.conf  权限 chmod 777 /etc/virt-v2v.confi

virt-v2v: virt-v2v: Unable to parse config file /etc/virt-v2v.conf:

mismatched tag at line 95, column 2, byte 2421 at /usr/lib64/perl5/XML/Parser.pm line 187

时间: 2024-10-29 19:07:22

P2V 报错汇总的相关文章

eclipse 报错汇总

1.Eclipse 启动时,报错: Fail to create the java virtual machine 已解决.方法:eclipse.ini 中-vmargs-Dosgi.requiredJavaVersion=1.6-Xms40m修改-Xmx768m → -Xmx512meclipse 报错汇总,布布扣,bubuko.com

selenium报错汇总

报错:[error] Could not connect to Selenium Server. Have you started the Selenium Server yet? 解决:selenium两种驱动方式,一是use selenium IDE,一种是use selenium webdriver.在options里去掉勾选enable webdriver playback即可. Google答案地址. http://sqa.stackexchange.com/questions/100

CentOS 6.5 安装YouCompleteMe 报错汇总

支持折腾!!! 编译安装clang 3.6.0   编译器版本低 ====-----编译安装clang 3.6.0   编译器版本低---------------============== [[email protected] llvm-3.6.0]$ tar xf cfe-3.6.0.src.tar.xz  [[email protected] llvm-3.6.0]$ tar xf clang-tools-extra-3.6.0.src.tar.xz  [[email protected]

使用apache benchmark(ab) 测试报错汇总

1.socket: Too many open files (24) 解决方法: [[email protected] ~]# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 14802 max locked memory (kby

masterha_check_repl报错汇总

[[email protected] ~]#masterha_check_repl --conf=/etc/masterha/app1.cnf 导致如下报错的原因主要有两类: 1.mysql的安装时用源码安装,导致mysql的目录与MHA默认的目录不一致.解决办法用ln -s做相关软连接.注:我的mysql数据库是用mysql用户安装的,MHA是用root用户安装的,如果在同一个用户下安装不知是否可以避免此类问题 2.candidate_master对应的用户权限不足导致. 以下内容摘自网络 报

SQL Server报错汇总

1)SQL Server服务突然无法启动 问题描述:之前一直没有问题,突然某天无法启动了 解决办法:查看控制面板->管理工具->事件查看器,发现是因为登录失败而无法启动. 找到原因,就简单了,从服务中找到SQL Server的服务,右键属性,然后打开"登录"tab页,选上本地系统,就OK了. 该问题多半是因为更改了操作系统的登录密码造成了.所以要更新sqlserver的账户登录密码.当然,最好的方式就是就是上面的觪决办法了. 这样以后就会自动更新. 2)17051错误 代码

编译器报错汇总

1.arm7 arm7s 真机32位处理器 arm64  真机64位处理器 2.i386 模拟器32位处理器   x86_64模拟器64位处理器 3.linker .o  可能有依赖库未导入 , 库重复导入: 4.libsqlite3 数据库 今天试了一下iPhone Sqlite3数据库实例操作,发现一个有意思的问题,就是在加Framework时,有些教程说加libsqlite3.dylib有些说加libsqlite3.0.dylib,那到底加哪个呢?经过百度和谷歌得答案如下: 实际上libs

Puppet报错汇总

报错1: 解决:该报错是由于Puppet agent 的时间和Puppet master的时间不一致导致,可以使用ntp同步一下时间即可解决 报错2: 启动mcollective的时候报错 解决:gem install stomp cp -fr  /usr/lib/ruby/gems/1.8/gems/stomp-1.3.2/lib/stomp.rb   /usr/lib/ruby/site_ruby/1.8/mcollective/connector/ 来自为知笔记(Wiz) 原文地址:htt

spring mvc 报错汇总--点滴。。

1....identifier of an instance of org.szgzw.ent.profile.baseinfo.enterprise.EnterpriseEntity was altered from 2c90e4da49514c750149515eb56f0003 to undefined; nested exception is org.hibernate.HibernateException: identifier of an instance of org.szgzw.