<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bits of Arrogance &#187; Virtualization</title>
	<atom:link href="https://www.crummylogic.com/wordpress/?feed=rss2&#038;tag=virtualization" rel="self" type="application/rss+xml" />
	<link>https://www.crummylogic.com/wordpress</link>
	<description>Making myself pervasive</description>
	<lastBuildDate>Wed, 04 Oct 2017 17:25:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.4</generator>
	<item>
		<title>KVM Live Block Migration &#8211; My Recipe</title>
		<link>https://www.crummylogic.com/wordpress/?p=269</link>
		<comments>https://www.crummylogic.com/wordpress/?p=269#comments</comments>
		<pubDate>Fri, 05 Sep 2014 17:39:51 +0000</pubDate>
		<dc:creator><![CDATA[jrdalrymple]]></dc:creator>
				<category><![CDATA[Technology junk]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[KVM]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.jrssite.com/wordpress/?p=269</guid>
		<description><![CDATA[In order for this to work you will need RHEV versions of qemu-kvm. The versions included in CentOS7 (my platform) don&#8217;t support the blockcopy command in virsh. Start by dumping the xml for the domain to somewhere you can grab it again later: [root@kvmhost ~]# virsh dumpxml guest1 &#62; /var/tmp/guest1.xml Make sure the domain is &#8230; <a href="https://www.crummylogic.com/wordpress/?p=269" class="more-link">Continue reading <span class="screen-reader-text">KVM Live Block Migration &#8211; My Recipe</span> <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>In order for this to work you <a title="CentOS 7, Live Block Migration, getting the right qemu binary built and installed" href="http://www.jrssite.com/wordpress/?p=302">will need RHEV versions of qemu-kvm</a>. The versions included in CentOS7 (my platform) don&#8217;t support the blockcopy command in virsh.</p>
<p>Start by dumping the xml for the domain to somewhere you can grab it again later:</p>
<pre>[root@kvmhost ~]# virsh dumpxml guest1 &gt; /var/tmp/guest1.xml</pre>
<p>Make sure the domain is not persistent:</p>
<pre>[root@kvmhost ~]# virsh undefine guest1
Domain guest1 has been undefined</pre>
<p>The actual migration (you may wish to check that you&#8217;re not overwriting the target, highlighted in red):</p>
<pre>[root@kvmhost ~]# virsh blockcopy guest1 /kvm/guest1.img /var/lib/libvirt/images/storagehost-NFS4/guest1.img --wait --verbose --pivot
Block Copy: [100 %]
Successfully pivoted</pre>
<p>Redefine the domain, double check it:</p>
<pre>[root@kvmhost ~]# virsh define /var/tmp/guest1.xml
Domain guest1 defined from /var/tmp/guest1.xml</pre>
<pre>[root@kvmhost ~]# virsh dominfo guest1
Id: 9
Name: guest1
UUID: e440e5bd-6d71-4807-a276-11477b764751
OS Type: hvm
State: running
CPU(s): 1
CPU time: 438.6s
Max memory: 3145728 KiB
Used memory: 3145728 KiB
Persistent: yes
Autostart: disable
Managed save: no
Security model: none
Security DOI: 0</pre>
<p>Verify that the source file is no longer the disk in use and erase the file (if you want):</p>
<pre>[root@kvmhost ~]# lsof | grep /kvm/guest1.img
[root@kvmhost ~]# rm /kvm/guest1.img
rm: remove regular file ‘/kvm/guest1.img’? y</pre>
<p>Done</p>
]]></content:encoded>
			<wfw:commentRss>https://www.crummylogic.com/wordpress/?feed=rss2&#038;p=269</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
