
RasPi 入門 (4) - VirtualBoxへのインストール
「Raspbian」をMacの「VirtualBox」にインストールする手順をまとめました。
1. Raspbian
「Raspbian」は、Debianベースの「Raspberry Pi」用のOSです。
2. Raspbianのバージョン
Raspbianのバージョンは次のとおりです。
・Buster (2019/06/20~) : 2019/06からRaspberry Pi 4に対応
・Stretch (2017/08/16~) : 2018/03からRaspberry Pi 3B+に対応
・Jessie (2015~) : 2016/02からRaspberry Pi 3に対応
3. Raspbianのイメージ
Raspbianのイメージは次の3種類が提供されています。
・Raspbian Buster with desktop and recommended software
Raspbian foundationの推奨ソフトウェア一式 + デスクトップ
・Raspbian Buster with desktop
必要最小限のソフトウェア + デスクトップ。
・Raspbian Buster Lite
コマンドラインのみ。
デスクトップが必要な時は「Raspbian Buster with desktop」、コマンドラインのみ必要な場合は「Raspbian Buster Lite」を選択します。
4. Raspberry Pi Desktopのイメージ
上記イメージとは別に、PCやMacにインストールするためのRaspberry Pi Desktopのイメージがあります。
・Debian Buster with Raspberry Pi Desktop
PCおよびMac用Raspberry PiデスクトップOS。
5. Virtual Machineの作成
「Raspbian」をインストールする「Virtual Machine」を作成します。
(1) 「Debian Buster with Raspberry Pi Desktop」のイメージ(ISO)をダウンロード。
(2) 「VirtualBox」をMacにインストール。
(3)「VirtualBox」の起動し、メニュー「仮想マシン → 新規」を選択。
(4) 名前とオペレーティングシステムの指定。
・名前 : 2019-09-25-rpd-x86-buster (わかりやすいものでOK)
・タイプ : Linux
・バージョン : Debian (64-bit)
(5) メモリーサイズの指定。
(6) ハードディスクの指定。
(7) ハードディスクのファイルタイプの指定。
(8) ストレージの可変サイズ・固定サイズの指定
(9) ファイルの場所とサイズの指定。
(10) 「設定 → システム → プロセッサー」でプロセッサー数を2つに変更。
(11)「設定 → ストレージ → コントローラー:IDE → 空」を選択し、右の「CDボタン」でダウンロードしたイメージ(2019-09-25-rpd-x86-buster.iso)を選択。
6. VirtualBoxへのRaspbianのインストール
作成した「Virtual Machine」に「Raspbian」をインストールする手順は次のとおりです。
(1)「Virtual Machine」の起動し、作成した「Virtual Machine」を選択し、起動ボタンを押す。
(2)「起動」を押す。
(3)「Graphical install」を選択。
(4) キーボードの選択。(日本語キーボードの場合は「Japanese」)
(5) ディスクパーティションの設定で「Guided - use entire disk」(ディスク全体を使用)を選択。
(6) ディスクの選択。
(7) パーティションの選択。
(8) 「Continue」を押す。
(9)「Yes」を選択して「Continue」を押す。
(10)「Yes」を選択して「Continue」を押す。
(11)「/dev/sda」を選択して「Continue」を押す。
(12)「Continue」を押す。
(12) インストール完了。




















