<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Virtualization on Amit Agarwal Linux Blog</title>
    <link>/tags/virtualization/</link>
    <description>Recent content in Virtualization on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Wed, 06 Jul 2022 00:00:00 +0530</lastBuildDate>
    
	<atom:link href="/tags/virtualization/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>VMWare workstation - ova import not working</title>
      <link>/2022/07/06/vmware-workstation-import-ova/</link>
      <pubDate>Wed, 06 Jul 2022 00:00:00 +0530</pubDate>
      
      <guid>/2022/07/06/vmware-workstation-import-ova/</guid>
      <description>&lt;h1 id=&#34;vmware-workstation---ova-import-not-working&#34;&gt;VMWare workstation - ova import not working&lt;/h1&gt;
&lt;p&gt;When importing ova and/or ovf files, if Workstation does not give
any error but does not import the file as well, try importing the
file in VMWare Player. When you do that, you will see that if the
import fails, player will show a dialogue with log file name similar
to &lt;strong&gt;/tmp/vmaware-&amp;lt;amitag&amp;gt;/&lt;somefile&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;From there, I was able to find out that, it was running &lt;em&gt;ovftool.bin&lt;/em&gt;.
Try to run that in a terminal and immediately I could see that libnsl was missing
so, I just installed the same with&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>virt-install with cloud-init</title>
      <link>/2022/02/05/virt-install-with-cloud-init/</link>
      <pubDate>Wed, 09 Feb 2022 00:00:00 +0530</pubDate>
      
      <guid>/2022/02/05/virt-install-with-cloud-init/</guid>
      <description>&lt;p&gt;If you have not heard about cloud-init then you should definately search for it and learn about cloud-config as well. You can find the documentation for &lt;a href=&#34;https://cloudinit.readthedocs.io/en/latest/&#34;&gt;cloud-config here&lt;/a&gt;. It is used for configuring VMs when running in cloud environments. Specially useful to inject the ssh keys or set the root password but you can do anything in the cloud-config as there is a section where you can run bash commands. While this is useful for cloud instances, you can make use of this feature when running your vm with qemu or libvirtd. All you need to do is either attach a iso disc with user-data and meta-data files in it or even simpler, you can use virt-install command. The command that I use is as follows&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Podman repositories on ubuntu like distros</title>
      <link>/2020/08/01/podman-on-ubuntu-like-distro/</link>
      <pubDate>Sat, 01 Aug 2020 08:38:57 +0530</pubDate>
      
      <guid>/2020/08/01/podman-on-ubuntu-like-distro/</guid>
      <description>&lt;p&gt;Recently I installed podman on ubuntu based dervative. I like podman a
lot but to my distress I found that after installation, I was not able
to search or run any containers. Found out that the repositories
were not configured. So, if you run into such issues, then here is what
you need to do. You need to create a file &lt;em&gt;/etc/containers/registries.conf&lt;/em&gt;.
And the contents of the file for just one docker hub registries would be -&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Fix display size on libvirt/Qemu guest</title>
      <link>/2017/05/22/fix-display-size-libvirtqemu-guest/</link>
      <pubDate>Mon, 22 May 2017 01:05:14 +0000</pubDate>
      
      <guid>/2017/05/22/fix-display-size-libvirtqemu-guest/</guid>
      <description>&lt;p&gt;Lot of times I find myself of VM that does not correctly resize the screen display and that is literally nuisance. So, here is quick and dirty fix for this.&lt;/p&gt;
