QA:Testcase VirtSandbox Network

From FedoraProject

Revision as of 14:03, 13 April 2012 by Berrange (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



This test aims to verify networking is setup correctly


Follow the VirtSandbox common setup

Ensure the default libvirt network is configured

# yum install libvirt-daemon-config-network
# systemctl restart libvirtd.service
# virsh net-start default 

How to test

  1. Run a sandbox without any networking
    virt-sandbox -c $URI /bin/sh
    $ ifconfig
  2. Run a sandbox with dynamic (DHCP) networking
    virt-sandbox -c $URI --network dhcp /bin/sh
    $ ifconfig
  3. Run a sandbox with static networking
    virt-sandbox -c $URI --network address= /bin/sh
    $ ifconfig

Expected Results

  1. No network interfaces should be shown. Only lo should exist, but be offline
  2. Two network interfaces:
    eth0 Link encap:Ethernet HWaddr 52:54:00:68:E9:5C
    inet addr: Bcast: Mask:
    inet6 addr: fe80::5054:ff:fe68:e95c/64 Scope:Link
    RX packets:5 errors:0 dropped:0 overruns:0 frame:0
    TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:336 (336.0 b) TX bytes:238 (238.0 b)
    lo Link encap:Local Loopback
    inet addr: Mask:
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
  3. As with DHCP, two network interfaces