<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.slacky.eu/wikislack/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="it">
		<id>http://www.slacky.eu/wikislack/index.php?title=QEMU:_compilazione,_installazione,_uso&amp;feed=atom&amp;action=history</id>
		<title>QEMU: compilazione, installazione, uso - Cronologia</title>
		<link rel="self" type="application/atom+xml" href="http://www.slacky.eu/wikislack/index.php?title=QEMU:_compilazione,_installazione,_uso&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=QEMU:_compilazione,_installazione,_uso&amp;action=history"/>
		<updated>2013-05-21T17:53:24Z</updated>
		<subtitle>Cronologia della pagina su questo sito</subtitle>
		<generator>MediaWiki 1.20.3</generator>

	<entry>
		<id>http://www.slacky.eu/wikislack/index.php?title=QEMU:_compilazione,_installazione,_uso&amp;diff=2527&amp;oldid=prev</id>
		<title>Slacky il 05:51, 13 set 2006</title>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=QEMU:_compilazione,_installazione,_uso&amp;diff=2527&amp;oldid=prev"/>
				<updated>2006-09-13T05:51:25Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Versione meno recente&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Versione delle 05:51, 13 set 2006&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Scritti_misti]]&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Introduzione ==&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Introduzione ==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://fabrice.bellard.free.fr/qemu/download.html QEMU] è un software (GRATUITO!!) che emula un PC con tutti i suoi elementi e periferiche.&amp;lt;br&amp;gt; Con questo software si possono installare quanti sistemi operativi si vuole, ed utilizzarli come se fossero installati su macchine &quot;reali&quot;.&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://fabrice.bellard.free.fr/qemu/download.html QEMU] è un software (GRATUITO!!) che emula un PC con tutti i suoi elementi e periferiche.&amp;lt;br&amp;gt; Con questo software si possono installare quanti sistemi operativi si vuole, ed utilizzarli come se fossero installati su macchine &quot;reali&quot;.&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Slacky</name></author>	</entry>

	<entry>
		<id>http://www.slacky.eu/wikislack/index.php?title=QEMU:_compilazione,_installazione,_uso&amp;diff=2416&amp;oldid=prev</id>
		<title>Lean: /* Qualche opzione avanzata */</title>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=QEMU:_compilazione,_installazione,_uso&amp;diff=2416&amp;oldid=prev"/>
				<updated>2006-09-11T23:02:55Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Qualche opzione avanzata&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Versione meno recente&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Versione delle 23:02, 11 set 2006&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 71:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 71:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;e siamo a posto (ovvio che hdb potrebbe essere diversa da voi...solito discorso).&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;e siamo a posto (ovvio che hdb potrebbe essere diversa da voi...solito discorso).&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Torniamo a qemu con ''''ctrl+alt+1'''&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Torniamo a qemu con ''''ctrl+alt+1'''&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Autore: [http://www.leanux.it Lean]&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Lean</name></author>	</entry>

	<entry>
		<id>http://www.slacky.eu/wikislack/index.php?title=QEMU:_compilazione,_installazione,_uso&amp;diff=2413&amp;oldid=prev</id>
		<title>Lean: /* Guida all'installazione e all'uso di QEMU */</title>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=QEMU:_compilazione,_installazione,_uso&amp;diff=2413&amp;oldid=prev"/>
				<updated>2006-09-11T23:00:01Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Guida all&amp;#039;installazione e all&amp;#039;uso di QEMU&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Versione meno recente&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Versione delle 23:00, 11 set 2006&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;−&lt;/td&gt;
  &lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;= Guida all'installazione e all'uso di QEMU =&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;−&lt;/td&gt;
  &lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Introduzione ==&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Introduzione ==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://fabrice.bellard.free.fr/qemu/download.html QEMU] è un software (GRATUITO!!) che emula un PC con tutti i suoi elementi e periferiche.&amp;lt;br&amp;gt; Con questo software si possono installare quanti sistemi operativi si vuole, ed utilizzarli come se fossero installati su macchine &quot;reali&quot;.&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://fabrice.bellard.free.fr/qemu/download.html QEMU] è un software (GRATUITO!!) che emula un PC con tutti i suoi elementi e periferiche.&amp;lt;br&amp;gt; Con questo software si possono installare quanti sistemi operativi si vuole, ed utilizzarli come se fossero installati su macchine &quot;reali&quot;.&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Lean</name></author>	</entry>

	<entry>
		<id>http://www.slacky.eu/wikislack/index.php?title=QEMU:_compilazione,_installazione,_uso&amp;diff=2412&amp;oldid=prev</id>
		<title>Lean il 22:59, 11 set 2006</title>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=QEMU:_compilazione,_installazione,_uso&amp;diff=2412&amp;oldid=prev"/>
				<updated>2006-09-11T22:59:45Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nuova pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Guida all'installazione e all'uso di QEMU =&lt;br /&gt;
&lt;br /&gt;
== Introduzione ==&lt;br /&gt;
[http://fabrice.bellard.free.fr/qemu/download.html QEMU] è un software (GRATUITO!!) che emula un PC con tutti i suoi elementi e periferiche.&amp;lt;br&amp;gt; Con questo software si possono installare quanti sistemi operativi si vuole, ed utilizzarli come se fossero installati su macchine &amp;quot;reali&amp;quot;.&amp;lt;br&amp;gt;&lt;br /&gt;
Personalmente utilizzo anche il [http://fabrice.bellard.free.fr/qemu/qemu-accel.html QEMU Accelerator Kernel Module (KQEMU)] ovvero un modulo per il kernel, che migliora le prestazioni del nostro emulatore.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Compilare qemu ==&lt;br /&gt;
Procuriamoci anzitutto i sorgenti di qemu e kqemu. Al momento in cui scrivo, le ultime versioni sono: ''qemu0.8.0.tar.gz'' e ''kqemu0.7.2.tar.gz''&lt;br /&gt;
Estraiamo prima i sorgenti di qemu (verrà creata la directory qemu0.8.0)... a questo punto estraiamo kqemu0.7.2.tar.gz dentro la directory dei sorgenti di qemu.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ora si può procedere alla compilazione.&amp;lt;br&amp;gt;&lt;br /&gt;
Dalla directory che abbiamo appena creato, diamo:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./configure&lt;br /&gt;
make&lt;br /&gt;
make install (ovviamente questo da root)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
KQEMU verrà installato in ''/lib/modules/tua_versione_kernel/misc'' e verrà creato il device ''/dev/kqemu''.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Utilizzo di qemu ==&lt;br /&gt;
Prima di lanciare qemu è necessario caricare il modulo di kqemu per utilizzare l'accelerazione. Se questo non viene fatto, qemu partirà ugualmente, ma sarà ovviamente un po' più lentuccio. Per caricare il modulo diamo&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
modprobe kqemu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Passiamo ora all'utilizzo vero e proprio di qemu. Vediamo come si installa un sistema operativo &amp;quot;dentro&amp;quot; al nostro sistema operativo (suona strano ma è così... che figata).&amp;lt;br&amp;gt;&lt;br /&gt;
Iniziamo con il creare l'&amp;quot;hard disk&amp;quot;...o meglio l'immagine di esso.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qemu-img create nome-file.img 4G&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
In questo caso verrà creata un'immagine di 4 GB... ovviamente il 4 può essere sostituito con un valore differente.&amp;lt;br&amp;gt;&lt;br /&gt;
Adesso vogliamo far partire il PC virtuale con il boot da cdrom (nel quale abbiamo inserito il cd di installazione del nostro sistema operativo):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qemu -boot d -cdrom /dev/hdb -hda nome-file.img&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Cosa gli stiamo dicendo?? Facile:&amp;lt;br&amp;gt;&lt;br /&gt;
''-boot d'' indica di fare il boot da cdrom (se avessimo messo c avrebbe indicato l'hard disk);&amp;lt;br&amp;gt;&lt;br /&gt;
''-cdrom /dev/hdb'' indica invece che il cdrom (del sistema virtuale) sta nel device /dev/hdb (del sistema reale). Ovviamente sostituitelo con il vostro device.&amp;lt;br&amp;gt;&lt;br /&gt;
''-hda nome-file.img'' indica che l'hard disk virtuale sta nel file immagine nome-file.img.&amp;lt;br&amp;gt;&lt;br /&gt;
'''NOTA''': -hda non ha niente a che vedere con il vostro dispositivo /dev/hda... per cui se il vostro dispositivo fosse invece un hard disk vero e proprio...che ne so...diciamo /dev/hdb, avremmo messo -hda /dev/hdb. Stessa cosa se fosse stato /dev/hda.... avremmo messo -hda /dev/hda tranquillamente. Spero di essermi spiegato.&lt;br /&gt;
&lt;br /&gt;
Come per magia il PC virtuale si avvierà dal cdrom...e potrete installare il vostro SO come se aveste davanti un PC normalissimo. Che figata, eh?&amp;lt;br&amp;gt;&lt;br /&gt;
Una volta installato lo possiamo fare partire con il comando visto prima, sostituendo d con c ovviamente.&amp;lt;br&amp;gt;&lt;br /&gt;
NOTA: Badate bene che se non c'è un cdrom nel vostro lettore, il comando vi darà errore. Se non avete un cd dentro lasciate perdere l'opzione -cdrom.&lt;br /&gt;
&lt;br /&gt;
== Qualche opzione avanzata ==&lt;br /&gt;
Utilizziamo un paio di opzioni avanzate...&amp;lt;br&amp;gt;&lt;br /&gt;
Prima di tutto possiamo scegliere quanta memoria RAM il nostro PC virtuale deve avere (di default sono 128 MB). Lo possiamo fare con l'opzione&lt;br /&gt;
''-m 256M'' (dove appunto 256M indica 256MB...).&amp;lt;br&amp;gt;&lt;br /&gt;
Ovviamente non possiamo spingerci a valori enormi perché è ovvio che la RAM virtuale viene presa da quella reale...&amp;lt;br&amp;gt;&lt;br /&gt;
Possiamo anche voler abilitare le eventuali schede audio (parlo al plurale perché io ne ho due...) tramite l'opzione ''-soundhw all''.&lt;br /&gt;
Il comando &amp;quot;finale&amp;quot; sarà pertanto (ad esempio):&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qemu -m 512M -boot c -cdrom /dev/hdb -hda nome-file.img -soundhw all&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Può essere necessario avere il sistema operativo emulato in full screen. Cosa possibile tramite la combinazione dei tasti '''ctrl+alt+f'''&amp;lt;br&amp;gt;&lt;br /&gt;
Inoltre, per far tornare il puntatore del mouse nel nostro sistema &amp;quot;reale&amp;quot; basta premere ''ctrl+alt''&lt;br /&gt;
&lt;br /&gt;
'''NOTA''': QEMU utilizza un ''&amp;quot;network stack&amp;quot;'' di default per cui è come se il vostro PC virtuale fosse in LAN con il sistema reale. Usandolo come client DHCP, gli verrà assegnato un IP a partire da 10.0.2.15. &amp;lt;br&amp;gt;&lt;br /&gt;
* Il suo gateway sarà 10.0.0.2, &lt;br /&gt;
* il DNS server il 10.0.2.3 &lt;br /&gt;
* e infine il server SMB il 10.0.2.4.&lt;br /&gt;
&lt;br /&gt;
Un'altra cosa molto importante: può essere necessario '''cambiare cdrom'''. Bene...andiamo nella console di qemu premendo i tasti '''ctrl+alt+2'''&amp;lt;br&amp;gt;&lt;br /&gt;
digitiamo &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
eject cdrom &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
togliamo il cd e inseriamone un altro.&amp;lt;br&amp;gt;&lt;br /&gt;
Andiamo poi di &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
change cdrom /dev/hdb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
e siamo a posto (ovvio che hdb potrebbe essere diversa da voi...solito discorso).&amp;lt;br&amp;gt;&lt;br /&gt;
Torniamo a qemu con ''''ctrl+alt+1'''&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lean</name></author>	</entry>

	</feed>