プロジェクト

全般

プロフィール

機能 #6694

記事を書く…RaspberryPiの仮想環境を構築する

直野 雄一約2ヶ月前に追加. 5日前に更新.

ステータス:
新規
優先度:
通常
担当者:
-
開始日:
期日:
進捗率:

0%

予定工数:
Issue Tracker:

説明

自宅RaspberryPiに変更を適用する前に、変更をテストする仮想環境が欲しい。

Raspbian Stretch 2018/3/13版をQEMUで動かす - Qiita https://qiita.com/Nebutan/items/1cffada81e61a9f2ed58

この手順で仮想環境を構築して、その手順をナレッジにする。

作業

  • Raspbian仮想マシンを構築する
  • ブログに書く

関連するチケット

関連している my-services - 機能 #6181: 自宅RaspberryPiをストレージ・サービスとして稼働させる終了2018-11-05

履歴

#1 直野 雄一約2ヶ月前に更新

  • 関連している 機能 #6181: 自宅RaspberryPiをストレージ・サービスとして稼働させる を追加

#2 直野 雄一約2ヶ月前に更新

DigitalOceanに$5の仮想マシンを作成した。

#3 直野 雄一約2ヶ月前に更新

# apt update
Get:1 http://security.debian.org stretch/updates InRelease [94.3 kB]
Get:2 http://security.debian.org stretch/updates/non-free Sources [1,216 B]
Get:3 http://security.debian.org stretch/updates/contrib Sources [1,384 B]
Get:4 http://security.debian.org stretch/updates/main Sources [188 kB]
Get:5 http://security.debian.org stretch/updates/main amd64 Packages [464 kB]
Get:6 http://security.debian.org stretch/updates/main Translation-en [203 kB]
Get:8 http://security.debian.org stretch/updates/contrib amd64 Packages [1,764 B]
Get:9 http://security.debian.org stretch/updates/contrib Translation-en [1,759 B]
Get:10 http://security.debian.org stretch/updates/non-free amd64 Packages [1,600 B]
Get:11 http://security.debian.org stretch/updates/non-free Translation-en [691 B]
Ign:7 http://sgp1.mirrors.digitalocean.com/debian stretch InRelease
Get:12 http://sgp1.mirrors.digitalocean.com/debian stretch-updates InRelease [91.0 kB]
Get:13 http://sgp1.mirrors.digitalocean.com/debian stretch Release [118 kB]
Get:14 http://sgp1.mirrors.digitalocean.com/debian stretch Release.gpg [2,434 B]
Get:15 http://sgp1.mirrors.digitalocean.com/debian stretch-updates/main Sources [3,748 B]
Get:16 http://sgp1.mirrors.digitalocean.com/debian stretch-updates/main amd64 Packages [5,152 B]
Get:17 http://sgp1.mirrors.digitalocean.com/debian stretch-updates/main Translation-en [4,512 B]
Get:18 http://sgp1.mirrors.digitalocean.com/debian stretch/contrib Sources [44.7 kB]
Get:19 http://sgp1.mirrors.digitalocean.com/debian stretch/non-free Sources [79.5 kB]
Get:20 http://sgp1.mirrors.digitalocean.com/debian stretch/main Sources [6,751 kB]
Get:21 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 Packages [7,089 kB]
Get:22 http://sgp1.mirrors.digitalocean.com/debian stretch/main Translation-en [5,388 kB]
Get:23 http://sgp1.mirrors.digitalocean.com/debian stretch/contrib amd64 Packages [50.9 kB]
Get:24 http://sgp1.mirrors.digitalocean.com/debian stretch/contrib Translation-en [45.9 kB]
Get:25 http://sgp1.mirrors.digitalocean.com/debian stretch/non-free amd64 Packages [78.6 kB]
Get:26 http://sgp1.mirrors.digitalocean.com/debian stretch/non-free Translation-en [80.4 kB]
Fetched 20.8 MB in 7s (2,701 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.

#4 直野 雄一約2ヶ月前に更新

# apt -y install qemu
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  binfmt-support ipxe-qemu libasound2 libasound2-data libasyncns0 libbluetooth3 libbrlapi0.6 libcaca0
  libcacard0 libfdt1 libflac8 libice6 libjpeg62-turbo libnspr4 libnss3 libogg0 libopus0 libpixman-1-0
  libpulse0 libsasl2-2 libsasl2-modules libsasl2-modules-db libsdl1.2debian libsm6 libsndfile1
  libspice-server1 libusb-1.0-0 libusbredirparser1 libvdeplug2 libvorbis0a libvorbisenc2 libx11-6
  libx11-data libx11-xcb1 libxau6 libxcb1 libxdmcp6 libxen-4.8 libxenstore3.0 libxext6 libxi6 libxtst6
  libyajl2 openbios-ppc openbios-sparc openhackware qemu-efi qemu-slof qemu-system qemu-system-arm
  qemu-system-common qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-sparc
  qemu-system-x86 qemu-user qemu-user-binfmt qemu-utils seabios x11-common
Suggested packages:
  libasound2-plugins alsa-utils opus-tools pulseaudio libsasl2-modules-gssapi-mit
  | libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql
  qemu-user-static samba vde2 qemu-block-extra sgabios ovmf debootstrap
The following NEW packages will be installed:
  binfmt-support ipxe-qemu libasound2 libasound2-data libasyncns0 libbluetooth3 libbrlapi0.6 libcaca0
  libcacard0 libfdt1 libflac8 libice6 libjpeg62-turbo libnspr4 libnss3 libogg0 libopus0 libpixman-1-0
  libpulse0 libsasl2-2 libsasl2-modules libsasl2-modules-db libsdl1.2debian libsm6 libsndfile1
  libspice-server1 libusb-1.0-0 libusbredirparser1 libvdeplug2 libvorbis0a libvorbisenc2 libx11-6
  libx11-data libx11-xcb1 libxau6 libxcb1 libxdmcp6 libxen-4.8 libxenstore3.0 libxext6 libxi6 libxtst6
  libyajl2 openbios-ppc openbios-sparc openhackware qemu qemu-efi qemu-slof qemu-system qemu-system-arm
  qemu-system-common qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-sparc
  qemu-system-x86 qemu-user qemu-user-binfmt seabios x11-common
The following packages will be upgraded:
  qemu-utils
1 upgraded, 61 newly installed, 0 to remove and 4 not upgraded.
Need to get 62.6 MB of archives.
After this operation, 470 MB of additional disk space will be used.
Get:1 http://security.debian.org stretch/updates/main amd64 qemu-system-common amd64 1:2.8+dfsg-6+deb9u5 [502 kB]
Get:2 http://security.debian.org stretch/updates/main amd64 qemu-system-arm amd64 1:2.8+dfsg-6+deb9u5 [5,246 kB]
Get:3 http://security.debian.org stretch/updates/main amd64 qemu-system-mips amd64 1:2.8+dfsg-6+deb9u5 [8,967 kB]
Get:4 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libogg0 amd64 1.3.2-1 [19.9 kB]
Get:5 http://security.debian.org stretch/updates/main amd64 qemu-system-ppc amd64 1:2.8+dfsg-6+deb9u5 [7,043 kB]
Get:6 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libxau6 amd64 1:1.0.8-1 [20.7 kB]
Get:7 http://security.debian.org stretch/updates/main amd64 qemu-system-sparc amd64 1:2.8+dfsg-6+deb9u5 [2,571 kB]
Get:8 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libsasl2-modules-db amd64 2.1.27~101-g0780600+dfsg-3 [68.2 kB]
Get:9 http://security.debian.org stretch/updates/main amd64 qemu-system-x86 amd64 1:2.8+dfsg-6+deb9u5 [4,818 kB]
Get:10 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libsasl2-2 amd64 2.1.27~101-g0780600+dfsg-3 [105 kB]
Get:11 http://security.debian.org stretch/updates/main amd64 qemu-system-misc amd64 1:2.8+dfsg-6+deb9u5 [13.5 MB]
Get:12 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 binfmt-support amd64 2.1.6-2 [59.5 kB]
Get:13 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 ipxe-qemu all 1.0.0+git-20161027.b991c67-1 [605 kB]
Get:14 http://security.debian.org stretch/updates/main amd64 qemu-system amd64 1:2.8+dfsg-6+deb9u5 [65.8 kB]
Get:16 http://security.debian.org stretch/updates/main amd64 qemu-user amd64 1:2.8+dfsg-6+deb9u5 [7,943 kB]
Get:15 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libasound2-data all 1.1.3-5 [173 kB]
Get:17 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libasound2 amd64 1.1.3-5 [497 kB]
Get:18 http://security.debian.org stretch/updates/main amd64 qemu-utils amd64 1:2.8+dfsg-6+deb9u5 [985 kB]
Get:19 http://security.debian.org stretch/updates/main amd64 qemu amd64 1:2.8+dfsg-6+deb9u5 [151 kB]
Get:20 http://security.debian.org stretch/updates/main amd64 qemu-user-binfmt amd64 1:2.8+dfsg-6+deb9u5 [2,588 B]
Get:21 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libasyncns0 amd64 0.8-6 [12.5 kB]
Get:22 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libbluetooth3 amd64 5.43-2+deb9u1 [97.8 kB]
Get:23 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libcaca0 amd64 0.99.beta19-2+b2 [347 kB]
Get:24 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libnspr4 amd64 2:4.12-6 [117 kB]
Get:25 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libnss3 amd64 2:3.26.2-1.1+deb9u1 [1,161 kB]
Get:26 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libcacard0 amd64 1:2.5.0-3 [47.2 kB]
Get:27 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libflac8 amd64 1.3.2-1 [221 kB]
Get:28 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 x11-common all 1:7.7+19 [251 kB]
Get:29 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libice6 amd64 2:1.0.9-2 [58.7 kB]
Get:30 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libjpeg62-turbo amd64 1:1.5.1-2 [134 kB]
Get:31 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libopus0 amd64 1.2~alpha2-1 [171 kB]
Get:32 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libpixman-1-0 amd64 0.34.0-1 [530 kB]
Get:33 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libsm6 amd64 2:1.2.2-1+b3 [33.3 kB]
Get:34 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libvorbis0a amd64 1.3.5-4+deb9u2 [91.7 kB]
Get:35 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libvorbisenc2 amd64 1.3.5-4+deb9u2 [79.4 kB]
Get:36 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libsndfile1 amd64 1.0.27-3 [248 kB]
Get:37 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libxdmcp6 amd64 1:1.1.2-3 [26.3 kB]
Get:38 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libxcb1 amd64 1.12-1 [133 kB]
Get:39 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libx11-data all 2:1.6.4-3+deb9u1 [287 kB]
Get:40 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libx11-6 amd64 2:1.6.4-3+deb9u1 [748 kB]
Get:41 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libx11-xcb1 amd64 2:1.6.4-3+deb9u1 [183 kB]
Get:42 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libxext6 amd64 2:1.3.3-1+b2 [52.5 kB]
Get:43 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libxi6 amd64 2:1.7.9-1 [82.6 kB]
Get:44 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libxtst6 amd64 2:1.2.3-1 [27.8 kB]
Get:45 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libpulse0 amd64 10.0-1+deb9u1 [283 kB]
Get:46 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libsasl2-modules amd64 2.1.27~101-g0780600+dfsg-3 [102 kB]
Get:47 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libsdl1.2debian amd64 1.2.15+dfsg1-4 [185 kB]
Get:48 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libspice-server1 amd64 0.12.8-2.1+deb9u2 [505 kB]
Get:49 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libusb-1.0-0 amd64 2:1.0.21-1 [53.9 kB]
Get:50 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libusbredirparser1 amd64 0.7.1-1 [16.4 kB]
Get:51 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libvdeplug2 amd64 2.3.2+r586-2.1 [23.5 kB]
Get:52 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libxenstore3.0 amd64 4.8.4+xsa273+shim4.10.1+xsa273-1+deb9u10 [34.8 kB]
Get:53 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libyajl2 amd64 2.1.0-2+b3 [23.2 kB]
Get:54 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libxen-4.8 amd64 4.8.4+xsa273+shim4.10.1+xsa273-1+deb9u10 [413 kB]
Get:55 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 openhackware all 0.4.1+git-20140423.c559da7c-4 [64.0 kB]
Get:56 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libbrlapi0.6 amd64 5.4-7+deb9u1 [88.3 kB]
Get:57 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 libfdt1 amd64 1.4.2-1 [14.8 kB]
Get:58 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 qemu-slof all 20161019+dfsg-1 [170 kB]
Get:59 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 openbios-ppc all 1.1.git20161120-2 [116 kB]
Get:60 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 openbios-sparc all 1.1.git20161120-2 [160 kB]
Get:61 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 seabios all 1.10.2-1 [131 kB]
Get:62 http://sgp1.mirrors.digitalocean.com/debian stretch/main amd64 qemu-efi all 0~20161202.7bbe0b3e-1 [1,716 kB]
Fetched 62.6 MB in 7s (7,825 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package libogg0:amd64.
(Reading database ... 29413 files and directories currently installed.)
Preparing to unpack .../00-libogg0_1.3.2-1_amd64.deb ...
Unpacking libogg0:amd64 (1.3.2-1) ...
Selecting previously unselected package libxau6:amd64.
Preparing to unpack .../01-libxau6_1%3a1.0.8-1_amd64.deb ...
Unpacking libxau6:amd64 (1:1.0.8-1) ...
Selecting previously unselected package qemu-system-common.
Preparing to unpack .../02-qemu-system-common_1%3a2.8+dfsg-6+deb9u5_amd64.deb ...
Unpacking qemu-system-common (1:2.8+dfsg-6+deb9u5) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../03-libsasl2-modules-db_2.1.27~101-g0780600+dfsg-3_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.27~101-g0780600+dfsg-3) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../04-libsasl2-2_2.1.27~101-g0780600+dfsg-3_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.27~101-g0780600+dfsg-3) ...
Selecting previously unselected package binfmt-support.
Preparing to unpack .../05-binfmt-support_2.1.6-2_amd64.deb ...
Unpacking binfmt-support (2.1.6-2) ...
Selecting previously unselected package ipxe-qemu.
Preparing to unpack .../06-ipxe-qemu_1.0.0+git-20161027.b991c67-1_all.deb ...
Unpacking ipxe-qemu (1.0.0+git-20161027.b991c67-1) ...
Selecting previously unselected package libasound2-data.
Preparing to unpack .../07-libasound2-data_1.1.3-5_all.deb ...
Unpacking libasound2-data (1.1.3-5) ...
Selecting previously unselected package libasound2:amd64.
Preparing to unpack .../08-libasound2_1.1.3-5_amd64.deb ...
Unpacking libasound2:amd64 (1.1.3-5) ...
Selecting previously unselected package libasyncns0:amd64.
Preparing to unpack .../09-libasyncns0_0.8-6_amd64.deb ...
Unpacking libasyncns0:amd64 (0.8-6) ...
Selecting previously unselected package libbluetooth3:amd64.
Preparing to unpack .../10-libbluetooth3_5.43-2+deb9u1_amd64.deb ...
Unpacking libbluetooth3:amd64 (5.43-2+deb9u1) ...
Selecting previously unselected package libcaca0:amd64.
Preparing to unpack .../11-libcaca0_0.99.beta19-2+b2_amd64.deb ...
Unpacking libcaca0:amd64 (0.99.beta19-2+b2) ...
Selecting previously unselected package libnspr4:amd64.
Preparing to unpack .../12-libnspr4_2%3a4.12-6_amd64.deb ...
Unpacking libnspr4:amd64 (2:4.12-6) ...
Selecting previously unselected package libnss3:amd64.
Preparing to unpack .../13-libnss3_2%3a3.26.2-1.1+deb9u1_amd64.deb ...
Unpacking libnss3:amd64 (2:3.26.2-1.1+deb9u1) ...
Selecting previously unselected package libcacard0:amd64.
Preparing to unpack .../14-libcacard0_1%3a2.5.0-3_amd64.deb ...
Unpacking libcacard0:amd64 (1:2.5.0-3) ...
Selecting previously unselected package libflac8:amd64.
Preparing to unpack .../15-libflac8_1.3.2-1_amd64.deb ...
Unpacking libflac8:amd64 (1.3.2-1) ...
Selecting previously unselected package x11-common.
Preparing to unpack .../16-x11-common_1%3a7.7+19_all.deb ...
Unpacking x11-common (1:7.7+19) ...
Selecting previously unselected package libice6:amd64.
Preparing to unpack .../17-libice6_2%3a1.0.9-2_amd64.deb ...
Unpacking libice6:amd64 (2:1.0.9-2) ...
Selecting previously unselected package libjpeg62-turbo:amd64.
Preparing to unpack .../18-libjpeg62-turbo_1%3a1.5.1-2_amd64.deb ...
Unpacking libjpeg62-turbo:amd64 (1:1.5.1-2) ...
Selecting previously unselected package libopus0:amd64.
Preparing to unpack .../19-libopus0_1.2~alpha2-1_amd64.deb ...
Unpacking libopus0:amd64 (1.2~alpha2-1) ...
Selecting previously unselected package libpixman-1-0:amd64.
Preparing to unpack .../20-libpixman-1-0_0.34.0-1_amd64.deb ...
Unpacking libpixman-1-0:amd64 (0.34.0-1) ...
Selecting previously unselected package libsm6:amd64.
Preparing to unpack .../21-libsm6_2%3a1.2.2-1+b3_amd64.deb ...
Unpacking libsm6:amd64 (2:1.2.2-1+b3) ...
Selecting previously unselected package libvorbis0a:amd64.
Preparing to unpack .../22-libvorbis0a_1.3.5-4+deb9u2_amd64.deb ...
Unpacking libvorbis0a:amd64 (1.3.5-4+deb9u2) ...
Selecting previously unselected package libvorbisenc2:amd64.
Preparing to unpack .../23-libvorbisenc2_1.3.5-4+deb9u2_amd64.deb ...
Unpacking libvorbisenc2:amd64 (1.3.5-4+deb9u2) ...
Selecting previously unselected package libsndfile1:amd64.
Preparing to unpack .../24-libsndfile1_1.0.27-3_amd64.deb ...
Unpacking libsndfile1:amd64 (1.0.27-3) ...
Selecting previously unselected package libxdmcp6:amd64.
Preparing to unpack .../25-libxdmcp6_1%3a1.1.2-3_amd64.deb ...
Unpacking libxdmcp6:amd64 (1:1.1.2-3) ...
Selecting previously unselected package libxcb1:amd64.
Preparing to unpack .../26-libxcb1_1.12-1_amd64.deb ...
Unpacking libxcb1:amd64 (1.12-1) ...
Selecting previously unselected package libx11-data.
Preparing to unpack .../27-libx11-data_2%3a1.6.4-3+deb9u1_all.deb ...
Unpacking libx11-data (2:1.6.4-3+deb9u1) ...
Selecting previously unselected package libx11-6:amd64.
Preparing to unpack .../28-libx11-6_2%3a1.6.4-3+deb9u1_amd64.deb ...
Unpacking libx11-6:amd64 (2:1.6.4-3+deb9u1) ...
Selecting previously unselected package libx11-xcb1:amd64.
Preparing to unpack .../29-libx11-xcb1_2%3a1.6.4-3+deb9u1_amd64.deb ...
Unpacking libx11-xcb1:amd64 (2:1.6.4-3+deb9u1) ...
Selecting previously unselected package libxext6:amd64.
Preparing to unpack .../30-libxext6_2%3a1.3.3-1+b2_amd64.deb ...
Unpacking libxext6:amd64 (2:1.3.3-1+b2) ...
Selecting previously unselected package libxi6:amd64.
Preparing to unpack .../31-libxi6_2%3a1.7.9-1_amd64.deb ...
Unpacking libxi6:amd64 (2:1.7.9-1) ...
Selecting previously unselected package libxtst6:amd64.
Preparing to unpack .../32-libxtst6_2%3a1.2.3-1_amd64.deb ...
Unpacking libxtst6:amd64 (2:1.2.3-1) ...
Selecting previously unselected package libpulse0:amd64.
Preparing to unpack .../33-libpulse0_10.0-1+deb9u1_amd64.deb ...
Unpacking libpulse0:amd64 (10.0-1+deb9u1) ...
Selecting previously unselected package libsasl2-modules:amd64.
Preparing to unpack .../34-libsasl2-modules_2.1.27~101-g0780600+dfsg-3_amd64.deb ...
Unpacking libsasl2-modules:amd64 (2.1.27~101-g0780600+dfsg-3) ...
Selecting previously unselected package libsdl1.2debian:amd64.
Preparing to unpack .../35-libsdl1.2debian_1.2.15+dfsg1-4_amd64.deb ...
Unpacking libsdl1.2debian:amd64 (1.2.15+dfsg1-4) ...
Selecting previously unselected package libspice-server1:amd64.
Preparing to unpack .../36-libspice-server1_0.12.8-2.1+deb9u2_amd64.deb ...
Unpacking libspice-server1:amd64 (0.12.8-2.1+deb9u2) ...
Selecting previously unselected package libusb-1.0-0:amd64.
Preparing to unpack .../37-libusb-1.0-0_2%3a1.0.21-1_amd64.deb ...
Unpacking libusb-1.0-0:amd64 (2:1.0.21-1) ...
Selecting previously unselected package libusbredirparser1:amd64.
Preparing to unpack .../38-libusbredirparser1_0.7.1-1_amd64.deb ...
Unpacking libusbredirparser1:amd64 (0.7.1-1) ...
Selecting previously unselected package libvdeplug2.
Preparing to unpack .../39-libvdeplug2_2.3.2+r586-2.1_amd64.deb ...
Unpacking libvdeplug2 (2.3.2+r586-2.1) ...
Selecting previously unselected package libxenstore3.0:amd64.
Preparing to unpack .../40-libxenstore3.0_4.8.4+xsa273+shim4.10.1+xsa273-1+deb9u10_amd64.deb ...
Unpacking libxenstore3.0:amd64 (4.8.4+xsa273+shim4.10.1+xsa273-1+deb9u10) ...
Selecting previously unselected package libyajl2:amd64.
Preparing to unpack .../41-libyajl2_2.1.0-2+b3_amd64.deb ...
Unpacking libyajl2:amd64 (2.1.0-2+b3) ...
Selecting previously unselected package libxen-4.8:amd64.
Preparing to unpack .../42-libxen-4.8_4.8.4+xsa273+shim4.10.1+xsa273-1+deb9u10_amd64.deb ...
Unpacking libxen-4.8:amd64 (4.8.4+xsa273+shim4.10.1+xsa273-1+deb9u10) ...
Selecting previously unselected package openhackware.
Preparing to unpack .../43-openhackware_0.4.1+git-20140423.c559da7c-4_all.deb ...
Unpacking openhackware (0.4.1+git-20140423.c559da7c-4) ...
Selecting previously unselected package libbrlapi0.6:amd64.
Preparing to unpack .../44-libbrlapi0.6_5.4-7+deb9u1_amd64.deb ...
Unpacking libbrlapi0.6:amd64 (5.4-7+deb9u1) ...
Selecting previously unselected package libfdt1:amd64.
Preparing to unpack .../45-libfdt1_1.4.2-1_amd64.deb ...
Unpacking libfdt1:amd64 (1.4.2-1) ...
Selecting previously unselected package qemu-system-arm.
Preparing to unpack .../46-qemu-system-arm_1%3a2.8+dfsg-6+deb9u5_amd64.deb ...
Unpacking qemu-system-arm (1:2.8+dfsg-6+deb9u5) ...
Selecting previously unselected package qemu-system-mips.
Preparing to unpack .../47-qemu-system-mips_1%3a2.8+dfsg-6+deb9u5_amd64.deb ...
Unpacking qemu-system-mips (1:2.8+dfsg-6+deb9u5) ...
Selecting previously unselected package qemu-slof.
Preparing to unpack .../48-qemu-slof_20161019+dfsg-1_all.deb ...
Unpacking qemu-slof (20161019+dfsg-1) ...
Selecting previously unselected package openbios-ppc.
Preparing to unpack .../49-openbios-ppc_1.1.git20161120-2_all.deb ...
Unpacking openbios-ppc (1.1.git20161120-2) ...
Selecting previously unselected package qemu-system-ppc.
Preparing to unpack .../50-qemu-system-ppc_1%3a2.8+dfsg-6+deb9u5_amd64.deb ...
Unpacking qemu-system-ppc (1:2.8+dfsg-6+deb9u5) ...
Selecting previously unselected package openbios-sparc.
Preparing to unpack .../51-openbios-sparc_1.1.git20161120-2_all.deb ...
Unpacking openbios-sparc (1.1.git20161120-2) ...
Selecting previously unselected package qemu-system-sparc.
Preparing to unpack .../52-qemu-system-sparc_1%3a2.8+dfsg-6+deb9u5_amd64.deb ...
Unpacking qemu-system-sparc (1:2.8+dfsg-6+deb9u5) ...
Selecting previously unselected package seabios.
Preparing to unpack .../53-seabios_1.10.2-1_all.deb ...
Unpacking seabios (1.10.2-1) ...
Selecting previously unselected package qemu-system-x86.
Preparing to unpack .../54-qemu-system-x86_1%3a2.8+dfsg-6+deb9u5_amd64.deb ...
Unpacking qemu-system-x86 (1:2.8+dfsg-6+deb9u5) ...
Selecting previously unselected package qemu-system-misc.
Preparing to unpack .../55-qemu-system-misc_1%3a2.8+dfsg-6+deb9u5_amd64.deb ...
Unpacking qemu-system-misc (1:2.8+dfsg-6+deb9u5) ...
Selecting previously unselected package qemu-system.
Preparing to unpack .../56-qemu-system_1%3a2.8+dfsg-6+deb9u5_amd64.deb ...
Unpacking qemu-system (1:2.8+dfsg-6+deb9u5) ...
Selecting previously unselected package qemu-user.
Preparing to unpack .../57-qemu-user_1%3a2.8+dfsg-6+deb9u5_amd64.deb ...
Unpacking qemu-user (1:2.8+dfsg-6+deb9u5) ...
Preparing to unpack .../58-qemu-utils_1%3a2.8+dfsg-6+deb9u5_amd64.deb ...
Unpacking qemu-utils (1:2.8+dfsg-6+deb9u5) over (1:2.8+dfsg-6+deb9u4) ...
Selecting previously unselected package qemu.
Preparing to unpack .../59-qemu_1%3a2.8+dfsg-6+deb9u5_amd64.deb ...
Unpacking qemu (1:2.8+dfsg-6+deb9u5) ...
Selecting previously unselected package qemu-user-binfmt.
Preparing to unpack .../60-qemu-user-binfmt_1%3a2.8+dfsg-6+deb9u5_amd64.deb ...
Unpacking qemu-user-binfmt (1:2.8+dfsg-6+deb9u5) ...
Selecting previously unselected package qemu-efi.
Preparing to unpack .../61-qemu-efi_0~20161202.7bbe0b3e-1_all.deb ...
Unpacking qemu-efi (0~20161202.7bbe0b3e-1) ...
Setting up seabios (1.10.2-1) ...
Setting up binfmt-support (2.1.6-2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/binfmt-support.service → /lib/systemd/system/binfmt-support.service.
Setting up openhackware (0.4.1+git-20140423.c559da7c-4) ...
Setting up libasyncns0:amd64 (0.8-6) ...
Setting up qemu-user (1:2.8+dfsg-6+deb9u5) ...
Setting up openbios-sparc (1.1.git20161120-2) ...
Setting up libjpeg62-turbo:amd64 (1:1.5.1-2) ...
Setting up libasound2-data (1.1.3-5) ...
Setting up libusbredirparser1:amd64 (0.7.1-1) ...
Setting up libsasl2-modules-db:amd64 (2.1.27~101-g0780600+dfsg-3) ...
Setting up libbluetooth3:amd64 (5.43-2+deb9u1) ...
Setting up libsasl2-2:amd64 (2.1.27~101-g0780600+dfsg-3) ...
Setting up libxenstore3.0:amd64 (4.8.4+xsa273+shim4.10.1+xsa273-1+deb9u10) ...
Setting up qemu-slof (20161019+dfsg-1) ...
Setting up libnspr4:amd64 (2:4.12-6) ...
Setting up qemu-utils (1:2.8+dfsg-6+deb9u5) ...
Setting up libopus0:amd64 (1.2~alpha2-1) ...
Setting up libasound2:amd64 (1.1.3-5) ...
Setting up libogg0:amd64 (1.3.2-1) ...
Setting up libvdeplug2 (2.3.2+r586-2.1) ...
Setting up libyajl2:amd64 (2.1.0-2+b3) ...
Setting up libx11-xcb1:amd64 (2:1.6.4-3+deb9u1) ...
Setting up libpixman-1-0:amd64 (0.34.0-1) ...
Setting up libusb-1.0-0:amd64 (2:1.0.21-1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up qemu-user-binfmt (1:2.8+dfsg-6+deb9u5) ...
Processing triggers for systemd (232-25+deb9u6) ...
Setting up libxdmcp6:amd64 (1:1.1.2-3) ...
Setting up libsasl2-modules:amd64 (2.1.27~101-g0780600+dfsg-3) ...
Setting up libcaca0:amd64 (0.99.beta19-2+b2) ...
Setting up libvorbis0a:amd64 (1.3.5-4+deb9u2) ...
Setting up x11-common (1:7.7+19) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up ipxe-qemu (1.0.0+git-20161027.b991c67-1) ...
Setting up openbios-ppc (1.1.git20161120-2) ...
Setting up libx11-data (2:1.6.4-3+deb9u1) ...
Setting up libxau6:amd64 (1:1.0.8-1) ...
Setting up libbrlapi0.6:amd64 (5.4-7+deb9u1) ...
Setting up libfdt1:amd64 (1.4.2-1) ...
Setting up qemu-system-common (1:2.8+dfsg-6+deb9u5) ...
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
Setting up qemu-efi (0~20161202.7bbe0b3e-1) ...
Setting up libspice-server1:amd64 (0.12.8-2.1+deb9u2) ...
Setting up libflac8:amd64 (1.3.2-1) ...
Setting up libnss3:amd64 (2:3.26.2-1.1+deb9u1) ...
Setting up libxen-4.8:amd64 (4.8.4+xsa273+shim4.10.1+xsa273-1+deb9u10) ...
Setting up libcacard0:amd64 (1:2.5.0-3) ...
Setting up libice6:amd64 (2:1.0.9-2) ...
Setting up libvorbisenc2:amd64 (1.3.5-4+deb9u2) ...
Setting up libxcb1:amd64 (1.12-1) ...
Setting up libsm6:amd64 (2:1.2.2-1+b3) ...
Setting up libx11-6:amd64 (2:1.6.4-3+deb9u1) ...
Setting up libsndfile1:amd64 (1.0.27-3) ...
Setting up libxext6:amd64 (2:1.3.3-1+b2) ...
Setting up libxi6:amd64 (2:1.7.9-1) ...
Setting up libxtst6:amd64 (2:1.2.3-1) ...
Setting up libpulse0:amd64 (10.0-1+deb9u1) ...
Setting up libsdl1.2debian:amd64 (1.2.15+dfsg1-4) ...
Setting up qemu-system-x86 (1:2.8+dfsg-6+deb9u5) ...
Setting up qemu-system-sparc (1:2.8+dfsg-6+deb9u5) ...
Setting up qemu-system-misc (1:2.8+dfsg-6+deb9u5) ...
Setting up qemu-system-arm (1:2.8+dfsg-6+deb9u5) ...
Setting up qemu-system-mips (1:2.8+dfsg-6+deb9u5) ...
Setting up qemu-system-ppc (1:2.8+dfsg-6+deb9u5) ...
Setting up qemu-system (1:2.8+dfsg-6+deb9u5) ...
Setting up qemu (1:2.8+dfsg-6+deb9u5) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for systemd (232-25+deb9u6) ...

#5 直野 雄一約2ヶ月前に更新

Download Raspbian for Raspberry Pi https://www.raspberrypi.org/downloads/raspbian/

上記からRaspbian Stretch Liteをダウンロードする。

# wget https://downloads.raspberrypi.org/raspbian_lite_latest
--2018-12-28 08:26:41--  https://downloads.raspberrypi.org/raspbian_lite_latest
Resolving downloads.raspberrypi.org (downloads.raspberrypi.org)... 93.93.130.214, 46.235.227.11, 93.93.128.211, ...
Connecting to downloads.raspberrypi.org (downloads.raspberrypi.org)|93.93.130.214|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2018-11-15/2018-11-13-raspbian-stretch-lite.zip [following]
--2018-12-28 08:26:42--  https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2018-11-15/2018-11-13-raspbian-stretch-lite.zip
Reusing existing connection to downloads.raspberrypi.org:443.
HTTP request sent, awaiting response... 302 Found
Location: http://director.downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2018-11-15/2018-11-13-raspbian-stretch-lite.zip [following]
--2018-12-28 08:26:42--  http://director.downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2018-11-15/2018-11-13-raspbian-stretch-lite.zip
Resolving director.downloads.raspberrypi.org (director.downloads.raspberrypi.org)... 93.93.130.214, 93.93.128.230, 93.93.128.211, ...
Connecting to director.downloads.raspberrypi.org (director.downloads.raspberrypi.org)|93.93.130.214|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 368428301 (351M) [application/zip]
Saving to: ‘raspbian_lite_latest’

raspbian_lite_latest       100%[=====================================>] 351.36M  13.6MB/s    in 27s

2018-12-28 08:27:09 (12.9 MB/s) - ‘raspbian_lite_latest’ saved [368428301/368428301]

#6 直野 雄一約2ヶ月前に更新

zipを展開する。

# apt -y install unzip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  zip
The following NEW packages will be installed:
  unzip
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 170 kB of archives.
After this operation, 547 kB of additional disk space will be used.
Get:1 http://mirrors.digitalocean.com/debian stretch/main amd64 unzip amd64 6.0-21 [170 kB]
Fetched 170 kB in 0s (11.1 MB/s)
Selecting previously unselected package unzip.
(Reading database ... 30577 files and directories currently installed.)
Preparing to unpack .../unzip_6.0-21_amd64.deb ...
Unpacking unzip (6.0-21) ...
Processing triggers for mime-support (3.60) ...
Setting up unzip (6.0-21) ...
# unzip raspbian_lite_latest
Archive:  raspbian_lite_latest
  inflating: 2018-11-13-raspbian-stretch-lite.img

#7 直野 雄一約2ヶ月前に更新

dhruvvyas90/qemu-rpi-kernel: Qemu kernel for emulating Rpi on QEMU https://github.com/dhruvvyas90/qemu-rpi-kernel

QEMUカーネルとデバイスツリーをダウンロードする。

# wget https://github.com/dhruvvyas90/qemu-rpi-kernel/raw/master/kernel-qemu-4.14.50-stretch
--2018-12-28 08:32:08--  https://github.com/dhruvvyas90/qemu-rpi-kernel/raw/master/kernel-qemu-4.14.50-stretch
Resolving github.com (github.com)... 13.250.177.223, 52.74.223.119, 13.229.188.59
Connecting to github.com (github.com)|13.250.177.223|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/dhruvvyas90/qemu-rpi-kernel/master/kernel-qemu-4.14.50-stretch [following]
--2018-12-28 08:32:09--  https://raw.githubusercontent.com/dhruvvyas90/qemu-rpi-kernel/master/kernel-qemu-4.14.50-stretch
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.8.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.8.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3280800 (3.1M) [application/octet-stream]
Saving to: ‘kernel-qemu-4.14.50-stretch’

kernel-qemu-4.14.50-stretc 100%[=====================================>]   3.13M  --.-KB/s    in 0.1s

2018-12-28 08:32:09 (25.5 MB/s) - ‘kernel-qemu-4.14.50-stretch’ saved [3280800/3280800]
# wget https://github.com/dhruvvyas90/qemu-rpi-kernel/raw/master/versatile-pb.dtb
--2018-12-28 08:32:23--  https://github.com/dhruvvyas90/qemu-rpi-kernel/raw/master/versatile-pb.dtb
Resolving github.com (github.com)... 52.74.223.119, 13.229.188.59, 13.250.177.223
Connecting to github.com (github.com)|52.74.223.119|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/dhruvvyas90/qemu-rpi-kernel/master/versatile-pb.dtb [following]
--2018-12-28 08:32:24--  https://raw.githubusercontent.com/dhruvvyas90/qemu-rpi-kernel/master/versatile-pb.dtb
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.8.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.8.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8067 (7.9K) [application/octet-stream]
Saving to: ‘versatile-pb.dtb’

versatile-pb.dtb           100%[=====================================>]   7.88K  --.-KB/s    in 0s

2018-12-28 08:32:24 (62.1 MB/s) - ‘versatile-pb.dtb’ saved [8067/8067]

#8 直野 雄一約2ヶ月前に更新

# qemu-system-arm \
-kernel kernel-qemu-4.14.50-stretch \
-cpu arm1176 \
-M versatilepb \
-dtb versatile-pb.dtb \
-m 256 \
-no-reboot \
-serial stdio \
-append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" \
-hda 2018-11-13-raspbian-stretch-lite.img \
-net nic \
-net user,hostfwd=tcp::10022-:22 \
-curses

DigitalOceanではグラフィック・カードがないために、手順通りではエラーになる。-cursesオプションを付けると起動した。

virtual machine - Running qemu remotely (via ssh) - Stack Overflow https://stackoverflow.com/questions/22967925/running-qemu-remotely-via-ssh

#9 直野 雄一約2ヶ月前に更新

$ sudo raspi-config

変更する項目

  • 2 Network Options
    • N1 Hostname
  • 4 Localisation Options
    • I1 Change Locale
      • ja_JP.UTF-8
    • I2 Change Timezone
      • Asia/Tokyo
  • 6 Overclock
    • Turbo
  • 7 Advanced Options
    • A1 Expand Filesystem
    • A3 Memory Split

#10 直野 雄一約2ヶ月前に更新

ファームウェアをアップデートする。

$ sudo rpi-update

#11 直野 雄一約2ヶ月前に更新

ストレージ容量が小さい。

$ df -h
ファイルシス   サイズ  使用  残り 使用% マウント位置
/dev/root        1.7G  1.2G  409M   74% /
devtmpfs         124M     0  124M    0% /dev
tmpfs            124M     0  124M    0% /dev/shm
tmpfs            124M  1.9M  122M    2% /run
tmpfs            5.0M     0  5.0M    0% /run/lock
tmpfs            124M     0  124M    0% /sys/fs/cgroup
/dev/sda1         44M   23M   22M   52% /boot
tmpfs             25M     0   25M    0% /run/user/1000

#12 直野 雄一約2ヶ月前に更新

Raspbianイメージのサイズを拡張する。

# qemu-img resize 2018-11-13-raspbian-stretch-lite.img +4G
WARNING: Image format was not specified for '2018-11-13-raspbian-stretch-lite.img' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
Image resized.

#13 直野 雄一約2ヶ月前に更新

$ sudo fdisk /dev/sda

Welcome to fdisk (util-linux 2.29.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): 

#14 直野 雄一約2ヶ月前に更新

パーティションリストを表示する。/dev/sda2Startの値を覚えておく。

Command (m for help): p

Disk /dev/sda: 5.8 GiB, 6161432576 bytes, 12034048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x7ee80803

Device     Boot Start     End Sectors  Size Id Type
/dev/sda1        8192   98045   89854 43.9M  c W95 FAT32 (LBA)
/dev/sda2       98304 3645439 3547136  1.7G 83 Linux

#15 直野 雄一約2ヶ月前に更新

/dev/sda2を削除する。

Command (m for help): d
Partition number (1,2, default 2): 2

Partition 2 has been deleted.

#16 直野 雄一約2ヶ月前に更新

パーティションを作成する。

Command (m for help): n
Partition type
   p   primary (1 primary, 0 extended, 3 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (2-4, default 2): 2
First sector (2048-12034047, default 2048): 98304
Last sector, +sectors or +size{K,M,G,T,P} (98304-12034047, default 12034047):

Created a new partition 2 of type 'Linux' and of size 5.7 GiB.
Partition #2 contains a ext4 signature.

Do you want to remove the signature? [Y]es/[N]o: n

#17 直野 雄一約2ヶ月前に更新

パーティション情報を書き込み、fdiskを終了する。

Command (m for help): w

The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: デバイスもしくはリソースがビジー状態です

The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).

#18 直野 雄一約2ヶ月前に更新

再起動する。

$ sudo reboot

#19 直野 雄一約2ヶ月前に更新

ファイルシステムをサイズ変更する。

$ sudo resize2fs /dev/sda2
resize2fs 1.43.4 (31-Jan-2017)
Filesystem at /dev/sda2 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1
The filesystem on /dev/sda2 is now 1491968 (4k) blocks long.

#20 直野 雄一約2ヶ月前に更新

ストレージ容量が増えたことが確認できる。

$ df -h
ファイルシス   サイズ  使用  残り 使用% マウント位置
/dev/root        5.6G  1.2G  4.2G   22% /
devtmpfs         124M     0  124M    0% /dev
tmpfs            124M     0  124M    0% /dev/shm
tmpfs            124M  1.9M  122M    2% /run
tmpfs            5.0M     0  5.0M    0% /run/lock
tmpfs            124M     0  124M    0% /sys/fs/cgroup
/dev/sda1         44M   23M   22M   52% /boot
tmpfs             25M     0   25M    0% /run/user/1000

#21 直野 雄一約2ヶ月前に更新

ここまでの手順を、Ansibleプレイブックと手順に整理する。

#22 直野 雄一約2ヶ月前に更新

my-servicesプロジェクトでブランチを開始した。

それはそれとして、USBメモリやMacBookやSurfaceの空き容量不足が深刻になってきたので、 #6181 でとりあえずLVMストレージを接続して、ファイルを移行する。空き容量不足が解消したら、改めて要件を整理・設計・実装を行い、RaspberryPiを再構築する。

#23 直野 雄一約1ヶ月前に更新

devopsgroup-io/vagrant-digitalocean: A Vagrant provider plugin that manages DigitalOcean droplets. https://github.com/devopsgroup-io/vagrant-digitalocean

#24 直野 雄一約1ヶ月前に更新

DigitalOceanに512mbのDropletを作成した。

apt -y install git git-flow tmux ansible python-apt

my-servicesリポジトリをgit cloneした。

#25 直野 雄一約1ヶ月前に更新

DigitalOceanのDropletをRaspbianシミュレーターとしてセットアップするAnsible Playbookを作成した。

#26 直野 雄一約1ヶ月前に更新

RaspbianをセットアップするAnsible Playbookを作成中。

piユーザーを削除する手順を追加する。

rootユーザーのパスワードを変更する手順を追加する。

Raspbianイメージのダウンロード直後にリサイズする手順を追加する。

適当なimgを作成して、スワップ領域に追加する手順を追加する。

ダウンロードしたファイルたちがroot権限なので、sshd_user権限にするよう手順を変更する。

#27 直野 雄一約1ヶ月前に更新

piユーザーはパスワード認証なので、ansible-playbookコマンドに--ask-passオプションを追加する。

#28 直野 雄一約1ヶ月前に更新

Altering available memory for QEMU - Raspberry Pi Forums https://www.raspberrypi.org/forums/viewtopic.php?f=53&t=8649

mieki256's diary - Windows上でRaspberry Piのエミュレータを動かしてみたり http://blawat2015.no-ip.com/~mieki256/diary/201711031.html

#29 直野 雄一約1ヶ月前に更新

  • 説明 を更新 (diff)

#30 直野 雄一約1ヶ月前に更新

まだRaspbianのPlaybookを作成中だが、Raspbian仮想マシンの構築は終了したので、目的は果たしたと考える。

ブランチをマージして、リリースする。

#31 直野 雄一約1ヶ月前に更新

developにマージした。リリースする。

#32 直野 雄一約1ヶ月前に更新

  • 説明 を更新 (diff)

リリースした。ブログを書く。

#33 直野 雄一約1ヶ月前に更新

記事を書いて、developにマージした。リリースする。

#34 直野 雄一約1ヶ月前に更新

記事をリリースした。

Ansibleで構築する手順と、構築後の細かい作業を記事にする。

#35 直野 雄一16日前に更新

  • 説明 を更新 (diff)

#36 直野 雄一16日前に更新

  • 説明 を更新 (diff)

#37 直野 雄一16日前に更新

  • 説明 を更新 (diff)

#39 直野 雄一16日前に更新

  • 説明 を更新 (diff)

#40 直野 雄一16日前に更新

  • 説明 を更新 (diff)

#41 直野 雄一16日前に更新

  • 説明 を更新 (diff)

#42 直野 雄一15日前に更新

Dockerをインストールして、DockerコンテナとしてMinioなどを動作させようと考えた。

公式リファレンスの通り curl -s https://get.docker.com/ | sh でインストールした。インストールは成功したが、dockerサービスの起動が失敗する。

このIssueの通りだと考えるが、対応しても解消しなかった。

#43 直野 雄一15日前に更新

Get Docker CE for Debian | Docker Documentation https://docs.docker.com/install/linux/docker-ce/debian/

#44 直野 雄一15日前に更新

リポジトリからDocker CEをインストールする手順も実施してみたが、add-apt-repositoryapt-get install docker-ceでエラーが発生してしまう。もうやだ。

#45 直野 雄一15日前に更新

  • 説明 を更新 (diff)

#46 直野 雄一15日前に更新

Dockerが利用できないのは辛いけど、そもそもRaspberryPiサーバーはストレージ・サーバーとして可動させる想定なので、最低でもMinioが動作すればよい。しかたないので、Minioを素でセットアップする。

#47 直野 雄一15日前に更新

これまでに試したことは #6181 の件なので、そちらで続行する。

#48 直野 雄一15日前に更新

  • 説明 を更新 (diff)

#49 直野 雄一5日前に更新

  • 題名RaspberryPiの仮想環境を構築する から 記事を書く…RaspberryPiの仮想環境を構築する に変更
  • 開始日 を削除 (2018-12-28)

他の形式にエクスポート: Atom PDF