How can Linux VM inside Windows 7 host keep IP address?
Posted: 26. Dec 2016, 21:13
How can my Linux VM guest inside Windows 7 host keep its IP address at least while it is running? Do I have to use static addressing?
I'm running an Oracle Linux virtual machine guest inside a Windows 7 host, using Bridged networking so that other computers on the same (home) subnet can see my Linux machine via its IP address without reference to the host. It works fine EXCEPT: after some timeout (the specific duration of which I haven't been able to determine, but somewhere between 5 and 60 minutes), my Linux machine loses its IP address (which it got from the router at 192.168.0.1) and I have to re-connect the (pseudo-"wired") network.
Trouble is, every time I connect my Linux VM to acquire an IP address, the address number is incremented; it never gets the same address twice. I'm up to 192.168.0.31 now, and counting.
I realize that under DHCP, IP addresses are not permanent or guaranteed, but under normal (physical machines) circumstances, each of my PCs usually gets the same address each time, and certainly doesn't lose any address in mid-session once acquired.
The 'Promiscuous mode' setting doesn't seem to matter; same behavior regardless of this.
How can my Linux VM hang on to its IP address at least while it is running? Do I have to use static addressing?
P.S. My question is very similar to this one: www dot virtualbox dot org / ticket / 10963
But that one was never answered and got closed as 'Obsolete'.
I'm running an Oracle Linux virtual machine guest inside a Windows 7 host, using Bridged networking so that other computers on the same (home) subnet can see my Linux machine via its IP address without reference to the host. It works fine EXCEPT: after some timeout (the specific duration of which I haven't been able to determine, but somewhere between 5 and 60 minutes), my Linux machine loses its IP address (which it got from the router at 192.168.0.1) and I have to re-connect the (pseudo-"wired") network.
Trouble is, every time I connect my Linux VM to acquire an IP address, the address number is incremented; it never gets the same address twice. I'm up to 192.168.0.31 now, and counting.
I realize that under DHCP, IP addresses are not permanent or guaranteed, but under normal (physical machines) circumstances, each of my PCs usually gets the same address each time, and certainly doesn't lose any address in mid-session once acquired.
The 'Promiscuous mode' setting doesn't seem to matter; same behavior regardless of this.
How can my Linux VM hang on to its IP address at least while it is running? Do I have to use static addressing?
P.S. My question is very similar to this one: www dot virtualbox dot org / ticket / 10963
But that one was never answered and got closed as 'Obsolete'.