流浪的usbfilter使来宾计算机进入无效状态

米凯尔

基于以下说明:https : //gist.github.com/dergachev/3866825#vagrant-setup

Ubuntu Linaro uname -a Linux ken-desktop 3.11.0-18-generic#32-Ubuntu SMP Tue Feb 18 21:11:14 UTC 2014 x86_64 x86_64 x86_64 GNU / Linux cat / proc /版本Linux版本3.11.0-18-通用(在Toyol上构建)(gcc版本4.8.1(Ubuntu / Linaro 4.8.1-10ubuntu8))#32-Ubuntu SMP Tue Feb 18 21:11:14 UTC 2014

Virtualbox-4.2

VBoxManage --version
4.2.16_Ubuntur86992

流浪者1.5 vagrant_1.5.0_x86_64.deb

在Cookbooks文件夹中,我克隆了以下厨师食谱:

git clone git://github.com/opscode-cookbooks/vim.git
git clone git://github.com/opscode-cookbooks/git.git
git clone git://github.com/opscode-cookbooks/apt.git
git clone git://github.com/tiokksar/chef-oh-my-zsh-solo.git
git clone git://github.com/opscode-cookbooks/openssl.git
git clone git://github.com/getaroom/chef-couchbase.git

我也安装了这个:

https://github.com/dotless-de/vagrant-vbguest
vagrant plugin install vagrant-vbguest

我尝试制作一个很好的Vagrantfile,用USB自动挂载创建一个Precision64 VM。但是每次我尝试在virtualbox VM上添加usbfilter时,都会收到以下消息:

% vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'hashicorp/precise64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'hashicorp/precise64' is up to date...
==> default: Setting the name of the VM: smartofficeVM_default_1395303674511_42792
==> default: The cookbook path '/home/ken/smartofficeVM/databags' doesn't exist. Ignoring...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 3000 => 3000 (adapter 1)
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> 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: vagrant
    default: SSH auth method: private key
    default: Error: Connection refused. Retrying...
    default: Error: Connection refused. Retrying...
    default: Error: Connection refused. Retrying...
    default: Error: Connection refused. Retrying...
    default: Error: Connection refused. Retrying...
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'poweroff' state. Please verify everything is configured
properly and try again.

If the provider you're using has a GUI that comes with it,
it is often helpful to open that and watch the machine, since the
GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run `vagrant up` while the
VirtualBox GUI is open.

我的配置文件如下:

