Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
お試し用のLinux環境を作る
Search
onozaty
August 25, 2014
Programming
0
36
お試し用のLinux環境を作る
VirtualBoxとVagrantを使って、お試し用のLinux環境を作る
onozaty
August 25, 2014
Tweet
Share
More Decks by onozaty
See All by onozaty
リモートワーク中に買って良かったものベスト3
onozaty
0
180
情報を表現するときのポイント
onozaty
0
22
チームで開発するための環境を整える
onozaty
1
200
Selenium入門(2023年版)
onozaty
1
170
40歳過ぎてもエンジニアでいるためにやっていること
onozaty
0
55
Java8から17へ
onozaty
0
18
今からでも遅くないDBマイグレーション - Flyway と SchemaSpy の紹介 -
onozaty
0
190
Redmine issue assign notice plugin の紹介
onozaty
0
160
最近作ったもの
onozaty
0
26
Other Decks in Programming
See All in Programming
レトロゲームから学ぶ通信技術の歴史
kimkim0106
0
110
AIと”コードの評価関数”を共有する / Share the "code evaluation function" with AI
euglena1215
1
180
たった 1 枚の PHP ファイルで実装する MCP サーバ / MCP Server with Vanilla PHP
okashoi
1
300
ふつうの技術スタックでアート作品を作ってみる
akira888
1
1.3k
AWS Summit Japan 2024と2025の比較/はじめてのKiro、今あなたは岐路に立つ
satoshi256kbyte
0
120
テスターからテストエンジニアへ ~新米テストエンジニアが歩んだ9ヶ月振り返り~
non0113
2
220
可変変数との向き合い方 $$変数名が踊り出す$$ / php conference Variable variables
gunji
0
180
Modern Angular with Signals and Signal Store:New Rules for Your Architecture @enterJS Advanced Angular Day 2025
manfredsteyer
PRO
0
270
「App Intent」よくわからんけどすごい!
rinngo0302
1
100
DMMを支える決済基盤の技術的負債にどう立ち向かうか / Addressing Technical Debt in Payment Infrastructure
yoshiyoshifujii
3
410
Agentic Coding: The Future of Software Development with Agents
mitsuhiko
0
130
CDK引数設計道場100本ノック
badmintoncryer
2
480
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
130
19k
Art, The Web, and Tiny UX
lynnandtonic
299
21k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.5k
YesSQL, Process and Tooling at Scale
rocio
173
14k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.6k
Designing for humans not robots
tammielis
253
25k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
21
1.3k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
520
Fireside Chat
paigeccino
37
3.5k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
22k
Six Lessons from altMBA
skipperchong
28
3.9k
Transcript
お試し用の Linux環境を作る VirtualBox、Vagrant 2014-08-25 社内勉強会 onozaty
Linuxを試したいとき どうしてますか?
仮想化ソフトを使う • 手軽に試すならば、仮想化ソフトを使っ て、ゲストOSとしてLinuxを実行する • 無償の仮想化ソフト(商用での利用は注意) • VMware Player •
VirtualBox • Virtual PC
VirtualBox
VirtualBox • ホストOSを選ばない • Windows、Mac、Linux • ゲストOSを複数起動できる • スナップショット、コピー、サスペンド などが手軽にできる
VirtualBoxのインストール • VirtualBoxのダウンロードサイトから、対 応するプラットホームのものをダウン ロードしてインストールするだけ • https://www.virtualbox.org/wiki/Downloads
ゲストOSのインストール • OSイメージをマウントしてインストール • 結構面倒なので、個人で試す程度ならば、公 開されているVirtualBoxの仮想マシンイメージ を使う方法もあり (ただし入手先が信頼できるかは要注意) • Ubuntu
Japanese Team • https://www.ubuntulinux.jp/download/ja-remix-vhd
もっと簡単に
Vagrant
Vagrant • 仮想マシンの作成、環境構築といった一 連の作業を、簡単に行うツール • 既存技術の組み合わせ • 仮想化:VirtualBox、VMware • 構成管理:Chef、Puppet
Vagrantのインストール • Vagrantは下記サイトからダウンロードし てインストール • http://www.vagrantup.com/downloads.html • 仮想化ソフト(VirtualBox)も入れておく
Vagrantによる仮想マシン作成 • box(仮想マシンの雛形)を追加 • 下記はVagrantの開発元が公開している Ubuntuイメージを使用 • 初期化(Vagrantfile作成) • 起動
$ vagrant up $ vagrant init hashicorp/precise64 $ vagrant box add hashicorp/precise64
Vagrantによる仮想マシン作成 • コマンド3つで、ssh接続可能な環境ができあ がり
Vagrantで出来ること • Chefなどと組み合わせて、必要なアプリのイ ンストールなども自動(vagrant up時)に行える • 各種設定は、すべてVagrantfileに書くので、 Vagrantfileとboxを共有すれば、まったく同じ 環境を各自のPCで構築することができる •
IPアドレスもVagrantfileに書いておくと、そのよ うに設定される • 環境の中断、再開、シャットダウン、削除と いったことが、すべてvagrantコマンドにて実 行できる
で、実際Linux環境使えるまで どれくらいの時間かかるの?
試してみました • OS:Windows 7 • Vagrant、VirtualBox未インストール状態
合計時間:40分 (VirtualBoxの入れなおしがなかったら30分切っていたのに!) 内訳 • VirtualBoxダウンロード、インストール: 20分 (最新とその前のバージョンだとエラーが出たため、3回バージョン入れな おした時間含む) • Vagrantダウンロード、インストール:
10分 • vagrant box add, vagrant init, vagrant up: 10分 (ほとんどがbox addでイメージダウンロードする時間)
どんどんLinux環境作って いろいろ試しましょう おしまい