Tag: virtualbox

如何更改虚拟框中的UUID

我尝试使用已有的硬盘在虚拟盒子中创build一个新的虚拟机,但是当我尝试select现有的硬盘文件(一个.vhd文件)时,会显示虚拟硬盘无法使用的错误, UUID已经存在。 所以我试了命令: VBoxManage internalcommands sethduuid /home/user/VirtualBox VMs/drupal/drupal.vhd 更改.vhd文件的UUID。 但是,然后我得到这个错误: sethduuid <filepath> [<uuid>] Assigns a new UUID to the given image file. This way, multiple copies of a container can be registered. WARNING: This is a development tool and shall only be used to analyse problems. It is completely unsupported and will change in incompatible […]

如何连接到VirtualBox Vagrant内的Mysql服务器?

我用Vagrant装了一个新的VirtualBox机器,在那个VM里面安装了Mysql Server。 如何连接到vm外的服务器? 我已经转发Vagrantfile的端口3306,但是当我尝试连接到mysql服务器时,它的resposts错误:'读取初始通信数据包' ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0

stream浪汉没有启动。 创build虚拟机的用户与当前用户不匹配

我试图启动我的stream浪机,所以我导航到我的vagrantfile所在的文件夹,并使用: stream浪和&stream浪ssh 但我收到以下错误信息: VirtualBox虚拟机是使用与当前运行Vagrant的用户不匹配的用户创build的。 VirtualBox要求使用相同的用户来pipe理创build的虚拟机。 请与该用户重新运行stream浪汉。 这不是一个stream浪者问题。 用于创buildVM的UID为:0您的UID为:501 我也尝试与sudo,但是也没有工作。 我需要切换UID吗? 而我将如何做到这一点?

如何使用“stream浪ssh”ssh代理转发?

我不想在stream浪盒子上创build一个新的SSH密钥对,而是想通过代理转发来重新使用我的主机上的密钥对。 我已经尝试在Vagrantfile中将config.ssh.forward_agent设置为TRUE,然后重新启动VM,然后尝试使用: vagrant ssh — -A …但是当我尝试做一个git checkout时,我仍然被提示input密码。 任何想法我失踪?

stream浪失败,/ dev / vboxnetctl:没有这样的文件或目录

可以有用,我发现这个错误。 常见的解决scheme是重新安装virtualbox,但有一个更好的方法。 解 sudo /Library/StartupItems/VirtualBox/VirtualBox restart 要么 sudo /Library/StartupItems/VirtualBox/VirtualBox start VirtualBox 4.3+ 在最近版本中,文件(/ Library / StartupItems / VirtualBox / VirtualBox)不存在,因此您需要使用以下命令: sudo launchctl load /Library/LaunchDaemons/org.virtualbox.startup.plist 错误 打印: http : //d.pr/i/1Bvi 执行VBoxManage时出现错误, VBoxManage是由Vagrant用于控制VirtualBox的CLI。 命令和stderr如下所示命令:[“hostonlyif”,“create”] Stderr:0%…进度状态:NS_ERROR_FAILURE VBoxManage:错误:无法创build主机专用适配器VBoxManage:错误:VBoxNetAdpCtl:添加新接口时出错:无法打开/ dev / vboxnetctl:没有这样的文件或目录 VBoxManage:错误:详细信息:代码NS_ERROR_FAILURE(0x80004005),组件HostNetworkInterface,接口IHostNetworkInterface VBoxManage:错误:上下文:“int handleCreate(HandlerArg *,int,int *)”VBoxManageHostonly.cpp Vagrant关于错误的Git问题: https : //github.com/mitchellh/vagrant/issues/1671#issuecomment-22304107

使用vagrant在桌面环境中运行虚拟机

我公司的开发环境基于VirtualBox上运行的虚拟机。 我们想进一步移动一下,使用Vagrant的function在机器的文本文件中描述机器,然后根据这个文本文件“提升”机器。 与傀儡相结合,这将解决我们每个人都有不同的软件版本安装在虚拟机的问题。 但是,Vagrant似乎非常专注于在主机上开发,让机器在后台运行。 我们需要在机器中有我们的开发环境,所以我们需要一个完整的GUI,所以当input“vagrant up”时,应该出现一个具有完整桌面环境(XFCE,KDE …)的机器。 到目前为止,我已经设法从一个Xubuntu发行版创build一个“基本”框。 但是当我input“vagrant up”时,虽然桌面出现了,我可以正常login,但Vagrant冻结了“等待机器启动,这可能需要几分钟…”。 经过一段时间的stream浪汉崩溃,由于超时。 所以不会创build共享文件夹,也不会执行包预配器-puppet。 如何使用vagrant来创build一个完整的GUI的虚拟机?

VirtualBox:mount.vboxsf:安装失败,错误:没有这样的设备

我使用OS X的VirtualBox作为宿主虚拟机上的主机和CentOS。 在OS XI创build的文件夹myfolder ,将其作为共享文件夹添加到VM,打开VM,在CentOS创build的文件夹/home/user/myfolderinput: sudo mount -t vboxsf myfolder /home/user/myfolder 并有输出: /sbin/mount.vboxsf: mounting failed with the error: No such device 我做错了什么? 更新: Guest Additions 。

如何将Vagrant项目目录与现有的VirtualBox VM相关联?

不知何故,我的Vagrant项目已经从VirtualBox虚拟机中解脱出来,所以当我vagrant up Vagrant的时候会导入基本框并创build一个新的虚拟机。 有没有办法将Vagrant项目与现有的VM重新关联? Vagrant如何在内部将Vagrantfile与VirtualBox VM目录相关联?

从Guest到Host的Virtualbox“端口转发”

这是我的设置: – Host: Windows XP – Guest: Ubuntu 10.04 – Networking: NAT 我在Guest上设置了一个Apache Web服务器,但我希望能够在Windows机器上执行此操作: – go to the browser, type http://localhost:8000 此外,我试图改变我的networking桥梁,我有一个新的IP。 但是,当我试图做http://:8000,它说,它不能连接。

stream浪SSHauthentication失败

与SSHauthentication的问题: ==> 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 […]