Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


libvirt_isolated_network

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
libvirt_isolated_network [2016/04/01 13:54] adminlibvirt_isolated_network [2021/10/09 15:14] (current) – external edit 127.0.0.1
Line 1: Line 1:
 {{tag>[rhel7 libvirt vm networking]}} {{tag>[rhel7 libvirt vm networking]}}
  
-~~TOC~~ 
  
 =====Libvirt, create isolated network===== =====Libvirt, create isolated network=====
  
  
-  * Define the network in an XML file, for example in ''/tmp/isolated.xml''<code>+  * Create an XML file, for example in ''/tmp/isolated.xml''<code>
      <network>      <network>
         <name>isolated</name>         <name>isolated</name>
Line 12: Line 11:
       </network>       </network>
 </code> </code>
- +  * Define the network:<code>virsh net-define /tmp/isolated.xml</code> 
-virsh net-define /usr/share/libvirt/networks/default.xml +  * Autostart the new network: <code>virsh net-autostart isolated</code> 
-Network default defined from /usr/share/libvirt/networks/default.xml +  * Start the network: <code>virsh net-start isolated</code>
-virsh net-autostart default +
-Network default marked as autostarted +
-virsh net-start default +
-Network default started+
  
              
libvirt_isolated_network.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1