<?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>Gioxx&#039;s Wall &#187; Virtual Desktop Infrastructure</title>
	<atom:link href="http://gioxx.org/tag/virtual-desktop-infrastructure/feed/" rel="self" type="application/rss+xml" />
	<link>http://gioxx.org</link>
	<description>Life is short. Live your dream and share your passion.</description>
	<lastBuildDate>Thu, 09 Feb 2012 17:00:54 +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>Sophos e VDI: prove di unattended</title>
		<link>http://gioxx.org/2009/07/20/sophos-e-vdi-prove-di-unattended/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sophos-e-vdi-prove-di-unattended</link>
		<comments>http://gioxx.org/2009/07/20/sophos-e-vdi-prove-di-unattended/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 06:00:47 +0000</pubDate>
		<dc:creator>Gioxx</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[Lavoro]]></category>
		<category><![CDATA[Milano]]></category>
		<category><![CDATA[Personale]]></category>
		<category><![CDATA[Ricerca e Sviluppo]]></category>
		<category><![CDATA[Sicurezza]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Sophos]]></category>
		<category><![CDATA[Test Hw/Sw]]></category>
		<category><![CDATA[AutoUpdate]]></category>
		<category><![CDATA[RMS]]></category>
		<category><![CDATA[SAV]]></category>
		<category><![CDATA[Sophos Antivirus]]></category>
		<category><![CDATA[Unattended]]></category>
		<category><![CDATA[VDI]]></category>
		<category><![CDATA[Virtual Desktop Infrastructure]]></category>
		<category><![CDATA[Virtualizzazione]]></category>
		<category><![CDATA[VmWare]]></category>

		<guid isPermaLink="false">http://gioxx.org/?p=2943</guid>
		<description><![CDATA[Giusto ad inizio settimana un collega mi ha richiesto una &#8220;automatizzazione di un processo&#8221; di installazione Sophos Antivirus su delle macchine virtuali (Thin client per la precisione), in un certo senso si parla di un fritto misto tra processi unattended e VDI (Virtual Desktop Infrastructure). C&#8217;è una scheda tecnica abbastanza dettagliata a tal proposito, nella [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" style="border: 0pt none;;  float: right; padding: 4px; margin: 0 0 2px 7px;" title="Sophos" src="http://images.gxware.org/upload/gallery/sophos_enterpriseSecurity.jpg" alt="" width="184" height="214" />Giusto ad inizio settimana un collega mi ha richiesto una &#8220;<em>automatizzazione di un processo</em>&#8221; di installazione Sophos Antivirus su delle macchine virtuali (<em>Thin client per la precisione</em>), in un certo senso si parla di un fritto misto tra processi unattended e <a href="http://en.wikipedia.org/wiki/Desktop_virtualization">VDI</a> (<em>Virtual Desktop Infrastructure</em>). C&#8217;è una scheda tecnica abbastanza dettagliata a tal proposito, nella KB del sito Sophos.com:</p>
<h2><a href="http://www.sophos.com/support/knowledgebase/article/28591.html">sophos.com/support/knowledgebase/article/28591.html</a></h2>
<p>Riporta passo dopo passo le operazioni da compiere, fortunatamente semplici da replicare tramite batch <em>senza l&#8217;intervento umano</em>. Chiaramente il batch che si andrà a realizzare avrà la necessità di essere avviato come amministratori della macchina (<em>locali o di dominio, non ha importanza</em>), questo perché si richiamano delle stringhe di installazioni che verrebbero inibite ad un utente normale.</p>
<h2><span style="color: #ff0000;"># la procedura da seguire</span></h2>
<p>qui di seguito i passaggi suggeriti dalla documentazione ufficiale:</p>
<ol>
<li>Install Sophos Anti-Virus to a client machine as if it was a fresh install.</li>
<li>After update has finished, <a href="http://www.sophos.com/support/knowledgebase/article/11299.html">stop the Sophos AutoUpdate service</a>. (This prevents an update starting during the procedure, which would attempt to install the other components, breaking the image. The service will restart automatically at the end of the procedure.)</li>
<li>Go to the folder <code>C:\Program Files\Sophos\Remote Management System</code>, and make copies of the following files :
<ul>
<li><tt>cac.pem</tt></li>
<li><tt>mrinit.conf</tt></li>
</ul>
</li>
<li>Go to &#8216;Add/Remove Programs&#8217;, and remove the following components :
<ul>
<li>Sophos Anti-Virus</li>
<li>Sophos Remote Management System</li>
</ul>
</li>
<li>Delete the contents of the : <code>C:\Program Files\Sophos\AutoUpdate\<strong>Cache</strong></code> folder</li>
<li>Delete the : <code>C:\Program Files\Sophos\AutoUpdate\data\status\<strong>status.xml</strong></code> file</li>
<li>Re-create the : <code>C:\Program Files\Sophos\<strong>Remote Management System</strong></code> folder, and add (to it) the copies of <tt>cac.pem</tt>, and <tt>mrinit.conf</tt> you made (above)</li>
<li>Now take the image</li>
</ol>
<h2><span style="color: #ff0000;"># il batch spiegato passo-passo</span></h2>
<p>Tutto parte quindi da un&#8217;installazione pulita di Sophos Antivirus, da eseguire con procedura standard <strong>su una macchina che si vorrà utilizzare poi come master</strong> (<em>clone</em>) per le altre a venire.</p>
<p>Fermando il servizio AutoUpdate si eviteranno interventi da parte del server, condizione fondamentale durante il processo di preparazione:</p>
<pre class="brush: xml; title: Codice; notranslate">

echo *** Fermo il servizio Update ... ***
echo.
net stop &quot;Sophos AutoUpdate Service&quot;
</pre>
<p>si copiano quindi i file di configurazione del RMS (<em>Remote Management System</em>) fuori dalla cartella iniziale, basta la root della cartella dell&#8217;antivirus:</p>
<pre class="brush: xml; title: Codice; notranslate">

echo *** Copio file RMS ... ***
echo.
cd &quot;%programfiles%\Sophos\Remote Management System&quot;
copy cac.pem ..\cac.pem
copy mrinit.conf ..\mrinit.conf
</pre>
<p>e si procede con la disinstallazione di <strong>RMS</strong> e parte <strong>AntiVirus</strong> (<em>lasciando solo -quindi- la parte AutoUpdate</em>):</p>
<pre class="brush: xml; title: Codice; notranslate">

echo *** Disinstallo Sophos Antivirus ... ***
MsiExec.exe /X{034759DA-E21A-4795-BFB3-C66D17FAD183} REBOOT=SUPPRESS /qn 2&gt;NUL
echo.
echo Eseguito.
echo.
echo *** Disinstallo Sophos Remote Management System ... ***
MsiExec.exe /X{FF11005D-CBC8-45D5-A288-25C7BB304121} REBOOT=SUPPRESS /qn 2&gt;NUL
echo.
echo Eseguito.
</pre>
<p>una veloce pulizia della cartella Cache seguita a ruota dalla rimozione del file di status dell&#8217;ultimo update ricevuto:</p>
<pre class="brush: xml; title: Codice; notranslate">

echo *** Cancello cartella Cache ... ***
cd ..\AutoUpdate
rd Cache /S /Q
echo.
echo *** Cancello Status Update ... ***
cd data\status
del status.xml
</pre>
<p>per arrivare infine al ripopolamento della cartella RMS precedentemente disinstallato:</p>
<pre class="brush: xml; title: Codice; notranslate">

echo *** Popolo cartella Remote Management System ***
cd %programfiles%\Sophos
if not exist &quot;Remote Management System&quot; mkdir &quot;Remote Management System&quot;
move cac.pem &quot;Remote Management System&quot;
move mrinit.conf &quot;Remote Management System&quot;
</pre>
<p>il gioco è praticamente fatto, <strong>la macchina da clonare è pronta</strong> (<em>provando ad immaginare che Sophos sia stato l&#8217;ultimo software da preparare per il master</em>).</p>
<p>Sulla macchina clonata basterà attendere (<em>o lanciare forzatamente</em>) un aggiornamento del client per far partire immediatamente il <strong>download dei pacchetti mancanti con conseguente installazione</strong>, nome macchina differente (<em>sicuramente</em>) ma <strong>configurazioni praticamente identiche alla macchina che ha generato il clone</strong>.</p>
<p>Facile, comodo, veloce :-)</p>
<p>Buon lavoro!
<div class='boxcorrelati'>
<h3 class='related_post_title'>Potrebbe interessarti leggere:</h3>
<ul class='related_post'>
<li><a href='http://gioxx.org/2010/06/25/sophos-antivirus-migrazione-tra-active-directory-kix-e-batch/' title='Sophos antivirus: migrazione tra active directory, kix e batch'>Sophos antivirus: migrazione tra active directory, kix e batch</a></li>
<li><a href='http://gioxx.org/2009/06/04/sophos-mancata-apertura-di-ie8/' title='Sophos: mancata apertura di IE8'>Sophos: mancata apertura di IE8</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://gioxx.org/2009/07/20/sophos-e-vdi-prove-di-unattended/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

