We have been configuring this on a per vlan basis on our core switch, so our config for a vlan looks like:
code:configure bootprelay vlan "GHN" add 172.16.1.31
code:configure bootprelay vlan "GHN" add 172.16.1.29
I have not tried configuring both relays on the vr only, so I can't confirm that would work, but I don't see why it shouldn't.
One thing to note is that configuring a bootprelay on a vlan causes the switch to completely ignore the default config on the vr for that vlan. So e.g. you can't configure the relay for your dhcp server on the vr and then add just the pxe relay on a vlan - you have to add both the dhcp and pxe relays.