java ssh 超时时间_如何设置Vagrant ssh超时

我有一个厨师食谱来为Redhat OS应用补丁 . 注册到RH卫星服务器后,它运行 yum -y update . 我用来测试食谱的rhel 6.4图像有255个包需要更新 .

但它总是在210左右的包中失败,没有消息错误,它只说

"return 1" instead of 0.

任何人都知道Vagrant设置为ssh到配置的VM的默认ssh超时是什么?以及如何配置它?

这是我的Vagrantfile(由kitchen-vagrant插件自动生成)

Vagrant.configure("2") do |c|

c.vm.box = "redhat-6.4"

c.vm.box_url = "https://myrepo.domain.com/vagrant/rhel-6.4-x86_64.box"

c.vm.hostname = "default-redhat-64.vagrantup.com"

c.vm.synced_folder ".", "/vagrant", disabled: true

c.vm.provider :virtualbox do |p|

p.customize ["modifyvm", :id, "--memory", "1024"]

end

end

这是输出:

Updating : systemtap-2.5-5.el6.x86_64 201/517

Updating : gcc-c++-4.4.7-11.el6.x86_64 202/517

Updating : gcc-gfortran-4.4.7-11.el6.x86_64 203/517

Updating : system-config-firewall-tui-1.2.27-7.1.el6.noarch 204/517

Updating : sysstat-9.0.4-27.el6.x86_64 205/517

Updating : ntp-4.2.6p5-1.el6.x86_64 206/517

Updating : 2:irqbalance-1.0.4-10.el6.x86_64 207/517

Updating : selinux-policy-targeted-3.7.19-260.el6.noarch 208/517

Updating : lvm2-2.02.111-2.el6.x86_64 209/517

Updating : openss57.641417 #4720] INFO -- default-redhat-64:

I, [2015-01-07T13:31:57.642725 #4720] INFO -- default-redhat-64: h-server-5.3p1-104.el6.x86_64 210/517

I, [2015-01-07T13:31:57.642775 #4720] INFO -- default-redhat-64: STDERR:

I, [2015-01-07T13:31:57.642830 #4720] INFO -- default-redhat-64: ---- End output of yum -y update ----

I, [2015-01-07T13:31:57.642884 #4720] INFO -- default-redhat-64: Ran yum -y update returned 1

I, [2015-01-07T13:31:59.151150 #4720] INFO -- default-redhat-64: [2015-01-07T20:31:58+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

E, [2015-01-07T13:32:00.253495 #4720] ERROR -- default-redhat-64: Converge failed on instance .

E, [2015-01-07T13:32:00.253739 #4720] ERROR -- default-redhat-64: ------Exception-------

E, [2015-01-07T13:32:00.253782 #4720] ERROR -- default-redhat-64: Class: Kitchen::ActionFailed

E, [2015-01-07T13:32:00.253813 #4720] ERROR -- default-redhat-64: Message: SSH exited (1) for command: [sudo -E chef-client -z --config /tmp/kitchen/client.rb --log_level info --json-attributes /tmp/kitchen/dna.json]

E, [2015-01-07T13:32:00.253846 #4720] ERROR -- default-redhat-64: ---Nested Exception---

E, [2015-01-07T13:32:00.253874 #4720] ERROR -- default-redhat-64: Class: Kitchen::SSHFailed

E, [2015-01-07T13:32:00.253906 #4720] ERROR -- default-redhat-64: Message: SSH exited (1) for command: [sudo -E chef-client -z --config /tmp/kitchen/client.rb --log_level info --json-attributes /tmp/kitchen/dna.json]

同样,它并不总是在一个特定的包装上失败 .

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值