-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stderr: VBoxManage.exe: error: Nonexistent host networking interface #10294
Comments
almost the same error, slightly different versions. VirtualBox version
the same error. install new version after completely removing old version. Vagrant version
first encounter on Host operating system
did not try with another version / machine, since some other guest machines in use on it. Guest operating system
VagrantfileVagrant.configure("2") do |config|
config.vm.box = "debian/contrib-stretch64"
config.vm.network "public_network", ip: "192.168.0.80"
# or
# config.vm.network "public_network"
# produce the same error
end Debug outputfull log here, and a short version:
Expected behaviorthe proper interface name according to VirtualBox GUI should be Actual behaviorwe get References |
No responsed for some days, after upgrading to 2.2.3, this issue persists. I convert the encoding of interface name in block.split("\n").each do |line|
if line =~ /^Name:\s+(.+?)$/
info[:name] = $1.to_s
# encoding = "windows-#{chcp.scan(/\d+$/)}" # adviced by google, but error: no chcp
# encoding = Encoding.default_external # actrually UTF-8
encoding = 'GB18030' # now work for my Windows 8 (zh-cn)
# encoding = 'cp936' # error: no converter
# encoding = 'Unicode' # error: no converter
@logger.debug("==> name string:")
@logger.debug(" was #{info[:name].encoding}: #{info[:name].inspect}")
@logger.debug(" as #{encoding}: #{info[:name].encode(encoding).inspect}")
info[:name] = info[:name].encode(encoding)
elsif line =~ /^IPAddress:\s+(.+?)$/ then I got
It's clearly that the internal encoding should be unified, which seems to be As above code shown, the Thanks for your great work. P.S. this is my first ruby code, apologize for lacking knowledge ahead. 🤓 |
so seems like this issue still persist |
@leaveye How can I fix it locally? Can you explain it? |
@MBalazs90 You may try like me:
so its clear that a encoding conversion is needed (original code): block.split("\n").each do |line|
if line =~ /^Name:\s+(.+?)$/
info[:name] = $1.to_s
info[:name] = info[:name].encode('GB18030') # add this line is enough
elsif line =~ /^IPAddress:\s+(.+?)$/ You may find the correct encoding and the corresponding provider code for your environment. |
any update on this issue? |
I'm getting the same issue with vagrant 2.2.2 and 2.2.4 on Windows 10.
Also using a NAT interface is working properly, but this not what I need for my test environment. |
I'm also getting this issue in 2.2.7. Any update on this ? I've got issue with French name :
becomes
|
Virtualbox version
5.2.18
Vagrant version
Vagrant 2.1.5
Host operating system
Windows 10 x64
Guest operating system
ubuntu/xenial64
Vagrantfile
Debug output
References
#8967
#8207
I tried to edit the .vbox file with the correct unicode values but it doesnt work.
The text was updated successfully, but these errors were encountered: