<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.docking.org/index.php?action=history&amp;feed=atom&amp;title=Virsh_commands</id>
	<title>Virsh commands - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.docking.org/index.php?action=history&amp;feed=atom&amp;title=Virsh_commands"/>
	<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Virsh_commands&amp;action=history"/>
	<updated>2026-04-12T06:03:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Virsh_commands&amp;diff=11477&amp;oldid=prev</id>
		<title>Benrwong at 19:47, 4 February 2019</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Virsh_commands&amp;diff=11477&amp;oldid=prev"/>
		<updated>2019-02-04T19:47:36Z</updated>

		<summary type="html">&lt;p&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;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:47, 4 February 2019&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-l15&quot;&gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&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;Adding a network interface to a VM&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;Adding a network interface to a VM&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;  virsh attach-interface --domain &amp;lt;vm_name&amp;gt; --type &amp;lt;bridge/network&amp;gt; --source &amp;lt;source-device&amp;gt; --model virtio --mac &amp;lt;insert-whatever-mac-address&amp;gt; --config&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;  virsh attach-interface --domain &amp;lt;vm_name&amp;gt; --type &amp;lt;bridge/network&amp;gt; --source &amp;lt;source-device&amp;gt; --model virtio --mac &amp;lt;insert-whatever-mac-address&amp;gt; --config&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;To detach a virtual cdrom/iso file from a VM&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; sudo virsh detach-disk &amp;lt;vmname&gt; &amp;lt;full path on server to iso/cd image file&gt; --config&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-10370:rev-11477 --&gt;
&lt;/table&gt;</summary>
		<author><name>Benrwong</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Virsh_commands&amp;diff=10370&amp;oldid=prev</id>
		<title>Benrwong: Created libvirt virsh command list</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Virsh_commands&amp;diff=10370&amp;oldid=prev"/>
		<updated>2017-10-09T17:15:16Z</updated>

		<summary type="html">&lt;p&gt;Created libvirt virsh command list&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;virsh is command line tool for the libvirt API which allows us to interact with Linux kernel virtual machines (KVM)&lt;br /&gt;
&lt;br /&gt;
===Handy Commands===&lt;br /&gt;
To list all virtual machines and their state on hypervisor&lt;br /&gt;
 virsh list --all&lt;br /&gt;
To start a powered down virtual machine&lt;br /&gt;
 virsh start &amp;lt;vm_name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To force shutdown a virtual machine (pulling the plug on a VM)&lt;br /&gt;
 virsh destroy --graceful &amp;lt;vm_name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To view virtual machine network interfaces&lt;br /&gt;
 virsh domiflist &amp;lt;vm_name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding a network interface to a VM&lt;br /&gt;
 virsh attach-interface --domain &amp;lt;vm_name&amp;gt; --type &amp;lt;bridge/network&amp;gt; --source &amp;lt;source-device&amp;gt; --model virtio --mac &amp;lt;insert-whatever-mac-address&amp;gt; --config&lt;/div&gt;</summary>
		<author><name>Benrwong</name></author>
	</entry>
</feed>