
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
node-virtualbox
Advanced tools
A lightweight tool/module for provisioning VirtualBox virtual machines.
This is a simple tool that helps provision basic VirtualBox virtual machines with sane defaults.
Requires node >= 8.X
npm install node-virtualbox [--save] [-g]
Example run:
node bin.js --provision --vmname "hello" --ip 172.168.0.55 --verbose
ssh into instance.
ssh -i config/resources/insecure_private_key -p 2002 -o StrictHostKeyChecking=no -o IdentitiesOnly=yes vagrant@127.0.0.1
The default VM will have 2 cpus and 1G memory. The default image is based on the latest ubuntu/xenial64 image. The VM has two NICs. The first nic uses NAT to forward incoming and outgoing traffic. The second nic is assigned a private host only network address. After creation, you can login with vagrant/vagrant or ssh with the default insecure_private_key located in config/resources/.
--list return a list of vm names and uuids.
node bin.js --list
--stop Stop vm with save state.
node bin.js --stop --vmname <name>
--delete Unregister vm and delete all its contents.
node bin.js --delete --vmname <name>
--info Provide information about a vm. This will print out a json string with properties of the specified vm.
For example, running node .\bin.js --info --vmname "vm3" will print the following, which can be used to retrieve properties such as the port that can be used for ssh access:
{ name: '"vm3"',
...
'Forwarding(0)': '"guestssh,tcp,,2002,,22"',
}
--cpus Set the number of cpus for VM. Default is 2 (or 1 for micro).
--mem Set the size of ram in MB(e.g., 512 or 1024). Default is 1024 (or 512 for micro).
--ovf Set the box to import when creating vm. If this is omitted, the latest ubuntu-xenial image is downloaded and used.
--ssh_port Set the local port used to forward ssh connections to vm. If this is omitted, then a freely available port between 2002 and 2999 is automatically assigned.
--forward_ports Set the port forwarding rules. Format: "<guest_port>:<host_port>" or "<port>". "<port>" translates to "<port>:<port>".
--sync Set a shared folder. Format: "<host_folder>;<guest_folder>". You can provide multiple of these options.
--add_ssh_key Add public ssh key to ~/.ssh/authorized_keys of the vm.
node bin.js --provision --vmname "shared_folders_vm" --ip 172.16.1.45 --ssh_port 2095 --verbose --sync "C:\Users\chris;/chris" --sync "C:\Users\chris\projects;/projects" --add_ssh_key ~/.ssh/id_rsa.pub
This is for booting micro kernels (custom initramfs inside of an iso)
Example micro VMs (iso):
node bin.js --micro --vmname "micro" --attach_iso <Path>
If you don't specify path to an iso it will download and use an Alpine linux iso.
FAQs
A lightweight tool/module for provisioning VirtualBox virtual machines.
We found that node-virtualbox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.