Two VirtualBox VMs running in parallel assigned same IP












7















I had one VM in my VirtualBox and wanted to use it as a template/image so I cloned it. Then I launched both the original and the clone simultaneously (to simulate a server cluster for something I was working on), however, both instances were assigned the same IP address. Is this perhaps a bug in our DHCP, which I think VirtualBox uses to get IP addresses? Or perhaps something in the way I set up my VMs? Anyway, I am ultimately interested in resolving this issue so that I can two VMs of the same image concurrently.










share|improve this question























  • On VMWare, if you started a previously used VM from a different path, it asked if you copied it or moved the VM to be able to avoid such situations... How did you clone the VM?

    – ppeterka
    Oct 7 '13 at 20:51













  • i'm afraid this is not the situation here...

    – amphibient
    Oct 7 '13 at 20:52






  • 1





    It is possible that you copied the machine with the MAC (Ethernet) address. That is one of differences between copying and moving in VMware as mentioned by ppeterka. Could you please check the addresses? Could you also please describe how exactly did you clone the machine?

    – pabouk
    Oct 7 '13 at 21:12











  • yes, when i ran ifconfig -a, it showed the same MAC address for both (displayed as HWaddr)

    – amphibient
    Oct 7 '13 at 21:34











  • but the way i cloned it was in UI, just right-clicked the VM and hit Clone

    – amphibient
    Oct 7 '13 at 21:36
















7















I had one VM in my VirtualBox and wanted to use it as a template/image so I cloned it. Then I launched both the original and the clone simultaneously (to simulate a server cluster for something I was working on), however, both instances were assigned the same IP address. Is this perhaps a bug in our DHCP, which I think VirtualBox uses to get IP addresses? Or perhaps something in the way I set up my VMs? Anyway, I am ultimately interested in resolving this issue so that I can two VMs of the same image concurrently.










share|improve this question























  • On VMWare, if you started a previously used VM from a different path, it asked if you copied it or moved the VM to be able to avoid such situations... How did you clone the VM?

    – ppeterka
    Oct 7 '13 at 20:51













  • i'm afraid this is not the situation here...

    – amphibient
    Oct 7 '13 at 20:52






  • 1





    It is possible that you copied the machine with the MAC (Ethernet) address. That is one of differences between copying and moving in VMware as mentioned by ppeterka. Could you please check the addresses? Could you also please describe how exactly did you clone the machine?

    – pabouk
    Oct 7 '13 at 21:12











  • yes, when i ran ifconfig -a, it showed the same MAC address for both (displayed as HWaddr)

    – amphibient
    Oct 7 '13 at 21:34











  • but the way i cloned it was in UI, just right-clicked the VM and hit Clone

    – amphibient
    Oct 7 '13 at 21:36














7












7








7


2






I had one VM in my VirtualBox and wanted to use it as a template/image so I cloned it. Then I launched both the original and the clone simultaneously (to simulate a server cluster for something I was working on), however, both instances were assigned the same IP address. Is this perhaps a bug in our DHCP, which I think VirtualBox uses to get IP addresses? Or perhaps something in the way I set up my VMs? Anyway, I am ultimately interested in resolving this issue so that I can two VMs of the same image concurrently.










share|improve this question














I had one VM in my VirtualBox and wanted to use it as a template/image so I cloned it. Then I launched both the original and the clone simultaneously (to simulate a server cluster for something I was working on), however, both instances were assigned the same IP address. Is this perhaps a bug in our DHCP, which I think VirtualBox uses to get IP addresses? Or perhaps something in the way I set up my VMs? Anyway, I am ultimately interested in resolving this issue so that I can two VMs of the same image concurrently.







virtualbox virtual-machine ip dhcp






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 7 '13 at 20:47









amphibientamphibient

74851331




