環境
[ホストマシン]
Windows 7 Professional 64bit
[ゲストマシン]
CentOS 6.6 Basic Server 64bit
[仮想環境]
VirtualBox 4.3.30
[git]
git 2.4.6
困っていること
VirtualBox(CentOS)でホストWindows との共有フォルダ内にてgit init を行うと、下記エラーが出る。
shell
1$ git init 2error: could not commit config file /home/user/shared_dir/my_app/.git/config 3error: could not commit config file /home/user/shared_dir/my_app/.git/config 4error: could not commit config file /home/user/shared_dir/my_app/.git/config 5error: could not commit config file /home/user/shared_dir/my_app/.git/config 6error: could not commit config file /home/user/shared_dir/my_app/.git/config 7Initialized empty Git repository in /home/user/shared_dir/my_app/.git/
やったこと・確認したこと
- ホストとゲスト間で共有フォルダを作成。(VBoxGuestAdditions for 4.3.30使用)
- ユーザーはusermod -aG vboxsf user 済み。
- ファイルおよびディレクトリの作成、変更、削除、移動は問題なく出来る。
- 共有フォルダ外であれば問題なくgit init できる
- 共有フォルダのマウントは/etc/rc.local にて下記
shell
1# uid=500(user) gid=500(user) 所属グループ=500(user),10(wheel),498(vboxsf) 2mount -t vboxsf -o uid=500,gid=500,dmode=0777,fmode=0777 shared_dir /home/user/shared_dir
- 手動マウントでも結果は同じ。
- gid を498(vboxsf) にしても結果は同じ。
もー、あとは何をどうしたら良いのか...。orz
どなたかご助言頂ければ有り難いです。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。