Guest additions on Fedora 8

Discussions about using Linux guests in VirtualBox.
Post Reply
the4thchild
Posts: 27
Joined: 10. Sep 2007, 05:30
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: MS Windows Vista, MacOS Snow Leopard, Ubuntu 9.10
Location: San Francisco, CA
Contact:

Guest additions on Fedora 8

Post by the4thchild »

I recently upgraded my Fedora installation to Fedora 8 as a guest on a Vista host. The VirtualBox guest additions appeared to install successfully, but after rebooting the guest, mouse integration and other additions features didn't seem to be working. Previously on Fedora 7 the additions were working great.

Does anyone else have this problem, or a workaround?

Thanks,
David

VirtualBox 1.5.2 on a Windows Vista host with Fedora 8 (upgraded from 7 by yum) guest (kernel 2.6.23.1-42.fc8 #1 SMP).
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

the4thchild
Posts: 27
Joined: 10. Sep 2007, 05:30
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: MS Windows Vista, MacOS Snow Leopard, Ubuntu 9.10
Location: San Francisco, CA
Contact:

Post by the4thchild »

Thanks for pointing out that forum thread. I checked and the vboxadd and vboxvfs services are indeed running, and I am able to access the host filesystem through Shared Folders. Unfortunately the mouse integration does not appear to be working. I tried restarting the X server (ctrl-alt-backspace) and couldn't find the RUN_PARALLEL option mentioned in the thread (is that SuSE-specific?).

Is Xorg reconfiguring the server somehow? Or is there a way to restart vboxadd after starting X (stopping vboxvfs and running "sudo /sbin/service vboxadd restart" gave an error that the module is in use)?
the4thchild
Posts: 27
Joined: 10. Sep 2007, 05:30
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: MS Windows Vista, MacOS Snow Leopard, Ubuntu 9.10
Location: San Francisco, CA
Contact:

Post by the4thchild »

Looks like someone just posted a bug ticket:
http://www.virtualbox.org/ticket/874
vtcool
Posts: 1
Joined: 11. Nov 2007, 05:41
Location: Bellport, NY

Post by vtcool »

Hi, this will probably need to be manually added whenever a change is made to the xorg.conf from the dialogs, but you could add to the ServerLayout section the Line "InputDevice "VBoxMouse"" and then set the SELinux AVC settings to Permissive and voila Mouse Integration enabled. Hope this helps.
JulienV
Posts: 1
Joined: 11. Nov 2007, 10:55

Post by JulienV »

Hi,

Simply setting the policy to 'permissive' and relabeling the files worked for me.

Cheers,
Julien
the4thchild
Posts: 27
Joined: 10. Sep 2007, 05:30
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: MS Windows Vista, MacOS Snow Leopard, Ubuntu 9.10
Location: San Francisco, CA
Contact:

Post by the4thchild »

That works great for me...thanks for posting the workaround. I continue to get SELinux AVC warnings about Xorg accessing vboxadd and a mislabeled device, so maybe the mouse integration had simply to do with SELinux permissions?

It's nice to be able to flip between host<-->guest smoothly again!
LarryJ
Posts: 5
Joined: 16. Nov 2007, 00:46

VirtualBox on Fedora 8

Post by LarryJ »

To get VirtualBox running in Fedora 8, I first downloaded the VirtualBox rpm VirtualBox-1.5.2_25433_fedora7-1.i586.rpm

I found that the downloaded .rpm had been deposited into /tmp. I cd'd to /tmp

Code: Select all

sudo cd /tmp
then unpacked/installed it with

Code: Select all

sudo rpm -iv VirtualBox-1.5.2_25433_fedora7-1.i586.rpm
Since I had the kernel-dev headers installed, I shortly saw a message that said:
No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Success!
I then clicked on KDE Menu-> innotek VirtualBox and the VirtualBox 1.5.2 gui came right up. Just make sure you add your regular "user" to the vboxusers group using KDE Menu->Administration->Users and Groups. then vboxusers properties then click on your normal user to so normal user is a Group Member of vboxusers group ID 501 which should then show up similar to this:
vboxusers 501 normaluser
where normaluser is the normal (not root nor admin) user who normally logs into this PC


You innotek guys and gals are amazing.

:D
Luca
Posts: 1
Joined: 11. Dec 2007, 18:07

Post by Luca »

If you want to use the additions without disabling SeLinux the solution is on VBox SVN:

http://www.virtualbox.org/browser/trunk ... box_x11.te

This is the policy needed to let X use the required device node. It's actually a bit broad since it allows X to access any device_t (it would be better to create a label for vbox).

Copy the content to a file (vbox_x11.te).

Then you must compile the policy:

Code: Select all

make -f /usr/share/selinux/devel/Makefile
And install it (as root):

Code: Select all

semodule -i vbox_x11.pp
(you'll need at least selinux-devel package)
the4thchild
Posts: 27
Joined: 10. Sep 2007, 05:30
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: MS Windows Vista, MacOS Snow Leopard, Ubuntu 9.10
Location: San Francisco, CA
Contact:

Post by the4thchild »

That works undoubtedly well! For those who need a little extra hand-holding (like me), here are some minor details:

-Install selinux-devel if necessary ("sudo yum install libselinux-devel")
-Create a new folder for the vbox_x11 files.
-Copy the contents from Luca's link into a file and name it "vbox_x11.te" (remove line numbers, of course).
-Run the policy compilation command from within the folder, which will create vbox_x11.pp.
-Run "sudo /usr/sbin/semodule -i vbox_x11.pp"

See this link from the .te file for more information:
http://docs.fedoraproject.org/selinux-f ... y-local.te

Mouse pointer integration should now work even with SELinux set to Enforcing mode.

Thanks Luca for pointing out this policy!
soliars
Posts: 3
Joined: 22. Feb 2008, 12:39
Contact:

Post by soliars »

Thank you everybody.

You really helped me a lot. :lol:
Snow123
Posts: 3
Joined: 2. Mar 2008, 11:31
Contact:

Post by Snow123 »

It's nice to be able to flip between host<-->guest smoothly again! :evil:
Post Reply