How to change the MAC address after VirtualBox is started (without losing Internet)

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Elisha11
Posts: 2
Joined: 13. Mar 2017, 15:20

How to change the MAC address after VirtualBox is started (without losing Internet)

Post by Elisha11 »

Hello !

I'm trying to change the Mac address of my VirtualBox which is already running but the internet connection disappears after that....

I have a Windows 7 guest OS running under a Windows 10 Host. The Virtual Box network setting is set to NAT. I see that there is also a setting for the MAC address which can be changed before I start the box but I would like to change the MAC address AFTER I have started the box...

Actually, the change of the MAC address (from the adapter settings) worked... It showed me that the MAC address is changed successfully but now the internet connection is gone...

How to save the internet connection after MAC address change, while the box is running ?

VBOX Version 5.1.16 r113841 (Qt5.6.2)
adapter.jpg
adapter.jpg (81.89 KiB) Viewed 11381 times
adapter1.jpg
adapter1.jpg (81.8 KiB) Viewed 11381 times
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: How to change the MAC address after VirtualBox is started (without losing Internet)

Post by socratis »

Elisha11 wrote:Actually, the change of the MAC address (from the adapter settings) worked
How exactly did you change the MAC address from the settings, since they are disabled? And if you didn't refresh those settings in the 2nd screenshot, it still shows the same MAC address. If you're trying to change it to your host's MAC address, or something that's in the close network, you're going to have a lot of problems, much bigger than what you're describing.

There is a reason for not allowing changes of the hardware on the fly, just like you can't change your phone number in the middle of a phone call. That's why I guess the guest OS loses the ground under its feet as well. It's not supposed to happen. What's your end goal, what are you trying to do?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Elisha11
Posts: 2
Joined: 13. Mar 2017, 15:20

Re: How to change the MAC address after VirtualBox is started (without losing Internet)

Post by Elisha11 »

I changed the MAC address after the Windows 7 guest is running...
Manually from the adapter settings or with a specialized software !


What I want to do ?
I'm playing Lineage 2. I play in a private server and everyone is using a vote reward "bug". When you change your MAC address you can get more than 1 reward per day.
I had a laptop with Windows 7 and this "bug" was working fine but then I had to sell the laptop and now I'm using my boyfriend's machine... The "bug" is not working anymore because the machine has Windows 10... So I was thinking of a way to do it again and I thought about the virtual machines. The bug works fine when I :
1 start the virtual box with new mac address
2 start Lineage 2
3 take reward
4 stop VirtualBox
5 start VBOX with new mac address and so on and so forth ...

But I was thinking if I could change the mac address while virtualbox is running so I can miss the steps where I have to start and shutdown the virtualbox in order of change the mac address..

I want to change it while the VBOX is running..

I hope you understood me...
adapter3.jpg
adapter3.jpg (88.47 KiB) Viewed 11369 times
klaus
Oracle Corporation
Posts: 1335
Joined: 10. May 2007, 14:57

Re: How to change the MAC address after VirtualBox is started (without losing Internet)

Post by klaus »

VirtualBox doesn't support changing the MAC address at runtime. Some bits and pieces of the necessary logic are implemented, but it's far from end-to-end currently. With NAT the gap is especially big, with bridged there should be ways to get it to work (but at a rather high price, as network packets will be passed to the VM which it shouldn't see). It's not something end users should expect to work.
Post Reply