Hi,<br />I want to exclusively use PXE/IPv6 when deploying a set of physical machines with some QEMU/KVM virtual machines on top.<br /><br />So far, the only [hacky] way I have managed to do this is to:<br />1) Bring up a VM with OVMF<br />2) Set the wanted boot-order with PXE over IPv6 at the top<br />3) Save this to the NVRAM<br />4) Repete the above for a set of VMs with different MAC addresse<br />5) Keep these NVRAMs as "canned" templates (with associated fixed MACs)<br />4) Later use one of these NVRAM as a template for VMs with the associated MAC <br /><br />Obviously this does not scale to hundreds of VMs<br /><br />Reading through the code is seems that it might be possible to disable PXE over IPv4 with<br />the PCD variable "IPv4PXESupport" = <one byte binary zero>.<br /><br />I have tried with<br />    <qemu:arg value='-fw_cfg'/><br />    <qemu:arg value='opt/ovmf/X-PcdIPv4PXESupport,file=/var/lib/libvirt/qemu/nvram/zero'/><br /><br />where the file is a one byte binary zero and I have verified that it shows up in /sys/firmware/qemu_fw_cfg.<br /><hr /><span style="font-size: 8pt;">linux-u7u9:/sys/firmware/qemu_fw_cfg/by_name # ls opt/ovmf/X-PcdIPv4PXESupport/</span><br /><span style="font-size: 8pt;">key  name  raw size</span><br /><span style="font-size: 8pt;">linux-u7u9:/sys/firmware/qemu_fw_cfg/by_name # cat opt/ovmf/X-PcdIPv4PXESupport/size <br /></span><span style="font-size: 8pt;">1</span><br /><span style="font-size: 8pt;">linux-u7u9:/sys/firmware/qemu_fw_cfg/by_name # od -b opt/ovmf/X-PcdIPv4PXESupport/raw </span><br /><span style="font-size: 8pt;">0000000 000</span><br /><hr />Is this something that should work, or is this variable compiled in ?<br />Are there other ways of acomplishing what I try to do ?<br /><br />Thanks,<br /><br />   /Per

<div width="1" style="color:white;clear:both">_._,_._,_</div>
<hr>
Groups.io Links:<p>


You receive all messages sent to this group.



<p>

<a target="_blank" href="https://edk2.groups.io/g/devel/message/56500">View/Reply Online (#56500)</a> |


  


|


  
    <a target="_blank" href="https://groups.io/mt/72590544/1813853">Mute This Topic</a>
  

| <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>



<br>

<a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> |
<a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |

<a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>

 [edk2-devel-archive@redhat.com]<br>
<div width="1" style="color:white;clear:both">_._,_._,_</div>