寻找什么额外的configuration,我可以设置允许我的Ubuntu的virtualbox虚拟机写入我的OSX主机上的NFS同步的项目目录的帮助。 我已经在macOS中为vagrant设置了显式sudoers,所以如果需要的话,它不应该有修改主机的任何问题。 最终目标是能够在ubuntu中操作应用程序的构build和开发运行时,同时编辑macOS主机上的文件,并且Ubuntu机器将检测到变化并根据需要用gulp进行重build。 目前在npm install bcrypt时会出现错误,当它试图保留权限的时候,但是我也不确定这是否是完全失败的root cuase。 交叉发布: https : //groups.google.com/forum/#!topic/ vagrant-up/ LS_eFJhZAwQ Vagrantfile: Vagrant.configure(2) do |config| config.vm.box = "ubuntu/xenial64" config.vm.provider "virtualbox" do |v| v.memory = "3072" v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"] end config.vm.define "dev", primary: true do |dev| dev.vm.hostname = "proteus.dev" dev.vm.network "private_network", ip: "192.168.10.10" dev.vm.synced_folder '.', '/home/ubuntu/src/proteus', nfs: true, mount_options:['nolock,vers=3,udp,noatime,actimeo=1'] # also tried […]
我已经在开发服务器上安装了Vagrant,我已经用wget和curltesting了它,从物理服务器(主机)访问VM(guest)。 我想通过端口80将主机的stream量转发给访客的服务器。 我在configuration文件Vagrantfile添加了一行: config.vm.network "forwarded_port", guest: 80, host: 80 当我做一个vagrant up ,它显示了在VM初始化日志的输出消息中成功的端口转发,如下所示: homestead-7: 80 (guest) => 80 (host) (adapter 1) 当我做一个netstat -an | grep 80 netstat -an | grep 80 ,我只看到…0.0.0.0:8000…这是什么stream氓做自动。 任何build议如何强制服务器打开访客虚拟机端口? (HOST上的Apache被禁用)
在Vagrant中使用一个非常简单的provision.sh文件来安装nginx和php fpm。 #!/bin/bash yum -y install nginx php71-fpm sed -i 's/apache/nginx/g' /etc/php-fpm-7.1.d/www.conf service nginx start chkconfig nginx on chkconfig php-fpm on service php-fpm start 当configuration开始php fpm我得到以下错误: Starting php-fpm-7.1: [21-Sep-2017 10:44:36] ERROR: [pool www] failed to write the ACL of the socket '/var/run/php-fpm/www.sock': Invalid argument (22) [21-Sep-2017 10:44:36] ERROR: FPM initialization failed 如果我使用vagrant sshlogin到stream浪者机器并执行以下操作: sudo su […]
我使用stream浪与厨师独奏build立一个清醒的64框。 我正在使用Chef配方从Martin Pitt的backports安装PostgreSQL 9.1。 安装一切正常,直到数据库启动的地步 /etc/init.d/postgresql start 有一个日志暂停,命令失败。 如果我手动运行pg_ctl,数据库启动! 我的postgresql-9.1-main日志文件的全部内容是: 2012-05-07 11:01:18 PDT LOG: database system was shut down at 2012-05-07 11:01:16 PDT 2012-05-07 11:01:18 PDT LOG: database system is ready to accept connections 2012-05-07 11:01:18 PDT LOG: autovacuum launcher started 2012-05-07 11:01:18 PDT LOG: incomplete startup packet 2012-05-07 11:01:26 PDT LOG: received fast shutdown […]
我正在开发一个解决scheme,通过OpenVPN隧道将驻留在Virtualbox guest中的开发堆栈公开到Internet。 OpenVPN客户端在客户虚拟机内部启动并且可以很好地连接到具有公共IP的EC2实例。 我在EC2盒子上添加了一个路由,在访客虚拟机端包含局域网。 实际上,访客虚拟机具有以下接口: 客人 eth0:10.0.2.15 tun0:10.8.0.2 EC2 tun0:10.8.0.1 eth0:10.254.254.234 我可以从客户端ping通EC2到tun0(10.8.0.2)以及eth0(10.0.2.15) 现在有趣的部分开始,当EC2端我包括一个DNAT规则,使SIPstream量从10.254.254.234指向10.0.2.15。 iptables -t nat -I PREROUTING -d 10.254.254.234 -j DNAT –to-destination 10.0.2.15 因为存在正确的路由,通过隧道发送stream量,当我使用tun0上的tcpdump的时候,我看到消息到达另一端(Virtualbox)。 然而,该数据包的最终目的地是虚拟机上的eth0,并且从不会从tun0转发到eth0。 IP转发已启用,并且在iptables的FORWARD链中不存在REJECT规则。 此外,如果我让进程(一个SIP代理)监听隧道接口,即使在使用tcpdump进行监听时看到数据包,并且代理绑定到隧道的IP,它也不会报告接收其日志中的数据。
我正试图区分我的top.sls文件中的一个Ubuntu盒子和一个Arch盒子,在由vagrant 1.7.4使用salt 2015.8.1 (Beryllium)pipe理的Virtualbox 5.0.4虚拟机中, 这不起作用: base: 'os:Arch': – base.arch 这工作: base: {% if grains['os'] == 'Arch' %} '*': – base.arch {% endif %} 摘自salt-call grains.items : os: Arch os_family: Arch osarch: x86_64 oscodename: osfullname: Arch Linux osrelease: 有没有人有任何见解?
我正在尝试使用Google 2FA解决scheme来保护出站服务器。 目前,我首先在本地的Vagrant机器上configuration所有的东西,一旦一切正常,我将在远程出站机器上运行Ansible。 我已经configuration/etc/ssh/sshd_config像这样: Port 22 Protocol 2 HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key HostKey /etc/ssh/ssh_host_ecdsa_key HostKey /etc/ssh/ssh_host_ed25519_key UsePrivilegeSeparation yes KeyRegenerationInterval 3600 ServerKeyBits 1024 SyslogFacility AUTH LogLevel INFO LoginGraceTime 120 PermitRootLogin without-password StrictModes yes RSAAuthentication yes PubkeyAuthentication yes IgnoreRhosts yes RhostsRSAAuthentication no HostbasedAuthentication no PermitEmptyPasswords no ChallengeResponseAuthentication yes PasswordAuthentication no X11Forwarding yes X11DisplayOffset 10 PrintMotd no PrintLastLog […]
我的问题类似于使用Puppet从PPA安装包,但我不知道如何使它工作。 我希望Puphpet能够安装Apache 2.4.23-5.0这个PPA而不是正常的deb回购。 在deb repo中已经有一个同名的版本,所以重要的是我得到这个包含backport的自定义版本。 我想使用@msanford提供的解决scheme ,但不知道从哪里开始。 我可以只追加这个片段: apt::ppa { 'ppa:ondrej/apache2':} package { 'apache2': ensure => 'installed', require => Apt::Ppa['ppa:ondrej/apache2'] 到… / vm / profile / my-box / puphpet / puppet / modules / apt / manifests / init.pp?
我正在使用Windows Server 2016创build基本映像。映像已完全打上补丁,并且已应用所有常规configuration,但是当我testing它时,无法连接作为stream浪用户,并显示来自Googlesearch的消息它试图使用SSH,虽然WinRM列在对话框中。 我已经把我的构build文档在github中作为参考。 vagrant up Bringing machine 'default' up with 'virtualbox' provider… ==> default: Importing base box 'WindowsDocker'… ==> default: Matching MAC address for NAT networking… ==> default: Setting the name of the VM: temp_default_1489982222856_48671 ==> default: Clearing any previously set network interfaces… ==> default: Preparing network interfaces based on configuration… default: Adapter 1: […]
我试图用postgresql和gitlab来设置虚拟机。 我正在使用以下软件包: gitlab & postgresql 这是我的init.pp class { 'postgresql::server': ip_mask_deny_postgres_user => '0.0.0.0/32', ip_mask_allow_all_users => '0.0.0.0/0', listen_addresses => '*', ipv4acls => ['host all johndoe 10.1.1.0/24 cert'], manage_firewall => true, postgres_password => 'TPSrep0rt!', } class { 'gitlab': git_email => '[email protected]', git_comment => 'GitLab Performates', gitlab_domain => 'gitlab.foobar.fr', gitlab_dbtype => 'pgsql', gitlab_dbname => 'gitlab', gitlab_dbuser => 'gitlab', gitlab_dbpwd […]