Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vboxguest is included in 4.16, but not vboxsf. I couldn't get vboxsf to compile for 4.16, so I downgraded to 4.15.
- Loading branch information
Showing
7 changed files
with
96 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
config BR2_PACKAGE_VBOX_GUEST | ||
bool "vbox-guest" | ||
default y | ||
depends on BR2_LINUX_KERNEL | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# From http://download.virtualbox.org/virtualbox/5.1.30/SHA256SUMS | ||
sha256 96cab2296fb014ce0a16b7b9603b52208b9403c10c1524b44201d3c274e8a821 VirtualBox-5.1.38.tar.bz2 | ||
sha256 0e7ee2c78ebf7cd0d3a933d51148bef04a64f64fb27ccf70d59cddf9ca1e517a VBoxGuestAdditions_5.1.38.iso |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
################################################################################ | ||
# | ||
# VirtualBox Linux Guest Drivers | ||
# | ||
################################################################################ | ||
|
||
VBOX_GUEST_VERSION = 5.1.38 | ||
VBOX_GUEST_SITE = http://download.virtualbox.org/virtualbox/$(VBOX_GUEST_VERSION) | ||
VBOX_GUEST_LICENSE = GPLv2 | ||
VBOX_GUEST_LICENSE_FILES = COPYING | ||
VBOX_GUEST_SOURCE = VirtualBox-$(VBOX_GUEST_VERSION).tar.bz2 | ||
VBOX_GUEST_EXTRA_DOWNLOADS = http://download.virtualbox.org/virtualbox/${VBOX_GUEST_VERSION}/VBoxGuestAdditions_${VBOX_GUEST_VERSION}.iso | ||
|
||
define VBOX_GUEST_EXPORT_MODULES | ||
( cd $(@D)/src/VBox/Additions/linux; ./export_modules modules.tar.gz ) | ||
mkdir -p $(@D)/vbox-modules | ||
tar -C $(@D)/vbox-modules -xzf $(@D)/src/VBox/Additions/linux/modules.tar.gz | ||
endef | ||
|
||
VBOX_GUEST_POST_EXTRACT_HOOKS += VBOX_GUEST_EXPORT_MODULES | ||
|
||
VBOX_GUEST_MODULE_SUBDIRS = vbox-modules/ | ||
VBOX_GUEST_MODULE_MAKE_OPTS = KVERSION=$(LINUX_VERSION_PROBED) | ||
|
||
define VBOX_GUEST_USERS | ||
- -1 vboxsf -1 - - - - - | ||
endef | ||
|
||
define VBOX_GUEST_INSTALL_INIT_SYSTEMD | ||
$(INSTALL) -D -m 644 \ | ||
$(BR2_EXTERNAL_MINIKUBE_PATH)/package/vbox-guest/vboxservice.service \ | ||
$(TARGET_DIR)/usr/lib/systemd/system/vboxservice.service | ||
|
||
ln -fs /usr/lib/systemd/system/vboxservice.service \ | ||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/vboxservice.service | ||
endef | ||
|
||
define VBOX_GUEST_BUILD_CMDS | ||
7z x -aoa $(BR2_DL_DIR)/vbox-guest/VBoxGuestAdditions_${VBOX_GUEST_VERSION}.iso -ir'!VBoxLinuxAdditions.run' -o"$(@D)" | ||
sh $(@D)/VBoxLinuxAdditions.run --noexec --target $(@D) | ||
tar --overwrite -C $(@D) -xjf $(@D)/VBoxGuestAdditions-amd64.tar.bz2 sbin/VBoxService | ||
tar --overwrite -C $(@D) -xjf $(@D)/VBoxGuestAdditions-amd64.tar.bz2 bin/VBoxControl | ||
|
||
$(TARGET_CC) -Wall -O2 -D_GNU_SOURCE -DIN_RING3 \ | ||
-I$(@D)/vbox-modules/vboxsf/include \ | ||
-I$(@D)/vbox-modules/vboxsf \ | ||
-o $(@D)/vbox-modules/mount.vboxsf \ | ||
$(@D)/src/VBox/Additions/linux/sharedfolders/vbsfmount.c \ | ||
$(@D)/src/VBox/Additions/linux/sharedfolders/mount.vboxsf.c | ||
endef | ||
|
||
define VBOX_GUEST_INSTALL_TARGET_CMDS | ||
$(INSTALL) -Dm755 \ | ||
$(@D)/vbox-modules/mount.vboxsf \ | ||
$(TARGET_DIR)/sbin | ||
|
||
$(INSTALL) -Dm755 \ | ||
$(@D)/sbin/VBoxService \ | ||
$(TARGET_DIR)/sbin | ||
|
||
$(INSTALL) -Dm755 \ | ||
$(@D)/bin/VBoxControl \ | ||
$(TARGET_DIR)/bin | ||
endef | ||
|
||
$(eval $(kernel-module)) | ||
$(eval $(generic-package)) |
12 changes: 12 additions & 0 deletions
12
deploy/iso/minikube-iso/package/vbox-guest/vboxservice.service
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=VirtualBox Guest Service | ||
ConditionVirtualization=oracle | ||
|
||
[Service] | ||
ExecStartPre=-/usr/sbin/modprobe vboxguest | ||
ExecStartPre=-/usr/sbin/modprobe vboxvideo | ||
ExecStartPre=-/usr/sbin/modprobe vboxsf | ||
ExecStart=/usr/sbin/VBoxService -f --disable-automount | ||
|
||
[Install] | ||
WantedBy=multi-user.target |