% cat Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  # All Vagrant configuration is done here. The most common configuration
  # options are documented and commented below. For a complete reference,
  # please see the online documentation at vagrantup.com.

  # Every Vagrant virtual environment requires a box to build off of.
  config.vm.box = "hashicorp/precise64"

  # The url from where the 'config.vm.box' box will be fetched if it
  # doesn't already exist on the user's system.
  # config.vm.box_url = "http://domain.com/path/to/above.box"

  # Create a forwarded port mapping which allows access to a specific port
  # within the machine from a port on the host machine. In the example below,
  # accessing "localhost:8080" will access port 80 on the guest machine.
  # config.vm.network "forwarded_port", guest: 80, host: 8080

  # Create a private network, which allows host-only access to the machine
  # using a specific IP.
  # config.vm.network "private_network", ip: "192.168.33.10"

  # Create a public network, which generally matched to bridged network.
  # Bridged networks make the machine appear as another physical device on
  # your network.
  config.vm.network "public_network"

  # If true, then any SSH connections made will enable agent forwarding.
  # Default value: false
  # config.ssh.forward_agent = true

  # Share an additional folder to the guest VM. The first argument is
  # the path on the host to the actual folder. The second argument is
  # the path on the guest to mount the folder. And the optional third
  # argument is a set of non-required options.
  # config.vm.synced_folder "../data", "/vagrant_data"

  # Provider-specific configuration so you can fine-tune various
  # backing providers for Vagrant. These expose provider-specific options.
  # Example for VirtualBox:
  #
  # config.vm.provider "virtualbox" do |vb|
  #   # Don't boot with headless mode
  #   vb.gui = true
  #
  #   # Use VBoxManage to customize the VM. For example to change memory:
  #   vb.customize ["modifyvm", :id, "--memory", "1024"]
  # end
  #
  # View the documentation for the provider you're using for more
  # information on available options.

  # Enable provisioning with Puppet stand alone.  Puppet manifests
  # are contained in a directory path relative to this Vagrantfile.
  # You will need to create the manifests directory and a manifest in
  # the file hashicorp/precise32.pp in the manifests_path directory.
  #
  # An example Puppet manifest to provision the message of the day:
  #
  # # group { "puppet":
  # #   ensure => "present",
  # # }
  # #
  # # File { owner => 0, group => 0, mode => 0644 }
  # #
  # # file { '/etc/motd':
  # #   content => "Welcome to your Vagrant-built virtual machine!
  # #               Managed by Puppet.\n"
  # # }
  #
  # config.vm.provision "puppet" do |puppet|
  #   puppet.manifests_path = "manifests"
  #   puppet.manifest_file  = "site.pp"
  # end

  # Enable provisioning with chef solo, specifying a cookbooks path, roles
  # path, and data_bags path (all relative to this Vagrantfile), and adding
  # some recipes and/or roles.
  #
  config.vm.provision "chef_solo" do |chef|
    chef.cookbooks_path = "cookbooks"
    #chef.roles_path = "../my-recipes/roles"
    chef.data_bags_path = "databags"
    #chef.add_role "web"

    chef.add_recipe "apt"
    chef.add_recipe "zsh"
    chef.add_recipe "chef-oh-my-zsh-solo"
    chef.add_recipe "vim"
    chef.add_recipe "git"
    chef.add_recipe "openssl"
    chef.add_recipe "couchbase::server"

    # setup users (from data_bags/users/*.json)
    # chef.add_recipe "users::sysadmins" # creates users and sysadmin group
    # chef.add_recipe "users"
    # chef.add_recipe "users::sysadmin_sudo" # adds %sysadmin group to sudoers

    # homesick_agent and its dependencies
    # chef.add_recipe "root_ssh_agent::ppid" # maintains agent during 'sudo su root'
    # chef.add_recipe "ssh_known_hosts" 
    # populates /etc/ssh/ssh_known_hosts from data_bags/ssh_known_hosts/*.json

    # You may also specify custom JSON attributes:

    #chef.json = { :users => "admin" }
    chef.json = {
      "couchbase" => {
        "server"=> {
          "password" => "123"
        }
      }
    }


    chef.log_level = :debug
  end

  # Enable provisioning with chef server, specifying the chef server URL,
  # and the path to the validation key (relative to this Vagrantfile).
  #
  # The Opscode Platform uses HTTPS. Substitute your organization for
  # ORGNAME in the URL and validation key.
  #
  # If you have your own Chef Server, use the appropriate URL, which may be
  # HTTP instead of HTTPS depending on your configuration. Also change the
  # validation key to validation.pem.
  #
  # config.vm.provision "chef_client" do |chef|
  #   chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
  #   chef.validation_key_path = "ORGNAME-validator.pem"
  # end
  #
  # If you're using the Opscode platform, your validator client is
  # ORGNAME-validator, replacing ORGNAME with your organization name.
  #
  # If you have your own Chef Server, the default validation client name is
  # chef-validator, unless you changed the configuration.
  #
  #   chef.validation_client_name = "ORGNAME-validator"
end

详细信息是:如果我删除以下几行,则说明启动正常(但没有可用的USB)

vb.customize ["modifyvm", :id, "--usb", "on"]
vb.customize ["modifyvm", :id, "--usbehci", "on"]

编辑

Vlogs文件中的日志

cat VBox.log

