summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--domain/test-ipxe-ipv4-aarch64.xml1
-rw-r--r--domain/test-ipxe-ipv4-x86_64.xml32
-rw-r--r--domain/test-ipxe-ipv6-x86_64.xml33
-rw-r--r--network/test-ipxe-ipv4-x86_64.xml22
-rw-r--r--network/test-ipxe-ipv6-x86_64.xml20
5 files changed, 107 insertions, 1 deletions
diff --git a/domain/test-ipxe-ipv4-aarch64.xml b/domain/test-ipxe-ipv4-aarch64.xml
index 684533b..ec606bc 100644
--- a/domain/test-ipxe-ipv4-aarch64.xml
+++ b/domain/test-ipxe-ipv4-aarch64.xml
@@ -26,4 +26,3 @@
<qemu:arg value='name=opt/org.tianocore/IPv6PXESupport,string=no'/>
</qemu:commandline>
</domain>
-
diff --git a/domain/test-ipxe-ipv4-x86_64.xml b/domain/test-ipxe-ipv4-x86_64.xml
new file mode 100644
index 0000000..7e4eaa3
--- /dev/null
+++ b/domain/test-ipxe-ipv4-x86_64.xml
@@ -0,0 +1,32 @@
+<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
+ <name>test-ipxe-ipv4-x86_64</name>
+ <memory unit='GiB'>1</memory>
+ <vcpu placement='static'>1</vcpu>
+ <os firmware='efi'>
+ <type arch='x86_64' machine='q35'>hvm</type>
+ <firmware>
+ <feature enabled='no' name='enrolled-keys'/>
+ <feature enabled='no' name='secure-boot'/>
+ </firmware>
+ </os>
+ <features>
+ <acpi/>
+ <apic/>
+ </features>
+ <cpu mode='host-passthrough' check='none'/>
+ <devices>
+ <interface type='network'>
+ <source network='test-ipxe-ipv4-x86_64'/>
+ <model type='virtio'/>
+ <boot order='1'/>
+ </interface>
+ <console type='pty'/>
+ <rng model='virtio'>
+ <backend model='random'>/dev/urandom</backend>
+ </rng>
+ </devices>
+ <qemu:commandline>
+ <qemu:arg value='-fw_cfg'/>
+ <qemu:arg value='name=opt/org.tianocore/IPv6PXESupport,string=no'/>
+ </qemu:commandline>
+</domain>
diff --git a/domain/test-ipxe-ipv6-x86_64.xml b/domain/test-ipxe-ipv6-x86_64.xml
new file mode 100644
index 0000000..51cfe18
--- /dev/null
+++ b/domain/test-ipxe-ipv6-x86_64.xml
@@ -0,0 +1,33 @@
+<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
+ <name>test-ipxe-ipv6-x86_64</name>
+ <memory unit='GiB'>1</memory>
+ <vcpu placement='static'>1</vcpu>
+ <os firmware='efi'>
+ <type arch='x86_64' machine='q35'>hvm</type>
+ <firmware>
+ <feature enabled='no' name='enrolled-keys'/>
+ <feature enabled='no' name='secure-boot'/>
+ </firmware>
+ </os>
+ <features>
+ <acpi/>
+ <apic/>
+ </features>
+ <cpu mode='host-passthrough' check='none'/>
+ <devices>
+ <interface type='network'>
+ <source network='test-ipxe-ipv6-x86_64'/>
+ <model type='virtio'/>
+ <boot order='1'/>
+ </interface>
+ <console type='pty'/>
+ <rng model='virtio'>
+ <backend model='random'>/dev/urandom</backend>
+ </rng>
+ </devices>
+ <qemu:commandline>
+ <qemu:arg value='-fw_cfg'/>
+ <qemu:arg value='name=opt/org.tianocore/IPv4PXESupport,string=no'/>
+ </qemu:commandline>
+</domain>
+
diff --git a/network/test-ipxe-ipv4-x86_64.xml b/network/test-ipxe-ipv4-x86_64.xml
new file mode 100644
index 0000000..216148d
--- /dev/null
+++ b/network/test-ipxe-ipv4-x86_64.xml
@@ -0,0 +1,22 @@
+<network xmlns:dnsmasq='http://libvirt.org/schemas/network/dnsmasq/1.0'>
+ <name>test-ipxe-ipv4-x86_64</name>
+ <bridge name='testipxe4' stp='on' delay='0'/>
+ <ip address='192.168.44.1' netmask='255.255.255.0'>
+ <dhcp>
+ <range start='192.168.44.10' end='192.168.44.99'/>
+ <bootp file='undionly.kpxe'/>
+ </dhcp>
+ </ip>
+ <dnsmasq:options>
+ <dnsmasq:option value='#'/>
+ <dnsmasq:option value='dhcp-match=set:aa64-pxe,option:client-arch,7'/>
+ <dnsmasq:option value='dhcp-boot=tag:aa64-pxe,ipxe-snponly-x86_64.efi,,192.168.44.1'/>
+ <dnsmasq:option value='#'/>
+ <dnsmasq:option value='dhcp-userclass=set:ipxe,iPXE'/>
+ <dnsmasq:option value='dhcp-boot=tag:ipxe,tests/helloworld.ipxe,,192.168.44.1'/>
+ <dnsmasq:option value='#'/>
+ <dnsmasq:option value='enable-tftp=testipxe4'/>
+ <dnsmasq:option value='tftp-root=/usr/share/ipxe'/>
+ </dnsmasq:options>
+</network>
+
diff --git a/network/test-ipxe-ipv6-x86_64.xml b/network/test-ipxe-ipv6-x86_64.xml
new file mode 100644
index 0000000..a090134
--- /dev/null
+++ b/network/test-ipxe-ipv6-x86_64.xml
@@ -0,0 +1,20 @@
+<network xmlns:dnsmasq='http://libvirt.org/schemas/network/dnsmasq/1.0'>
+ <name>test-ipxe-ipv6-x86_64</name>
+ <bridge name='testipxe6' stp='on' delay='0'/>
+ <ip family='ipv6' address='fd00:2342::1' prefix='64'>
+ <dhcp>
+ <range start='fd00:2342::10' end='fd00:2342::ff'/>
+ </dhcp>
+ </ip>
+ <dnsmasq:options>
+ <dnsmasq:option value='#'/>
+ <dnsmasq:option value='dhcp-option=option6:bootfile-url,tftp://[fd00:2342::1]/ipxe-snponly-x86_64.efi'/>
+ <dnsmasq:option value='#'/>
+ <dnsmasq:option value='dhcp-userclass=set:ipxe,iPXE'/>
+ <dnsmasq:option value='dhcp-option=tag:ipxe,option6:bootfile-url,tftp://[fd00:2342::1]/tests/helloworld.ipxe'/>
+ <dnsmasq:option value='#'/>
+ <dnsmasq:option value='enable-tftp=testipxe6'/>
+ <dnsmasq:option value='tftp-root=/usr/share/ipxe'/>
+ </dnsmasq:options>
+</network>
+