<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[[kvm] Failed to get shared “write” lock Is another process using the image?]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[虚拟云与Docker]]></category>
<pubDate>Fri, 12 May 2023 07:54:38 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	原因<br/>此磁盘已经被其他进程占用。<br/><br/>解决方法<br/>方法1<br/>ps -aux &#124;grep &quot; image(创建的磁盘名称)&quot;<br/>//通过上述命令找到相关进程杀死（该磁盘可能被别人占用，建议询问后在杀）<br/>kill -9 “上述命令查出的进程号”<br/>重新拉虚拟机<br/>方法2<br/>sb.img文件镜像大小制作： qemu-img create -f qcow2 sb.img 50G<br/>启动虚拟机 fdisk -l 查看查看磁盘信息 一般会输出/dev/vda或/dev/vdb信息<br/>mkfs.ext4 /dev/vda 格式化磁盘(分区磁盘，查看本地/document/Newer_enviroment_construct/分区磁盘命令)<br/>新建一个文件夹mkdir /tmp , 并挂载磁盘 mount /dev/vda /tmp<br/>替换原来的disk<br/><br/>实践如下：<br/>ps -aux&#124;grep &quot;win10&quot;<br/>root&nbsp;&nbsp;&nbsp;&nbsp; 1519052&nbsp;&nbsp;2.3&nbsp;&nbsp;0.1 883548 92928 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sl&nbsp;&nbsp; 14:51&nbsp;&nbsp; 1:25 /usr/bin/qemu-img convert -f qcow2 -O qcow2 -o compat=1.1,lazy_refcounts /backup/virtImages/win10_bak_10_10_0_119.img /backup/virtImages/win10_bak_10_10_0_168.img<br/><br/><br/>kill -9 1519052<br/><br/><br/>错误如下：<br/>启动域时出错: 内部错误：process exited while connecting to monitor: 2023-05-12T07:49:37.817008Z qemu-kvm: -blockdev &#123;&quot;node-name&quot;:&quot;libvirt-2-format&quot;,&quot;read-only&quot;:false,&quot;driver&quot;:&quot;qcow2&quot;,&quot;file&quot;:&quot;libvirt-2-storage&quot;,&quot;backing&quot;:null&#125;: Failed to get &quot;write&quot; lock<br/>Is another process using the image [/backup/virtImages/win10_bak_10_10_0_119.img]?<br/><br/>Traceback (most recent call last):<br/>&nbsp;&nbsp;File &quot;/usr/share/virt-manager/virtManager/asyncjob.py&quot;, line 75, in cb_wrapper<br/>&nbsp;&nbsp;&nbsp;&nbsp;callback(asyncjob, *args, **kwargs)<br/>&nbsp;&nbsp;File &quot;/usr/share/virt-manager/virtManager/asyncjob.py&quot;, line 111, in tmpcb<br/>&nbsp;&nbsp;&nbsp;&nbsp;callback(*args, **kwargs)<br/>&nbsp;&nbsp;File &quot;/usr/share/virt-manager/virtManager/object/libvirtobject.py&quot;, line 66, in newfn<br/>&nbsp;&nbsp;&nbsp;&nbsp;ret = fn(self, *args, **kwargs)<br/>&nbsp;&nbsp;File &quot;/usr/share/virt-manager/virtManager/object/domain.py&quot;, line 1280, in startup<br/>&nbsp;&nbsp;&nbsp;&nbsp;self._backend.create()<br/>&nbsp;&nbsp;File &quot;/usr/lib64/python3.6/site-packages/libvirt.py&quot;, line 1234, in create<br/>&nbsp;&nbsp;&nbsp;&nbsp;if ret == -1: raise libvirtError (&#039;virDomainCreate() failed&#039;, dom=self)<br/>libvirt.libvirtError: 内部错误：process exited while connecting to monitor: 2023-05-12T07:49:37.817008Z qemu-kvm: -blockdev &#123;&quot;node-name&quot;:&quot;libvirt-2-format&quot;,&quot;read-only&quot;:false,&quot;driver&quot;:&quot;qcow2&quot;,&quot;file&quot;:&quot;libvirt-2-storage&quot;,&quot;backing&quot;:null&#125;: Failed to get &quot;write&quot; lock<br/>Is another process using the image [/backup/virtImages/win10_bak_10_10_0_119.img]?<br/><br/>来自：https://blog.csdn.net/qq_36657175/article/details/124748507
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [kvm] Failed to get shared “write” lock Is another process using the image?]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>