View previous topic :: View next topic |
Author |
Message |
joseph knecht n00b
Joined: 08 Jul 2012 Posts: 16
|
Posted: Sun Jul 08, 2012 5:18 pm Post subject: [SOLVED] gentoo as virtualboxguest - guest additions |
|
|
I am new to linux and to Gentoo.
I have done my first Gentoo installation following the handbook. I installed Gentoo as a VirtualBox guest (windows host) following the handbook instructions and using genkernel. Right afterwards, I followed the gentoo wiki found on http://en.gentoo-wiki.com/wiki/Virtualbox_Guest in order to install the virtualbox guest additions. I build a new kernel according to the instructions found on this wiki. I followed the wiki strictly. But, at this moment, I am stuck. The guest additions have been started as described in the wiki, but I cannot see them working : the virtualbox window is not resizing and I can not copy/paste form the host to the guest. I do not get any error messages neither. To make it clear : this is a completely fresh install (without X server or desktop), I am still in the terminal.
I have started this over several times, paying especially attention to the way I configure my kernel. But now, I am running out of imagination how to continue. I do not know what to check and I do not know where to look for more info within my system. I spend already several days to get until here. And I would like my gentoo adventure to continue. Please, can anybody help me on that?
Many thanks for any reaction.
Very kind regards,
Joseph Knecht _________________ Thanks for your feedback.
Last edited by joseph knecht on Wed Jul 18, 2012 2:22 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54289 Location: 56N 3W
|
Posted: Sun Jul 08, 2012 5:53 pm Post subject: |
|
|
joseph knecht,
Welcome to Gentoo.
I tend to boot liveCDs as guests so I don't get as far as installing the guest additions.
Please post yourso that we can see what services you have running.
If you run Code: | /etc/init.d/virtualbox-guest-additions start | do you get an error message?
The output from dmesg may be useful too. Thats fairly big. thenand post the URL you get back _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
joseph knecht n00b
Joined: 08 Jul 2012 Posts: 16
|
Posted: Sun Jul 08, 2012 8:10 pm Post subject: |
|
|
Dear NeddySeagoon,
Here the requested additional infos :
Code: | rc-update add virtualbox-guest-additions default
sevice virtualbox-guest-additions added to runlevel default
|
Code: | rc-update -v show
bootmisc | boot
consolefont |
crypto-loop |
devfs | sysinit
dhcpcd |
dmesg | sysinit
fsck | boot
gpm | default
hostname | boot
hwclock | boot
keymaps | boot
killprocs | shutdown
local | default
localmount | boot
modules | boot
mount-ro | shutdown
mtab | boot
net.eth0 | default
net.lo | boot
netmount | default
network |
nscd |
numlock |
procfs | boot
pydoc-3.2 |
root | boot
rsyncd |
savecache | shutdown
sshd |
staticroute |
swap | boot
swclock |
sysctl | boot
sysfs |
syslog-ng | default
termencoding | boot
udev | sysinit
udev-mount |
udev-postmount | default
urandom | boot
virtualbox-guest-additions | default
vixie-cron | default
|
Code: | /etc/init.d/virtualbox-guest-additions start
Caching service dependencies ... ok
Starting VirtualboxBox guest additions ...
Loading kernel modules ok
| => no error message !
Code: | dmesg | wgetpaste
Your paste can be seen here: https://gist.github.com/3072511
|
Regards, _________________ Thanks for your feedback. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54289 Location: 56N 3W
|
Posted: Sun Jul 08, 2012 8:24 pm Post subject: |
|
|
joseph knecht,
Your Quote: | => no error message ! |
Is a little worrying. The Code: | /etc/init.d/virtualbox-guest-additions start | should have told you that virtualbox-guest-additions was already running.
Your dmesg looks ok.
You may have problems installing Gentoo in only 8.5G but its easy enough to add another virtual disk for say /home or /usr/portage.
8.5G will be fine for the binaries.
The Code: | /etc/init.d/virtualbox-guest-additions start | claims to have loaded some kernel modules. Did they really load?
What does show ? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
joseph knecht n00b
Joined: 08 Jul 2012 Posts: 16
|
Posted: Sun Jul 08, 2012 8:54 pm Post subject: |
|
|
NeddySeagoon,
You are wondering about my Quote: | => no error message ! | But that is ok. Actually I returned to a previous snapshot of my virtual machine and installed the guest-additions again.
So when I executed
Code: | /etc/init.d/virtualbox-guest-additions start | the virtualbox-guest-additions were not yet running because I had not rebooted. I should have told you that before.
Here once again after reboot
Code: | /etc/init.d/virtualbox-guest-additions start
WARNING: virtualbox-guest-additions has already been started
/etc/init.d/virtualbox-guest-additions status
status: started
|
Your Quote: | You may have problems installing Gentoo in only 8.5G but its easy enough to add another virtual disk for say /home or /usr/portage.
8.5G will be fine for the binaries. | Many thanks for the advise. This is only a prototype install in order to study. I have also only 256M RAM assigned to the guest. - Is that enough for the moment?
lsmod looks ok
Code: | lsmod
Module Size Used by
vboxsf 26580 0
snd_intel8x0 19159 0
snd_ac97_codec 76427 1 snd_intel8x0
ac97_bus 601 1 snd_ac97_codec
snd_pcm 43045 2 snd_intel8x0,snd_ac97_codec
snd_timer 12435 1 snd_pcm
snd 34487 4 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
snd_page_alloc 4853 2 snd_intel8x0,snd_pcm
e1000 75836 0
battery 8443 0
i2c_piix4 6484 0
joydev 6644 0
vboxguest 121377 2 vboxsf
sg 19244 0
button 3299 0
ppdev 4058 0
parport_pc 23902 0
parport 20995 2 ppdev,parport_pc
ac 2353 0
pcspkr 1223 0
|
One more observation : My Virtualbox shared folders work fine, but they were already working fine before even I installed the guest additions. I found that strange. I had expected that the guest additions are necessary in order to work with the shared folders. _________________ Thanks for your feedback. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54289 Location: 56N 3W
|
Posted: Sun Jul 08, 2012 10:13 pm Post subject: |
|
|
joseph knecht,
It all looks ok. Continue with your install.
256Mb will be tight. You may run into swapping when you are building things. Some of the larger packages check for at least 512Mb of RAM and refuse to build in less.
512Mb will be better. 1G better still. Linux will use all of the RAM you give it.
I suspect that the console resize fails as the console size is fixed at boot time to whatever you set on your kernel line.
Does gpm work in the console? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
joseph knecht n00b
Joined: 08 Jul 2012 Posts: 16
|
Posted: Sun Jul 08, 2012 10:31 pm Post subject: |
|
|
NeddySeagoon,
Ok, I will go on with my install. Maybe window resizing and the copy/paste between guest and host will work once I've installed the X server and Gnome.
I will give it a little bit more RAM too. Do I have to rebuild my kernel for that?
Your
Quote: | I suspect that the console resize fails as the console size is fixed at boot time to whatever you set on your kernel line. |
What is my "kernel line"? Is this an option in the kernel .config file?
Your Quote: | Does gpm work in the console? |
Yes it does, although it's somewhat crazy sometimes. But I hope this will be better after I installed the X server.
Thanks for your help. Now, at least I know that I am on the right path to continue the install. _________________ Thanks for your feedback. |
|
Back to top |
|
|
Nensha n00b
Joined: 07 Jul 2012 Posts: 2
|
Posted: Mon Jul 09, 2012 4:01 am Post subject: |
|
|
I'm using it like that:
Quote: | VBoxClient --clipboard &
VBoxClient --display &
VBoxClient --checkhostversion &
VBoxClient --seamless &
exec startkde |
I think it must works fine without this tricky things if you run your DE session from xdm but as suggestion try to use VBoxClient |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54289 Location: 56N 3W
|
Posted: Mon Jul 09, 2012 5:15 pm Post subject: |
|
|
joseph knecht,
Your kernel line is the line in grub.conf that starts kernel. It tells grub which kernel to laod and what parametars to pass to the kernel.
Code: | kernel (hd0,0)/3.4.4-gentoo root=UUID=ff5730d5-c28d-4276-b300-5b0b0fc60300 vga=0x317 video=vesafb:mtrr:3,ywrap |
Thats my root partition, the size for the vga console and half a setup for then vesafb console ... I wonder what happened to the rest of it.
You do not need any kernel changes for more RAM until you get to >1GB. At that point 32 bit kernels need the 4G Himem option set. 64 bit kernels just work. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
joseph knecht n00b
Joined: 08 Jul 2012 Posts: 16
|
Posted: Tue Jul 10, 2012 7:26 am Post subject: |
|
|
NeddySeagoon,
Many thanks for your help. I've set up framebuffer and I have now a much higher resolution.
I will still explore things a little bit before moving forward installing X org and Gnome.
Kind Regards, _________________ Thanks for your feedback. |
|
Back to top |
|
|
joseph knecht n00b
Joined: 08 Jul 2012 Posts: 16
|
Posted: Tue Jul 10, 2012 7:31 am Post subject: |
|
|
Nensha,
Thanks for the hint. At this moment I am still in text mode. But maybe it can be helpfull afterwards.
Kind regards. _________________ Thanks for your feedback. |
|
Back to top |
|
|
|