Reyk Floeter <r...@openbsd.org> writes:

> I cannot reproduce it, it works as intended.  Are you sure that you
> were looking at the MAC address on the "VM guest side" and not on the
> host side, as mentioned in vm.conf(5):
>
>              lladdr etheraddr
>                      Change the link layer address (MAC address) of the
>                      interface on the VM guest side.  If not specified, a
>                      randomized address will be assigned by vmd(8).
>
> Can you try with current and run vmd in foreground "vmd -dvv", I added
> a debug message that will show more details:
>
> run_vm: initializing hardware for vm openbsd.vm
> virtio_init: vm "openbsd.vm" vio0 lladdr 00:01:ba:d0:e8:db
> virtio_init: vm "openbsd.vm" vio1 lladdr fe:e1:bb:d2:bc:72
> run_vm: starting vcpu threads for vm openbsd.vm
>
> As you see, my test cases uses a fixed lladdr for the first interface;
> ifconfig within the guest show the same.
>
> Reyk
>

Hi Reyk,

Thank you for your response.  I think you have identified my
misunderstanding of the lladdr setting, which sets the vio0 address on
the inside of the VM just fine.

My interest in this setting is to assign an IP address from a DHCP
server based on MAC address, so that I can e.g. ssh and/or http into
this VM.

I am gathering that this should be done on the host side?

Eric

Reply via email to