&lt;p&gt;First you need to find out information about your display with following command:&lt;/p&gt;
&lt;pre class=&#34;brush:shell&#34;&gt;xrandr -q&lt;/pre&gt;
&lt;p&gt;And you will see output like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192&lt;br&gt;
Virtual-0 connected primary 1920×1080+0+0 0mm x 0mm&lt;br&gt;
1024×768      59.92 +&lt;br&gt;
1920×1200     59.88&lt;br&gt;
1920×1080     59.96*&lt;br&gt;
1600×1200     59.87&lt;br&gt;
1680×1050     59.95&lt;br&gt;
1400×1050     59.98&lt;br&gt;
1280×1024     59.89&lt;br&gt;
1440×900      59.89&lt;br&gt;
1280×960      59.94&lt;br&gt;
1280×854      59.89&lt;br&gt;
1280×800      59.81&lt;br&gt;
1280×720      59.86&lt;br&gt;
1152×768      59.78&lt;br&gt;
800×600       59.86&lt;br&gt;
848×480       59.66&lt;br&gt;
720×480       59.71&lt;br&gt;
640×480       59.38&lt;br&gt;
Virtual-1 disconnected&lt;br&gt;
Virtual-2 disconnected&lt;br&gt;
Virtual-3 disconnected&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Install virtual machines in one line</title>
      <link>/2016/07/25/install-virtual-machines-line/</link>
      <pubDate>Mon, 25 Jul 2016 00:47:23 +0000</pubDate>
      
      <guid>/2016/07/25/install-virtual-machines-line/</guid>
      <description>&lt;p&gt;To install a VM from command line, you can use the following command. Change the required parameters as need but you need to change at-least CDROM iso image and disk-path.&lt;/p&gt;
&lt;pre class=&#34;brush:shell&#34;&gt;virt-install \
    -n myVM \
    --description &#34;Test VM&#34; \
    --os-type=Linux \
        --os-variant=centos7 \
        --ram=2048 \
        --vcpus=2 \
        --disk path=./myVM.img,bus=virtio,size=10 \
        --graphics none \
        --cdrom  &amp;lt;Image installtion CDROM&amp;gt;.iso \
        --net user
&lt;/pre&gt;</description>
    </item>
    
    <item>
      <title>Python script to manage virtual machines with python API for libvirt.</title>
      <link>/2016/07/04/python-script-manage-virtual-machines-python-api-libvirt/</link>
      <pubDate>Mon, 04 Jul 2016 01:00:51 +0000</pubDate>
      
      <guid>/2016/07/04/python-script-manage-virtual-machines-python-api-libvirt/</guid>
      <description>&lt;p&gt;Most of times I use virt-manager to manage VMs but sometimes, I have to manage VMs on other hosts over ssh when connected over VPN or while I am working remotely. GUI like virt-manager thus becomes slow, and hence I like to use cli commands and nothing is better than virsh. But here is simple script that I use sometimes to manage the VMs with CLI based menu. Hope you find it useful.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Most simple and fast lightweight container with Fedora systemd</title>
      <link>/2016/04/15/simple-fast-lightweight-container-fedora-systemd/</link>
      <pubDate>Fri, 15 Apr 2016 01:05:32 +0000</pubDate>
      
      <guid>/2016/04/15/simple-fast-lightweight-container-fedora-systemd/</guid>
      <description>&lt;p&gt;If you need to have a quick bash shell in sandbox with not network as well, then the most simple command I could find so far is:&lt;/p&gt;
&lt;pre class=&#34;brush:shell&#34;&gt;sudo virt-sandbox -c lxc:/// /bin/bash&lt;/pre&gt;
&lt;p&gt;For this you will need to have libvirt-sandbox installed which you can do with the following command:&lt;/p&gt;
&lt;pre class=&#34;brush:shell&#34;&gt;sudo yum install libvirt-sandbox&lt;/pre&gt;</description>
    </item>
    
    <item>
      <title>virsh – show ip address of all running VMs</title>
      <link>/2016/02/01/virsh-show-ip-address-running-vms/</link>
      <pubDate>Mon, 01 Feb 2016 00:52:31 +0000</pubDate>
      
      <guid>/2016/02/01/virsh-show-ip-address-running-vms/</guid>
      <description>&lt;p&gt;If you are using the libvirt and associated tools, then you must be aware about virt-manager. However this being a GUI tools, it is not possible to always use this. “virsh” is a good option for this.&lt;/p&gt;
&lt;p&gt;To start with, if you need to know all the VMs all the running VMs, then you can use (to only view the names):&lt;/p&gt;
&lt;pre class=&#34;brush:shell&#34;&gt;virsh list --name&lt;/pre&gt;
&lt;p&gt;Extending this to make it more useful is the case if you need to know the IP address for the running VMs. Here is a simple code that you can put in alias or function that can be used to get the IP address of the running VM’s.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>dnsmasq local name resolution with NetworkManager</title>
      <link>/2015/08/27/dnsmasq-local-resolution-networkmanager/</link>
      <pubDate>Thu, 27 Aug 2015 01:15:06 +0000</pubDate>
      
      <guid>/2015/08/27/dnsmasq-local-resolution-networkmanager/</guid>
      <description>&lt;p&gt;&lt;a class=&#34;zem_slink&#34; title=&#34;NetworkManager&#34; href=&#34;http://projects.gnome.org/NetworkManager/&#34; target=&#34;_blank&#34; rel=&#34;homepage&#34;&gt;Network Manager&lt;/a&gt; suports starting dnsmasq which helps you have a local cache for &lt;a class=&#34;zem_slink&#34; title=&#34;Domain Name System&#34; href=&#34;http://en.wikipedia.org/wiki/Domain_Name_System&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;DNS&lt;/a&gt; thus getting faster resolution for the DNS queries.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://blog.amit-agarwal.co.in/2013/01/28/dnsmasq-network-manager/&#34;&gt;Dnsmasq with netowrkmanager&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So, one thing that I have been thinking about is having a local &lt;a class=&#34;zem_slink&#34; title=&#34;Name resolution&#34; href=&#34;http://en.wikipedia.org/wiki/Name_resolution&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;name resolution&lt;/a&gt; for the VMs. So, I wanted something like this to work:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;vm1 =&amp;gt; 172.17.42,1&lt;/p&gt;
&lt;p&gt;vm2 =&amp;gt; 172.17.42,2&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;and so on …&lt;/p&gt;
&lt;p&gt;To achieve this and &lt;a class=&#34;zem_slink&#34; title=&#34;Reverse DNS lookup&#34; href=&#34;http://en.wikipedia.org/wiki/Reverse_DNS_lookup&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;reverse dns&lt;/a&gt; to work, we will add the entries in file “&lt;strong&gt;/etc/NetworkManager/dnsmasq.d/hostnames&lt;/strong&gt;“. Just one more problem, adding so many entries manually? So, to help you with that, I created this small script:&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>docker search description truncated</title>
      <link>/2015/05/05/docker-search-description-truncated/</link>
      <pubDate>Tue, 05 May 2015 00:55:32 +0000</pubDate>
      
      <guid>/2015/05/05/docker-search-description-truncated/</guid>
      <description>&lt;p&gt;When you search with “docker search”, you would notice that the description of the image is truncated. Sometimes you want to see full description, to do so, you can use &lt;strong&gt;–no-trunc&lt;/strong&gt; option. So, for example you want to search for fedora images, you can use the following command:&lt;/p&gt;
&lt;pre class=&#34;brush:shell&#34;&gt;docker search --no-trunc  fedora&lt;/pre&gt;</description>
    </item>
    
    <item>
      <title>apache in docker to serve local website</title>
      <link>/2015/01/05/apache-docker-serve-local-website/</link>
      <pubDate>Mon, 05 Jan 2015 01:15:44 +0000</pubDate>
      
      <guid>/2015/01/05/apache-docker-serve-local-website/</guid>
      <description>&lt;p&gt;I have some backup’s of website on my laptop, which I occasionally want to view. Now, I could have setup apache to serve them directly with VirtualHost or alias but wanted a better solution. So, docker comes to rescue.&lt;/p&gt;
