From Fedora Project Wiki
No edit summary |
m (Fixed lists) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{autolang|base=yes}} | |||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=This test case will test the PXE boot on guest.If you have a PXE boot server available, testing gPXE is pretty straightforward | |description=This test case will test the PXE boot on guest.If you have a PXE boot server available, testing gPXE is pretty straightforward | ||
|actions= | |actions= | ||
<ol> | |||
<li> Make sure the guest can access the network which the PXE server is on, e.g. by [http://wiki.libvirt.org/page/Networking#Fedora.2FRHEL_Bridging configuring a bridge]. | |||
<li> Define a guest which which will PXE boot from that network: | |||
<pre> $> cat > netboot.xml <<EOF | |||
<domain type='kvm'> | |||
<name>netboot</name> | |||
<memory>524288</memory> | |||
<os> | |||
<type arch='x86_64' machine='pc'>hvm</type> | |||
<boot dev='network'/> | |||
</os> | |||
<devices> | |||
<emulator>/usr/bin/qemu-kvm</emulator> | |||
<interface type='bridge'> | |||
<source bridge='br0'/> | |||
<model type='virtio'/> | |||
</interface> | |||
<graphics type='vnc'/> | |||
</devices> | |||
</domain> | |||
EOF </pre> | |||
<li> Define, start and test the defined guest using the following commands | |||
<pre> | |||
$> virsh define netboot.xml | |||
$> virsh start netboot | |||
$> virt-viewer netboot | |||
</pre> | |||
</ol> | |||
|results= | |results= | ||
# Confirm that the guest has obtained a DHCP address and download the appropriate files via TFTP | # Confirm that the guest has obtained a DHCP address and download the appropriate files via TFTP | ||
# No errors during booting | # No errors during booting | ||
}} | }} | ||
[[Category:Virtualization | |||
[[Category:Virtualization Test Cases]] |
Latest revision as of 16:11, 13 April 2011
Description
This test case will test the PXE boot on guest.If you have a PXE boot server available, testing gPXE is pretty straightforward
How to test
- Make sure the guest can access the network which the PXE server is on, e.g. by configuring a bridge.
- Define a guest which which will PXE boot from that network:
$> cat > netboot.xml <<EOF <domain type='kvm'> <name>netboot</name> <memory>524288</memory> <os> <type arch='x86_64' machine='pc'>hvm</type> <boot dev='network'/> </os> <devices> <emulator>/usr/bin/qemu-kvm</emulator> <interface type='bridge'> <source bridge='br0'/> <model type='virtio'/> </interface> <graphics type='vnc'/> </devices> </domain> EOF
- Define, start and test the defined guest using the following commands
$> virsh define netboot.xml $> virsh start netboot $> virt-viewer netboot
Expected Results
- Confirm that the guest has obtained a DHCP address and download the appropriate files via TFTP
- No errors during booting