Failed to create a host only interface on Windows 10

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
silvermangb
Posts: 7
Joined: 18. Feb 2016, 17:53

Failed to create a host only interface on Windows 10

Post by silvermangb »

Code: Select all

import virtualbox

vbmanager = virtualbox.Manager()
vbox      = vbmanager.get_virtualbox()
session   = vbmanager.get_session()
host      = vbox.host

hoi,progress = host.create_host_only_network_interface()
progress.wait_for_completion(32000)
print(hoi.name) # generates AttributeError, no "name" 
This code does create a host only interface, and, it has a name. This is verified with the virtualbox GUI. So, why does the object returned from
the API not have any of its attributes?

Actually, it does work on my newest PC, but, not on two older ones.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Failed to create a host only interface on Windows 10

Post by socratis »

Cross postings are not allowed. I've deleted your duplicate post from the "Windows Hosts" forum.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
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: Failed to create a host only interface on Windows 10

Post by noteirak »

So what is the difference between your newest PC and the oldest ones? Give OS info and also please read the Posting Guidelines and give the missing info.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply