Parallels 18 vagrant multi-machine issues

Discussion in 'Parallels Provider for Vagrant' started by BillW16, Mar 15, 2023.

  1. BillW16

    BillW16 Bit poster

    Messages:
    1
    I'm currently running the eval version of Parallels 18 Desktop Pro after moving to Macbook Pro M2 from Intel based Macbook.

    I'm running into several issues with the parallels provider for Vagrant when using multi-machine configuration. I've reset all settings in Parallels - everything should be the default values.

    I've been using a basic Vagrant file with the following for troubleshooting:
    Code:
    Vagrant.configure("2") do |config|
      config.vm.provision "shell", inline: "echo Hello"
      config.vm.define "web" do |web|
        web.vm.box = "bento/ubuntu-20.04-arm64"
      end
      config.vm.define "db" do |db|
        db.vm.box = "bento/ubuntu-20.04-arm64"
      end
    end
    I'm seeing these issues:
    1. Vagrant up at times doesn't successfully complete the provisioning process because it cannot connect to the 2nd VM
    2. Vagrant up completes but vagrant ssh db fails. vagrant ssh web works without issue
    In both scenarios, the VMs are started and I can access them within Parallels. The ssh server is also running in both VMs and listening on port 22. From the desktop, .
    Scenario 1:
    • Both VMs have unique MAC addresses
    • Both VMs show the same IP address (10.211.55.22)
      • Parallels is providing DHCP
      • VMs are both on the shared network
    • The web VM seems to always work (accessible via Control Center and ssh)
    • The db VM sometimes is hung (frozen console when launched from Control Center) and other times it work in the console but not reachable by ssh (likely due to IP conflict)
    Scenario 2:
    Without making any changes, I executed vagrant halt followed by vagrant up. If I get a good startup of both VMs, I've observed the following:
    • Duplicate IPs are assigned to the VMs
    • vagrant ssh-config will produce a valid ssh config file for one of the VMs but will not have an value after Host for the other
    • Both VMs are accessible via Control Center
     

    Attached Files:

  2. Adeboye Adeotan

    Adeboye Adeotan Staff Member

    Messages:
    462

    Hello BillW16,

    We have created a ticket to assist you with this issue and will provide further communication to you at b*********d@gmail.com.

    Thank you.
     
  3. NikolaiS@Parallels

    NikolaiS@Parallels Staff Member

    Messages:
    35
    Hi there,

    It appears that the problem is related to the following aspects:
    1. Ubuntu virtual machines obtain IP addresses based on their machine-IDs;
    2. The latest version of bento/ubuntu 20.04 for ARM64 has an issue, as new virtual machines created from the box do not change the ID.
    You can find more information here: https://github.com/chef/bento/issues/1473

    As of now, it seems that the fix hasn't been released (the latest release for ARM64 was 3 months ago: https://app.vagrantup.com/bento/boxes/ubuntu-20.04-arm64).
    Therefore, you can implement a workaround by including this line in your Vagrant file:

    config.vm.box_version = "202112.19.0"

    This will ensure the use of the previous version of the box where the issue did not exist.
     

Share This Page