VirtualBox

Custom Query (16363 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (13 - 15 of 16363)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Ticket Resolution Summary Owner Reporter
#18900 fixed openSUSE Tumbleweed: cannot build RPM packages Frank Batschulat (Oracle) Frank Batschulat (Oracle)
Description

building RPM packages on openSUSE Tumbleweed fails because the VBOX logic to detect the OS version breaks on Tumbleweed, details below:

fbatschu@hpbox:/site/ws/vb/trunk> tools/env.sh
tools/env.sh: info: Spawning work shell...
VBox/Trunk fbatschu@hpbox trunk $ kmk clean ; rm -rf out AutoConfig.kmk
 
VBox/Trunk fbatschu@hpbox linux $ rpm/rules binary NOWINE=1 BUILD_TYPE=release KBUILD_TYPE=release
rpm/rules:94: *** failed to detect the release type.  Hack the detection..  Stop.

VBox/Trunk fbatschu@hpbox trunk $ env|grep BUILD_TYPE
KBUILD_TYPE=debug
BUILD_TYPE=debug

VBox/Trunk fbatschu@hpbox linux $ rpm/rules binary NOWINE=1 BUILD_TYPE=release
rpm/rules:94: *** failed to detect the release type.  Hack the detection..  Stop.

VBox/Trunk fbatschu@hpbox linux $ rpm/rules binary NOWINE=1 KBUILD_TYPE=release

rpm/rules:94: *** failed to detect the release type.  Hack the detection..  Stop.
 
VBox/Trunk fbatschu@hpbox trunk $ ./configure
 
VBox/Trunk fbatschu@hpbox trunk $ source /site/ws/vb/trunk/env.sh

VBox/Trunk fbatschu@hpbox trunk $ env |grep BUILD_TYPE
KBUILD_TYPE=debug
BUILD_TYPE=release
 
VBox/Trunk fbatschu@hpbox trunk $ grep BUILD_TYPE env.sh
BUILD_TYPE="release"
export BUILD_TYPE
 
VBox/Trunk fbatschu@hpbox trunk $ cd src/VBox/Installer/linux
VBox/Trunk fbatschu@hpbox linux $ rpm/rules binary NOWINE=1
rpm/rules:94: *** failed to detect the release type.  Hack the detection..  Stop.
 
VBox/Trunk fbatschu@hpbox linux $ rpm/rules binary NOWINE=1 BUILD_TYPE=release
rpm/rules:94: *** failed to detect the release type.  Hack the detection..  Stop.

rpm/rules has this detection logic we fall over on Tumbleweed:

 89  ifeq ($(rpmrel),)
 90  # look for openSUSE
 91   rpmrel  := $(shell cat /etc/SUSE-brand 2> /dev/null | sed -ne 's/^VERSION *= *\([0-9]*\)\.\([0-9]*\)/openSUSE\1\2/p')
 92  endif
 93  ifeq ($(rpmrel),)
 94   $(error failed to detect the release type.  Hack the detection.)
 95  endif

fbatschu@hpbox:~> cat /etc/os-release NAME="openSUSE Tumbleweed" # VERSION="20190828" ID="opensuse-tumbleweed" ID_LIKE="opensuse suse" VERSION_ID="20190828" PRETTY_NAME="openSUSE Tumbleweed" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:tumbleweed:20190828"

fbatschu@hpbox:~> ls -la /etc/SUSE-brand -rw-r--r-- 1 root root 30 Aug 8 14:00 /etc/SUSE-brand fbatschu@hpbox:~> cat /etc/SUSE-brand openSUSE VERSION = tumbleweed fbatschu@hpbox:~> cat /etc/SUSE-brand 2> /dev/null | sed -ne 's/VERSION *= *\([0-9]*\)\.\([0-9]*\)/openSUSE\1\2/p' fbatschu@hpbox:~> echo $? 0 }}}

#18911 fixed Fixes for Linux kernel 5.3 wanted - part 1 Frank Batschulat (Oracle) Frank Batschulat (Oracle)
Description

for the upcomming 5.3 Linux kernel we will require changes to the !Virtualbox code base.

Here's a first batch already identified:

https://www.virtualbox.org/pipermail/vbox-dev/2019-July/015297.html
https://forums.virtualbox.org/viewtopic.php?f=3&t=93944

To quote the submitter:

Larry Finger Larry.Finger at lwfinger.net Wed Jul 24 00:13:47 UTC 2019

