Fedora 8 + VirtualBox 1.6.2

Discussions related to using VirtualBox on Linux hosts.

Fedora 8 + VirtualBox 1.6.2

Postby axet » 20. Jun 2008, 13:52

[axet@localhost modules]$ sudo rpm -i ~/Download/VirtualBox-1.6.2_31466_fedora8-1.i586.rpm
/var/tmp/rpm-tmp.49962: line 19: 3742 Done find /lib/modules -name "vboxdrv\.*" 2> /dev/null
3743 Aborted | xargs rm -f 2> /dev/null
error: %pre(VirtualBox-1.6.2_31466_fedora8-1.i586) scriptlet failed, exit status 134
error: install: %pre scriptlet failed (2), skipping VirtualBox-1.6.2_31466_fedora8-1
[axet@localhost modules]$
axet
Volunteer
 
Posts: 93
Joined: 3. Sep 2007, 23:20

Postby Frank Mehnert » 20. Jun 2008, 15:10

Hmm, cannot reproduce that problem here. Do you have any idea? Is the %pre script executed with -x or something like that?
Frank Mehnert
Oracle Corporation
 
Posts: 2523
Joined: 7. Jun 2007, 09:11
Location: Dresden, Germany
Primary OS: Debian Lenny
VBox Version: PUEL
Guest OSses: Linux, Windows

Postby axet » 20. Jun 2008, 15:25

i think there problem in update script. they can't find previous version of virtualbox and fail... i wil try to extract rpm and look at scripts..
axet
Volunteer
 
Posts: 93
Joined: 3. Sep 2007, 23:20

Postby axet » 20. Jun 2008, 15:38

i got one error message in audit.log with setenforce 0

type=ANOM_ABEND msg=audit(1213969024.080:45): auid=500 uid=0 gid=0 ses=1 subj=system_u:system_r:rpm_script_t:s0 pid=1051 comm="xargs" sig=6
axet
Volunteer
 
Posts: 93
Joined: 3. Sep 2007, 23:20

Postby axet » 20. Jun 2008, 15:41

[root@localhost Download]# find /lib/modules -name "vboxdrv\.*" | xargs rm -f
xargs: xargs.c:445: main: Assertion `bc_ctl.arg_max <= (131072-2048)' failed.
Aborted
[root@localhost Download]#
axet
Volunteer
 
Posts: 93
Joined: 3. Sep 2007, 23:20

Postby axet » 20. Jun 2008, 15:49

axet
Volunteer
 
Posts: 93
Joined: 3. Sep 2007, 23:20

Postby Frank Mehnert » 20. Jun 2008, 21:18

Ah, so it seams that this is a bug of xargs. Thank you for investigating this!
Frank Mehnert
Oracle Corporation
 
Posts: 2523
Joined: 7. Jun 2007, 09:11
Location: Dresden, Germany
Primary OS: Debian Lenny
VBox Version: PUEL
Guest OSses: Linux, Windows

workaround for xargs bug

Postby nlsteffens » 6. Aug 2008, 07:28

There is an xargs bug in fedora core 8 (and possible other releases) which has been resolved in fedora rawhide (the latest development as of the date of this posting; http://fedoraproject.org/wiki/Releases/Rawhide).

Running 'xargs' on the command line produces the error:
----
xargs: xargs.c:445: main: Assertion `bc_ctl.arg_max <= (131072-2048)' failed.
Aborted
----
See the bug report here: https://bugzilla.redhat.com/show_bug.cgi?id=439593

When an rpm upgrade or install of virtualbox is run on fedora core 8, this error is thrown:
----
rpm -ihv VirtualBox-1.6.4_33808_fedora8-1.i586.rpm
Preparing... ########################################### [100%]
/var/tmp/rpm-tmp.70344: line 19: 3722 Broken pipe find /lib/modules -name "vboxdrv\.*" 2> /dev/null
3723 Aborted | xargs rm -f 2> /dev/null
error: %pre(VirtualBox-1.6.4_33808_fedora8-1.i386) scriptlet failed, exit status 134
error: install: %pre scriptlet failed (2), skipping VirtualBox-1.6.4_33808_fedora8-1

find /lib/modules -name "vboxdrv\.*" 2>/dev/null|xargs rm -f 2> /dev/null
Aborted
----

This error is caused by this line in the rpm script:
find /lib/modules -name "vboxdrv\.*" 2>/dev/null|xargs rm -f 2> /dev/null

To view the script, use:
rpm --scripts -qp VirtualBox-1.6.4_33808_fedora8-1.i586.rpm

To workaround this problem, add this line

INSTALL_NO_VBOXDRV=1

to file

/etc/default/virtualbox

If this file does not exist then create it and add the line above. This workaround can be found in the rpm script.

Regards,

Nick Steffens
nlsteffens
 
Posts: 2
Joined: 6. Aug 2008, 07:11

Postby Frank Mehnert » 6. Aug 2008, 14:39

Actually it seems that even the normal Fedora8 packages are updated properly since I cannot reproduce this problem here (using a Fedora8 jail).
Frank Mehnert
Oracle Corporation
 
Posts: 2523
Joined: 7. Jun 2007, 09:11
Location: Dresden, Germany
Primary OS: Debian Lenny
VBox Version: PUEL
Guest OSses: Linux, Windows

xargs bug

Postby nlsteffens » 7. Aug 2008, 02:05

I've upgraded findutils from version findutils-4.2.31-2.fc8 to version findutils.i386 1:4.4.0-1.fc10 from the development repo.

yum --enablerepo=development update findutils

This has fixed the problem with xargs. I'm not sure why findutils had not updated to a working version of xargs.

Regards,

Nick Steffens
nlsteffens
 
Posts: 2
Joined: 6. Aug 2008, 07:11


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 19 guests