Geppux wrote:... the virtual machine starts but... only if the selection of the network is NAT, if I want to use bridge the virtual machine doesn't start if secure boot is enabled... how can I solve this? how can I sign the network adapter installation so that I can keep the secure boot enabled?
/usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxdrv)
/usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxnetflt)
sudo keyctl list %:.system_keyring
SKIP: MOK.der is already enrolled
[ 6.055449] Request for unknown module key 'MOK: 70b16d5a79b3d68186c430effdbab41da14b2682' err -11
- Code: Select all Expand viewCollapse view
user@localhost:$ sudo dnf install VirtualBox-5.1
--clipclip--
Running transaction
Installing : VirtualBox-5.1-5.1.2_108956_fedora24-1.x86_64 1/1
Creating group 'vboxusers'. VM users must be member of that group!
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.
Verifying : VirtualBox-5.1-5.1.2_108956_fedora24-1.x86_64 1/1
Installed:
VirtualBox-5.1.x86_64 5.1.2_108956_fedora24-1
Complete!
SELinux is preventing vboxdrv.sh from open access on the file /etc/udev/rules.d/60-vboxdrv.rules.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that vboxdrv.sh should be allowed open access on the 60-vboxdrv.rules file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'vboxdrv.sh' --raw | audit2allow -M my-vboxdrvsh
# semodule -X 300 -i my-vboxdrvsh.pp
(...) =>
- Code: Select all Expand viewCollapse view
user@localhost:$ sudo ausearch -c 'vboxdrv.sh' --raw | audit2allow -M my-vboxdrvsh
******************** IMPORTANT ***********************
To make this policy package active, execute:
semodule -i my-vboxdrvsh.pp
user@localhost:$ sudo semodule -X 300 -i my-vboxdrvsh.pp
- Code: Select all Expand viewCollapse view
user@localhost:$ sudo dnf remove VirtualBox-5.1
--clipclip--
Removed:
VirtualBox-5.1.x86_64 5.1.2_108956_fedora24-1
user@localhost:$ sudo dnf install VirtualBox-5.1
--clipclip--
Transaction test succeeded.
Running transaction
Installing : VirtualBox-5.1-5.1.2_108956_fedora24-1.x86_64 1/1
Creating group 'vboxusers'. VM users must be member of that group!
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.
Verifying : VirtualBox-5.1-5.1.2_108956_fedora24-1.x86_64 1/1
Installed:
VirtualBox-5.1.x86_64 5.1.2_108956_fedora24-1
Complete!
- Code: Select all Expand viewCollapse view
user@localhost:$ openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=Akrog/"
- Code: Select all Expand viewCollapse view
user@localhost:$ sudo mokutil --import MOK.der
user@localhost:$ sudo reboot now
+ Followed instructions for UEFI key import from https://sourceware.org/systemtap/wiki/SecureBoot
- Code: Select all Expand viewCollapse view
user@localhost:$ modinfo vboxdrv
filename: /lib/modules/4.6.4-301.fc24.x86_64/misc/vboxdrv.ko
--clipclip--
- Code: Select all Expand viewCollapse view
user@localhost:$ ll /lib/modules/4.6.4-301.fc24.x86_64/misc/
total 13968
-rw-r--r--. 1 root root 12106179 Jul 25 22:58 vboxdrv.ko
-rw-r--r--. 1 root root 509147 Jul 25 22:59 vboxnetadp.ko
-rw-r--r--. 1 root root 856947 Jul 25 22:59 vboxnetflt.ko
-rw-r--r--. 1 root root 820715 Jul 25 22:59 vboxpci.ko
- Code: Select all Expand viewCollapse view
user@localhost:$ sudo /usr/src/kernels/4.6.4-301.fc24.x86_64/scripts/sign-file sha256 ./MOK.priv ./MOK.der /lib/modules/4.6.4-301.fc24.x86_64/misc/vboxdrv.ko
user@localhost:$ sudo /usr/src/kernels/4.6.4-301.fc24.x86_64/scripts/sign-file sha256 ./MOK.priv ./MOK.der /lib/modules/4.6.4-301.fc24.x86_64/misc/vboxnetadp.ko
user@localhost:$ sudo /usr/src/kernels/4.6.4-301.fc24.x86_64/scripts/sign-file sha256 ./MOK.priv ./MOK.der /lib/modules/4.6.4-301.fc24.x86_64/misc/vboxnetflt.ko
user@localhost:$ sudo /usr/src/kernels/4.6.4-301.fc24.x86_64/scripts/sign-file sha256 ./MOK.priv ./MOK.der /lib/modules/4.6.4-301.fc24.x86_64/misc/vboxpci.ko
Failed to open /dev/vmmon/ verify kernel vmmon is loaded
/usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 cert/MOK.priv cert/MOK.der /lib/modules/`uname -r`/misc/vmmon.ko
Return to VirtualBox on Linux Hosts
Users browsing this forum: No registered users and 13 guests