Because every time the computer is restarted, the mac address will change, causing some applications bound to the mac address to be unavailable
OS info:Windows 10 x64 18363
I'm pretty sure that is not the case. I too have licensed/activated software that would be upset if network MAC addresses kept changing. What makes you think this happens?heqiusheng wrote: Because every time the computer is restarted, the mac address will change
| Edit: Plus I just checked: a reset of my PC did not change the host-only adapter MAC address. I can't find anywhere that the MAC address is configurable, so I'm assuming it's hard coded in "firmware", making it much the same as any other make of ethernet adapter. |
The host-only ethernet adapter is a host device driver, so is not created or configured on a per-VM basis. It is unclear if this is what the OP meant.Rootman wrote:The MAC is defined in the VBOX file from the settings in the VM's network cards advanced configuration.
I'm sorry, are we talking about two different things? I changed a VM to HOST-ONLY ADAPTER from BRIDGED and the adapter type still stays the same and I can see and potentially change the MAC address in the Advanced section of the settings.mpack wrote:The host-only ethernet adapter is a host device driver, so is not created or configured on a per-VM basis. It is unclear if this is what the OP meant.
Yes, I think so. You are talking about the virtual network adapter that is provided to the guest, and mpack is talking about the virtual network adapter that is created in the host OS. Both are connected inside VirtualBox over a virtual switch, both have an IP address in the 192.168.56.x/24 range by default, and both have an individual MAC address. You can configure the MAC address of "your adapter", but VirtualBox automatically chooses a random the MAC address for "mpack's adapter", and the latter is not configurable according to the VirtualBox source code.Rootman wrote:I'm sorry, are we talking about two different things?
On any Windows host with VirtualBox installed, open an administrator command console and type the command "ipconfig /all". This will describe all of the network cards in your system. One of them will look like this:Rootman wrote: I'm sorry, are we talking about two different things?
Yes as you saidmpack wrote:Heqiusheng is saying that the MAC on this card is not the same for all of us (looks like only the lsbyte differs), and it sometimes changes somehow on a host reset, which I have not observed yet.
Yes, and I stand corrected now regarding Windows hosts.mpack wrote:FTH suggested a random number
Code: Select all
MAC address is not specified: will use generated MAC 08:00:27:[...]Code: Select all
https://github.com/mdaniel/virtualbox-org-svn-vbox-trunk/blob/master/src/VBox/NetworkServices/Dhcpd/Config.cpp#L283Code: Select all
/** @todo the MAC address is always generated, no XML config option for it ... */I saw that log, unfortunately the MAC address it says it generated is not what ipconfig showed the card to actually be using, which left me at a loss. Perhaps the log is only generated when a VM uses the host-only network, which is not something I typically use (I typically would use Bridged).fth0 wrote: In the Global Settings folder, you can find a file named HostInterfaceNetworking-vboxnet0-Dhcpd.log (or similar), containing a log message similar to