Created
April 17, 2018 13:50
-
-
Save sbuvaneshkumar/49696802c4aed96bf0917da16b33fec2 to your computer and use it in GitHub Desktop.
Fedora VirtualBox Fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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