From Fedora Project Wiki
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
# 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]. | # 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]. | ||
# Define a guest which which will PXE boot from that network: | # Define a guest which which will PXE boot from that network: | ||
:<pre> | #:<pre> | ||
: $> cat > netboot.xml <<EOF | #: $> cat > netboot.xml <<EOF | ||
: <domain type='kvm'> | #: <domain type='kvm'> | ||
: <name>netboot</name> | #: <name>netboot</name> | ||
: <memory>524288</memory> | #: <memory>524288</memory> | ||
: <os> | #: <os> | ||
: <type arch='x86_64' machine='pc'>hvm</type> | #: <type arch='x86_64' machine='pc'>hvm</type> | ||
: <boot dev='network'/> | #: <boot dev='network'/> | ||
: </os> | #: </os> | ||
: <devices> | #: <devices> | ||
: <emulator>/usr/bin/qemu-kvm</emulator> | #: <emulator>/usr/bin/qemu-kvm</emulator> | ||
: <interface type='bridge'> | #: <interface type='bridge'> | ||
: <source bridge='br0'/> | #: <source bridge='br0'/> | ||
: <model type='virtio'/> | #: <model type='virtio'/> | ||
: </interface> | #: </interface> | ||
: <graphics type='vnc'/> | #: <graphics type='vnc'/> | ||
: </devices> | #: </devices> | ||
: </domain> | #: </domain> | ||
: EOF </pre> | #: EOF </pre> | ||
Start and test the defined guest: | #Start and test the defined guest: | ||
:<pre> | #:<pre> | ||
: $> virsh define netboot.xml | #: $> virsh define netboot.xml | ||
: $> virsh start netboot | #: $> virsh start netboot | ||
: $> virt-viewer netboot | #: $> virt-viewer netboot | ||
:</pre> | #:</pre> | ||
|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 |
Revision as of 10:13, 8 April 2010
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
- Start and test the defined guest:
- $> 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