Hello:
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 root.io trellis project that creates the Vagrantfile to allow for this.
vagrant_ip: "192.168.56.5"
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
vagrant_plugins:
- 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:
config.vm.network "public_network", type: "bridged"
Already added /etc/vbox/networks.conf and added allowance for my local /24 network.
Thanks in advance for any help.
Cheers,
T