drop support for virtualbox

This commit is contained in:
Rui Lopes 2025-06-18 04:45:57 +00:00
parent 56ebb23d7a
commit d156eca1ea
2 changed files with 6 additions and 15 deletions

View File

@ -39,9 +39,13 @@ Add the following entry to your `/etc/hosts` file:
192.168.56.3 nexus.example.com 192.168.56.3 nexus.example.com
``` ```
Install Vagrant 2.1+. Install Vagrant 2.4.6+.
Run `vagrant up --provider=virtualbox # or --provider=libvirt` to launch the environment. Launch the environment:
```bash
time vagrant up --provider=libvirt --no-destroy-on-error --no-tty
```
Access the [Nexus home page](https://nexus.example.com) and login as the `admin` user and password `admin`. Access the [Nexus home page](https://nexus.example.com) and login as the `admin` user and password `admin`.

13
Vagrantfile vendored
View File

@ -14,12 +14,6 @@ Vagrant.configure(2) do |config|
lv.random :model => 'random' lv.random :model => 'random'
end end
config.vm.provider :virtualbox do |vb|
vb.linked_clone = true
vb.cpus = 4
vb.memory = 2048
end
config.vm.define :nexus do |config| config.vm.define :nexus do |config|
config.vm.box = 'ubuntu-22.04-uefi-amd64' config.vm.box = 'ubuntu-22.04-uefi-amd64'
config.vm.hostname = nexus_domain config.vm.hostname = nexus_domain
@ -29,9 +23,6 @@ Vagrant.configure(2) do |config|
lv.machine_virtual_size = 32 # [GiB] lv.machine_virtual_size = 32 # [GiB]
config.vm.synced_folder '.', '/vagrant', type: 'nfs', nfs_version: '4.2', nfs_udp: false config.vm.synced_folder '.', '/vagrant', type: 'nfs', nfs_version: '4.2', nfs_udp: false
end end
config.vm.provider :virtualbox do |vb, config|
vb.memory = 3*1024
end
config.vm.provision :shell, path: 'provision/provision-resize-disk.sh' config.vm.provision :shell, path: 'provision/provision-resize-disk.sh'
config.vm.provision :shell, path: 'provision/provision-base.sh' config.vm.provision :shell, path: 'provision/provision-base.sh'
config.vm.provision :shell, path: 'provision/provision-docker.sh' config.vm.provision :shell, path: 'provision/provision-docker.sh'
@ -53,10 +44,6 @@ Vagrant.configure(2) do |config|
config.vm.provider :libvirt do |lv, config| config.vm.provider :libvirt do |lv, config|
config.vm.synced_folder '.', '/vagrant', type: 'smb', smb_username: ENV['USER'], smb_password: ENV['VAGRANT_SMB_PASSWORD'] config.vm.synced_folder '.', '/vagrant', type: 'smb', smb_username: ENV['USER'], smb_password: ENV['VAGRANT_SMB_PASSWORD']
end end
config.vm.provider :virtualbox do |vb, config|
vb.customize ['modifyvm', :id, '--vram', 64]
vb.customize ['modifyvm', :id, '--clipboard', 'bidirectional']
end
config.vm.provision :shell, inline: "echo '#{nexus_ip} #{nexus_domain}' | Out-File -Encoding Ascii -Append c:/Windows/System32/drivers/etc/hosts" config.vm.provision :shell, inline: "echo '#{nexus_ip} #{nexus_domain}' | Out-File -Encoding Ascii -Append c:/Windows/System32/drivers/etc/hosts"
config.vm.provision :shell, path: 'provision/windows/ps.ps1', args: ['provision-base.ps1', nexus_domain] config.vm.provision :shell, path: 'provision/windows/ps.ps1', args: ['provision-base.ps1', nexus_domain]
config.vm.provision :shell, path: 'provision/windows/ps.ps1', args: ['use-chocolatey-repository.ps1', nexus_domain] config.vm.provision :shell, path: 'provision/windows/ps.ps1', args: ['use-chocolatey-repository.ps1', nexus_domain]