74851331













  • On VMWare, if you started a previously used VM from a different path, it asked if you copied it or moved the VM to be able to avoid such situations... How did you clone the VM?

    – ppeterka
    Oct 7 '13 at 20:51













  • i'm afraid this is not the situation here...

    – amphibient
    Oct 7 '13 at 20:52






  • 1





    It is possible that you copied the machine with the MAC (Ethernet) address. That is one of differences between copying and moving in VMware as mentioned by ppeterka. Could you please check the addresses? Could you also please describe how exactly did you clone the machine?

    – pabouk
    Oct 7 '13 at 21:12











  • yes, when i ran ifconfig -a, it showed the same MAC address for both (displayed as HWaddr)

    – amphibient
    Oct 7 '13 at 21:34











  • but the way i cloned it was in UI, just right-clicked the VM and hit Clone

    – amphibient
    Oct 7 '13 at 21:36



















  • On VMWare, if you started a previously used VM from a different path, it asked if you copied it or moved the VM to be able to avoid such situations... How did you clone the VM?

    – ppeterka
    Oct 7 '13 at 20:51













  • i'm afraid this is not the situation here...

    – amphibient
    Oct 7 '13 at 20:52






  • 1





    It is possible that you copied the machine with the MAC (Ethernet) address. That is one of differences between copying and moving in VMware as mentioned by ppeterka. Could you please check the addresses? Could you also please describe how exactly did you clone the machine?

    – pabouk
    Oct 7 '13 at 21:12











  • yes, when i ran ifconfig -a, it showed the same MAC address for both (displayed as HWaddr)

    – amphibient
    Oct 7 '13 at 21:34











  • but the way i cloned it was in UI, just right-clicked the VM and hit Clone

    – amphibient
    Oct 7 '13 at 21:36

















On VMWare, if you started a previously used VM from a different path, it asked if you copied it or moved the VM to be able to avoid such situations... How did you clone the VM?

– ppeterka
Oct 7 '13 at 20:51







On VMWare, if you started a previously used VM from a different path, it asked if you copied it or moved the VM to be able to avoid such situations... How did you clone the VM?

– ppeterka
Oct 7 '13 at 20:51















i'm afraid this is not the situation here...

– amphibient
Oct 7 '13 at 20:52





i'm afraid this is not the situation here...

– amphibient
Oct 7 '13 at 20:52




1




1





It is possible that you copied the machine with the MAC (Ethernet) address. That is one of differences between copying and moving in VMware as mentioned by ppeterka. Could you please check the addresses? Could you also please describe how exactly did you clone the machine?

– pabouk
Oct 7 '13 at 21:12





It is possible that you copied the machine with the MAC (Ethernet) address. That is one of differences between copying and moving in VMware as mentioned by ppeterka. Could you please check the addresses? Could you also please describe how exactly did you clone the machine?

– pabouk
Oct 7 '13 at 21:12













yes, when i ran ifconfig -a, it showed the same MAC address for both (displayed as HWaddr)

– amphibient
Oct 7 '13 at 21:34





yes, when i ran ifconfig -a, it showed the same MAC address for both (displayed as HWaddr)

– amphibient
Oct 7 '13 at 21:34













but the way i cloned it was in UI, just right-clicked the VM and hit Clone

– amphibient
Oct 7 '13 at 21:36





but the way i cloned it was in UI, just right-clicked the VM and hit Clone

– amphibient
Oct 7 '13 at 21:36










3 Answers
3






active

oldest

votes


















10














This is known as an IP conflict and can cause major headaches on the network.



You can re-initialize the MAC address of the cloned VM; that just means generate a new random one. On your cloned VM click Settings >> Network >> Advanced then click the two circular arrows to generate a new MAC. Your VM will need to be off. When it boots your DHCP server should assign the VM a different IP address.



Also FYI, when you cloned your VM you should have seen a checkbox with the words "reinitialize MAC", that would have cloned the VM and generated a new MAC instead of cloning it.



If you were curious, cloning a VM is often used to make a full backup of the VM, in this case you would want the MAC and IP to be the same in case you had to use the backup. For your case of cloning the VM to build a cluster you'll want to re-initialize the MAC on every clone.enter image description here



Update 1
In response to your comments from 10/8/2013.



Make sure the IP address is not statically set. You mentioned in your question that the VM should be getting it's IP from DHCP. If thats the case the config should look something like the following. For debian based systems it will be found at /etc/network/interfaces



auto eth0
iface eth0 inet dhcp


For redhat based systems the networking configuration is at /etc/sysconfig/network-scripts/ifcfg-eth0



Your second comment mentioned that eth0 is missing. Do you have an eth1? Since your computer changed mac addresses, the OS keeps the original mac as eth0 and usually assigns eth1 to the new mac. To reset the eth* devices so you have an eth0 and not an eth1 you'll need to clear the udev networking rules.



Messing with networking can get hairy. One option would be to delete your cloned VM and clone the original again and check "reinitialize mac". I'm not certain it will fix your problem but it might.






share|improve this answer





















  • 1





    I did that and restarted both VMs but they were still assigned the same IP :(

    – amphibient
    Oct 8 '13 at 14:39











  • the clone does not have eth0 when i run ifconfig

    – amphibient
    Oct 8 '13 at 14:42











  • I updated my answer to address the issues you wrote about in the comments.

    – tbenz9
    Oct 9 '13 at 18:09











  • @amphibient, I re-created your problem and was able to solve it easily by deleting everything out of the /etc/udev/rules.d/70-persistent-net.rules file and rebooting. Good luck!

    – tbenz9
    Oct 10 '13 at 4:58



















0














Please read about available adapters in VirtualBox (https://www.virtualbox.org/manual/ch06.html#networkingmodes). If you want connection just between VMs then for your tests will be more suitable Internal Network adapter. However from you comment I get that you are using NAT.



I checked below scenario on VirtualBox 5.0.2 on host Mint 17.2 and guests Fedora 21:



Create main VM with default NAT adapter. Create Linked clone (https://www.virtualbox.org/manual/ch01.html#clone) with MACs reinitialization. Cloned and original VM have same values in file:



/etc/sysconfig/network-scripts/ifcfg-enp0s3


however



ip a


shows different MAC addresses on each one.



When I updated HWADDR in that file according to link/ether value from ip command and changed UUID with new one using



uuidgen


then despite the same IP on these (enp0s3) interfaces on original and cloned VMs, external network (Internet) was working well.






share|improve this answer































    0














    I came across this same situation today. I was using a NAT adapter and a Host-only Ethernet Adapter for my Solaris VM. The IP of the clone changed when I refreshed the Host-Only adapter's mac address.






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f655670%2ftwo-virtualbox-vms-running-in-parallel-assigned-same-ip%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      10














      This is known as an IP conflict and can cause major headaches on the network.



      You can re-initialize the MAC address of the cloned VM; that just means generate a new random one. On your cloned VM click Settings >> Network >> Advanced then click the two circular arrows to generate a new MAC. Your VM will need to be off. When it boots your DHCP server should assign the VM a different IP address.



      Also FYI, when you cloned your VM you should have seen a checkbox with the words "reinitialize MAC", that would have cloned the VM and generated a new MAC instead of cloning it.



      If you were curious, cloning a VM is often used to make a full backup of the VM, in this case you would want the MAC and IP to be the same in case you had to use the backup. For your case of cloning the VM to build a cluster you'll want to re-initialize the MAC on every clone.enter image description here



      Update 1
      In response to your comments from 10/8/2013.



      Make sure the IP address is not statically set. You mentioned in your question that the VM should be getting it's IP from DHCP. If thats the case the config should look something like the following. For debian based systems it will be found at /etc/network/interfaces



      auto eth0
      iface eth0 inet dhcp


      For redhat based systems the networking configuration is at /etc/sysconfig/network-scripts/ifcfg-eth0



      Your second comment mentioned that eth0 is missing. Do you have an eth1? Since your computer changed mac addresses, the OS keeps the original mac as eth0 and usually assigns eth1 to the new mac. To reset the eth* devices so you have an eth0 and not an eth1 you'll need to clear the udev networking rules.



      Messing with networking can get hairy. One option would be to delete your cloned VM and clone the original again and check "reinitialize mac". I'm not certain it will fix your problem but it might.






      share|improve this answer





















      • 1





        I did that and restarted both VMs but they were still assigned the same IP :(

        – amphibient
        Oct 8 '13 at 14:39











      • the clone does not have eth0 when i run ifconfig

        – amphibient
        Oct 8 '13 at 14:42











      • I updated my answer to address the issues you wrote about in the comments.

        – tbenz9
        Oct 9 '13 at 18:09











      • @amphibient, I re-created your problem and was able to solve it easily by deleting everything out of the /etc/udev/rules.d/70-persistent-net.rules file and rebooting. Good luck!

        – tbenz9
        Oct 10 '13 at 4:58
















      10














      This is known as an IP conflict and can cause major headaches on the network.



      You can re-initialize the MAC address of the cloned VM; that just means generate a new random one. On your cloned VM click Settings >> Network >> Advanced then click the two circular arrows to generate a new MAC. Your VM will need to be off. When it boots your DHCP server should assign the VM a different IP address.



      Also FYI, when you cloned your VM you should have seen a checkbox with the words "reinitialize MAC", that would have cloned the VM and generated a new MAC instead of cloning it.



      If you were curious, cloning a VM is often used to make a full backup of the VM, in this case you would want the MAC and IP to be the same in case you had to use the backup. For your case of cloning the VM to build a cluster you'll want to re-initialize the MAC on every clone.enter image description here



      Update 1
      In response to your comments from 10/8/2013.



      Make sure the IP address is not statically set. You mentioned in your question that the VM should be getting it's IP from DHCP. If thats the case the config should look something like the following. For debian based systems it will be found at /etc/network/interfaces



      auto eth0
      iface eth0 inet dhcp


      For redhat based systems the networking configuration is at /etc/sysconfig/network-scripts/ifcfg-eth0



      Your second comment mentioned that eth0 is missing. Do you have an eth1? Since your computer changed mac addresses, the OS keeps the original mac as eth0 and usually assigns eth1 to the new mac. To reset the eth* devices so you have an eth0 and not an eth1 you'll need to clear the udev networking rules.



      Messing with networking can get hairy. One option would be to delete your cloned VM and clone the original again and check "reinitialize mac". I'm not certain it will fix your problem but it might.






      share|improve this answer





















      • 1





        I did that and restarted both VMs but they were still assigned the same IP :(

        – amphibient
        Oct 8 '13 at 14:39











      • the clone does not have eth0 when i run ifconfig

        – amphibient
        Oct 8 '13 at 14:42











      • I updated my answer to address the issues you wrote about in the comments.

        – tbenz9
        Oct 9 '13 at 18:09











      • @amphibient, I re-created your problem and was able to solve it easily by deleting everything out of the /etc/udev/rules.d/70-persistent-net.rules file and rebooting. Good luck!

        – tbenz9
        Oct 10 '13 at 4:58














      10












      10








      10







      This is known as an IP conflict and can cause major headaches on the network.



      You can re-initialize the MAC address of the cloned VM; that just means generate a new random one. On your cloned VM click Settings >> Network >> Advanced then click the two circular arrows to generate a new MAC. Your VM will need to be off. When it boots your DHCP server should assign the VM a different IP address.



      Also FYI, when you cloned your VM you should have seen a checkbox with the words "reinitialize MAC", that would have cloned the VM and generated a new MAC instead of cloning it.



      If you were curious, cloning a VM is often used to make a full backup of the VM, in this case you would want the MAC and IP to be the same in case you had to use the backup. For your case of cloning the VM to build a cluster you'll want to re-initialize the MAC on every clone.enter image description here



      Update 1
      In response to your comments from 10/8/2013.



      Make sure the IP address is not statically set. You mentioned in your question that the VM should be getting it's IP from DHCP. If thats the case the config should look something like the following. For debian based systems it will be found at /etc/network/interfaces



      auto eth0
      iface eth0 inet dhcp


      For redhat based systems the networking configuration is at /etc/sysconfig/network-scripts/ifcfg-eth0



      Your second comment mentioned that eth0 is missing. Do you have an eth1? Since your computer changed mac addresses, the OS keeps the original mac as eth0 and usually assigns eth1 to the new mac. To reset the eth* devices so you have an eth0 and not an eth1 you'll need to clear the udev networking rules.



      Messing with networking can get hairy. One option would be to delete your cloned VM and clone the original again and check "reinitialize mac". I'm not certain it will fix your problem but it might.






      share|improve this answer















      This is known as an IP conflict and can cause major headaches on the network.



      You can re-initialize the MAC address of the cloned VM; that just means generate a new random one. On your cloned VM click Settings >> Network >> Advanced then click the two circular arrows to generate a new MAC. Your VM will need to be off. When it boots your DHCP server should assign the VM a different IP address.



      Also FYI, when you cloned your VM you should have seen a checkbox with the words "reinitialize MAC", that would have cloned the VM and generated a new MAC instead of cloning it.



      If you were curious, cloning a VM is often used to make a full backup of the VM, in this case you would want the MAC and IP to be the same in case you had to use the backup. For your case of cloning the VM to build a cluster you'll want to re-initialize the MAC on every clone.enter image description here



      Update 1
      In response to your comments from 10/8/2013.



      Make sure the IP address is not statically set. You mentioned in your question that the VM should be getting it's IP from DHCP. If thats the case the config should look something like the following. For debian based systems it will be found at /etc/network/interfaces



      auto eth0
      iface eth0 inet dhcp


      For redhat based systems the networking configuration is at /etc/sysconfig/network-scripts/ifcfg-eth0



      Your second comment mentioned that eth0 is missing. Do you have an eth1? Since your computer changed mac addresses, the OS keeps the original mac as eth0 and usually assigns eth1 to the new mac. To reset the eth* devices so you have an eth0 and not an eth1 you'll need to clear the udev networking rules.



      Messing with networking can get hairy. One option would be to delete your cloned VM and clone the original again and check "reinitialize mac". I'm not certain it will fix your problem but it might.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Oct 9 '13 at 18:09

























      answered Oct 8 '13 at 0:43









      tbenz9tbenz9

      5,11321928




      5,11321928








      • 1





        I did that and restarted both VMs but they were still assigned the same IP :(

        – amphibient
        Oct 8 '13 at 14:39











      • the clone does not have eth0 when i run ifconfig

        – amphibient
        Oct 8 '13 at 14:42











      • I updated my answer to address the issues you wrote about in the comments.

        – tbenz9
        Oct 9 '13 at 18:09











      • @amphibient, I re-created your problem and was able to solve it easily by deleting everything out of the /etc/udev/rules.d/70-persistent-net.rules file and rebooting. Good luck!

        – tbenz9
        Oct 10 '13 at 4:58














      • 1





        I did that and restarted both VMs but they were still assigned the same IP :(

        – amphibient
        Oct 8 '13 at 14:39











      • the clone does not have eth0 when i run ifconfig

        – amphibient
        Oct 8 '13 at 14:42











      • I updated my answer to address the issues you wrote about in the comments.

        – tbenz9
        Oct 9 '13 at 18:09











      • @amphibient, I re-created your problem and was able to solve it easily by deleting everything out of the /etc/udev/rules.d/70-persistent-net.rules file and rebooting. Good luck!

        – tbenz9
        Oct 10 '13 at 4:58








      1




      1





      I did that and restarted both VMs but they were still assigned the same IP :(

      – amphibient
      Oct 8 '13 at 14:39





      I did that and restarted both VMs but they were still assigned the same IP :(

      – amphibient
      Oct 8 '13 at 14:39













      the clone does not have eth0 when i run ifconfig

      – amphibient
      Oct 8 '13 at 14:42





      the clone does not have eth0 when i run ifconfig

      – amphibient
      Oct 8 '13 at 14:42













      I updated my answer to address the issues you wrote about in the comments.

      – tbenz9
      Oct 9 '13 at 18:09





      I updated my answer to address the issues you wrote about in the comments.

      – tbenz9
      Oct 9 '13 at 18:09













      @amphibient, I re-created your problem and was able to solve it easily by deleting everything out of the /etc/udev/rules.d/70-persistent-net.rules file and rebooting. Good luck!

      – tbenz9
      Oct 10 '13 at 4:58





      @amphibient, I re-created your problem and was able to solve it easily by deleting everything out of the /etc/udev/rules.d/70-persistent-net.rules file and rebooting. Good luck!

      – tbenz9
      Oct 10 '13 at 4:58













      0














      Please read about available adapters in VirtualBox (https://www.virtualbox.org/manual/ch06.html#networkingmodes). If you want connection just between VMs then for your tests will be more suitable Internal Network adapter. However from you comment I get that you are using NAT.



      I checked below scenario on VirtualBox 5.0.2 on host Mint 17.2 and guests Fedora 21:



      Create main VM with default NAT adapter. Create Linked clone (https://www.virtualbox.org/manual/ch01.html#clone) with MACs reinitialization. Cloned and original VM have same values in file:



      /etc/sysconfig/network-scripts/ifcfg-enp0s3


      however



      ip a


      shows different MAC addresses on each one.



      When I updated HWADDR in that file according to link/ether value from ip command and changed UUID with new one using



      uuidgen


      then despite the same IP on these (enp0s3) interfaces on original and cloned VMs, external network (Internet) was working well.






      share|improve this answer




























        0














        Please read about available adapters in VirtualBox (https://www.virtualbox.org/manual/ch06.html#networkingmodes). If you want connection just between VMs then for your tests will be more suitable Internal Network adapter. However from you comment I get that you are using NAT.



        I checked below scenario on VirtualBox 5.0.2 on host Mint 17.2 and guests Fedora 21:



        Create main VM with default NAT adapter. Create Linked clone (https://www.virtualbox.org/manual/ch01.html#clone) with MACs reinitialization. Cloned and original VM have same values in file:



        /etc/sysconfig/network-scripts/ifcfg-enp0s3


        however



        ip a


        shows different MAC addresses on each one.



        When I updated HWADDR in that file according to link/ether value from ip command and changed UUID with new one using



        uuidgen


        then despite the same IP on these (enp0s3) interfaces on original and cloned VMs, external network (Internet) was working well.






        share|improve this answer


























          0












          0








          0







          Please read about available adapters in VirtualBox (https://www.virtualbox.org/manual/ch06.html#networkingmodes). If you want connection just between VMs then for your tests will be more suitable Internal Network adapter. However from you comment I get that you are using NAT.



          I checked below scenario on VirtualBox 5.0.2 on host Mint 17.2 and guests Fedora 21:



          Create main VM with default NAT adapter. Create Linked clone (https://www.virtualbox.org/manual/ch01.html#clone) with MACs reinitialization. Cloned and original VM have same values in file:



          /etc/sysconfig/network-scripts/ifcfg-enp0s3


          however



          ip a


          shows different MAC addresses on each one.



          When I updated HWADDR in that file according to link/ether value from ip command and changed UUID with new one using



          uuidgen


          then despite the same IP on these (enp0s3) interfaces on original and cloned VMs, external network (Internet) was working well.






          share|improve this answer













          Please read about available adapters in VirtualBox (https://www.virtualbox.org/manual/ch06.html#networkingmodes). If you want connection just between VMs then for your tests will be more suitable Internal Network adapter. However from you comment I get that you are using NAT.



          I checked below scenario on VirtualBox 5.0.2 on host Mint 17.2 and guests Fedora 21:



          Create main VM with default NAT adapter. Create Linked clone (https://www.virtualbox.org/manual/ch01.html#clone) with MACs reinitialization. Cloned and original VM have same values in file:



          /etc/sysconfig/network-scripts/ifcfg-enp0s3


          however



          ip a


          shows different MAC addresses on each one.



          When I updated HWADDR in that file according to link/ether value from ip command and changed UUID with new one using



          uuidgen


          then despite the same IP on these (enp0s3) interfaces on original and cloned VMs, external network (Internet) was working well.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 6 '16 at 16:01









          edwardoedwardo

          1




          1























              0














              I came across this same situation today. I was using a NAT adapter and a Host-only Ethernet Adapter for my Solaris VM. The IP of the clone changed when I refreshed the Host-Only adapter's mac address.






              share|improve this answer




























                0














                I came across this same situation today. I was using a NAT adapter and a Host-only Ethernet Adapter for my Solaris VM. The IP of the clone changed when I refreshed the Host-Only adapter's mac address.






                share|improve this answer


























                  0












                  0








                  0







                  I came across this same situation today. I was using a NAT adapter and a Host-only Ethernet Adapter for my Solaris VM. The IP of the clone changed when I refreshed the Host-Only adapter's mac address.






                  share|improve this answer













                  I came across this same situation today. I was using a NAT adapter and a Host-only Ethernet Adapter for my Solaris VM. The IP of the clone changed when I refreshed the Host-Only adapter's mac address.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 31 '17 at 23:04









                  xboxxbox

                  1




                  1






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f655670%2ftwo-virtualbox-vms-running-in-parallel-assigned-same-ip%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Mouse cursor on multiple screens with different PPI

                      Agildo Ribeiro

                      Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”