| View previous topic :: View next topic |
| Author |
Message |
mattg889 n00b

Joined: 07 Nov 2012 Posts: 11
|
Posted: Wed Nov 07, 2012 12:38 am Post subject: Trying to install Virtualbox in headless |
|
|
Hi,
First I would like to apologize in advance, I am still new to Gentoo so I would like some extra explanation whenever possible.
To the topic, I have installed minimal Gentoo on my server and I want to install virtualbox in headless mode. I have had it installed before and it worked fine, but I broke my Gentoo install so I reinstalled and started from scratch. But now I can't seem to install virtualbox with the headless use flag. The following is my use flag settings for virtualbox in my make.conf :
| Code: | | app-emulation/virtualbox-bin headless rdesktop-vrdp vboxwebsrv python -qt4 -pulseaudio -sdk -additions -alsa |
and when I try to install virtualbox with | Code: | emerge -avp app-emulation/virtualbox-bin
|
it says this:
"/etc/portage/make.conf", line 16: Invalid token 'headless' (not '=')
So just doing some troubleshooting I changed my use flag to simply:
| Code: | | app-emulation/virtualbox-bin -qt4 |
and it says this:
"/etc/portage/make.conf", line 18: Invalid token '-qt4' (not '=')
Maybe its as simple as a syntax error on my part, but everything I have done was from the same website I used the last time I installed it, but now it doesn't work. The main site I am using as a guide is http://en.gentoo-wiki.com/wiki/VirtualBox
Please help! |
|
| Back to top |
|
 |
Jaglover Advocate


Joined: 29 May 2005 Posts: 3980 Location: Saint Amant, Acadiana
|
Posted: Wed Nov 07, 2012 12:57 am Post subject: |
|
|
Welcome!
| Code: | | app-emulation/virtualbox-bin headless rdesktop-vrdp vboxwebsrv python -qt4 -pulseaudio -sdk -additions -alsa |
This is not valid for make.conf, you have to put it into /etc/portage/package.use/app-emulation _________________ Please learn how to denote units correctly! |
|
| Back to top |
|
 |
mattg889 n00b

Joined: 07 Nov 2012 Posts: 11
|
Posted: Wed Nov 07, 2012 1:26 am Post subject: |
|
|
Thank you! That was it. Virtualbox is emerging as I type this.
I figured it was something obvious and simple.  |
|
| Back to top |
|
 |
Jaglover Advocate


Joined: 29 May 2005 Posts: 3980 Location: Saint Amant, Acadiana
|
|
| Back to top |
|
 |
mattg889 n00b

Joined: 07 Nov 2012 Posts: 11
|
Posted: Wed Nov 14, 2012 8:42 pm Post subject: New problems |
|
|
Hi, sorry its been a bit, I got sidtracked by work. I was able to install virtualbox in headless and it let me create and configure a machine, but I have run into a new problem now. It figure it still fits in this thread.
When I type the following command to start the vm "vs01":
| Code: | | VBoxManage startvm "vs01" --type headless |
I get the following output and the vm does not start:
| Code: | Waiting for VM "vs01" to power on...
VBoxManage: error: Failed to open/create the internal network 'HostInterfaceNetworking-eth0' (VERR_SUPDRV_COMPONENT_NOT_FOUND).
VBoxManage: error: One of the kernel modules was not successfully loaded. Make sure that no kernel modules from an older version of VirtualBox exist. Then try to recompile and reload the kernel modules by executing '/etc/init.d/vboxdrv setup' as root (VERR_SUPDRV_COMPONENT_NOT_FOUND)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component Console, interface IConsole |
I did add the kernel modules to the kernel that the guide in my previous post stated to add.
I did try the command that the error code suggests which was:
| Code: | | /etc/init.d/vboxdrv setup |
and I get this:
| Code: | | -bash: /etc/init.d/vboxdrv: No such file or directory |
I installed and added vboxdrv to the startup as the guide also stated to do. I am at a loss here, does anyone know what the problem may be? |
|
| Back to top |
|
 |
MacGyver031 Tux's lil' helper

Joined: 11 Jul 2004 Posts: 140 Location: Ilavalai, Sri Lanka
|
Posted: Wed Nov 14, 2012 8:59 pm Post subject: |
|
|
Hi mattg889,
Could you answer the follwoing question?
Are these packages installed? Which version?
app-emulation/virtualbox
app-emulation/virtualbox-additions
app-emulation/virtualbox-extpack-oracle
app-emulation/virtualbox-modules
It is important to have virualbox-modules installed and the following modules loaded:
vboxnetadp 17254 0
vboxnetflt 13773 0
vboxdrv 1771198 2 vboxnetadp,vboxnetflt
BR. _________________ Sincerely your
Joanand K.
MacBook Pro 5.1: 2.4GHz Core2 Duo, 4096MB, 500GB, NVidia 9400/9600 M GT
Gentoo, Kernel 3.4.9, XOrg, Fluxbox. |
|
| Back to top |
|
 |
mattg889 n00b

Joined: 07 Nov 2012 Posts: 11
|
Posted: Wed Nov 14, 2012 9:36 pm Post subject: |
|
|
removed
Last edited by mattg889 on Thu Nov 15, 2012 12:12 am; edited 1 time in total |
|
| Back to top |
|
 |
mattg889 n00b

Joined: 07 Nov 2012 Posts: 11
|
Posted: Wed Nov 14, 2012 9:59 pm Post subject: |
|
|
Ok, I did "emerge -p app-emulation/virtualbox and it had virtualbox-bin as a conflict, then I remembered, I installed app-emulation/virtualbox-bin , version 4.2.2 because it had remote desktop.
I am trying to install virtualbox in headless mode so I do not need the additions and extensions
I thought the modules one was not installed, but see next post.
Last edited by mattg889 on Thu Nov 15, 2012 12:21 am; edited 1 time in total |
|
| Back to top |
|
 |
mattg889 n00b

Joined: 07 Nov 2012 Posts: 11
|
Posted: Wed Nov 14, 2012 10:05 pm Post subject: |
|
|
Is something wrong here. Is emerge -p supposed to show what is currently installed?
I just did "emerge app-emulation/virtualbox-bin" and it re emerged it, and it does it again and again if I run the command. It is installed... I thought it will stop, saying current version is installed. Perhaps the modules one was already installed as well. |
|
| Back to top |
|
 |
mattg889 n00b

Joined: 07 Nov 2012 Posts: 11
|
Posted: Thu Nov 15, 2012 12:56 am Post subject: I think I got it fixed. |
|
|
I can not be 100% sure what I did that fixed it, because I lost track of how many things I tried, but the last thing I did was enter the command "emerge -q1 virtualbox-modules" and then I rebooted my server and now my virtual machine vs01 started with no problems.
Thanks |
|
| Back to top |
|
 |
toralf Advocate


Joined: 01 Feb 2004 Posts: 2414 Location: Hamburg/Germany
|
Posted: Thu Nov 15, 2012 9:53 am Post subject: |
|
|
| Jaglover wrote: | Welcome!
| Code: | | app-emulation/virtualbox-bin headless rdesktop-vrdp vboxwebsrv python -qt4 -pulseaudio -sdk -additions -alsa |
This is not valid for make.conf, you have to put it into /etc/portage/package.use/app-emulation | Just like to comment, that every file name under /etc/portage/package.use/ is sufficient. |
|
| Back to top |
|
 |
|