| View previous topic :: View next topic |
| Author |
Message |
Frautoincnam Guru

Joined: 19 May 2017 Posts: 310
|
Posted: Thu May 25, 2017 8:52 pm Post subject: virtualbox and vnc |
|
|
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 |
|
 |
nasaiya Apprentice

Joined: 17 May 2007 Posts: 157
|
Posted: Thu Dec 07, 2017 5:33 pm Post subject: |
|
|
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 |
|
 |
d3xt3r01 n00b

Joined: 29 Jul 2018 Posts: 1
|
Posted: Sun Jul 29, 2018 8:05 am Post subject: |
|
|
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 |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 22420
|
Posted: Sun Jul 29, 2018 4:01 pm Post subject: |
|
|
| 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 |
|
 |
|