GithubHelp home page GithubHelp logo

matsuu / vagrant-isucon Goto Github PK

View Code? Open in Web Editor NEW
445.0 12.0 120.0 42.07 MB

ISUCON過去問を構築するためのVagrantfile集

Home Page: http://d.hatena.ne.jp/tmatsuu/20150815/1439643715

License: MIT License

isucon vagrantfile virtualbox

vagrant-isucon's Introduction

vagrant-isucon

Overview

ISUCONの過去問を構築するためのVagrantfileです。

予選 本選
ISUCON1 x TBD
ISUCON2 x 1台構成
ISUCON3 1台構成 TBD
ISUCON4 1台構成 TBD
ISUCON5 1台構成 2台構成 3台構成
ISUCON6 1台構成 2台構成 TBD
ISUCON7 1台構成 2台構成 VagrantBox TBD
ISUCON8 1台構成 2台構成 TBD
ISUCON9 1台構成 TBD
ISUCON10 1台構成 1台構成
ISUCON11 1台構成 1台構成
ISUCON12 1台構成 1台構成
ISUCON13 1台構成

サーバ内の構築にはAnsibleを使っています。Ansibleのplaybookのみ必要な場合はmatsuu/ansible-isuconをどうぞ。

Others

FAQ

vagrant up でBoxのダウンロードが404 Not Foundのエラーになる

Vagrantのバージョンが古いためと思われます。 可能であれば最新バージョンのVagrantをご利用ください。 諸事情により古いVagrantしか使えない場合はVagrantfileの先頭に以下を設定してください。

Vagrant::DEFAULT_SERVER_URL.replace('https://vagrantcloud.com')

参考 #24

virtualboxで以下のようなエラーメッセージが表示される

The provider 'virtualbox' that was requested to back the machine 'default' is reporting that it isn't usable on this system. The reason is shown below:

Vagrant has detected that you have a version of VirtualBox installed that is not supported. Please install one of the supported versions listed below to use Vagrant:

4.0, 4.1, 4.2, 4.3

Vagrantのバージョンが古い可能性があります。最新のVagrantを使用してください。

vagrant upを実行するとvboxsfのエラーが表示される

Failed to mount folders in Linux guest. This is usually because the "vboxsf" file system is not available. Please verify that the guest additions are properly installed in the guest and can work properly. The command attempted was:

mount -t vboxsf -o uid=id -u vagrant,gid=getent group vagrant | cut -d: -f3 vagrant /vagrant mount -t vboxsf -o uid=id -u vagrant,gid=id -g vagrant vagrant /vagrant

The error output from the last command was:

/sbin/mount.vboxsf: mounting failed with the error: No such device

これと同じ現象と思われます。気にせずvagrant provisionを実行してください。

ブラウザで動作確認ができない

Vagrantfileのネットワーク設定がデフォルトのままなので、サーバに割り当てられたIPアドレスにブラウザでアクセスしてみてください。 よくわからない場合は# config.vm.network "private_network", ip: "192.168.33.10"のコメントを外してブラウザから192.168.33.10にアクセスしてみてください。

License

MIT

vagrant-isucon's People

Contributors

anatofuz avatar ishidakei avatar kikumoto avatar lukesilvia avatar matsuu avatar netmarkjp avatar ohbarye avatar saboyutaka avatar shiimaxx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vagrant-isucon's Issues

"vagrant up" failed when building isucon5-qualifier

Thank you for creating the Vagrantfiles, I think it looks great.

I was trying the building Vagrantfile in isucon5-qualifier, but the following error has occured.

[c-bata:isucon5-qualifier]$ vagrant up
Bringing machine 'image' up with 'virtualbox' provider...
Bringing machine 'bench' up with 'virtualbox' provider...
:
:
==> bench: PLAY [imageservers] ***********************************************************
==> bench:
==> bench: TASK: [apt name=openjdk-8-jdk state=present] **********************************
==> bench: failed: [localhost] => {"failed": true}
==> bench: stderr: E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/pool/main/l/llvm-toolchain-3.6/libllvm3.6_3.6-2ubuntu1_amd64.deb  404  Not Found [Mirror: http://ftp.tsukuba.wide.ad.jp/Linux/ubuntu/]
==> bench:
==> bench: E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u45-b14-1_amd64.deb  404  Not Found [Mirror: http://ftp.tsukuba.wide.ad.jp/Linux/ubuntu/]
==> bench:
==> bench: E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/pool/main/f/fonts-dejavu/fonts-dejavu-extra_2.34-1ubuntu1_all.deb  404  Not Found [Mirror: http://ftp.tsukuba.wide.ad.jp/Linux/ubuntu/]
==> bench:
==> bench: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
:
:
==> bench: msg: 'apt-get install 'openjdk-8-jdk' ' failed: E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/pool/main/l/llvm-toolchain-3.6/libllvm3.6_3.6-2ubuntu1_amd64.deb  404  Not Found [Mirror: http://ftp.tsukuba.wide.ad.jp/Linux/ubuntu/]
==> bench:
==> bench: E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u45-b14-1_amd64.deb  404  Not Found [Mirror: http://ftp.tsukuba.wide.ad.jp/Linux/ubuntu/]
==> bench:
==> bench: E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/pool/main/f/fonts-dejavu/fonts-dejavu-extra_2.34-1ubuntu1_all.deb  404  Not Found [Mirror: http://ftp.tsukuba.wide.ad.jp/Linux/ubuntu/]
==> bench:
==> bench: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
==> bench:
==> bench:
==> bench: FATAL: all hosts have already failed -- aborting
==> bench:
==> bench: PLAY RECAP ********************************************************************
==> bench:            to retry, use: --limit @/root/playbook.retry
==> bench:
==> bench: localhost                  : ok=19   changed=18   unreachable=0    failed=1
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

A full error message is avairable at my gist snippet.
Incidentally if I confirm vagrant status, the two vagrant machine is running.

 vagrant status
Current machine states:

image                     running (virtualbox)
bench                     running (virtualbox)

This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.