From Fedora Project Wiki

No edit summary
No edit summary
Line 2: Line 2:
|description=This test case verifies that Xen DomU networking works correctly, including the ability to attach/detach network devices.
|description=This test case verifies that Xen DomU networking works correctly, including the ability to attach/detach network devices.
|actions=
|actions=
# From the dom0, attach new virbr to the rawhide domU <pre>$> virsh attach-interface rawhide bridge virbr0</pre>
# From the dom0, attach a new virbr0 type interface to the rawhide domU <pre>$> virsh attach-interface rawhide bridge virbr0</pre>
# Inside the guest, run <pre>$> ifconfig</pre>  You should be able to it.
# Inside the guest, run <pre>$> ifconfig</pre>  You should be able to see it.
# Trying pinging the gateway from it <pre>$> ping -I eth? -c 2 192.168.122.1 </pre>
# Trying pinging the gateway from it <pre>$> ping -I eth? -c 2 192.168.122.1 </pre>
# From the dom0, disconnect the disk from the rawhide guest <pre>$> virsh detach-interface rawhide bridge</pre>
# From the dom0, disconnect the interface from the rawhide guest <pre>$> virsh detach-interface rawhide bridge</pre>
# Download this [[File:Xen-domu-attach-nics.sh‎]] script to the dom0, and make it executable with <code>chmod +x Xen-domu-attach-nics.sh</code>. This shell script attempts to attach 40 network devices. Run it with <pre>Xen-domu-attach-nics.sh</pre> See how many attached, there should probably be at least 16.
# Download this [[File:Xen-domu-attach-nics.sh‎]] script to the dom0, and make it executable with <code>chmod +x Xen-domu-attach-nics.sh</code>. This shell script attempts to attach 40 network devices. Run it with <pre>Xen-domu-attach-nics.sh</pre> and see how many attached, there should probably be at least 16 to "pass" this test.
# When you are finished, run <pre>$> Xen-domu-attach-nics.sh rawhide remove</pre> to clean up.
# When you are finished, run <pre>$> Xen-domu-attach-nics.sh rawhide remove</pre> to clean up.
|results=
|results=

Revision as of 20:11, 16 September 2009

Description

This test case verifies that Xen DomU networking works correctly, including the ability to attach/detach network devices.


How to test

  1. From the dom0, attach a new virbr0 type interface to the rawhide domU
    $> virsh attach-interface rawhide bridge virbr0
  2. Inside the guest, run
    $> ifconfig
    You should be able to see it.
  3. Trying pinging the gateway from it
    $> ping -I eth? -c 2 192.168.122.1 
  4. From the dom0, disconnect the interface from the rawhide guest
    $> virsh detach-interface rawhide bridge
  5. Download this File:Xen-domu-attach-nics.sh script to the dom0, and make it executable with chmod +x Xen-domu-attach-nics.sh. This shell script attempts to attach 40 network devices. Run it with
    Xen-domu-attach-nics.sh
    and see how many attached, there should probably be at least 16 to "pass" this test.
  6. When you are finished, run
    $> Xen-domu-attach-nics.sh rawhide remove
    to clean up.

Expected Results

  1. The network devices should be presented to the domU on attach-interface, and removed from the guest on detach-interface.
  2. The rawhide guest should be able to use the network interfaces.