nvrmore100
Member
Hello,
I am wondering if there is any way to force a reread/apply of the config.pvs file, much like it must be doing after you edit the configuration on a VM while it is live.
In particular, I want to automate the changing of my network type (shared vs. bridged) based on my location and connection to VPN on my Mac. When I am off VPN, I want the VM to be in bridged mode, compared to shared mode when I am connected to VPN.
I have found the config setting I need to tweak, namely:
Shared:
<NetworkAdapter>
<Index>0</Index>
<Enabled>1</Enabled>
<Connected>1</Connected>
<EmulatedType>1</EmulatedType>
Bridged:
<NetworkAdapter>
<Index>0</Index>
<Enabled>1</Enabled>
<Connected>1</Connected>
<EmulatedType>2</EmulatedType>
However, changing this file while the VM is live does not make it take effect. One thing I want to be clear, I do NOT want to have to reboot my VM. That is far slower than just manually changing this myself. However, I imagine that there may be a tool I could run somewhere that would force the reread, and apply the changes to the VM.
Anyone know?
Thanks!
I am wondering if there is any way to force a reread/apply of the config.pvs file, much like it must be doing after you edit the configuration on a VM while it is live.
In particular, I want to automate the changing of my network type (shared vs. bridged) based on my location and connection to VPN on my Mac. When I am off VPN, I want the VM to be in bridged mode, compared to shared mode when I am connected to VPN.
I have found the config setting I need to tweak, namely:
Shared:
<NetworkAdapter>
<Index>0</Index>
<Enabled>1</Enabled>
<Connected>1</Connected>
<EmulatedType>1</EmulatedType>
Bridged:
<NetworkAdapter>
<Index>0</Index>
<Enabled>1</Enabled>
<Connected>1</Connected>
<EmulatedType>2</EmulatedType>
However, changing this file while the VM is live does not make it take effect. One thing I want to be clear, I do NOT want to have to reboot my VM. That is far slower than just manually changing this myself. However, I imagine that there may be a tool I could run somewhere that would force the reread, and apply the changes to the VM.
Anyone know?
Thanks!