Skip to content
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

vagrant up fails if `VBoxManage showvminfo' contains non-UTF8 characters. #4978

Closed
hirayama-evolni opened this issue Dec 15, 2014 · 3 comments

Comments

@hirayama-evolni
Copy link

HostOS: Windows8.1(Japanese)
Provider: VirtualBox 4.3.20

I just upgraded vagrant from 1.6.5 to 1.7.1, then vagrant up fails now.

C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.1/plugins/providers/virtualbox/driver/base.rb:387:in `gsub': invalid byte sequence in UTF-8 (ArgumentError)

Full stack trace is here.

This is caused by VBoxManage showvminfo returns non-UTF-8 text, Shift_JIS for my case.

Take a look at this.
This is of a VM not created by vagrant, and whose snapshot name is in Japanese.

I tried to apply force_encoding("ASCII-8BIT") on r.stdout, it goes well, but it may not be a good idea.

Thanks.

@mitchellh
Copy link
Contributor

Unfortunatey we're not actually sure how to fix these encoding issues. There is a very old meta-issue tracking these encoding issues. We'll fix them over time.

@Danita
Copy link

Danita commented Aug 31, 2016

Workaround for people like me who encountered this error: rename your VMs and snapshots to remove non-ASCII characters.

@ghost
Copy link

ghost commented Apr 3, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@hashicorp hashicorp locked and limited conversation to collaborators Apr 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants