<?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>Hypervisor.fr &#187; UUID</title>
	<atom:link href="http://www.hypervisor.fr/?feed=rss2&#038;tag=uuid" rel="self" type="application/rss+xml" />
	<link>http://www.hypervisor.fr</link>
	<description>French Bare-Metal weblog</description>
	<lastBuildDate>Wed, 26 Jun 2024 22:42:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Disk UUID match VMware/Windows &#8211; MAJ</title>
		<link>http://www.hypervisor.fr/?p=5070</link>
		<comments>http://www.hypervisor.fr/?p=5070#comments</comments>
		<pubDate>Wed, 23 Apr 2014 18:16:22 +0000</pubDate>
		<dc:creator>NiTRo</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[UUID]]></category>
		<category><![CDATA[vmdk]]></category>
		<category><![CDATA[Win32]]></category>
		<category><![CDATA[WMI]]></category>

		<guid isPermaLink="false">http://www.hypervisor.fr/?p=5070</guid>
		<description><![CDATA[MAJ 21/05/2014 : Mise à jour du script (version 1.2) : Ajout de la taille des disk VMware/Windows

MAJ 25/04/2014 : Mise à jour du script (version 1.1) : A la demande express de notre ami DR, nous avons rajouté le paramètre -VIX pour faire la requête WMI via les vmtools et le paramètre -noSSO pour [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><em><span style="color: #ff0000;">MAJ 21/05/2014</span> : Mise à jour du script (version 1.2) : Ajout de la taille des disk VMware/Windows</em></p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/Get-VMWinUUIDMap/Get-VMWinUUIDMap_grid_size.png"><img class="aligncenter" src="http://files.hypervisor.fr/img/Get-VMWinUUIDMap/Get-VMWinUUIDMap_grid_size.png" alt="" width="500" height="334" /></a></p>
<p style="text-align: justify;"><span style="color: #ff0000;">MAJ 25/04/2014</span><span style="font-style: italic;"> : Mise à jour du script (version 1.1) : A la demande express de notre ami DR, nous avons rajouté </span><strong>le paramètre -VIX pour faire la requête WMI via les vmtools</strong><span style="font-style: italic;"> et le paramètre -noSSO pour spécifier des credentials autre que ceux de votre session courante. A ce propos, et à notre plus grande surprise, </span><strong>la cmdlet Invoke-VMScript semble dorénavant supporter le SSO </strong><span style="font-style: italic;">donc si votre compte AD à les bons droits sur le vCenter et dans le GuestOS, plus besoin du paramètre &#8220;GuestCredential&#8221; pour faire du VIX !</span></p>
<p style="text-align: center;"><em><em><a href="http://files.hypervisor.fr/img/Get-VMWinUUIDMap/VIX_SSO.png"><img class="aligncenter" src="http://files.hypervisor.fr/img/Get-VMWinUUIDMap/VIX_SSO.png" alt="" width="510" height="193" /></a><br />
</em></em></p>
<p style="text-align: justify;">Lorsqu&#8217;on vous demande de retirer quelques disques d&#8217;une VM Windows qui en possède une cinquantaine, c&#8217;est généralement le début d&#8217;une longue chasse où on essaye de faire correspondre <a href="http://kb.vmware.com/kb/2021947" target="_blank">les id scsi</a>, <a href="http://kb.vmware.com/kb/2051606" target="_blank">les contrôleurs</a> ou les tailles de volume quand on est vraiment au bout du rouleau&#8230;</p>
<p style="text-align: justify;">Il y a bien <a href="https://communities.vmware.com/docs/DOC-12180" target="_blank">des scripts PowerCLI</a> pour surmonter la tâche mais l&#8217;élément de référence est toujours l&#8217;<strong>id scsi</strong> ce qui pose parfois des problèmes comme ça l&#8217;à été pour nous lors d&#8217;une opération similaire :</p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/Get-VMWinUUIDMap/disk_mgmt_win_disk.png" title="disk_mgmt_win_disk" rel="lightbox[5070]"><img class="alignnone size-thumbnail wp-image-5072" title="disk_mgmt_win_disk" src="http://www.hypervisor.fr/wp-content/uploads/2014/04/disk_mgmt_win_disk-150x150.png" alt="" width="150" height="150" /></a> <a href="http://files.hypervisor.fr/img/Get-VMWinUUIDMap/scsi_id_win_disk.png" title="scsi_id_win_disk" rel="lightbox[5070]"><img class="alignnone size-thumbnail wp-image-5073" title="scsi_id_win_disk" src="http://www.hypervisor.fr/wp-content/uploads/2014/04/scsi_id_win_disk-150x150.png" alt="" width="150" height="150" /></a> <a href="http://files.hypervisor.fr/img/Get-VMWinUUIDMap/scsi_id_vm_disk.png" title="scsi_id_vm_disk" rel="lightbox[5070]"><img class="alignnone size-thumbnail wp-image-5074" title="scsi_id_vm_disk" src="http://www.hypervisor.fr/wp-content/uploads/2014/04/scsi_id_vm_disk-150x150.png" alt="" width="150" height="150" /></a></p>
<p style="text-align: justify;"><a href="http://kb.vmware.com/kb/2051606">Une kb VMware</a> décrit comment faire une correspondance via le device manager de windows (et non pas le disk manager) mais où il faut chercher à la main la propriété &#8220;location&#8221; qui correspond au contrôleur scsi :</p>
<blockquote><p>To correlate the virtual device node SCSI controller to the Windows drive letter. Each controller increments by 32.<br />
The first SCSI controller is given a location ID of 160. Therefore the second controller is 192, 224 for the third and 256 for the fourth.</p></blockquote>
<p style="text-align: justify;">Nous vous laissons apprécier l&#8217;ampleur de la tache lorsqu&#8217;on a plusieurs disques à détacher :</p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/Get-VMWinUUIDMap/dev_mgmt_win_disk.png" title="dev_mgmt_win_disk" rel="lightbox[5070]"><img class="alignnone size-thumbnail wp-image-5075" title="dev_mgmt_win_disk" src="http://www.hypervisor.fr/wp-content/uploads/2014/04/dev_mgmt_win_disk-150x150.png" alt="" width="150" height="150" /></a> <a href="http://files.hypervisor.fr/img/Get-VMWinUUIDMap/scsi_location_win_disk.png" title="scsi_location_win_disk" rel="lightbox[5070]"><img class="alignnone size-thumbnail wp-image-5076" title="scsi_location_win_disk" src="http://www.hypervisor.fr/wp-content/uploads/2014/04/scsi_location_win_disk-150x150.png" alt="" width="150" height="150" /></a> <a href="http://files.hypervisor.fr/img/Get-VMWinUUIDMap/scsi_dev_win_disk.png" title="scsi_dev_win_disk" rel="lightbox[5070]"><img class="alignnone size-thumbnail wp-image-5077" title="scsi_dev_win_disk" src="http://www.hypervisor.fr/wp-content/uploads/2014/04/scsi_dev_win_disk-150x150.png" alt="" width="150" height="150" /></a></p>
<p style="text-align: left;">
<p>En cherchant un peu sérieusement, nous avons trouver un point commun parfaitement identique entre Hard disk et PHYSICALDRIVE : l&#8217;<strong><a href="http://pubs.vmware.com/vsphere-55/topic/com.vmware.wssdk.apiref.doc/vim.vm.device.VirtualDisk.FlatVer2BackingInfo.html" target="_blank">UUID</a></strong> (ou SerialNumber sous Windows). Un petit coup de PowerCLI plus tard, on obtient un beau tableau pour faire la correspondance sans risque (avec le chemin du vmdk en bonus) :</p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/Get-VMWinUUIDMap/Get-VMWinUUIDMap_grid.png"><img class="aligncenter" src="http://files.hypervisor.fr/img/Get-VMWinUUIDMap/Get-VMWinUUIDMap_grid.png" alt="" width="452" height="433" /></a></p>
<p style="text-align: justify;"><strong>Les prérequis du script sont que vous soyez connecté au bon vcenter et que vous puissiez accéder en WMI à la VM en question</strong> (si le FQDN de la vm ne correspond pas à son nom, il faut utiliser le paramètre -winname). Le paramètre -grid controle la sortie dans un GridView pour ceux qui n&#8217;aime par le style CLI :</p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/Get-VMWinUUIDMap/Get-VMWinUUIDMap_cli.png"><img class="aligncenter" src="http://files.hypervisor.fr/img/Get-VMWinUUIDMap/Get-VMWinUUIDMap_cli.png" alt="" width="422" height="386" /></a></p>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 110px"><a href="http://files.hypervisor.fr/img/Get-VMWinUUIDMap/Get-VMWinUUIDMap.ps1" target="_blank"><img class="  " title="Get-VMWinUUIDMap" src="http://files.hypervisor.fr/img/super_mario_piranha_plant.png" alt="" width="100" height="100" /></a><p class="wp-caption-text">Get-VMWinUUIDMap</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.hypervisor.fr/?feed=rss2&amp;p=5070</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>I like to move it</title>
		<link>http://www.hypervisor.fr/?p=4533</link>
		<comments>http://www.hypervisor.fr/?p=4533#comments</comments>
		<pubDate>Fri, 28 Dec 2012 13:11:17 +0000</pubDate>
		<dc:creator>NiTRo</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[UUID]]></category>

		<guid isPermaLink="false">http://www.hypervisor.fr/?p=4533</guid>
		<description><![CDATA[Suite à une migration ESXi 4.1 &#62; 5.1 d&#8217;un host standalone, nous nous sommes retrouvé devant une centaine de messages de changement d&#8217;UUID :

Une seule réponse possible : Go PowerCLI !
get-vm&#124;get-vmquestion&#124;set-vmquestion -option &#34;i moved it&#34; -confirm:$false

]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Suite à une migration ESXi 4.1 &gt; 5.1 d&#8217;un host standalone, nous nous sommes retrouvé devant une centaine de messages de <a href="http://kb.vmware.com/kb/1541" target="_blank">changement d&#8217;UUID</a> :</p>
<p><img class="aligncenter" src="http://files.hypervisor.fr/img/vm_move_msg.png" alt="" width="357" height="192" /></p>
<p>Une seule réponse possible : Go PowerCLI !</p>
<pre class="brush: powershell; title: ; notranslate">get-vm|get-vmquestion|set-vmquestion -option &quot;i moved it&quot; -confirm:$false</pre>
<p><img class="aligncenter" src="http://files.hypervisor.fr/img/king-julien-whoareyou.jpg" alt="" width="318" height="287" /></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hypervisor.fr/?feed=rss2&amp;p=4533</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
