Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hypervisor:exp1 [2012/11/15 13:19]
giancarlo
hypervisor:exp1 [2012/11/15 13:37]
giancarlo
Line 103: Line 103:
 </code> </code>
 </WRAP> </WRAP>
 +
 +  * Reboot
  
   * Configure KVM network   * Configure KVM network
  
-  * VM network example+<WRAP prewrap center> 
 +<code> 
 +# nano -w mynet-ovs.xml 
 +</code> 
 +</WRAP>
  
 +<WRAP prewrap center>
 +<code xml>
 +<network>
 +  <name>ovs-network</name>
 +  <forward mode='bridge'/>
 +  <bridge name='br0'/>
 +  <virtualport type='openvswitch'/>
 +  <portgroup name='vmport0' default='yes'>
 +  </portgroup>
 +  <portgroup name='vmport2'>
 +    <vlan trunk='yes'>
 +      <tag id='0'/>
 +      <tag id='2'/>
 +      <tag id='3'/>
 +    </vlan>
 +  </portgroup>
 +</network>
 +</code>
 +</WRAP>
 +
 +<WRAP prewrap center>
 +<code>
 +# virsh net-define mynet-ovs.xml
 +# virsh net-start 
 +</code>
 +</WRAP>
 +
 +  * VM network example
  
 +<WRAP prewrap center>
 +<code xml>
 +    <interface type='network'>
 +      <mac address='52:54:00:bd:6c:2a'/>
 +      <source network='ovs-network' portgroup='vmport0'/>
 +      <target dev='vnet0'/>
 +      <alias name='net0'/>
 +      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
 +    </interface>
 +</code>
 +</WRAP>
  
 <WRAP right 35% rightalign lo> <WRAP right 35% rightalign lo>
 
 
hypervisor/exp1.txt · Last modified: 2012/11/15 13:37 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki