How to use this box with Vagrant:

Vagrant.configure("2") do |config|
  config.vm.box = "avivi_pro/ub16_bx"
  config.vm.box_version = "1.0"
end
vagrant init avivi_pro/ub16_bx \
  --box-version 1.0
vagrant up

This version was created almost 2 years ago.

Bitrix Development Platform

Included software:

  Git 2.7.4
  Apache 2.4.18 (works with HTTPS)
  MariaDB 10.3.14 (user: root pass: root)
  PHP 7.2.16 w/ XDebug & VLD
  Composer 1.8.0
  Node 11.6.0
  NPM 6.5.0
  Bitrix (bitrixsetup.php)

Manual:

Vagrantfile config:

  // User accesses
  config.ssh.username = 'vagrant'
  config.ssh.password = 'vagrant'

  // Directory for synchronization
  config.vm.synced_folder "[your_folder]", "/home/vagrant/www/bx.loc"

  // Hosts ip
  vm.network "private_network", ip: "[your_ip]"

  // Local ip & bridge
  vm.network "public_network", ip: "[your_local_ip]", bridge: "[your_adapter]"

Recommended configurations of Vagrantfile (For creating 3 virtual machines):

  $mach_quant = 3

  Vagrant.configure("2") do |config|

      config.vm.provider "virtualbox" do |vb|
          vb.gui = false
          vb.memory=1024
          vb.cpus=1
          config.ssh.username = 'vagrant'
          config.ssh.password = 'vagrant'
          config.ssh.insert_key = 'true'
          vb.check_guest_additions=false
          config.vm.box_check_update=false
          config.vm.box="avivi_pro/ub16_bx"
          config.vm.network "forwarded_port", guest: 80, host: 9999, auto_correct: true
          config.vm.network "forwarded_port", guest: 443, host: 9443, auto_correct: true
    config.vm.synced_folder ".", "/home/vagrant/www/bx.loc"
      end

      (1..$mach_quant).each do |i|
          config.vm.define "bx#{i}" do |bx|
              bx.vm.network "private_network", ip: "192.168.100.#{100+i}"
              bx.vm.network "public_network", ip: "192.168.1.#{0+i}", bridge: "wlx30b5c21280cf"
              bx.vm.hostname="bx#{i}"
          end
      end

  end

Result:

    | #  | Name | Hosts ip        | Hostname |
    | -- | ---- | --------------- | -------- |
    | 1  | bx1  | 192.168.100.101 | bx1      |
    | 2  | bx2  | 192.168.100.102 | bx2      |
    | 3  | bx3  | 192.168.100.103 | bx3      |
1 provider for this version.
  • virtualbox Hosted by Vagrant Cloud (713 MB)