Here is what I would do, not validated. * Create a network with DHCP disabled. * Launch a VM to support PXE boot. * Launch a VM on volume based on any image for PXE boot. * The default virtio nic works fine with PXE boot. * "virsh edit <instance>" to enable PXE boot on the compute node. * "soft reboot" VM should bring VM to PXE boot.
I prefer to do this with virsh/libvirt directly, which is much easier.
Tony ________________________________________ From: Thomas Goirand zigo@debian.org Sent: December 1, 2021 02:33 PM To: openstack-discuss@lists.openstack.org Subject: [nova] Spawning instance that will do PXE booting
Hi,
In order to test OCI [1] within OpenStack itself, I would need my instances to do PXE booting. This would be with something like this on the qemu command line:
qemu-system-x86_64 -boot n
I believe this would also mean setting-up network cards that can do PXE booting, like the e1000, which Qemu supports.
If that is possible, then I would setup DHCP + tftp-hpa on another instance, wired on the same private network.
Your thoughts? Is this possible?
Cheers,
Thomas Goirand (zigo)
[1] https://salsa.debian.org/openstack-team/debian/openstack-cluster-installer