Giter Site home page Giter Site logo

Comments (22)

miya0001 avatar miya0001 commented on June 13, 2024

以下のコマンドで vagrant-vbguest というプラグインをインストールして、そのあとで vagrant up したらどうでしょう?

vagrant plugin install vagrant-vbguest

https://github.com/dotless-de/vagrant-vbguest

from vccw.

xDae avatar xDae commented on June 13, 2024

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.

masterkey1009 avatar masterkey1009 commented on June 13, 2024

vagrant-vbguesというプラグインを入れてみましたが、上記の方と同じエラーメッセージが出てしまいます。

from vccw.

miya0001 avatar miya0001 commented on June 13, 2024

んー、実は複数の人に検証をお願いしたんですが、僕も含めて全く同じ環境で動いたんですよね。

エラーは、guest additionsが適切にインストールされていないという内容っぽいので、上述のプラグインをインストールすれば解消するかと思ったのですが。。。

お役に立てずすいません。もし何か新しいことがわかったらご教示ください。

from vccw.

miya0001 avatar miya0001 commented on June 13, 2024

@xDae @masterkey1009

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.

miya0001 avatar miya0001 commented on June 13, 2024

I found it too.

hashicorp/vagrant#4756

from vccw.

xDae avatar xDae commented on June 13, 2024

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.

miya0001 avatar miya0001 commented on June 13, 2024

@xDae

May I have your Vagrantfile?
Please copy and paste it here.

from vccw.

miya0001 avatar miya0001 commented on June 13, 2024

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.

xDae avatar xDae commented on June 13, 2024

@miya0001 Im going to try, I think I also have tried with centos-6.5-i386

I will post the result ;)

from vccw.

miya0001 avatar miya0001 commented on June 13, 2024

Wow one more information.
Please uninstall vagrant-vbguest plugin.
Sorry. ;)

vagrant plugin uninstall vagrant-vbguest

from vccw.

xDae avatar xDae commented on June 13, 2024

yes, its seems a problem from vagrant-vbguest
now start to provisioning without shared folder errors

from vccw.

miya0001 avatar miya0001 commented on June 13, 2024

Great! 👍

from vccw.

xDae avatar xDae commented on June 13, 2024

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.

miya0001 avatar miya0001 commented on June 13, 2024

Sounds good. Thanks!

from vccw.

wate avatar wate commented on June 13, 2024

ちょっと気になったんで、コメントを残しておきます

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.

miya0001 avatar miya0001 commented on June 13, 2024

なるほどー。でも6.6って64bitですよね?
chef/centos-6.6-i385が使えるならいいんですが、64bit版はWindows環境で動かないケースが多いようなんですよね。

from vccw.

wate avatar wate commented on June 13, 2024

64bitですねー。
一応、僕の仕事で使ってる環境(Win7 32Bit)では問題なく動いてますねー。
まぁ、ここら辺は他の利用者のこともあるんで、とりあえず参考意見ってことなんで、
判断に関してはお任せってことでー

あと、余談ですが、
CentOSの場合、vagrant-vbguest使ってGuest Additionsを更新するときに、
kernel-develgccperlmakeをインストールするんですけど、
インストールパッケージの設定のときに、
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.

miya0001 avatar miya0001 commented on June 13, 2024
sudo yum install -y kernel-devel gcc perl make

vagrant-vbguestがインストールされていることは前提にしてないのですが、これいいですね。
追加しておきます。

from vccw.

wate avatar wate commented on June 13, 2024

👍

from vccw.

miya0001 avatar miya0001 commented on June 13, 2024

@everybody

I had update vccw.
I am hoping it would be solved.

https://github.com/miya0001/vccw/releases/tag/1.9.5

from vccw.

kimikimi714 avatar kimikimi714 commented on June 13, 2024

すでに対応が完了されcloseしているissuesに対して亀レス失礼いたしますが、

dotless-de/vagrant-vbguest#141

こちらで議論されている内容と関連していると考えられます。
まだ141番のissuesは解決していないようなので、解決するとVagrantfileにpre-installed boxがいらなくなるかもしれないですね。

from vccw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.