Vagrant Box Creation w/ Bridge Mode instead of NAT


Using trellis cli / trellis setup on a newly installed Ubuntu 24.04 machine.

Everything is working well; however, manually, I can configure VirtualBox to use a bridge mode network setup and get an added IP on my network so that the VM is accessible by all local pcs.

How should I edit the vagrant.default.yml - part of the trellis project that creates the Vagrantfile to allow for this.

vagrant_ip: ""
vagrant_cpus: 2
vagrant_memory: 8192 # in MB
vagrant_box: "Ubuntu2404-LTS"
vagrant_box_version: ">= 0"
vagrant_box_auto_arch: true
vagrant_ansible_version: "2.10.7"
vagrant_skip_galaxy: false
vagrant_mount_type: "nfs"
vagrant_nfs_udp: false
vagrant_require_version: ">= 2.1.0"

vagrant_install_plugins: true
  - name: vagrant-bindfs
  - name: vagrant-hostmanager

Or should I just edit the Vagrantfile directly?

Are there such options for the Vagrantfile to use Bridged Mode?

      vagrant_config_vm_network: public_network
      vagrant_config_vm_network_mode: bridged

Or should I just edit the Vagrandfile directly and add what I want there using: "public_network", type: "bridged"

Already added /etc/vbox/networks.conf and added allowance for my local /24 network.

Thanks in advance for any help.


Everywhere I search I keep circling back to that this is impossible. Is that true?

Is this link still the state of things with Vagrant?