Tag: vagrant

由于未满足的依赖项,无法安装libapache2-mod-php5

我有一个安装php 5.3.28和大多数php库的流浪盒 dpkg -l |grep ‘^ii’ |grep php ii php5-cgi 5.3.28-1~dotdeb.0 server-side, HTML-embedded scripting language (CGI binary) ii php5-cli 5.3.28-1~dotdeb.0 command-line interpreter for the php5 scripting language ii php5-common 5.3.28-1~dotdeb.0 Common files for packages built from the php5 source ii php5-curl 5.3.28-1~dotdeb.0 CURL module for php5 ii php5-dbg 5.3.28-1~dotdeb.0 Debug symbols for PHP5 ii php5-fpm […]

如何在Ubuntu上打开端口?

Ubuntu 13.04: No LSB modules are available Distributor ID: Ubuntu Description: Ubuntu 13.04 Release: 13.04 Codename: raring 我正在尝试在我使用VirtualBox / Vagrant访问的Ubuntu VM上打开端口8888。 在vm上,我运行以下命令 vagrant@vagrant-ubuntu-raring-32:~$ curl -v ‘http://localhost:8888’ 我收到以下回复: * About to connect() to localhost port 8888 (#0) * Trying 127.0.0.1… * Connection refused * Failed connect to localhost:8888; Connection refused * Closing connection 0 curl: (7) […]

如何将usbserial和ftdi_sio模块安装到14.04 Trusty Vagrant盒子?

我从https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-i386-vagrant-disk1.box开始了一个Vagrant盒子。 出于某种原因,默认情况下,此框似乎不包括usbserial和ftdi_sio模块。 如何安装? 我已经validation了lsmod确实缺少模块。 另外modprobe usbserial throws modprobe: FATAL: Module usbserial not found. (和ftdi_sio )。

无法在Ubuntu 16.04上重新安装VirtualBox

我刚从15.10升级到Ubuntu 16.04,我的VirtualBox不想再启动了。 我尝试从我的系统中清除virtualbox , virtualbox-dkms和vagrant它似乎工作(我不是一个系统管理员,所以保持简单愚蠢)。 一旦我使用在线DEB或使用apt-get重新安装,我最终会得到这个: virtualbox.service – LSB: VirtualBox Linux kernel module Loaded: loaded (/etc/init.d/virtualbox; bad; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2016-04-24 20:22:47 EDT; 10min ago Docs: man:systemd-sysv-generator(8) Apr 24 20:22:47 laptop-math systemd[1]: Starting LSB: VirtualBox Linux kernel module… Apr 24 20:22:47 laptop-math virtualbox[6248]: * Starting VirtualBox kernel modules Apr […]

官方Ubuntu Vagrant盒子如何构建并发布到Atlas?

每周左右,Hashicorp Atlas的新版官方 Ubuntu Trusty x64 Vagrant基础框出现在:http://atlas.hashicorp.com/ubuntu/boxes/trusty64 据推测,为了可重复的一致性,这一切都是自动化的。 我知道有关于如何构建Vagrant基本框的一般博客文章,但我对如何构建这些框更感兴趣。 我希望,就像我遇到的Ubuntu生态系统的其他部分一样,构建这些盒子的过程都是公开的开源。 更新: 我特别感兴趣的是在Ubuntu OS安装过程中选择的选项以及在打包之前进行的任何后OS安装更改。 使用Vagrant,Packer或其他工具将机器打包成盒子的细节要少得多。

如何在文件修改时触发rsync?

我可以使用rsync -avz /directory /target同步文件夹,现在我希望这样做,如果我更改/directory的文件,那么应该自动调用rsync 。 我使用Virtual Box并且Virtual Box的共享文件夹非常慢,特别是如果您有一个使用共享文件夹作为文档根目录的网页。 使用rsync我可以使用共享文件夹上的本地文件,并自动与文档根目录同步。 我希望有人知道如何这样做, crontab会不好,因为它每隔x分钟执行一次,所以如果我什么都不做,它仍然会调用rsync但是如果我修改了我的文件则不行。 最好的祝福

在一个易于使用的bash命令中关闭所有VirtualBox(vagrant)VM(可以放入bash文件)

我使用vagrant进行开发。 我忘了关闭一些虚拟机。 当我退出主机时,Ubuntu关机过程似乎挂起。 可能有一种方法来编写所有流浪盒的关闭与一点命令行fu? 像下面这样的东西,但有些东西是有效的。 for f in $HOME/vagrant; do; cd $f vagrant halt done;

如何增加Vagrant VM上的磁盘大小?

我有一个由Vagrant在Ubuntu主机服务器上使用VirtualBox管理的VM。 我的Vagrant框使用Puppetlabs Debian 6.0.7 basebox ,它使用LVM作为其根分区。 默认情况下,磁盘为8GB,这对我来说太小了。 我想要: 在不破坏和重新创建VM的情况下,增加现有磁盘及其上的文件系统的大小。 配置Vagrant,以便将来为该项目创建一个更大的磁盘。 任何人都可以解释如何做到这一点?

使用vagrant Stderr时:VBoxManage:错误:VT-x不可用(VERR_VMX_NO_VMX)

我正在尝试使用ubunty 16.04安装open edx并且我收到此错误 There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: [“startvm”, “c60f0594-d584-4e0b-b863-2801168e641e”, “–type”, “headless”] Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole 使用vagrant时会发生这种情况