&lt;p&gt;First, I installed fedora-dockerfiles and then made some modifications, here they are :&lt;/p&gt;
&lt;pre class=&#34;brush:shell&#34;&gt;sudo yum install fedora-dockerfiles&lt;/pre&gt;
&lt;p&gt;After this is done, go to /usr/share/fedora-dockerfiles/apache and make some modification to Dockerfile.  After the modifications, the file looks like this&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>qemu manager for Windows to run your linux distribution</title>
      <link>/2011/12/22/qemu-manager-windows-run-linux-distribution/</link>
      <pubDate>Thu, 22 Dec 2011 06:33:49 +0000</pubDate>
      
      <guid>/2011/12/22/qemu-manager-windows-run-linux-distribution/</guid>
      <description>&lt;p&gt;If you are into virtualization, then you must have heard about &lt;a class=&#34;zem_slink&#34; title=&#34;QEMU&#34; href=&#34;http://www.qemu.org/&#34; rel=&#34;homepage&#34;&gt;Qemu&lt;/a&gt;. And if you are on windows then this is a must:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://www.davereyn.co.uk/download.htm&#34; target=&#34;_blank&#34;&gt;&lt;a href=&#34;http://www.davereyn.co.uk/download.htm&#34;&gt;http://www.davereyn.co.uk/download.htm&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h6 class=&#34;zemanta-related-title&#34; style=&#34;font-size: 1em;&#34;&gt;
  Related articles
&lt;/h6&gt;
&lt;ul class=&#34;zemanta-article-ul&#34;&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://www.cbsnews.com/8301-503544_162-57336185-503544/herman-cain-drops-white-house-bid/&#34;&gt;Political Hotsheet Herman Cain drops out 1 of 9 &amp;#8211; CBS News&lt;/a&gt; (cbsnews.com)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://abcnews.go.com/Politics/wireStory/romney-gingrich-proceed-carefully-gop-showdown-15080240&#34;&gt;Romney, Gingrich Proceed Carefully in GOP Showdown &amp;#8211; ABC News&lt;/a&gt; (abcnews.go.com)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://www.chicagotribune.com/sports/college/ct-spt-1204-wisconsin-msu-big-ten-championship--20111204,0,1014837.story&#34;&gt;Wisconsin rallies to beat Michigan State in Big Ten title game &amp;#8211; Chicago Tribune&lt;/a&gt; (chicagotribune.com)
  &lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;zemanta-pixie&#34; style=&#34;margin-top: 10px; height: 15px;&#34;&gt;
  &lt;a class=&#34;zemanta-pixie-a&#34; title=&#34;Enhanced by Zemanta&#34; href=&#34;http://www.zemanta.com/&#34;&gt;&lt;img class=&#34;zemanta-pixie-img&#34; style=&#34;float: right;&#34; src=&#34;https://i1.wp.com/img.zemanta.com/zemified_e.png?w=688&#34; alt=&#34;Enhanced by Zemanta&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Try a live Distro without burning on CD or running in VM</title>
      <link>/2010/07/18/try-a-live-distro-without-burning-on-cd-or-running-in-vm/</link>
      <pubDate>Sun, 18 Jul 2010 13:38:51 +0000</pubDate>
      
      <guid>/2010/07/18/try-a-live-distro-without-burning-on-cd-or-running-in-vm/</guid>
      <description>&lt;p&gt;I keep trying a lot of distributions and mostly I try them once and get the configurations and put them on my box :), this works best for me so that I dont have to keep re-configuring my system again and again. So, burning the disc for one time use is overhead and wastes a lot of time for me.&lt;/p&gt;
&lt;p&gt;Why burn a disc when GRUB is there to help. So today we will try to use the installed grub run a extracted iso image. Lets go step by step:&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Access the disk image created by Qemu using guestfish in Fedora.</title>
      <link>/2009/11/11/access-the-disk-image-created-by-qemu-using-guestfish-in-fedora/</link>
      <pubDate>Wed, 11 Nov 2009 02:57:06 +0000</pubDate>
      
      <guid>/2009/11/11/access-the-disk-image-created-by-qemu-using-guestfish-in-fedora/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;If you are used to using Qemu for doing some experiments with different distro&amp;amp;#8217;s then you would also understand the problem of having to do ftp/ssh to copy the files from virtual machine to local machine. Also you have to run the machine to do that. How would you like to have a application that can help you copy the files to and from the  image without having to run the VM. That&amp;amp;#8217;s exactly what the guestfish does. How to do it, quick demo here:&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
