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

<channel>
	<title>Guru dell&#039;Eccelso Picco &#187; Virtualization</title>
	<atom:link href="http://blog.gurudelleccelsopicco.org/category/virtualization/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gurudelleccelsopicco.org</link>
	<description>Things should be as simple as possible, but not simpler. 		-- Albert Einstein</description>
	<lastBuildDate>Sun, 05 Feb 2012 20:44:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Solaris VM recovery after cloning</title>
		<link>http://blog.gurudelleccelsopicco.org/2011/04/solaris-vm-recovery-after-cloning/</link>
		<comments>http://blog.gurudelleccelsopicco.org/2011/04/solaris-vm-recovery-after-cloning/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 17:11:58 +0000</pubDate>
		<dc:creator>Luca Maranzano</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[pci reconfiguration]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://blog.gurudelleccelsopicco.org/?p=259</guid>
		<description><![CDATA[<p>The scenario: ESX 4.1 Cluster  and a Solaris 10u8 64 bit VM running on RDM Luns. Clone the LUNs at the  storage level (a crash consistent cloning) and map them to a new VM  configured in the same exact way, same virtual hardware version, same  SCSI Controller, same Hard Disk SCSI [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The scenario</strong>: ESX 4.1 Cluster  and a Solaris 10u8 64 bit VM running on RDM Luns. Clone the LUNs at the  storage level (a crash consistent cloning) and map them to a new VM  configured in the same exact way, same virtual hardware version, same  SCSI Controller, same Hard Disk SCSI ID.</p>
<p><strong>The problem</strong>:  the cloned Solaris guest will fail to boot, since for a still  unexplained reason the PCI device mapping of the controller has changed  and the kernel while booting will be unable to find the disk(s). This is  really strange since VMware ESX should provide the same exact hardware  to the guest, like in Linux OS guests.</p>
<p>Booting in failsafe mode and mounting the root file system on /a should show something like this:</p>
<p><a href="http://blog.gurudelleccelsopicco.org/wp-content/uploads/2011/04/Solaris-Failsafe-ShowDifferentPCI.png"><img class="alignleft size-full wp-image-260" title="Solaris-Failsafe-ShowDifferentPCI" src="http://blog.gurudelleccelsopicco.org/wp-content/uploads/2011/04/Solaris-Failsafe-ShowDifferentPCI.png" alt="Solaris Failsafe boot show different PCI devices" width="722" height="113" /></a></p>
<p>The /devices/pci@0,0/pci15ad,1976/sd@0,0:a is the new device, while on /a/dev/dsk/c1t0d0s0 you can see the broken symlink to the wrong PCI path.</p>
<p><strong>The solution</strong>:  you have to reconfigure the devices inside the cloned guest;  unfortunately for Solaris is far more complicated than in Linux OS.</p>
<p>1. Start the VM and at the grub prompt,  enter fail-safe mode and allow the root file system to be mounted as  read/write under <strong>/a</strong>.</p>
<p>2. Identify the new device name  using the format command. In this case it is <strong>/pci@0,0/pci15ad,1976@10/sd@0,0</strong> so replace where  necessary from now on.  vi may not display correctly so fix the  terminal type with the following command:</p>
<div>
<blockquote><p># TERM=sun-color;  export TERM</p></blockquote>
<p>3. Now edit <strong>/a/boot/solaris/bootenv.rc</strong> and  update the line that starts with <strong>setprob boothpath</strong> so that it  reads:</p>
<blockquote><p>setprop bootpath &#8216;/pci@0,0/pci15ad,1976@10/sd@0,0:a&#8217;</p></blockquote>
<p>4. Update the boot archive:</p>
<blockquote><p># bootadm  update-archive -R /a</p></blockquote>
</div>
<p>5. Then edit /a/etc/vfstab (making a backup copy  first) and modify the line mounting the root file system so instead of <strong>/dev/dsk/c1t0d0s0</strong> and <strong>/dev/rdsk/c1t0d0s0</strong> it reads the following absolute paths. Do  not forget to suffix <strong>a:</strong> and <strong>,raw</strong> respectively.</p>
<blockquote><p>/devices/pci@0,0/pci15ad,1976@10/sd@0,0:a  /devices/pci@0,0/pci15ad,1976@10/sd@0,0:a,raw / ufs 1 no -</p></blockquote>
<p>6.  Now we need to force a reconfiguration boot so that the system recreates  the <strong>/etc/path_to_inst</strong> file that contains physical device to  logical instance mappings. You can do this in 2 different ways: &#8220;touch  /a/reconfigure&#8221; before reboot or at the grub prompt, I prefer to use  grub.<br />
Anyway it is time to restart:</p>
<blockquote><p># reboot</p></blockquote>
<p>7. At the grub prompt, edit the grub entry thath sould automatically boot with &#8216;e&#8217; and edit the kernel  command line adding -r -s at the end of the line, then press &#8216;b&#8217; to  boot that entry. -r is to force reconfiguration, -s to start in  single-user mode</p>
<p>8. Login and edit <strong>/etc/vfstab</strong> again so that you can replace those absolute paths for the / file  system. If you have /var on a separate file system mount it manually to  make vi happy. If you made a  backup of this file before the last update, it would be easier to start  with this. Before you do this use format to determine the  new disks and update this file as appropriate. An example with the correct disk paths may be:</p>
<blockquote><p>/dev/dsk/c3t0d0s1 &#8211; - swap &#8211; no -<br />
/dev/dsk/c3t0d0s0  /dev/rdsk/c3t0d0s0 / ufs 1 no -<br />
/dev/dsk/c3t0d0s7 /dev/rdsk/c3t0d0s7  /export/home ufs 2 yes -</p></blockquote>
<p>9. Reboot again in multi-user mode and you&#8217;re done!  System is now ready for use.<br />
It seems that ZFS volumes will not be affected by the device reconfiguration, they should come up automatically.</p>
<p>YMMV.</p>
<p>Useful links:<br />
- http://communities.vmware.com/message/907527<br />
- http://rdiggle.blogspot.com/2010/06/using-solaris-1009-virtual-appliance.html</p>
<p>((enjoy))</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gurudelleccelsopicco.org/2011/04/solaris-vm-recovery-after-cloning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KVM Forum 2010</title>
		<link>http://blog.gurudelleccelsopicco.org/2010/08/kvm-forum-2010/</link>
		<comments>http://blog.gurudelleccelsopicco.org/2010/08/kvm-forum-2010/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 21:48:30 +0000</pubDate>
		<dc:creator>Luca Maranzano</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[forum]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[roadmap]]></category>

		<guid isPermaLink="false">http://blog.gurudelleccelsopicco.org/?p=176</guid>
		<description><![CDATA[<p>The KVM Forum 2010 just ended and the speakers slide decks are now available online. They are full of extremely interesting details about the KVM project and its roadmap.</p>
<p>((enjoy))</p>
]]></description>
			<content:encoded><![CDATA[<p>The KVM Forum 2010 just ended and the speakers slide decks are now <a title="KVM Forum 2010" href="http://www.linux-kvm.org/page/KVM_Forum_2010" target="_blank">available online.</a> They are full of extremely interesting details about the KVM project and its roadmap.</p>
<p>((enjoy))</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gurudelleccelsopicco.org/2010/08/kvm-forum-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jast Another (VMware) Backup Script (JABS) public release</title>
		<link>http://blog.gurudelleccelsopicco.org/2009/04/jast-another-vmware-backup-script-jabs-public-release/</link>
		<comments>http://blog.gurudelleccelsopicco.org/2009/04/jast-another-vmware-backup-script-jabs-public-release/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 12:39:56 +0000</pubDate>
		<dc:creator>Luca Maranzano</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[esx backup script]]></category>
		<category><![CDATA[free easy-to-use backup script]]></category>
		<category><![CDATA[vmware backup script]]></category>
		<category><![CDATA[vmware esx backup]]></category>
		<category><![CDATA[vmware vcb script]]></category>

		<guid isPermaLink="false">http://gurudelleccelsopicco.wordpress.com/?p=48</guid>
		<description><![CDATA[<p>I finally convinced my friend Toccio to release JABS in the public. JABS, Jast Another Backup Script,  is a very handy backup script for VMware ESX and VI3 (I&#8217;ve not yet tested on 3i, dunno if it will work).</p>
<p>I&#8217;ve worked for severals years with VMBK from Max Daneri, but Max is not developing his script [...]]]></description>
			<content:encoded><![CDATA[<p>I finally convinced my friend Toccio to release JABS in the public. JABS, Jast Another Backup Script,  is a very handy backup script for VMware ESX and VI3 (I&#8217;ve not yet tested on 3i, dunno if it will work).</p>
<p>I&#8217;ve worked for severals years with <a title="VMBK Script from Max Daneri" href="http://www.vmts.net/vmbk3.htm" target="_blank">VMBK</a> from Max Daneri, but Max is not developing his script any more, and it has been written before the VCB era (in the old ESX 1.x and 2.x funny days <img src='http://blog.gurudelleccelsopicco.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ).</p>
<p>I&#8217;ve also tried another good script, <a title="VISBU" href="http://communities.vmware.com/thread/73147" target="_blank">VISBU</a>, from Alex Mittell, but setting up different backup sessions was not so simple as with JABS.</p>
<p>JABS is a Bash script to schedule  backups of Virtual Machines, mainly to be exported to NAS folder. The nice feature of Jabs is that you can define different&#8221;sessions&#8221; in the configuration files, using for example some pattern of the &#8220;display name&#8221; of the VM, and JABS will prepare all the necessary vcb* commands for you, sending a nice email report.</p>
<p>You can find more on Jabs <a title="JABS - Just Another Backup Script" href="http://www.toixland.org/index.php?option=com_content&amp;task=section&amp;id=2&amp;Itemid=87" target="_blank">here</a> on Toixland.</p>
<p>((enjoy))</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gurudelleccelsopicco.org/2009/04/jast-another-vmware-backup-script-jabs-public-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

