VIrtual box API for interface info

This is for discussing general topics about how to use VirtualBox.
Locked
Girish518
Posts: 19
Joined: 6. Nov 2012, 12:38

VIrtual box API for interface info

Post by Girish518 »

Hi ,

Is there any way to find interface binding info in virtualbox .. If one user uses the interface other users not able to use the same interface we are getting VERR_PERMISSION_DENIED error message.

We need to find whether interface is binded to another virtual machine or not of the other user


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

Re: VIrtual box API for interface info

Post by noteirak »

you can parse the output of vboxmanage showvminfo <vmname> --details to see which interface it is using, but you will have to do it under each user's session so you can actually see the VMs...

If you could give a bit more insight on how you've setup it, that could be helpfull
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Girish518
Posts: 19
Joined: 6. Nov 2012, 12:38

Re: VIrtual box API for interface info

Post by Girish518 »

Is there any way to find on the same user ...its bit difficult take each and every user we thousands of users....
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: VIrtual box API for interface info

Post by noteirak »

The only way you have is to parse the .vbox file for every VM then, but the content & format can change anytime (undocumented on purpose), so for every upgrade you would need to test first.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Girish518
Posts: 19
Joined: 6. Nov 2012, 12:38

Re: VIrtual box API for interface info

Post by Girish518 »

Thanks for the inputs .. i have one more question ..how virtual box giving VERR_PERMISSION_DENIED error when other user using the same interface. Is there flag/lock binding to host only interface .....
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: VIrtual box API for interface info

Post by noteirak »

Without the verbatim error message, the log file of the VM and its configuration, not much we can tell you.
For the log file and the VM configuration, you can find instruction here. Make sure you attach it all as a zip file.

Also, what are the permission on the host-only interface?
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Girish518
Posts: 19
Joined: 6. Nov 2012, 12:38

Re: VIrtual box API for interface info

Post by Girish518 »

I Posted the question in the forum regarding VERR_PERMISSION_DENIED Please find the link

viewtopic.php?f=7&t=54697
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: VIrtual box API for interface info

Post by noteirak »

I am locking this topic as cross-posting is not allowed, and continue this discussion on the other thread.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Locked