盒子关机后流浪汉

时间:2014-07-11 04:07:57

标签: vagrant virtualbox vbox

我的流浪汉和虚拟盒子有问题。 在第一次流浪和提供时,盒子正在工作。但是在我试图关闭盒子并再次运行流浪之后,就出现了这个错误

johnmarlo@mac-mini:/var/www/project/loft/contents [master]$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Clearing any previously set forwarded ports...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["modifyvm", "593e3357-2f79-4d9a-9508-bec4c29cc9fb", "--natpf1", "delete", "ssh"]

Stderr: VBoxManage: error: Runtime error opening '/Users/johnmarlo/VirtualBox VMs/[PJT] Loft-VM/[PJT] Loft-VM.vbox-tmp' for reading: -102 (File not found.).
VBoxManage: error: /Users/vbox/tinderbox/4.2-mac-rel/src/VBox/Main/src-server/MachineImpl.cpp[9685] (nsresult Machine::saveSettings(bool*, int))
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component SessionMachine, interface IMachine, callee nsISupports
VBoxManage: error: Context: "SaveSettings()" at line 2527 of file VBoxManageModifyVM.cpp

有人遇到过这个吗?以及如何解决这个问题?感谢您的任何回复m(_ _)m

这是我的Vagrant文​​件

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
    config.vm.box = "debian-wheezy71-x64-vbox43"
    config.vm.box_url = "https://s3-eu-west-1.amazonaws.com/ffuenf-vagrant-boxes/debian/debian-7.1.0-amd64.box"
    config.vm.network :private_network, ip: "192.168.92.68"
    config.vm.hostname = "loft-vm"
    config.vm.synced_folder "server/", "/var/www/project/loft/contents/", owner: "vagrant", group: "vagrant"
    config.vm.provider :virtualbox do |vb|
        vb.name = "[PJT] Loft-VM"
        vb.gui = false
        vb.customize ["modifyvm", :id, "--memory", "512"]
    end

    config.vm.provision :shell, path: "cookbook/manifest/bootstrap.sh"
    config.vm.provision :puppet do |puppet|
        puppet.module_path = "cookbook/modules"
        puppet.manifests_path = "cookbook/manifest"
        puppet.manifest_file = "core.pp"
    end
end

1 个答案:

答案 0 :(得分:1)

vb.name(Virtualbox名称)的值用于构造框的路径。此字符串的值必须是文件系统友好的。在您的情况下,我认为[会导致问题。