<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1207220632147534751</id><updated>2025-10-29T11:40:31.234+05:30</updated><category term="RHCSA Objectives"/><category term="User Administration"/><category term="Disk Partitioning"/><category term="Files and Permissions"/><category term="Package Management"/><category term="miscellaneous"/><category term="Basic Linux Commands"/><category term="KVM"/><category term="Red Hat Enterprise Linux 6"/><category term="Important Files in RHEL"/><category term="RHCSA"/><category term="RHCSA DUMPS"/><category term="RHEL 6 Installation"/><category term="Runlevel"/><category term="Boot Process of RHEL 6"/><category term="Group Administration"/><category term="Grub Menu"/><category term="Linux Basics"/><category term="Photos"/><category term="Sample Questions"/><title type='text'>Linux Superuser</title><subtitle type='html'>This blog is all about Red Hat Enterprise Linux 6.&#xa;It contains all information about RHCE, RHCSA and System Administration. In this blog you will find all questions related to RHCSA and RHCE exam objectives and also all day to day system administration tasks.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linuxsuperuser07.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1207220632147534751/posts/default?max-results=6'/><link rel='alternate' type='text/html' href='http://linuxsuperuser07.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1207220632147534751/posts/default?start-index=7&amp;max-results=6'/><author><name>Pawan Sharma</name><uri>http://www.blogger.com/profile/15882606556703645653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHrNVBKXY-CobnaRGvRIP-UylOEVu5Jjt_Ra6e7EjG8G1V4OgxHWAtFCE2MEBUZHlauDfcrpGrTaBtlZQUq30kPBTAafZsGq3VJ4aGhsWvCVMUccJa7uvuROAmS73ksiE/s220/FB+Profile+Pic.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>49</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>6</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1207220632147534751.post-3741781469095845455</id><published>2013-08-06T14:00:00.000+05:30</published><updated>2013-08-06T14:00:01.929+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="KVM"/><title type='text'>KVM - Command Line Administration</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
In the &lt;b&gt;&lt;a href=&quot;http://linuxsuperuser07.blogspot.in/2013/07/creating-kvm-virtual-machines-in-rhel6.html&quot; target=&quot;_blank&quot;&gt;previous&lt;/a&gt;&lt;/b&gt; post we have created KVM virtual machine using the Virtual Machine Manager GUI. In this post we will look at command line tools which we can use for administration of KVM virtual machines. We will see how to check installed KVM guests, start or shutdown KVM guest, installation of the guest. At many times we are in situations where we do not have the X11 (Graphical) environment. In such case command line KVM administration tools comes handy.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;To install a virtual machine through command line use “virt-install”&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;virt-install \&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;--name TESTER1 \&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;--ram 500 \&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;--vcpus=2 \&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;--network network=default \&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;--os-variant RHEL6&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;To clone a virtual guest use “virt-clone”&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;scrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 120%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# virt-clone --original TESTER1 --name TESTER2 --file /var/lib/libvirt/images/TESTER2.img --mac 08:00:27:B7:08:9F&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Note&lt;/b&gt;: If you have problems while starting network of cloned virtual machine or getting error like “&lt;b&gt;Device eth0 does not seem to be present, delaying initialization&lt;/b&gt;” please check &lt;a href=&quot;http://linuxsuperuser07.blogspot.in/2013/07/network-device-not-working-after.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;this&lt;/b&gt;&lt;/a&gt; post.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;To check currently installed KVM guests use “virsh list --all command”&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# virsh list –all&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;Id&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; State&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;----------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;18&amp;nbsp;&amp;nbsp;&amp;nbsp; TESTER3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; running&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;19&amp;nbsp;&amp;nbsp;&amp;nbsp; TESTER1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; running&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TESTER2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shut off&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Use virt-inspector to show the version of the OS, the kernel version, what drivers are installed, mount point details, etc.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# virt-inspector DOMAIN&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;To check cpu and memory utilization of KVM user “virt-top”&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# virt-top &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;virt-top 14:49:49 - x86_64 2/2CPU 3400MHz 1751MB&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;3 domains, 2 active, 2 running, 0 sleeping, 0 paused, 1 inactive D:0 O:0 X:0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;CPU: 1.5%&amp;nbsp; Mem: 1536 MB (1536 MB by guests)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; ID S RDRQ WRRQ RXBY TXBY %CPU %MEM&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME&amp;nbsp;&amp;nbsp; NAME&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; 19 R&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 12K&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 1.1 29.0&amp;nbsp;&amp;nbsp; 7:14.45 TESTER1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; 18 R&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 184&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 0.3 58.0&amp;nbsp;&amp;nbsp; 2:39.18 TESTER3&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (TESTER2)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;To check directory contents of a guest KVM machine use “virt-ls –l –a KVM_guest_image_file directory”&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# virt-ls -l -a /Virtual/TESTER1.img /root&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;total 80&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;dr-xr-x---.&amp;nbsp; 3 root root&amp;nbsp; 4096 Jun 28 05:21 .&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;dr-xr-xr-x. 25 root root&amp;nbsp; 4096 Jun 28 07:19 ..&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-rw-------&amp;nbsp;&amp;nbsp; 1 root root&amp;nbsp;&amp;nbsp; 420 Jun 28 09:17 .bash_history&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-rw-r--r--.&amp;nbsp; 1 root root&amp;nbsp;&amp;nbsp;&amp;nbsp; 18 May 20&amp;nbsp; 2009 .bash_logout&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-rw-r--r--.&amp;nbsp; 1 root root&amp;nbsp;&amp;nbsp; 176 May 20&amp;nbsp; 2009 .bash_profile&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-rw-r--r--.&amp;nbsp; 1 root root&amp;nbsp;&amp;nbsp; 176 Sep 23&amp;nbsp; 2004 .bashrc&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-rw-r--r--.&amp;nbsp; 1 root root&amp;nbsp;&amp;nbsp; 100 Sep 23&amp;nbsp; 2004 .cshrc&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;drwx------&amp;nbsp;&amp;nbsp; 2 root root&amp;nbsp; 4096 Jun 24 05:22 .ssh&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-rw-r--r--.&amp;nbsp; 1 root root&amp;nbsp;&amp;nbsp; 129 Dec&amp;nbsp; 4&amp;nbsp; 2004 .tcshrc&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-rw-------.&amp;nbsp; 1 root root&amp;nbsp; 1364 Jun 24 04:40 anaconda-ks.cfg&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-rw-r--r--.&amp;nbsp; 1 root root 26876 Jun 24 04:39 install.log&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-rw-r--r--.&amp;nbsp; 1 root root&amp;nbsp; 7572 Jun 24 04:38 install.log.syslog&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;To cat a file of KVM guest use “virt-cat –d DOMAIN filename”&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# virt-cat -d TESTER1 /etc/sysconfig/network&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;NETWORKING=yes&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;HOSTNAME=TESTER1&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;To check the mount points utilization of a KVM guest from host use “virt-df –h –d DOMAIN”&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# virt-df -h -d TESTER1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Filesystem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Used&amp;nbsp; Available&amp;nbsp; Use%&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;TESTER1:/dev/sda1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 193M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 28M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 155M&amp;nbsp;&amp;nbsp; 15%&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;TESTER1:/dev/OSVG/lvroot&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.7G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.7G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.6G&amp;nbsp;&amp;nbsp; 23%&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;To find partitions, filesystem, LVM of KVM guest use “virt-filesystems -d DOMAIN&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# virt-filesystems -d TEST-LINUX1 --long --all&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VFS&amp;nbsp; Label MBR Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Parent&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/dev/sda1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filesystem ext4 -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; 524288000&amp;nbsp;&amp;nbsp; -&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/dev/VolGroup/lv_root filesystem ext4 -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; 10242490368 -&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/dev/VolGroup/lv_swap filesystem swap -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; 2113929216&amp;nbsp; -&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/dev/VolGroup/lv_root lv&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; 10242490368 /dev/VolGroup&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/dev/VolGroup/lv_swap lv&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; 2113929216&amp;nbsp; /dev/VolGroup&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/dev/VolGroup&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vg&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; 12356419584 -&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/dev/sda2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pv&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; 12356419584 -&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/dev/sda1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; partition&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 83&amp;nbsp; 524288000&amp;nbsp;&amp;nbsp; /dev/sda&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/dev/sda2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; partition&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8e&amp;nbsp; 12359565312 /dev/sda&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/dev/sda&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; 12884901888 -&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;To copy file/directory from KVM guest to host use “virt-copy-out -d DOMAIN /file|dir localdir”&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# virt-copy-out -d TESTER1 /root/testfile.txt /root&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;To copy file/directory from host to KVM guest use “virt-copy-in -d domain file|dir /destination”&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# virt-copy-in -d TESTER1 /root/testerfile1.txt /root/&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Note&lt;/b&gt;: Using &quot;virt-copy-in&quot; on live virtual machines can be dangerous, potentially causing disk corruption.&amp;nbsp; The virtual machine must be shutdown before you use this command.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;To edit file of KVM guest use “virt-edit -d DOMAIN filename”&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# virt-edit -b .orig -d TEST-LINUX1 /root/testfile.txt&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Use –b option to make a backup of original file.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Note&lt;/b&gt;: Using &quot;virt-edit&quot; on live virtual machines can be dangerous, potentially causing disk corruption.&amp;nbsp; The virtual machine must be shutdown before you use this command.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
There are lots of other command line tools to administer KVM virtual machines on RHEL6.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
For any queries post comments. &lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxsuperuser07.blogspot.com/feeds/3741781469095845455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxsuperuser07.blogspot.com/2013/08/kvm-command-line-administration.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1207220632147534751/posts/default/3741781469095845455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1207220632147534751/posts/default/3741781469095845455'/><link rel='alternate' type='text/html' href='http://linuxsuperuser07.blogspot.com/2013/08/kvm-command-line-administration.html' title='KVM - Command Line Administration'/><author><name>Pawan Sharma</name><uri>http://www.blogger.com/profile/15882606556703645653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHrNVBKXY-CobnaRGvRIP-UylOEVu5Jjt_Ra6e7EjG8G1V4OgxHWAtFCE2MEBUZHlauDfcrpGrTaBtlZQUq30kPBTAafZsGq3VJ4aGhsWvCVMUccJa7uvuROAmS73ksiE/s220/FB+Profile+Pic.jpg'/></author><thr:total>3</thr:total><georss:featurename>Mumbai, Maharashtra, India</georss:featurename><georss:point>19.0759837 72.877655900000036</georss:point><georss:box>18.595792699999997 72.232208900000032 19.5561747 73.52310290000004</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1207220632147534751.post-1623018140571221107</id><published>2013-07-18T23:04:00.002+05:30</published><updated>2013-07-20T22:13:05.834+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="KVM"/><title type='text'>Creating KVM Virtual Machines in RHEL6.</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;In this post we will discuss about packages required for KVM (Virtualization), creation of KVM virtual machine and managing those virtual machines. KVM can run multiple windows and Linux guest operating system. KVM virtualization is only available for 64 bits machines. You can’t use KVM virtualization on 34 bit architecture machines.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;You can install KVM virtualization environment at the time of RHEL6 installation by selecting virtual host packages. Or on currently installed RHEL6 server, you can install packages using yum. For full KVM virtualization host you will require virt-manager, libvirt libvirt-python, python-virtinst, libvirt-client.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;scrollbox&quot; style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;width: 110%;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# yum install –y virt-manager libvirt libvirt-python python-virtinst libvirt-client&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;If you don’t have yum server, you can configure it by following easy steps mentioned in &lt;b&gt;&lt;a href=&quot;http://linuxsuperuser07.blogspot.in/2013/03/configure-yum-server-in-redhat.html&quot; target=&quot;_blank&quot;&gt;this&lt;/a&gt; &lt;/b&gt;post.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;After installing KVM packages you can now create new virtual machines using virt-install command or using virt-manager GUI.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;1. Start libvirtd daemon to start KVM virtualization.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;width: 100%;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# /etc/init.d/libvirtd start&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# chkconfig libvirtd on&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;2. Open Applications --&amp;gt; System Tools --&amp;gt; Virtual Machine Manager. Or run virt-manager command as root user. Click on create new virtual machine button.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK70h6kUjUTBd1hP5LX5eeYr2EDpKMhcdaIl1_VUbfUL3k5lKk14xDvVNfZC-82ktcU7aKkRVgZhoBwiaG1wqDmLIYTDTztY-Q3ZNBL6bxKEStlWP6J-Xeon0qi-gGtYeXa1tlMyyjbZ8/s1600/01virt-manager.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK70h6kUjUTBd1hP5LX5eeYr2EDpKMhcdaIl1_VUbfUL3k5lKk14xDvVNfZC-82ktcU7aKkRVgZhoBwiaG1wqDmLIYTDTztY-Q3ZNBL6bxKEStlWP6J-Xeon0qi-gGtYeXa1tlMyyjbZ8/s400/01virt-manager.JPG&quot; width=&quot;382&quot; /&gt; &lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;3. Give name to virtual machine and select installation media option. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDfJHFUVyzvF2QZzH9VipMAm-aNlZzB5LxnnFzACDtMLD8DiwsrqXLm8xmS36IMStKbeL54THsPkzygdyDLqExQriN3hmVw-pCS6K2MnzT2jBby_MgqrXs27Q7z1Uwgf4cd-ZHMP3eisE/s1600/Step01.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDfJHFUVyzvF2QZzH9VipMAm-aNlZzB5LxnnFzACDtMLD8DiwsrqXLm8xmS36IMStKbeL54THsPkzygdyDLqExQriN3hmVw-pCS6K2MnzT2jBby_MgqrXs27Q7z1Uwgf4cd-ZHMP3eisE/s1600/Step01.JPG&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;4. In this example we have selected ISO image as our installation media. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQtIf0GrJ3SXSJodaaT0cQqkek-RN_YlEOFi5DTIPygr6s0kmqkADOw95GePTHogwVaKOXNmd6Sm8O3K0RDpielKN1lkyCqfbreyhTzPQ9vEO74aOqOwPIkoXbl1VjYFKGmKLa_i0cxd0/s1600/Step02.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQtIf0GrJ3SXSJodaaT0cQqkek-RN_YlEOFi5DTIPygr6s0kmqkADOw95GePTHogwVaKOXNmd6Sm8O3K0RDpielKN1lkyCqfbreyhTzPQ9vEO74aOqOwPIkoXbl1VjYFKGmKLa_i0cxd0/s1600/Step02.JPG&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;5. Define RAM and CPU for the KVM virtual machine.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsUb4VBGQ2uuvtZsa75mrp3NCFAbKwIwiZdFn6-uOTWRa_Pw8E52zeSsYfFbdWkYCW1Pu9WQlo4xf75nLDYViMAG0qDFmT1LsHwXFqshKbyDra1Tj6JaDD3luXs27PRayAFnFtJb2U8vI/s1600/Step04.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsUb4VBGQ2uuvtZsa75mrp3NCFAbKwIwiZdFn6-uOTWRa_Pw8E52zeSsYfFbdWkYCW1Pu9WQlo4xf75nLDYViMAG0qDFmT1LsHwXFqshKbyDra1Tj6JaDD3luXs27PRayAFnFtJb2U8vI/s1600/Step04.JPG&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;6. Define disk size.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjICQiiSocOGfQr3E9dRO4pRVjQP3xVKw5nrEEE1LFbusP3Xd4Y2m4EVTlvFBNA6KaF_jqgXSSJs37newzA8vjJIbjE6szHrKMZvqjtyVX2DlajTbdpl3vHNHCR_Xt3uqUDzSvBs-tNLrw/s1600/Step05.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjICQiiSocOGfQr3E9dRO4pRVjQP3xVKw5nrEEE1LFbusP3Xd4Y2m4EVTlvFBNA6KaF_jqgXSSJs37newzA8vjJIbjE6szHrKMZvqjtyVX2DlajTbdpl3vHNHCR_Xt3uqUDzSvBs-tNLrw/s1600/Step05.JPG&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;7. Select network options (Bridge or NAT) as per your requirements and click finish.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTmmwg-fJTvmAWEwehYux2WlxyvhpJmCsuhlG0LXCH3Xqhr-fx93YRK19Od0wHHBfIAv0N6k_7-nwWKES-XPhj3EpfFtFQPFiYaO62jtVDxOz3XUJaX5JUjRVmHjS1e6rIXA6boACeQEM/s1600/Step06.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTmmwg-fJTvmAWEwehYux2WlxyvhpJmCsuhlG0LXCH3Xqhr-fx93YRK19Od0wHHBfIAv0N6k_7-nwWKES-XPhj3EpfFtFQPFiYaO62jtVDxOz3XUJaX5JUjRVmHjS1e6rIXA6boACeQEM/s1600/Step06.JPG&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;8. Install RHEL on the created KVM virtual guest.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiV8lLA_n4W1AQFKUoTEhV_Nm52RPgNBTH4jLZHGxNsiqWyBkqcaTTQvOSTisGU1B5xRSb0KK56ilnBKuDyTIRWSF1i3qR9c0qfSJjFJHg5BHNeBAjLjwYWcXUg94Qk5Tpv5CfC0N7Rlc/s1600/Step07.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;330&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiV8lLA_n4W1AQFKUoTEhV_Nm52RPgNBTH4jLZHGxNsiqWyBkqcaTTQvOSTisGU1B5xRSb0KK56ilnBKuDyTIRWSF1i3qR9c0qfSJjFJHg5BHNeBAjLjwYWcXUg94Qk5Tpv5CfC0N7Rlc/s400/Step07.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;For RHEL installation steps follow &lt;a href=&quot;http://linuxsuperuser07.blogspot.in/2011/03/rhce-installation-steps.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;this&lt;/b&gt;&lt;/a&gt; post.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;In next post we will discuss about command line tools for administering KVM virtual machines.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Please comment if you have any questions.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxsuperuser07.blogspot.com/feeds/1623018140571221107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxsuperuser07.blogspot.com/2013/07/creating-kvm-virtual-machines-in-rhel6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1207220632147534751/posts/default/1623018140571221107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1207220632147534751/posts/default/1623018140571221107'/><link rel='alternate' type='text/html' href='http://linuxsuperuser07.blogspot.com/2013/07/creating-kvm-virtual-machines-in-rhel6.html' title='Creating KVM Virtual Machines in RHEL6.'/><author><name>Pawan Sharma</name><uri>http://www.blogger.com/profile/15882606556703645653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHrNVBKXY-CobnaRGvRIP-UylOEVu5Jjt_Ra6e7EjG8G1V4OgxHWAtFCE2MEBUZHlauDfcrpGrTaBtlZQUq30kPBTAafZsGq3VJ4aGhsWvCVMUccJa7uvuROAmS73ksiE/s220/FB+Profile+Pic.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK70h6kUjUTBd1hP5LX5eeYr2EDpKMhcdaIl1_VUbfUL3k5lKk14xDvVNfZC-82ktcU7aKkRVgZhoBwiaG1wqDmLIYTDTztY-Q3ZNBL6bxKEStlWP6J-Xeon0qi-gGtYeXa1tlMyyjbZ8/s72-c/01virt-manager.JPG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Mumbai, Maharashtra, India</georss:featurename><georss:point>19.0759837 72.877655900000036</georss:point><georss:box>18.595792699999997 72.232208900000032 19.5561747 73.52310290000004</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1207220632147534751.post-8629502230780345450</id><published>2013-07-09T22:49:00.000+05:30</published><updated>2013-07-21T16:34:53.636+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="KVM"/><title type='text'>Network Device not working after cloning RHEL6 VM (Device eth0 does not seem to be present, delaying initialization)</title><content type='html'>In this post I will give solution to one problem I faced while cloning RHEL6 virtual machine.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ISSUE&lt;/b&gt;: I have installed RHEL6.2 on KVM/VMware workstation/Oracle VirtualBox. After installation I have cloned the virtual machine. And when starting cloned virtual machine I get below error while restarting the network service.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Device eth0 does not seem to be present, delaying initialization&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglSQYCVq7GB8yquaGd2LghlmrGMSaApxD2IK4BrlM8G7BlMyOzZUgvsXLHsOrGbPCxe4bZ4mfeOugy6QVTnh6koD-vzQJfIxT-5ASTc6e4pYG1NSxOtpXxM-3ukNIjpjV-EZ50JqHdavg/s1600/eth0_error.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglSQYCVq7GB8yquaGd2LghlmrGMSaApxD2IK4BrlM8G7BlMyOzZUgvsXLHsOrGbPCxe4bZ4mfeOugy6QVTnh6koD-vzQJfIxT-5ASTc6e4pYG1NSxOtpXxM-3ukNIjpjV-EZ50JqHdavg/s1600/eth0_error.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
I have also removed HWADDR entry from “/etc/sysconfig/network-scripts/ifcfg-eth0”, but still I am getting the same error.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;SOLUTION&lt;/b&gt;: To resolve this problem follow below mentioned steps:&lt;br /&gt;
&lt;br /&gt;
1. As mentioned above, remove HWADDR entry form “/etc/sysconfig/network-scripts/ifcfg-eth0”.&lt;br /&gt;
&lt;br /&gt;
2. Take backup of file “/etc/udev/rules.d/70-persistent-net.rules” and remove all reference to eth0.&lt;br /&gt;
&lt;br /&gt;
Ex. &lt;br /&gt;
&lt;div class=&quot;scrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 143%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@squid2 ~]# cp /etc/udev/rules.d/70-persistent-net.rules /root/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@squid2 ~]# cat /etc/udev/rules.d/70-persistent-net.rules&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# This file was automatically generated by the /lib/udev/write_net_rules&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# program, run by the persistent-net-generator.rules rules file.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# You can modify it, as long as you keep each rule on a single&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# line, and change only the value of the NAME= key.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: #bbdca1;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# PCI device 0x8086:0x100e (e1000)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;08:00:27:08:fa:85&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth0&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# PCI device 0x8086:0x100e (e1000)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;08:00:27:b7:08:97&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth0&quot;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Entry for PCI device marked with green color is the entry for Ethernet card.&lt;br /&gt;
&lt;br /&gt;
3. Remove the marked entry for both PCI devices from the file “/etc/udev/rules.d/70-persistent-net.rules”.&lt;br /&gt;
&lt;br /&gt;
4. Restart the server.&lt;br /&gt;
&lt;br /&gt;
After restart, you will be able to get IP information for the Ethernet card.&lt;br /&gt;
&lt;br /&gt;
If you have any questions please comment.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxsuperuser07.blogspot.com/feeds/8629502230780345450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxsuperuser07.blogspot.com/2013/07/network-device-not-working-after.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1207220632147534751/posts/default/8629502230780345450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1207220632147534751/posts/default/8629502230780345450'/><link rel='alternate' type='text/html' href='http://linuxsuperuser07.blogspot.com/2013/07/network-device-not-working-after.html' title='Network Device not working after cloning RHEL6 VM (Device eth0 does not seem to be present, delaying initialization)'/><author><name>Pawan Sharma</name><uri>http://www.blogger.com/profile/15882606556703645653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHrNVBKXY-CobnaRGvRIP-UylOEVu5Jjt_Ra6e7EjG8G1V4OgxHWAtFCE2MEBUZHlauDfcrpGrTaBtlZQUq30kPBTAafZsGq3VJ4aGhsWvCVMUccJa7uvuROAmS73ksiE/s220/FB+Profile+Pic.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglSQYCVq7GB8yquaGd2LghlmrGMSaApxD2IK4BrlM8G7BlMyOzZUgvsXLHsOrGbPCxe4bZ4mfeOugy6QVTnh6koD-vzQJfIxT-5ASTc6e4pYG1NSxOtpXxM-3ukNIjpjV-EZ50JqHdavg/s72-c/eth0_error.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Mumbai, Maharashtra, India</georss:featurename><georss:point>19.0759837 72.877655900000036</georss:point><georss:box>18.595792699999997 72.232208900000032 19.5561747 73.52310290000004</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1207220632147534751.post-2130566014200922221</id><published>2013-03-22T18:01:00.000+05:30</published><updated>2013-07-21T11:41:15.744+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Package Management"/><title type='text'>Configure YUM server to install/update packages on remote server</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
In the &lt;b&gt;&lt;a href=&quot;http://linuxsuperuser07.blogspot.in/2013/03/configure-yum-server-in-redhat.html&quot; target=&quot;_blank&quot;&gt;previous&lt;/a&gt;&lt;/b&gt; post we learn how to create a YUM repository or YUM server on Redhat Enterprise Linux 6. Now if you want to use this YUM server to manage packages on other servers follow below mentioned steps.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
1. Create the YUM server as described in &lt;a href=&quot;http://linuxsuperuser07.blogspot.in/2013/03/configure-yum-server-in-redhat.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;previous&lt;/b&gt;&lt;/a&gt; post.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
2. Install vsftpd using yum command.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# yum install vsftpd&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
3. Make changes in “/etc/vsftpd/vsftpd.conf” as below.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;anonymous_enable=YES&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;anon_root=/mnt&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
4. Login to the client machine on which you want to install packages.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
5. Create a .repo file in “/etc/yum.repos.d/” directory.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# vi /etc/yum.repos.d/RHEL6.repo &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[RHEL6]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;name= RHEL 6 remote repository&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;baseurl=file:///yum_server_ip/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;enabled=1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;gpgcheck=0&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
6. Run command yum clean all.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# yum clean all&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
You can now use yum commands to install, remove and query packages.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;scrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 150%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# yum info httpd&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id, refresh-packagekit, security, subscription-manager, tmprepo, verify,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : versionlock&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Updating certificate-based repositories.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Loading support for Red Hat kernel ABI&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Installed Packages&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : httpd&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Arch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : x86_64&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2.2.15&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Release&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 15.el6&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2.9 M&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Repo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : installed&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;From repo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : anaconda-RedHatEnterpriseLinux-201105101844.x86_64&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Summary&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Apache HTTP Server&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;URL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : http://httpd.apache.org/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;License&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : ASL 2.0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Description&amp;nbsp;&amp;nbsp;&amp;nbsp; : The Apache HTTP Server is a powerful, efficient, and extensible&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : web server.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Please comment if you have any questions.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxsuperuser07.blogspot.com/feeds/2130566014200922221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxsuperuser07.blogspot.com/2013/03/configure-yum-server-to-installupdate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1207220632147534751/posts/default/2130566014200922221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1207220632147534751/posts/default/2130566014200922221'/><link rel='alternate' type='text/html' href='http://linuxsuperuser07.blogspot.com/2013/03/configure-yum-server-to-installupdate.html' title='Configure YUM server to install/update packages on remote server'/><author><name>Pawan Sharma</name><uri>http://www.blogger.com/profile/15882606556703645653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHrNVBKXY-CobnaRGvRIP-UylOEVu5Jjt_Ra6e7EjG8G1V4OgxHWAtFCE2MEBUZHlauDfcrpGrTaBtlZQUq30kPBTAafZsGq3VJ4aGhsWvCVMUccJa7uvuROAmS73ksiE/s220/FB+Profile+Pic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1207220632147534751.post-9046817810738577945</id><published>2013-03-20T17:13:00.000+05:30</published><updated>2013-07-21T16:30:51.161+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Package Management"/><title type='text'>Configure YUM server in Redhat Enterprise Linux 6 (RHEL6)</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Package management is one of the main objectives of RHCSA certification exam. Also as a system administrator you have to install, remove and update packages. In this post we will learn how to configure YUM server for package management on local machine as well as on remote machines. Yum server gives ease to package management in Linux. Using yum server you can query about installed packages, install or remove packages and upgrade or degrade packages as per your requirements.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The main configuration file for yum server is “&lt;i&gt;&lt;b&gt;/etc/yum.conf&lt;/b&gt;&lt;/i&gt;”. YUM server gets you out of which we know as “Dependency Hell”. It resolves and installs all dependencies related to a package. YUM server creates a database of packages. In this database it stores information like: all installed packages, all available packages, updates, etc. In this post we will see:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;How to configure local YUM server for RHEL6 DVD iso.&lt;/li&gt;
&lt;li&gt;How to create YUM server to update packages through FTP.&lt;/li&gt;
&lt;li&gt;How to configure YUM clients.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;STEPS TO CONFIGURE YUM SERVER.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In this exercise we will use RHEL6 DVD.iso. You can mount and copy contents of DVD on local server or if you don’t have enough space you can mount and directly use it as a repository. For now we will mount RHEL6 DVD.iso and use it as our repository for packages.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
1. Mount the RHEL6 DVD.iso on /mnt (you can mount it on any directory of your choice).&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# mount -o loop rhel-server-6.2-x86_64-dvd.iso /mnt&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
2. Create a new file in directory “/etc/yum.repos.d/”.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Note&lt;/b&gt;: “/etc/yum.repos.d/” directory is default configuration directory for yum. You have to create a file with extension “.repo” and make below mentioned entries in the file.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# vi /etc/yum.repos.d/RHEL6.repo&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[RHEL6]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;name= RHEL 6 local repository&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;baseurl=file:///mnt/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;enabled=1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;gpgcheck=0&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
3. Run command yum clean all.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;noscrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 100%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# yum clean all&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
4. You can now use yum commands to install, remove and query packages.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;scrollbox&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;width: 150%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# yum info httpd&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id, refresh-packagekit, security, subscription-manager, tmprepo, verify,&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : versionlock&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Updating certificate-based repositories.&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Loading support for Red Hat kernel ABI&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Installed Packages&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : httpd&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Arch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : x86_64&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2.2.15&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Release&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 15.el6&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2.9 M&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Repo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : installed&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;From repo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : anaconda-RedHatEnterpriseLinux-201105101844.x86_64&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Summary&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Apache HTTP Server&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;URL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : http://httpd.apache.org/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;License&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : ASL 2.0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Description&amp;nbsp;&amp;nbsp; : The Apache HTTP Server is a powerful, efficient, and extensible&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : web server.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In the &lt;a href=&quot;http://linuxsuperuser07.blogspot.in/2013/03/configure-yum-server-to-installupdate.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;next&lt;/b&gt;&lt;/a&gt; post we will learn how to install/update packages on a remote server form yum server.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxsuperuser07.blogspot.com/feeds/9046817810738577945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxsuperuser07.blogspot.com/2013/03/configure-yum-server-in-redhat.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1207220632147534751/posts/default/9046817810738577945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1207220632147534751/posts/default/9046817810738577945'/><link rel='alternate' type='text/html' href='http://linuxsuperuser07.blogspot.com/2013/03/configure-yum-server-in-redhat.html' title='Configure YUM server in Redhat Enterprise Linux 6 (RHEL6)'/><author><name>Pawan Sharma</name><uri>http://www.blogger.com/profile/15882606556703645653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHrNVBKXY-CobnaRGvRIP-UylOEVu5Jjt_Ra6e7EjG8G1V4OgxHWAtFCE2MEBUZHlauDfcrpGrTaBtlZQUq30kPBTAafZsGq3VJ4aGhsWvCVMUccJa7uvuROAmS73ksiE/s220/FB+Profile+Pic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1207220632147534751.post-6910582366415496947</id><published>2013-03-17T16:56:00.001+05:30</published><updated>2013-07-21T16:30:10.505+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Package Management"/><title type='text'>Package Management in RHEL6: YUM</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Package management is one of the main objectives of RHCSA and RHCE exams on RHEL6. It is required to install and configure packages during the certification exam. In previous posts we have discussed installing package using rpm command. In Redhat Enterprise Linux 6 (RHEL6), to install a package we also have to install its dependencies.&lt;br /&gt;
&lt;br /&gt;
This could be a difficult process as some packages have more than 50 dependent packages so we have to find out those dependent packages and install all of them one by one, also there could be dependency for the dependency. In Linux this is called “&lt;b&gt;Dependency Hell&lt;/b&gt;”. To make this process easier, we can create a local YUM server or can configure a YUM server on FTP/HTTP to make it as a centralized repository for all servers.&lt;br /&gt;
&lt;br /&gt;
YUM (Yellow Dog updater, modifier) maintains a database regarding the packages. This database contains information about installed packages, available packages, and automatically resolves dependencies while installing packages. The yum database is also known as repository.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;What is a repository?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
A repository is collection of rpm packages. Repository can also include group of packages. For example RHN includes following RHEL6 repositories:&lt;br /&gt;
&lt;br /&gt;
Red Hat Enterprise Linux Server: This is the main repository, which includes both packages associated with installation of RHEL6 and updated packages.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;RHN Tools&lt;/b&gt;: Repository for managing RHN connections and Kickstart installation.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;RHN Server Supplementary&lt;/b&gt;: Repository of packages other that open source like adobe and java.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;RHELV2VWIN&lt;/b&gt;: Repository to support package to read Microsoft formatted partitions.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;RHEL Server Optional&lt;/b&gt;: Large group of packages other than server package like desktop packages, etc.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Each repository contains a database about the packages in the repository. This database can be found under repodata directory in each repository. This database contains information about each package and its dependencies.&lt;br /&gt;
&lt;br /&gt;
You can also create your own repository of packages. To create a repository, you need createrepo package installed. &lt;br /&gt;
&lt;br /&gt;
In the &lt;a href=&quot;http://linuxsuperuser07.blogspot.in/2013/03/configure-yum-server-in-redhat.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;next&lt;/b&gt;&lt;/a&gt; post we will see how to configure YUM server and Client. Also we will learn how to create YUM server for RHEL6 DVD iso to update packages on local and remote machines.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxsuperuser07.blogspot.com/feeds/6910582366415496947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxsuperuser07.blogspot.com/2013/03/package-management-in-rhel6-yum.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1207220632147534751/posts/default/6910582366415496947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1207220632147534751/posts/default/6910582366415496947'/><link rel='alternate' type='text/html' href='http://linuxsuperuser07.blogspot.com/2013/03/package-management-in-rhel6-yum.html' title='Package Management in RHEL6: YUM'/><author><name>Pawan Sharma</name><uri>http://www.blogger.com/profile/15882606556703645653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHrNVBKXY-CobnaRGvRIP-UylOEVu5Jjt_Ra6e7EjG8G1V4OgxHWAtFCE2MEBUZHlauDfcrpGrTaBtlZQUq30kPBTAafZsGq3VJ4aGhsWvCVMUccJa7uvuROAmS73ksiE/s220/FB+Profile+Pic.jpg'/></author><thr:total>0</thr:total></entry></feed>