VirtualBox VM 4.2.16_Ubuntu r86992 linux.amd64 (Sep 21 2013 11:46:57) release log
00:00:00.033561 Log opened 2014-03-20T08:21:15.686771000Z
00:00:00.033570 OS Product: Linux
00:00:00.033572 OS Release: 3.11.0-18-generic
00:00:00.033575 OS Version: #32-Ubuntu SMP Tue Feb 18 21:11:14 UTC 2014
00:00:00.033610 DMI Product Name:
00:00:00.033624 DMI Product Version:
00:00:00.033756 Host RAM: 3882MB total, 3328MB available
00:00:00.033763 Executable: /usr/lib/virtualbox/VBoxHeadless
00:00:00.033765 Process ID: 10288
00:00:00.033767 Package type: LINUX_64BITS_GENERIC (OSE)
00:00:00.039722 Installed Extension Packs:
00:00:00.039747   VNC (Version: 4.2.16 r86992; VRDE Module: VBoxVNC)
00:00:00.046777 SUP: Loaded VMMR0.r0 (/usr/lib/virtualbox/VMMR0.r0) at 0xffffffffa0518020 - ModuleInit at ffffffffa052e0f0 and ModuleTerm at ffffffffa052e390
00:00:00.046820 SUP: VMMR0EntryEx located at ffffffffa052f510, VMMR0EntryFast at ffffffffa052f240 and VMMR0EntryInt at ffffffffa052f230
00:00:00.049809 OS type: 'Ubuntu_64'
00:00:00.073143 File system of '/home/ken/VirtualBox VMs/smartofficeVM_default_1395303674511_42792/Snapshots' (snapshots) is unknown
00:00:00.073166 File system of '/home/ken/VirtualBox VMs/smartofficeVM_default_1395303674511_42792/box-disk1.vmdk' is ext4
00:00:00.091096 VMSetError: /build/buildd/virtualbox-4.2.16-dfsg/src/VBox/Main/src-client/ConsoleImpl2.cpp(2300) int Console::configConstructorInner(PVM, util::AutoWriteLock*); rc=VERR_NOT_FOUND
00:00:00.091111 VMSetError: Implementation of the USB 2.0 controller not found!
00:00:00.091113 Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started. To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in the VM settings
00:00:00.217513 ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={db7ab4ca-2a3f-4183-9243-c1208da92392} aComponent={Console} aText={Implementation of the USB 2.0 controller not found!
00:00:00.217535 Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started. To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in the VM settings (VERR_NOT_FOUND)}, preserve=false
00:00:00.224473 Power up failed (vrc=VERR_NOT_FOUND, rc=NS_ERROR_FAILURE (0X80004005))

VAGRANT =调试无用的日志

http://pastebin.com/2GMhmy9T

有人对此主题有专业知识吗?非常感谢你。

解决方案:我虽然已经安装了...阅读时:00:00:00.039722已安装的扩展包:00:00:00.039747 VNC(版本:4.2.16 r86992; VRDE模块:VBoxVNC)但实际上我必须安装主机上的扩展访客包。这有点令人困惑。非常感谢你。您可以添加一个正确的答案,我将对其进行验证。

艾蜜儿

VBox日志中的以下行:

00:00:00.217535 Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started. To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in the VM settings (VERR_NOT_FOUND)}, preserve=false

突出显示您必须安装VirtualBox Extension Pack才能解决此问题。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

流浪的Laravel框,访客计算机进入无效状态

来自分类Dev

无头Ubuntu中的Vagrant Up错误:来宾计算机在等待启动时进入无效状态

来自分类Dev

Sleep(x)使计算机进入睡眠状态

来自分类Dev

键盘上的“睡眠”按钮使计算机进入休眠状态

来自分类Dev

键盘上的“睡眠”按钮使计算机进入休眠状态

来自分类Dev

计算机关闭而不是进入睡眠状态

来自分类Dev

当我告诉计算机进入睡眠状态时,计算机进入休眠状态

来自分类Dev

在VirtualBox上启动来宾计算机时出现错误“ WinVerifyTrust失败,hrc =未知状态”

来自分类Dev

每当计算机意外唤醒时,如何使用.bat文件使计算机再次进入睡眠状态?

来自分类Dev

使计算机进入睡眠状态(不是休眠状态)的命令是什么?

来自分类Dev

VirtualBox-如何在没有桥接网络的情况下进入来宾计算机上的LAN?

来自分类Dev

SSH进入双启动计算机

来自分类Dev

进入计算机以访问Internet

来自分类Dev

如何防止计算机自动进入睡眠和/或休眠状态?

来自分类Dev

如何使Windows 10计算机使用python脚本进入睡眠状态?

来自分类Dev

如何防止计算机自动进入睡眠和/或休眠状态?

来自分类Dev

使用全盘加密将计算机锁定或进入睡眠状态是否安全?

来自分类Dev

为什么我的计算机不会自动进入睡眠状态?

来自分类Dev

当计算机进入休眠状态时,交换数据将如何处理?

来自分类Dev

USB手机充电完成后,使计算机进入睡眠状态

来自分类Dev

一段时间后计算机进入休眠状态,如何禁用?

来自分类Dev

计算机进入睡眠状态后仅发出“磁盘未正确弹出”警报

来自分类Dev

当VMWare Fusion中运行VM时如何防止OSX使计算机进入睡眠状态

来自分类Dev

如何从命令提示符/运行菜单使计算机进入睡眠状态?

来自分类Dev

我的计算机进入睡眠状态后,C#秒表是否会暂停?

来自分类Dev

使用CMD使计算机在xx分钟后进入睡眠状态

来自分类Dev

流浪汉-创建Windows计算机并运行exe

来自分类Dev

VLC是否保持计算机处于活动状态,并防止其进入睡眠状态或显示屏幕保护程序?

来自分类Dev

Windows 7:防止来宾关闭计算机

Related 相关文章

  1. 1

    流浪的Laravel框,访客计算机进入无效状态

  2. 2

    无头Ubuntu中的Vagrant Up错误:来宾计算机在等待启动时进入无效状态

  3. 3

    Sleep(x)使计算机进入睡眠状态

  4. 4

    键盘上的“睡眠”按钮使计算机进入休眠状态

  5. 5

    键盘上的“睡眠”按钮使计算机进入休眠状态

  6. 6

    计算机关闭而不是进入睡眠状态

  7. 7

    当我告诉计算机进入睡眠状态时,计算机进入休眠状态

  8. 8

    在VirtualBox上启动来宾计算机时出现错误“ WinVerifyTrust失败,hrc =未知状态”

  9. 9

    每当计算机意外唤醒时,如何使用.bat文件使计算机再次进入睡眠状态?

  10. 10

    使计算机进入睡眠状态(不是休眠状态)的命令是什么?

  11. 11

    VirtualBox-如何在没有桥接网络的情况下进入来宾计算机上的LAN?

  12. 12

    SSH进入双启动计算机

  13. 13

    进入计算机以访问Internet

  14. 14

    如何防止计算机自动进入睡眠和/或休眠状态?

  15. 15

    如何使Windows 10计算机使用python脚本进入睡眠状态?

  16. 16

    如何防止计算机自动进入睡眠和/或休眠状态?

  17. 17

    使用全盘加密将计算机锁定或进入睡眠状态是否安全?

  18. 18

    为什么我的计算机不会自动进入睡眠状态?

  19. 19

    当计算机进入休眠状态时,交换数据将如何处理?

  20. 20

    USB手机充电完成后,使计算机进入睡眠状态

  21. 21

    一段时间后计算机进入休眠状态,如何禁用?

  22. 22

    计算机进入睡眠状态后仅发出“磁盘未正确弹出”警报

  23. 23

    当VMWare Fusion中运行VM时如何防止OSX使计算机进入睡眠状态

  24. 24

    如何从命令提示符/运行菜单使计算机进入睡眠状态?

  25. 25

    我的计算机进入睡眠状态后,C#秒表是否会暂停?

  26. 26

    使用CMD使计算机在xx分钟后进入睡眠状态

  27. 27

    流浪汉-创建Windows计算机并运行exe

  28. 28

    VLC是否保持计算机处于活动状态,并防止其进入睡眠状态或显示屏幕保护程序?

  29. 29

    Windows 7:防止来宾关闭计算机

热门标签

归档