Vagrant无法使用Parallals启动 - 主机操作系统管理员错误

时间:2015-01-06 22:41:47

标签: virtual-machine vagrant parallels puphpet

要点:

我正在尝试使用Parallels as a Virtual Machine提供程序时启动并运行Vagrant。

我做了什么:

  1. 我下载并安装了Vagrant(OS X版本)。
  2. 我将以下config.yaml文件上传到puphpet.com,该文件已设置用于我们网站的开发。 (见下文)。
  3. 我跑了vagrant up,它花了几分钟时间工作并将状态记录到终端。
  4. 它因错误而停止:
  5.   

    命令执行时出错。命令和stderr如下所示。

         

    命令:[" prlctl","克隆"," packer-parallels-iso"," - 名称",&# 34;封隔器的相似之处-iso_1420581521788_27867"]

         Stderr:
      无法克隆VM:操作失败。要执行此操作,您必须输入主机操作系统管理员的凭据。

    以下是我使用的config.yaml(其中ourwebsite是我们正在处理的网站):

    ---
    vagrantfile-local:
        vm:
            box: puphpet/centos65-x64
            box_url: puphpet/centos65-x64
            hostname: ''
            memory: '512'
            cpus: '1'
            chosen_provider: parallels
            network:
                private_network: 192.168.58.101
                forwarded_port:
                    yE0yzJcPFTlS:
                        host: '9233'
                        guest: '22'
            post_up_message: ''
            provider:
                virtualbox:
                    modifyvm:
                        natdnshostresolver1: on
                vmware:
                    numvcpus: 1
                parallels:
                    cpus: 1
            provision:
                puppet:
                    manifests_path: puphpet/puppet
                    manifest_file: site.pp
                    module_path: puphpet/puppet/modules
                    options:
                        - '--verbose'
                        - '--hiera_config /vagrant/puphpet/puppet/hiera.yaml'
                        - '--parser future'
            synced_folder:
                yzkPrGht93ro:
                    owner: ''
                    group: ''
                    source: ../
                    target: /var/www/sites/www.ourwebsite.com/
                    sync_type: nfs
                    rsync:
                        auto: 'false'
            usable_port_range:
                start: 10200
                stop: 10500
        ssh:
            host: null
            port: null
            private_key_path: null
            username: vagrant
            guest_port: null
            keep_alive: true
            forward_agent: false
            forward_x11: false
            shell: 'bash -l'
        vagrant:
            host: detect
    server:
        install: '1'
        packages:
            - ImageMagick
            - vim-common
            - php-soap
    users_groups:
        install: '1'
        groups: {  }
        users: {  }
    cron:
        install: '1'
        jobs: {  }
    firewall:
        install: '1'
        rules: null
    apache:
        install: '1'
        settings:
            user: www-data
            group: www-data
            default_vhost: true
            manage_user: false
            manage_group: false
            sendfile: 0
        modules:
            - rewrite
        vhosts:
            ch8onl5p0ias:
                servername: ourwebsite.mag
                serveraliases:
                    - www.awesome.dev
                docroot: /var/www/sites/www.ourwebsite.com/base/
                port: '80'
                setenv:
                    - 'APP_ENV dev'
                directories:
                    wpd0snz5xtxt:
                        provider: directory
                        path: /var/www/sites/www.ourwebsite.com/base/
                        options:
                            - Indexes
                            - FollowSymlinks
                            - MultiViews
                        allow_override:
                            - All
                        require:
                            - all
                            - granted
                        custom_fragment: ''
                engine: php
                custom_fragment: ''
                ssl_cert: ''
                ssl_key: ''
                ssl_chain: ''
                ssl_certs_dir: ''
        mod_pagespeed: 0
    nginx:
        install: '0'
        settings:
            default_vhost: 1
            proxy_buffer_size: 128k
            proxy_buffers: '4 256k'
        upstreams: {  }
        vhosts:
            89celicdwbdc:
                proxy: ''
                server_name: awesome.dev
                server_aliases:
                    - www.awesome.dev
                www_root: /var/www/awesome.dev
                listen_port: '80'
                location: .php$
                index_files:
                    - index.html
                    - index.htm
                    - index.php
                envvars:
                    - 'APP_ENV dev'
                engine: php
                client_max_body_size: 1m
                ssl_cert: ''
                ssl_key: ''
    php:
        install: '1'
        version: '55'
        composer: '1'
        composer_home: ''
        modules:
            php:
                - cli
                - intl
                - mcrypt
            pear: {  }
            pecl:
                - pecl_http
                - imagick
        ini:
            display_errors: On
            error_reporting: '-1'
            session.save_path: /var/lib/php/session
        timezone: America/Chicago
        mod_php: 0
    hhvm:
        install: '0'
        nightly: 0
        composer: '1'
        composer_home: ''
        settings:
            host: '0'
            port: '0'
        ini: {  }
        timezone: null
    xdebug:
        install: '1'
        settings:
            xdebug.default_enable: '1'
            xdebug.remote_autostart: '0'
            xdebug.remote_connect_back: '1'
            xdebug.remote_enable: '1'
            xdebug.remote_handler: dbgp
            xdebug.remote_port: '9000'
    xhprof:
        install: '0'
    wpcli:
        install: '0'
        version: ''
    drush:
        install: '0'
        version: ''
    ruby:
        install: '1'
        versions: {  }
    nodejs:
        install: '0'
        npm_packages: {  }
    python:
        install: '1'
        packages: {  }
        versions: {  }
    mysql:
        install: '1'
        override_options: {  }
        root_password: root
        adminer: 0
        databases:
            GSs7e7BZdo0r:
                grant:
                    - ALL
                name: ourwebsite
                host: localhost
                user: our_site
                password: thepassword
                sql_file: ../databases/output.sql
    postgresql:
        install: '0'
        settings:
            root_password: '123'
            user_group: postgres
            encoding: UTF8
            version: '9.3'
        databases: {  }
        adminer: 0
    mariadb:
        install: '0'
        override_options: {  }
        root_password: '123'
        adminer: 0
        databases: {  }
        version: '10.0'
    sqlite:
        install: '0'
        adminer: 0
        databases: {  }
    mongodb:
        install: '0'
        settings:
            auth: 1
            port: '27017'
        databases: {  }
    redis:
        install: '1'
        settings:
            conf_port: '6379'
    mailcatcher:
        install: '0'
        settings:
            smtp_ip: 0.0.0.0
            smtp_port: 1025
            http_ip: 0.0.0.0
            http_port: '1080'
            mailcatcher_path: /usr/local/rvm/wrappers/default
            from_email_method: inline
    beanstalkd:
        install: '0'
        settings:
            listenaddress: 0.0.0.0
            listenport: '13000'
            maxjobsize: '65535'
            maxconnections: '1024'
            binlogdir: /var/lib/beanstalkd/binlog
            binlogfsync: null
            binlogsize: '10485760'
        beanstalk_console: 0
        binlogdir: /var/lib/beanstalkd/binlog
    rabbitmq:
        install: '0'
        settings:
            port: '5672'
    elastic_search:
        install: '0'
        settings:
            version: ''
            java_install: true
    solr:
        install: '0'
        settings:
            version: ''
            port: ''
    

    后果:

    我做了很多搜索,但这似乎不是一个非常常见的问题。 issue came up,但应该用Parallels 10(我已经证实我有)和Vagrant 1.7.1(我已经证实我有)解决了。我还确保所有设置都未经过检查。

    我试过了:

    • 取消/重新安装Vagrant
    • 取消/重新安装Parallels 10
    • sudo vagrant up之类的
    • 重新启动
    • 很多挖掘。

    任何时候我运行vagrant up的情况与我所描述的情况类似,它几乎会在这两行之后立即给出一条确切的错误消息:

      

    带机器'默认'与'平行'供应商...
      ==>默认:导入基本框' puphpet / centos65-x64' ...

    我一直无法找到解决问题的方法。

    问题:

    根据我提供的详细信息,是我的Vagrant配置文件的问题,还是Parallels的问题?有没有办法获得更可人的可读错误信息?显然,我更乐意提供主机操作系统管理员的凭据",但我知道如何这样做。

    - 作为旁注,我是Vagrant的新手。

1 个答案:

答案 0 :(得分:1)

This github issue comment可能有解决方案 - 在Parallels Desktop下 - >设置 - >高级你可能有一些方框,应该是“要求密码:”部分。

作为旁注,这似乎是vagrant-parallels插件的一个问题,你可能有更好的机会收到他们的回复,因为他们是一个商业实体。