Macbook에서 VirtualBox + Vagrant를 사용하고 있습니다. Vagrant를 위해 나는 VagrantPress (vagrantpress.org에서)를 다운로드했다. VagrantPress는 Wordpress와 Puppet 스크립트가있는 Vagrantfile이다. 의도 한대로이 (로컬 호스트에서 워드 프레스 설치보기)를 실행하고, 처음에는방울러에서 로컬 호스트에 연결할 수 없습니다.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "base"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.module_path = "puppet/modules"
puppet.manifest_file = "init.pp"
puppet.options="--verbose --debug"
end
end
하지만 나는 그것이 보관 하위 디렉토리에 설치하고, 시도하면서 작업 할 얻을 : 그것은 다음과 같습니다 우분투를 실행하는 다른 컴퓨터, 나는 전체 설정을 어긴 뭔가를 변경했을 수 있습니다. 크롬에
Bringing machine 'default' up with 'virtualbox' provider...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 80 => 8080 (adapter 1)
[default] Booting VM...
GuestAdditions versions on your host (4.2.18) and guest (4.1.12) do not match.
Reading package lists...
Building dependency tree...
Reading state information...
dkms is already the newest version.
dkms set to manually installed.
linux-headers-3.2.0-54-generic is already the newest version.
linux-headers-3.2.0-54-generic set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
mount: warning: /mnt seems to be mounted read-only.
Installing Virtualbox Guest Additions 4.2.18 - guest version is 4.1.12
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.18 Guest Additions for Linux............
VirtualBox Guest Additions installer
You appear to have a version of the VBoxGuestAdditions software
on your system which was installed from a different source or using a
different type of installer. If you installed it from a package from your
Linux distribution or if it is a default part of the system then we strongly
recommend that you cancel this installation and remove it properly before
installing this version. If this is simply an older or a damaged
installation you may safely proceed.
Do you wish to continue anyway? [yes or no]
Cancelling installation.
An error occurred during installation of VirtualBox Guest Additions 4.2.18. Some functionality may not work as intended.
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] The guest additions on this VM do not match the installed version of
VirtualBox! In most cases this is fine, but in rare cases it can
cause things such as shared folders to not work properly. If you see
shared folder errors, please update the guest additions within the
virtual machine and reload your VM.
Guest Additions Version: 4.1.12
VirtualBox Version: 4.2
[default] Mounting shared folders...
[default] -- /vagrant
[default] -- /tmp/vagrant-puppet/manifests
[default] -- /tmp/vagrant-puppet/modules-0
와 로컬 호스트가 '없음 데이터가 수신되지'라고 내 맥북에 '최대 방랑'을 실행할 때
지금 (잘 실행하는 데 사용하는),이를 참조하십시오. 그 후, 나는 '방랑의 SSH를'및 실행 :
curl 'http://localhost/'
를 얻을 : 지금 일이 문제를 해결하기 위해 노력 해왔다
cURL Error (7): couldn't connect to host ...
. 방랑과 버추얼 박스를 다시 설치하려했지만 작동하지 않았습니다. 또한 Guest Additions를 수동으로 업데이트하려고했지만 (이전에 필요하지는 않았지만) GuestAdditions 4.2.18을 실행 한 후 - 확인했습니다. ' VM을 부팅 한 후에도 localhost에 대해 동일한 오류가 발생합니다. 내가 뭘 잘못하고 있니?