Skip to content

Instantly share code, notes, and snippets.

@sbuvaneshkumar
Created April 17, 2018 13:50
Show Gist options
  • Save sbuvaneshkumar/49696802c4aed96bf0917da16b33fec2 to your computer and use it in GitHub Desktop.
Save sbuvaneshkumar/49696802c4aed96bf0917da16b33fec2 to your computer and use it in GitHub Desktop.
Fedora VirtualBox Fix
mkdir /opt/systemd/
cat <<EOT >> /opt/systemd/vboxhostonly
#!/bin/bash
vboxmanage hostonlyif create
vboxmanage hostonlyif ipconfig vboxnet0 --ip 192.168.56.1
EOT
cat <<EOT >> /etc/systemd/system/vboxhostonlynic.service
Description=Setup VirtualBox Hostonly Adapter
After=vboxdrv.service
[Service]
Type=oneshot
ExecStart=/opt/systemd/vboxhostonly
[Install]
WantedBy=multi-user.target
EOT
systemctl daemon-reload
systemctl enable vboxhostonlynic.service
systemctl start vboxhostonlynic.service
# Source: https://precisionsec.com/virtualbox-host-only-network-cuckoo-sandbox-0-4-2/
dnf install -y kernel-devel-$(uname -r) kernel-headers-$(uname -r) gcc dkms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment