방랑 버전 1.6.3vboxsf 오류 소유자, 그룹을 전달하고 옵션을 장착하는 경우는
가상 상자를 매개 변수 4.3.12
VBoxGuestAdditions-4.3.2
호스트 OS -> 윈도우 8
게스트 OS -> CentOS 6.5
Vagrentfile
의 내용 일 때 Vagrant synced_folder가 제대로 작동합니다.config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder ".", "/var/www"
그러나 synced_folder (/ var/www)에서 파일 또는 디렉토리의 권한을 변경할 수 없습니다. https://github.com/mitchellh/vagrant/issues/897
내가 Vagrentfile의 변화를 다음 만들어이 문제를 해결하기 위해 https://serverfault.com/questions/398414/vagrant-set-default-share-permissions
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder ".", "/var/www",
:owner=> 'shiva',
:group=> 'shiva',
:mount_options=> ['dmode=>777', 'fmode=>666']
('시바는'내가 만든 사용자이고, 나는 기본 사용자 '방랑'를 삭제) 이제 문제는 내가 막연한 일을하려고 할 때입니다.이 오류를 보여줍니다.
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: shiva
default: SSH auth method: password
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
default: /var/www => C:/Users/Shiva/CentOSDevEnv_v1_1
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 shiva`,gid=`getent group shiva | cut -d: -
f3`,dmode=>777,fmode=>666 var_www /var/www
mount -t vboxsf -o uid=`id -u shiva`,gid=`id -g shiva`,dmode=>777,fmode=
>666 var_www /var/www
이 링크를 이미 지나치 셨습니다. https://github.com/mitchellh/vagrant/issues/3341
루비 구문 (Vagrantfile 구문)을 모르겠습니다. 나는 정말로 여기에 붙어있어, 제발 도와주세요.