AWS Ubuntu 16上的Vagrant连接失败

时间:2017-08-09 19:53:27

标签: vagrant nomad

我的问题

我对Vagrant相当新,如果这个问题很简单,请道歉。

我正在试图检查Nomad,而requires Vagrant to run。我在EC2上生成了一台新的Ubuntu 16机器,安装了virtualbox和Vagrant,并按照说明输入了parent.getAdapter()

public static class MySimpleArrayAdapter extends ArrayAdapter {

    private static final String[] POSSIBLE_BS = new String[] {"10", "11", "12", "13", "15", "16"};

    public MySimpleArrayAdapter(Context context, ArrayList<Troop> values) {
        super(context, -1, values);
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        LayoutInflater inflater = (LayoutInflater) getContext()
                .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        View rowView = inflater.inflate(R.layout.rowlayout, parent, false);

        Spinner bs_spinner = rowView.findViewById(R.id.bs_spinner);
        ArrayAdapter<String> bs_adapter = new ArrayAdapter<>(
                getContext(),
                android.R.layout.simple_spinner_dropdown_item,
                POSSIBLE_BS);
        bs_spinner.setOnItemSelectedListener(new CustomOnItemSelectedListener(position));
        bs_spinner.setAdapter(bs_adapter);
        return rowView;
    }

}

private static class CustomOnItemSelectedListener implements AdapterView.OnItemSelectedListener {

    private final int troopPosition;

    private CustomOnItemSelectedListener(int troopPosition) {
        this.troopPosition = troopPosition;
    }

    @Override
    public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
        MySimpleArrayAdapter adapter = (MySimpleArrayAdapter) parent.getAdapter();
        int bs = adapter.getItem(troopPosition).getBs();
    }

    @Override
    public void onNothingSelected(AdapterView<?> parent) {

    }
}

我尝试了什么

  • 重新启动AWS VM
  • 检查磁盘已满/高内存/高CPU使用率(未找到任何内容)
  • 移除流浪盒并重新安装
  • 重新供应

我的问题

如何在Ubuntu 16 EC2机器上使用Vagrant处理ssh超时?

1 个答案:

答案 0 :(得分:0)

有点无关,但Nomad不需要Vagrant。您可以在任何计算机上运行nomad,只需下载二进制文件(https://www.nomadproject.io/downloads.html)并运行它。