Comments (22)
以下のコマンドで vagrant-vbguest というプラグインをインストールして、そのあとで vagrant up
したらどうでしょう?
vagrant plugin install vagrant-vbguest
https://github.com/dotless-de/vagrant-vbguest
from vccw.
i have exactly the same problem, i have installed vagrant-vbguest but i have still the error message:
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:
mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` vagrant /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant /vagrant
The error output from the last command was:
/sbin/mount.vboxsf: mounting failed with the error: No such device
when i run: vagrant vbguest --status
i got:
GuestAdditions versions on your host (4.3.20) and guest (4.3.8) do not match.
from vccw.
vagrant-vbguesというプラグインを入れてみましたが、上記の方と同じエラーメッセージが出てしまいます。
from vccw.
んー、実は複数の人に検証をお願いしたんですが、僕も含めて全く同じ環境で動いたんですよね。
エラーは、guest additionsが適切にインストールされていないという内容っぽいので、上述のプラグインをインストールすれば解消するかと思ったのですが。。。
お役に立てずすいません。もし何か新しいことがわかったらご教示ください。
from vccw.
I found some solution. Please run following command after vagrant up
.
vagrant ssh -c 'sudo /etc/init.d/vboxadd setup'
If you would get messages like following, It would be solved.
Removing existing VirtualBox non-DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module [ OK ]
Building the shared folder support module [ OK ]
Building the OpenGL support module [ OK ]
Doing non-kernel setup of the Guest Additions [ OK ]
Starting the VirtualBox Guest Additions [ OK ]
Connection to 127.0.0.1 closed.
But we don't need this solution, I don't know why you got a this problem...
from vccw.
I found it too.
from vccw.
I have the next error after run the command:
vagrant ssh -c 'sudo /etc/init.d/vboxadd setup'
Removing existing VirtualBox non-DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
The missing package can be probably installed with
yum install kernel-devel-2.6.32-431.el6.i686
Building the main Guest Additions module [ERROR]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions [ OK ]
Connection to 127.0.0.1 closed.
I have tried in three different development environments (windows 7, Mavericks and Yosemite), and i have the same error.
I have installed the latest version on vagrant and virtualbox
from vccw.
May I have your Vagrantfile?
Please copy and paste it here.
from vccw.
Oh I've been able to reproducing failure.
It's a problem of the box chef/centos-6.5
.
Please change box to chef/centos-6.5-i386
and please try again.
(Or the box miya0001/vccw works fine. It's maybe faster for provisioning.)
Thanks.
from vccw.
@miya0001 Im going to try, I think I also have tried with centos-6.5-i386
I will post the result ;)
from vccw.
Wow one more information.
Please uninstall vagrant-vbguest plugin.
Sorry. ;)
vagrant plugin uninstall vagrant-vbguest
from vccw.
yes, its seems a problem from vagrant-vbguest
now start to provisioning without shared folder errors
from vccw.
Great! 👍
from vccw.
anyway I solved the vguest problem running the commands on the VM (after the error):
sudo yum install -y gcc kernel-devel
, sudo yum distro-sync
and then reloading/provisioning the VM
from vccw.
Sounds good. Thanks!
from vccw.
ちょっと気になったんで、コメントを残しておきます
VM_BOXに
- chef/centos-6.5-i385
- chef/centos-6.5
- chef/centos-6.6-i385
を指定した場合、vagrant-vbguestでGuest Additionを自動更新しようとすると
kernel-develのインストールに失敗して、Guest Additionのビルドに失敗するんで
上記の方のようなエラーが出てしまいます。
chef/centos-6.6
なら、vagrant-vbguestでkernel-develのインストールが
正常に行われるんで、Guest Additionの自動更新も正常にできるんで、
共有フォルダのマウントも正常にできると思います
もし、特に理由がないのであればVagrantfileのVM_BOXの初期値を、
chef/centos-6.6
に変更している方が無難だと思われます。
あと、余談ですが最初にisuueを登録した人と環境が全く同じ環境ですが、
vagrant-vbguestでのGuest Additionの自動更新をしなかった場合
VM_BOXがchef/centos-6.5-i385
でも正常に
プロビジョニングが完了しているのを確認できました
from vccw.
なるほどー。でも6.6って64bitですよね?
chef/centos-6.6-i385が使えるならいいんですが、64bit版はWindows環境で動かないケースが多いようなんですよね。
from vccw.
64bitですねー。
一応、僕の仕事で使ってる環境(Win7 32Bit)では問題なく動いてますねー。
まぁ、ここら辺は他の利用者のこともあるんで、とりあえず参考意見ってことなんで、
判断に関してはお任せってことでー
あと、余談ですが、
CentOSの場合、vagrant-vbguest使ってGuest Additionsを更新するときに、
kernel-devel
、gcc
、perl
、make
をインストールするんですけど、
インストールパッケージの設定のときに、
vagrant-vbguestが単にkernel-devel
で指定してるんではなく、
kernel-devel-`uname -r`
で指定してるんで、
uname -r
の内容と、現在のパッケージ名が合わなくて、
そんなパッケージは無いってことで、kernel-devel
のインストールがスキップされて、
kernel-devel
が入ってないまま、Guest Additionsをビルドしようとして失敗するんで、
もし、VCCWでvagrant-vbguestがインストールされていることを前提としているのであれば、
VM_BOXの設定内容がchef/centos-6.5-i385
で今回と同じようなエラーが出る場合は、
vagrant ssh
で接続して、
sudo yum install -y kernel-devel gcc perl make
でGuest Additionsのビルドに必要なパッケージを手動で入れておくと、
vagrant-vbguestでのGuest Additionsの更新に関しては正常に行えるようになるかと
from vccw.
sudo yum install -y kernel-devel gcc perl make
vagrant-vbguestがインストールされていることは前提にしてないのですが、これいいですね。
追加しておきます。
from vccw.
👍
from vccw.
I had update vccw.
I am hoping it would be solved.
https://github.com/miya0001/vccw/releases/tag/1.9.5
from vccw.
すでに対応が完了されcloseしているissuesに対して亀レス失礼いたしますが、
dotless-de/vagrant-vbguest#141
こちらで議論されている内容と関連していると考えられます。
まだ141番のissuesは解決していないようなので、解決するとVagrantfileにpre-installed boxがいらなくなるかもしれないですね。
from vccw.
Related Issues (20)
- Can't load images or any file from http://vccw.test I have to Type http://192.168.33.10/ in the browser to load the page HOT 2
- How to enable xdebug with fresh phpstorm install?
- site.yml doesnt update HOT 1
- When provisioning, database gets reset to default, which drops new imported database
- Images not being uploaded
- How do I enable a multisite?
- Mailcatcher is not working HOT 9
- Mailcatcher does not work with accents
- site.yml ignored HOT 2
- Can't write to error/debug log HOT 1
- [feature request] backup databases after vm shutdown
- How to upgrade to PHP 7.3? HOT 2
- VBoxManage Error at "vccw.test: Booting VM" stage
- Database connection
- Disk/Partition size increases 'strangely' over time HOT 1
- The mailcatcher can't receive mail when sending multi-byte characters.
- PHP Fatal error: Uncaught PharException: phar SHA1 signature could not be verified: broken signature
- VCCW with 'vagrant up' or 'vagrant up --provision' do not work on a Mac HOT 1
- Updating to php7.4: composer fails to install
- Error installing mailcatcher
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vccw.