我尝试使用USB设备但没有成功.它似乎没有被Virtualbox本身检测到,因为如果我从Virtualbox家中选择来宾(我使用的是Windows XP 3来宾),请选择设置 - > USB - >从设备添加过滤器,不列出任何设备,甚至如果我的Lubuntu 13.10连接并识别USB笔.如果我运行访客,如果我连接设备没有任何反应,如上所述,在设备 - > USB设备中没有检测到USB设备
我安装了Extensions包和Guest添加,因此它应该可以工作.请帮忙!我正在使用Virtualbox 4.2.16.
我正在使用Vagrant在Windows中启动VirtualBox VM.在其他平台上,我可以
$ vagrant ssh
Run Code Online (Sandbox Code Playgroud)
连接到VM.
如何在Windows中连接到此Vagrant框?
在Vagrant文档中建议使用PuTTy的方式也不起作用:
http://docs-v1.vagrantup.com/v1/docs/getting-started/ssh.html
我将Windows 10升级到昨天的最后一次更新,现在,当我启动 vagrant up
命令时出现此错误:
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
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 …
Run Code Online (Sandbox Code Playgroud) 这是我的设置:
- Host: Windows XP
- Guest: Ubuntu 10.04
- Networking: NAT
Run Code Online (Sandbox Code Playgroud)
我在Guest上设置了一个Apache Web服务器,但我希望能够在Windows机器上执行此操作:
- go to the browser, type http://localhost:8000
Run Code Online (Sandbox Code Playgroud)
此外,我试图改变我的网络桥接,我得到了一个新的IP.但是,当我尝试做http://:8000时,它说它无法连接.
我正在使用VirtualBox将OS X作为主机,并在来宾VM上使用CentOS.
在OS XI创建的文件夹中myfolder
,将其作为共享文件夹添加到VM,打开VM,在CentOS创建的文件夹中/home/user/myfolder
键入:
sudo mount -t vboxsf myfolder /home/user/myfolder
Run Code Online (Sandbox Code Playgroud)
并有输出:
/sbin/mount.vboxsf: mounting failed with the error: No such device
Run Code Online (Sandbox Code Playgroud)
我做错了什么?
更新:
Guest Additions
安装.
我公司的开发环境基于VirtualBox上运行的虚拟机.我们希望更进一步,并使用Vagrant的功能在文本文件中获得机器的描述,然后能够基于该文本文件"提升"该机器.结合木偶,这将解决每个人在VM中安装不同软件版本的问题.
然而,Vagrant似乎非常专注于在主机上开发,让机器在后台运行.我们需要在机器中拥有我们的开发环境,因此我们需要一个完整的GUI,因此当输入"vagrant up"时,应该出现具有完整桌面环境(XFCE,KDE ...)的机器.
到目前为止,我已经设法从Xubuntu发行版中创建了一个"基础"框.但是当我键入"vagrant up"时,虽然桌面出现了,并且我能够正确登录,但Vagrant会在"等待机器启动时消息"中冻结.这可能需要几分钟......".过了一会儿,Vagrant因超时而崩溃.因此,不会创建共享文件夹,也不会执行包配置程序-puppet-.
如何使用vagrant创建具有完整GUI的虚拟机?
ssh身份验证的问题:
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: bridged
==> default: Forwarding ports...
default: 22 => 2222 (adapter 1)
==> 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 timeout. Retrying...
default: …
Run Code Online (Sandbox Code Playgroud) 我创建了一个虚拟磁盘文件VM_1_Ubuntu.vdi.然后我把它移到另一个文件夹中.我尝试更新VM设置(右键单击虚拟机 - >设置 - >存储 - >控制器SATA选项卡,VM_1_Ubuntu.vdi路径).我想设置一条新路.
它说无法注册已经存在的硬盘
不知怎的,我的Vagrant项目已经解除了与VirtualBox虚拟机的关联,所以当我vagrant up
Vagrant将导入基础框并创建一个新的虚拟机时.
有没有办法将Vagrant项目与现有VM重新关联?Vagrant如何在内部将Vagrantfile与VirtualBox VM目录相关联?
可以有用,我发现了这个错误.常见的解决方案是重新安装virtualbox,但有更好的方法.
解
sudo /Library/StartupItems/VirtualBox/VirtualBox restart
Run Code Online (Sandbox Code Playgroud)
要么
sudo /Library/StartupItems/VirtualBox/VirtualBox start
Run Code Online (Sandbox Code Playgroud)
VirtualBox 4.3+
在最新版本上,文件(/ Library/StartupItems/VirtualBox/VirtualBox)不存在,因此您需要使用以下命令:
sudo launchctl load /Library/LaunchDaemons/org.virtualbox.startup.plist
Run Code Online (Sandbox Code Playgroud)
错误
执行时出错
VBoxManage
,Vagrant用于控制VirtualBox的CLI.命令和stderr如下所示:["hostonlyif","create"]Stderr:0%...进度状态:NS_ERROR_FAILURE VBoxManage:错误:无法创建仅限主机的适配器VBoxManage:错误:VBoxNetAdpCtl:添加新接口时出错:无法打开/ dev/vboxnetctl:没有此类文件或目录
VBoxManage:错误:详细信息:代码NS_ERROR_FAILURE(0x80004005),组件HostNetworkInterface,接口IHostNetworkInterface VBoxManage:错误:上下文:文件VBoxManageHostonly.cpp第68行的"int handleCreate(HandlerArg*,int,int*)"
关于错误的Vagrant Git问题:https://github.com/mitchellh/vagrant/issues/1671#issuecomment-22304107
virtualbox ×10
vagrant ×6
ssh ×2
centos ×1
desktop ×1
macos ×1
private-key ×1
usb ×1
vagrantfile ×1
windows ×1
windows-10 ×1