<?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>Redhat viruatlization &#8211; Arun&#8217;s blog</title>
	<atom:link href="https://arunns.net/tag/redhat-viruatlization/feed/" rel="self" type="application/rss+xml" />
	<link>https://arunns.net</link>
	<description>Arun&#039;s blog</description>
	<lastBuildDate>Mon, 23 Oct 2023 18:30:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.2</generator>
	<item>
		<title>Virtualization with KVM under Redhat Linux, Migrate VMware virtual images to KVM</title>
		<link>https://arunns.net/virtualization-with-kvm-under-redhat-linux-migrate-vmware-virtual-images-to-kvm/</link>
					<comments>https://arunns.net/virtualization-with-kvm-under-redhat-linux-migrate-vmware-virtual-images-to-kvm/#comments</comments>
		
		<dc:creator><![CDATA[Arun N.]]></dc:creator>
		<pubDate>Fri, 09 Apr 2010 15:59:18 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Bonding with virutliaztion]]></category>
		<category><![CDATA[KVM]]></category>
		<category><![CDATA[Redhat viruatlization]]></category>
		<guid isPermaLink="false">http://arunnsblog.com/?p=278</guid>

					<description><![CDATA[KVM (Kernel Based Virtual Machine) stands out as a powerful, open-source solution that seamlessly integrates with Linux. It offers a cost-effective and efficient way to virtualize your systems without the need for additional licensing costs. In this guide, we&#8217;ll walk you through the process of installing KVM, migrating VMware virtual machines to KVM, creating bridge [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>KVM (Kernel Based Virtual Machine) stands out as a powerful, open-source solution that seamlessly integrates with Linux. It offers a cost-effective and efficient way to virtualize your systems without the need for additional licensing costs. In this guide, we&#8217;ll walk you through the process of installing KVM, migrating VMware virtual machines to KVM, creating bridge interfaces, and managing KVM virtual machines. By the end, you&#8217;ll be well on your way to harnessing the full potential of KVM for your virtualization needs.</p>
<p><strong>Getting Started with KVM</strong></p>
<p><strong>Step 1: Install KVM</strong></p>
<ul>
<li>Start by installing your machine with the 64-bit version of EL5.</li>
<li>Register your machine with Red Hat using the <code>rhn_register</code> command.</li>
<li>Enable virtualization entitlement for your system in RHN (Red Hat Network).</li>
<li>Install the KVM package and related components:</li>
</ul>
<p><code class="!whitespace-pre hljs language-bash"><span class="hljs-comment"># yum install kvm</span><br />
<span class="hljs-comment"># yum install virt-manager libvirt libvirt-python python-virtinst</span><br />
</code></p>
<p><strong>Migrating VMware Virtual Machines to KVM</strong></p>
<p>Migrating your existing VMware virtual machines to KVM is a breeze:</p>
<ul>
<li>Log in to your VMware server.</li>
<li>Create a single VMDK image with <code>vmware-diskmanager</code>.For example:</li>
</ul>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash"><span class="hljs-comment"># vmware-vdiskmanager -r path_to_vmware_virtualmachine.vmdk -t 0 destination_file_vmware.vmdk</span><br />
</code></div>
</div>
<ul>
<li>Copy the image to your KVM server.</li>
<li>Convert the image to a KVM-supported format using <code>qemu-img</code>:</li>
</ul>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash"><span class="hljs-comment"># qemu-img convert destination_file_vmware.vmdk -O qcow2 kvm_supported.img</span><br />
</code></div>
</div>
<p><strong>Setting Up Bridge Interfaces for Networking</strong></p>
<p>To efficiently manage your virtual machines, it&#8217;s essential to create bridge interfaces for sharing network cards. This step assumes that you have two NICs (Network Interface Cards) in your server and require bonding along with bridging:</p>
<p>Create a bridge interface. Edit the file <code>/etc/sysconfig/network-scripts/ifcfg-br0</code>:</p>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-plaintext">DEVICE=br0<br />
</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-plaintext">ONBOOT=yes<br />
</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-plaintext">TYPE=Bridge<br />
</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-plaintext">IPADDR=&lt;ip_address&gt;</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-plaintext">NETMASK=&lt;netmask&gt;</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-plaintext">GATEWAY=&lt;gateway&gt;</code></div>
</div>
<ul>
<li>Configure the bond interface. Edit the file <code>/etc/sysconfig/network-scripts/ifcfg-bond0</code>:</li>
</ul>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-plaintext">DEVICE=bond0<br />
</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-plaintext">BRIDGE=br0<br />
</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-plaintext">ONBOOT=yes<br />
</code></div>
</div>
<ul>
<li>Configure <code>eth0</code> and <code>eth1</code>. Edit the file <code>/etc/sysconfig/network-scripts/ifcfg-eth0</code>:</li>
</ul>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-plaintext">DEVICE=eth0<br />
</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-plaintext">MASTER=bond0<br />
</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-plaintext">SLAVE=yes<br />
</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-plaintext">ONBOOT=yes<br />
</code></div>
</div>
<ul>
<li>Change bonding to <code>active-backup</code> mode. Edit the <code>/etc/modprobe.conf</code> file:</li>
</ul>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">options bond0 </code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">miimon=100 </code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">mode=active-backup<br />
</code></div>
</div>
<ul>
<li>Restart the network interface and check the bridge status with:</li>
</ul>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash"><span class="hljs-comment"># brctl show</span><br />
</code></div>
</div>
<p><strong>Creating KVM Virtual Machines</strong></p>
<p>You can create KVM virtual machines using either the command line or the <code>virt-manager</code> application:</p>
<ul>
<li>To create a virtual machine with <code>virt-manager</code>, open the application, click &#8220;Create New,&#8221; and select &#8220;QEMU Hypervisor.&#8221; During disk selection, choose the path to the converted VMware image. Once completed, your virtual machine is ready for use.</li>
</ul>
<p><strong>Registering Virtual Machines with Red Hat</strong></p>
<p>Registering your KVM virtual machines with Red Hat can save you valuable licenses:</p>
<ul>
<li>Enable network tools entitlement in RHN.</li>
<li>Install the package <code>rhn-virtualization-host</code> on your core machine:</li>
</ul>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash"><span class="hljs-comment"># yum install rhn-virtualization-host</span><br />
</code></div>
</div>
<ul>
<li>Enable virtualization under the properties of your host in RHN.</li>
<li>Execute the following commands on your host machine:</li>
</ul>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash"><span class="hljs-comment"># rhn_check</span><br />
<span class="hljs-comment"># rhn-profile-sync</span><br />
</code></div>
</div>
<ul>
<li>Log in to your virtual machine and use <code>rhn_register</code>. It will now be registered as a virtual machine under the core license.</li>
</ul>
<p>With these steps, you&#8217;ll be fully equipped to leverage KVM for your virtualization needs.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://arunns.net/virtualization-with-kvm-under-redhat-linux-migrate-vmware-virtual-images-to-kvm/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
	</channel>
</rss>
