How to enable vnc and get vnc url by using api interface?

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
aaronchen2k
Posts: 4
Joined: 7. Sep 2021, 08:45

How to enable vnc and get vnc url by using api interface?

Post by aaronchen2k »

How to enable VNC remote display, and get VNC access URL of machine by using api interface?

Thanks!
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: How to enable vnc and get vnc url by using api interface?

Post by noteirak »

Hello! Last I tried, the VNC remote display is not included in the official extension pack and you need to build it from source directly.

Installing and enabling is done via IExtPackManager found on the main VirtualBox object IVirtualBox.
Configuring the VM is done using IVRDEServer, a property you can modify on IMachine obtained from a write lock.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply