Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
virtualbox and vnc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Frautoincnam
n00b
n00b


Joined: 19 May 2017
Posts: 54

PostPosted: Thu May 25, 2017 8:52 pm    Post subject: virtualbox and vnc Reply with quote

I'm beginning to use virtualbox on my gentoo host. (app-emulation/virtualbox-5.0.32)
I installed virtualbox-extpack-oracle so I can access my wms with xfreerdp. that's nice.
But I'd prefer to use VNC because I saw a vnc USE in viirtualbox.
Code:
 * Found these USE flags for app-emulation/virtualbox-5.0.32:
 + + vnc                      : Enable VNC (remote desktop viewer) support

http://www.virtualbox.org/manual/ch09.html#otherextpacks (4.2 version and I use 5.0.32) talks about that, and switching between RDP to VNC with
Quote:
VBoxManage setproperty vrdeextpack VNC

but doesn't work for me :
Code:
VBoxManage: error: No extension pack by the name 'VNC' was found


So my questions :
- where to find the extension pack for 5.0.32 ? Isn't it included in virtualbox-extpack-oracle ?
- is it always the good way to use VNC with VM in 5.0.32 like in 4.2 ?
- what vnc USE used for if it doesn't include this extension ?

Thanks.

NB : Sorry for my english.
NB2 : I know I can connect to my VMs without VNC, with SSH, and I use it.
Back to top
View user's profile Send private message
nasaiya
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2007
Posts: 147

PostPosted: Thu Dec 07, 2017 5:33 pm    Post subject: Reply with quote

Hello,
Did you ever figure this out? I've run into the same problem.

The vnc use flag sounds like it should enable this functionality, yet the extpack does not appear to be installed...
_________________
If it ain't broke - fix it till it is!
Back to top
View user's profile Send private message
d3xt3r01
n00b
n00b


Joined: 29 Jul 2018
Posts: 1

PostPosted: Sun Jul 29, 2018 8:05 am    Post subject: Reply with quote

Sorry to wake up such an old thread but I had the same issue today and ... I MADE IT !!!
The vnc flag does indeed do --enable-vnc but I think there's a bug in virtualbox's build...
To make it work I ended up doing this:

FEATURES=keepwork emerge virtualbox
cd /var/tmp/portage/app-emulation/virtualbox-5.2.16/work/VirtualBox-5.2.16
# by default for some reason it's 5.2.16_Gentoo and virtualbox doesn't like that string for installation
sed -i 's/@VBOX_VERSION_STRING@/5.2.16/' src/VBox/ExtPacks/VNC/ExtPack.xml
kmk -C src/VBox/ExtPacks/VNC packing
# as root, for some reason doing this as a user fails with some /dev/tty issue
vboxmanage extpack install ./out/linux.amd64/release/packages/VNC-5.2.16r123745.vbox-extpack
vboxmanage setproperty vrdeextpack VNC

Et voila ! Seems to work for me !
All the credits should go https://lists.opensuse.org/opensuse-bugs/2017-05/msg00053.html
The features thingy from the awesome IRC gentoo people !
The sed part I figured out at the end ...
The kmk part I got from the suse list
The vboxmanage from the virtualbox manual
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 12965

PostPosted: Sun Jul 29, 2018 4:01 pm    Post subject: Reply with quote

Be aware that your workaround will only hold until the next time you need to rebuild virtualbox. To fix this properly, the ebuild needs to be adjusted to do the required steps on its own. You can do this in a local overlay for your own benefit. Once it works, you can ask the Gentoo maintainer for Virtualbox to incorporate the change into the main tree.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum