<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wikiold.home.tartarefr.eu/index.php?action=history&amp;feed=atom&amp;title=Datasheet%2FVirsh</id>
	<title>Datasheet/Virsh - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wikiold.home.tartarefr.eu/index.php?action=history&amp;feed=atom&amp;title=Datasheet%2FVirsh"/>
	<link rel="alternate" type="text/html" href="https://wikiold.home.tartarefr.eu/index.php?title=Datasheet/Virsh&amp;action=history"/>
	<updated>2026-07-07T03:50:18Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wikiold.home.tartarefr.eu/index.php?title=Datasheet/Virsh&amp;diff=2667&amp;oldid=prev</id>
		<title>Didier : /* Gestion avancée */</title>
		<link rel="alternate" type="text/html" href="https://wikiold.home.tartarefr.eu/index.php?title=Datasheet/Virsh&amp;diff=2667&amp;oldid=prev"/>
		<updated>2014-04-18T15:18:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Gestion avancée&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 18 avril 2014 à 15:18&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l25&quot;&gt;Ligne 25 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 25 :&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-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Gestion avancée ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Gestion avancée ==&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-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Exporter la configuration XML (stdout)&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh dumpxml&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Exporter la configuration XML (stdout)&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh dumpxml&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Importer la configuration d&#039;une VM à partir d&#039;un fichier XML (sans la démarrer)&amp;lt;syntaxhighlight lang=&quot;bash&quot;&amp;gt;virsh define &amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;XML &lt;/del&gt;file&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Importer la configuration d&#039;une VM à partir d&#039;un fichier XML (sans la démarrer)&amp;lt;syntaxhighlight lang=&quot;bash&quot;&amp;gt;virsh define &amp;lt;file&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.xml&lt;/ins&gt;&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Importer la configuration d&#039;une VM à partir d&#039;un fichier XML (avec démarrage). La VM est automatiquement détruite à l&#039;arrêt de celle-ci.&amp;lt;syntaxhighlight lang=&quot;bash&quot;&amp;gt;virsh define &amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;XML &lt;/del&gt;file&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Importer la configuration d&#039;une VM à partir d&#039;un fichier XML (avec démarrage). La VM est automatiquement détruite à l&#039;arrêt de celle-ci.&amp;lt;syntaxhighlight lang=&quot;bash&quot;&amp;gt;virsh define &amp;lt;file&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.xml&lt;/ins&gt;&amp;gt;&amp;lt;/syntaxhighlight&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-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Modifier la configuration XML d&amp;#039;une VM&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh edit &amp;lt;name&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Modifier la configuration XML d&amp;#039;une VM&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh edit &amp;lt;name&amp;gt;&amp;lt;/syntaxhighlight&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-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Démarrer automatiquement une VM au démarrage de l&amp;#039;hôte&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh autostart &amp;lt;name&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Démarrer automatiquement une VM au démarrage de l&amp;#039;hôte&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh autostart &amp;lt;name&amp;gt;&amp;lt;/syntaxhighlight&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-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{noprint|[[Fichier:DatasheetVirsh.svg]]}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{noprint|[[Fichier:DatasheetVirsh.svg]]}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Didier</name></author>
	</entry>
	<entry>
		<id>https://wikiold.home.tartarefr.eu/index.php?title=Datasheet/Virsh&amp;diff=2661&amp;oldid=prev</id>
		<title>Didier : Page créée avec « {{Datasheet}} = Virsh = &lt;app&gt;Virsh&lt;/app&gt; est la commande CLI de libvirt pour gérer les VM.  Cet utilitaire est construit autour de l&#039;API de gestion libvi... »</title>
		<link rel="alternate" type="text/html" href="https://wikiold.home.tartarefr.eu/index.php?title=Datasheet/Virsh&amp;diff=2661&amp;oldid=prev"/>
		<updated>2014-04-18T15:13:08Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « {{Datasheet}} = Virsh = &amp;lt;app&amp;gt;Virsh&amp;lt;/app&amp;gt; est la commande CLI de &lt;a href=&quot;/index.php/Virt/LibVirt&quot; title=&quot;Virt/LibVirt&quot;&gt;libvirt&lt;/a&gt; pour gérer les VM.  Cet utilitaire est construit autour de l&amp;#039;API de gestion libvi... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Datasheet}}&lt;br /&gt;
= Virsh =&lt;br /&gt;
&amp;lt;app&amp;gt;Virsh&amp;lt;/app&amp;gt; est la commande CLI de [[Virt/LibVirt|libvirt]] pour gérer les VM.&lt;br /&gt;
&lt;br /&gt;
Cet utilitaire est construit autour de l&amp;#039;API de gestion libvirt et opère comme une alternative à l&amp;#039;outil xm ou au gestionnaire graphique de machines virtuelles. Les utilisateurs sans privilège peuvent employer cet utilitaire pour des opérations en lecture-seule.&lt;br /&gt;
{{Admon/tip|Shell interactif|La commande &amp;lt;app&amp;gt;virsh&amp;lt;/app&amp;gt;, lancée sans argument, démarre un shell interactive où toutes les commandes virsh sont disponibles.&lt;br /&gt;
L&amp;#039;aide est disponible en tapant &amp;#039;&amp;#039;&amp;#039;help&amp;#039;&amp;#039;&amp;#039; au prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;# virsh&lt;br /&gt;
Welcome to virsh, the virtualization interactive terminal.&lt;br /&gt;
&lt;br /&gt;
Type:  &amp;#039;help&amp;#039; for help with commands&lt;br /&gt;
       &amp;#039;quit&amp;#039; to quit&lt;br /&gt;
&lt;br /&gt;
virsh # help&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
== Gestion basique ==&lt;br /&gt;
* Lister les VMs&lt;br /&gt;
** Seulement les VMs démarrées&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh list&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
** Toutes le VMs définies&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh list --all&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Démarrer une VM&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh start &amp;lt;name&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Arrêter (proprement) une VM. C&amp;#039;est l&amp;#039;équivalent d&amp;#039;un &amp;lt;app&amp;gt;shutdown&amp;lt;/app&amp;gt; sur la VM.&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh shutdown &amp;lt;name&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Arrêter (brutalement) une VM. C&amp;#039;est l&amp;#039;équivalent d&amp;#039;une coupure d&amp;#039;alimentation.&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh destroy &amp;lt;name&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Mettre une VM en pause&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh pause &amp;lt;name&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Sortir une VM de pause&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh resume &amp;lt;name&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Gestion avancée ==&lt;br /&gt;
* Exporter la configuration XML (stdout)&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh dumpxml&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Importer la configuration d&amp;#039;une VM à partir d&amp;#039;un fichier XML (sans la démarrer)&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh define &amp;lt;XML file&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Importer la configuration d&amp;#039;une VM à partir d&amp;#039;un fichier XML (avec démarrage). La VM est automatiquement détruite à l&amp;#039;arrêt de celle-ci.&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh define &amp;lt;XML file&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Modifier la configuration XML d&amp;#039;une VM&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh edit &amp;lt;name&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Démarrer automatiquement une VM au démarrage de l&amp;#039;hôte&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;virsh autostart &amp;lt;name&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{noprint|[[Fichier:DatasheetVirsh.svg]]}}&lt;/div&gt;</summary>
		<author><name>Didier</name></author>
	</entry>
</feed>