Vagrant 如何启动packer构建的本地VM?

Vagrant 如何启动packer构建的本地VM?,vagrant,virtual-machine,packer,Vagrant,Virtual Machine,Packer,我是帕克的新手。 首先,我试着建立一个系统:它运行良好。但是,当我想通过vagrant up将其罪恶化时,我会得到以下错误: Vagrant environment or target machine is required to run this command. Run `vagrant init` to create a new Vagrant environment. Or, get an ID of a target machine from `vagrant global-statu

我是帕克的新手。 首先,我试着建立一个系统:它运行良好。但是,当我想通过
vagrant up
将其罪恶化时,我会得到以下错误:

Vagrant environment or target machine is required to run this
command. Run `vagrant init` to create a new Vagrant environment. Or,
get an ID of a target machine from `vagrant global-status` to run
this command on. A final option is to change to a directory with a
Vagrantfile and to try again.
调用
vagrant init
后,将创建一个类似于默认配置文件的配置文件。但仍然存在一些错误:

Bringing machine 'default' up with 'parallels' provider...
==> default: Box 'base' could not be found. Attempting to find and install...
    default: Box Provider: parallels
    default: Box Version: >= 0
==> default: Adding box 'base' (v0) for provider: parallels
    default: Downloading: base
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Couldn't open file /Downloads/packer-templates-develop/ubuntu-14.04/base
如何在本地启动我的打包机生成的VM? 手动跟踪文件的唯一解决方案是什么

编辑: 如果我调用
vagrant init myNewlyCreatedBox.box
然后vagrant也会尝试启动VM,但是

Failed to mount folders in Linux guest. This is usually because
the "prl_fs" file system is not available. Please verify that
Parallels Tools are properly installed in the guest and
can work properly. If so, the VM reboot can solve a problem.
The command attempted was:

mount -t prl_fs -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` vagrant /vagrant
mount -t prl_fs -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant /vagrant

这些模板将为您生成一个漫游框。如果该过程成功完成,您应该拥有
ubuntu-14-04-x64-virtualbox.box
ubuntu-14-04-x64-vmware.box
文件,该文件由
template.json
文件指定。要在Vagrant中使用这些新创建的框,您需要将对应于特定虚拟机监控程序的框添加到Vagrant通过以下方式了解的框列表中:

vagrant box add

比如说

vagrant box添加ubuntu-14-04-x64 ubuntu-14-04-x64-virtualbox.box

然后,要创建该框的实例(VM),只需创建一个针对刚导入的新框的Vagrant文件:

vagrant init ubuntu-14-04-x64

然后根据基本框启动虚拟机:

vagrant up