Yes, I do. The MIT-licensed patch is posted below. After I finish here, I will also post this material on the VBox forum.

The API changes are as follows:

  1. The for_ifa() and endfor_ifa() macros are removed. They are so simple that it is better to turn then into in-line code.
  1. Routine smp_call_function() is changed from type int to void.
Index: VirtualBox-6.0.10/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
===================================================================
--- VirtualBox-6.0.10.orig/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
+++ VirtualBox-6.0.10/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
@@ -2123,7 +2123,10 @@ static int vboxNetFltLinuxEnumeratorCall
  #endif
      if (in_dev != NULL)
      {
-        for_ifa(in_dev) {
+       /* macros for_ifa() and endfor_ifa() disappear for kernel 5.3
+        * Code them directly */
+        struct in_ifaddr *ifa;
+       for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) {
              if (VBOX_IPV4_IS_LOOPBACK(ifa->ifa_address))
                  return NOTIFY_OK;

@@ -2137,7 +2140,7 @@ static int vboxNetFltLinuxEnumeratorCall

              pThis->pSwitchPort->pfnNotifyHostAddress(pThis->pSwitchPort,
                  /* :fAdded */ true, kIntNetAddrType_IPv4, &ifa->ifa_address);
-        } endfor_ifa(in_dev);
+        }
      }

      /*
Index: VirtualBox-6.0.10/src/VBox/Runtime/r0drv/linux/mp-r0drv-linux.c
===================================================================
--- VirtualBox-6.0.10.orig/src/VBox/Runtime/r0drv/linux/mp-r0drv-linux.c
+++ VirtualBox-6.0.10/src/VBox/Runtime/r0drv/linux/mp-r0drv-linux.c
@@ -283,12 +283,16 @@ RTDECL(int) RTMpOnAll(PFNRTMPWORKER pfnW
      if (RTCpuSetCount(&OnlineSet) > 1)
      {
          /* Fire the function on all other CPUs without waiting for completion. */
-# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0)
+       smp_call_function(rtmpLinuxAllWrapper, &Args, 0 /* wait */);
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
          int rc = smp_call_function(rtmpLinuxAllWrapper, &Args, 0 /* wait */);
-# else
+#else
          int rc = smp_call_function(rtmpLinuxAllWrapper, &Args, 0 /* retry */, 
0 /* wait */);
-# endif
+#endif
+# if LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 0)
          Assert(!rc); NOREF(rc);
+#endif
      }
  #endif

@@ -326,7 +330,9 @@ RTDECL(int) RTMpOnOthers(PFNRTMPWORKER p
  {
  #ifdef CONFIG_SMP
      IPRT_LINUX_SAVE_EFL_AC();
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 0)
      int rc;
+#endif
      RTMPARGS Args;

      RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER;
@@ -337,14 +343,18 @@ RTDECL(int) RTMpOnOthers(PFNRTMPWORKER p
      Args.cHits = 0;

      RTThreadPreemptDisable(&PreemptState);
-# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0)
+    smp_call_function(rtmpLinuxWrapper, &Args, 1 /* wait */);
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
      rc = smp_call_function(rtmpLinuxWrapper, &Args, 1 /* wait */);
-# else /* older kernels */
+#else /* older kernels */
      rc = smp_call_function(rtmpLinuxWrapper, &Args, 0 /* retry */, 1 /* wait */);
-# endif /* older kernels */
+#endif /* older kernels */
      RTThreadPreemptRestore(&PreemptState);

+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 0)
      Assert(rc == 0); NOREF(rc);
+#endif
      IPRT_LINUX_RESTORE_EFL_AC();
  #else
      RT_NOREF(pfnWorker, pvUser1, pvUser2);
#18924 fixed VirtualBox 6.0.12 install fails on RHEL 8 Frank Batschulat (Oracle) Thomas Stephen Lee
Description

I am trying to install VirtualBox 6.0.12 on RHEL 8.0

I used the file

https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo

and ran the command

dnf -y install VirtualBox-6.0

this throws the error below.


Error: Transaction check error:

file /lib from install of VirtualBox-6.0-6.0.12_133076_el8-1.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64 file /sbin from install of VirtualBox-6.0-6.0.12_133076_el8-1.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64 file /usr/bin from install of VirtualBox-6.0-6.0.12_133076_el8-1.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64 file /usr/lib from install of VirtualBox-6.0-6.0.12_133076_el8-1.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64

Error Summary


kindly look into it.

thanks.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy