Skip to content

Commit

Permalink
Merge pull request #25 from tenable/fix/vagrantfile
Browse files Browse the repository at this point in the history
Updated the vagrant file to use an Alma9 image that works for both ARM64 and AMD64
  • Loading branch information
nkeuning authored Jan 22, 2025
2 parents 11903ff + b67aba5 commit e9acc9f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,39 @@ minimum meet are the following:
## How to develop a connector

**NOTE** Will be written when we're ready to start accepting outside written integrations

## Running the testing TIF instance

There is an included vagrant file to help enable quick testing of connector images. This VM image exposes Cockpit on
port `9090` and can be interfaced by pointing a web browser to `https://localhost:9090`. A random root password is
also generated and presented as the last line in the setup process for the VM. Look for a line in the provisioning
output that looks like:

```
default: root password is set to 'ZDU3OTU5OWZjZTE0YTkxZTU3ZjJhMjEw'
```

### Initial Install and Setup on MacOS

1. Install `brew`
2. Install QEMU `brew install qemu libvirt`
3. Install Vagrant `brew install --cask vagrant`
4. Install the Vagrant QEMU plugin `vagrant plugin install vagrant-qemu`

### Deploying a new VM

```
vagrant up --provider=qemu
```

### Stopping the VM

```
vagrant halt
```

### Destroying the VM

```
vagrant destroy
```
10 changes: 8 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "bento/rockylinux-9"
#config.vm.box = "bento/rockylinux-9"
config.vm.box = "generic/alma9"
config.vm.network "forwarded_port", guest: 9090, host: 9090
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.box_check_update = true

config.vm.provider "virtualbox" do |vb|
vb.memory = "4096"
vb.gui = true
end
config.vm.provider "parallels" do |pl|
pl.memory = "4096"
end
config.vm.provider "vmware_desktop" do |vmw|
vmw.memory = "4096"
vmw.vmx['memsize'] = "4096"
vmw.gui = true
end
config.vm.provider "qemu" do |qemu|
qemu.memory = 4096
end

config.vm.provision "shell", inline: <<-SHELL
Expand Down

0 comments on commit e9acc9f

Please sign in to comment.