flagflag  If you want to see English page, please click "English" Button at Left.
1: 2020-09-20 (日) 10:27:33 iseki ソース 2: 2020-09-20 (日) 11:54:54 iseki ソース
Line 1: Line 1:
** [[VyOS]] の [[Docker]] イメージを自分で作ってみる [#w16f99dd] ** [[VyOS]] の [[Docker]] イメージを自分で作ってみる [#w16f99dd]
 +*** VyOS 1.3 [#lfb39dd1]
 +- VyOS 1.2 で失敗したので,ISOイメージを本家から取ってくる.
 +- 2020 9/20 時点の rolling 版
 +- wget https://downloads.vyos.io/rolling/curren​t/amd64/vyos-rolling-latest.iso
 +- debian のバージョンは buster
 +- ISO から Docker イメージを作成は,VyOS 1.2参照
 +#br
 +
 +*** VyOS 1.2 [#v99c0259]
 +
**** ISOファイルの作成 [#yfc981b6] **** ISOファイルの作成 [#yfc981b6]
- https://docs.vyos.io/en/latest/contribut​ing/build-vyos.html - https://docs.vyos.io/en/latest/contribut​ing/build-vyos.html
Line 22: Line 32:
 # mount -o loop build/vyos-999.202009191402-amd64.iso rootfs  # mount -o loop build/vyos-999.202009191402-amd64.iso rootfs
 # mkdir unsquashfs  (パーミッション注意)  # mkdir unsquashfs  (パーミッション注意)
- # sudo unsquashfs -f -d unsquashfs/ rootfs/live/filesystem.squashfs+ # unsquashfs -f -d unsquashfs/ rootfs/live/filesystem.squashfs
 # cd unsquashfs  # cd unsquashfs
 # find etc lib opt usr -type d | xargs chmod a+rx (パーミッション注意)  # find etc lib opt usr -type d | xargs chmod a+rx (パーミッション注意)
Line 54: Line 64:
 # ..... 変更  # ..... 変更
 # tar -C rootfs -c . | docker import - vyos_netp:200920  # tar -C rootfs -c . | docker import - vyos_netp:200920
 + # docker images
- それでも元に戻るやつは戻る! - それでも元に戻るやつは戻る!
#br #br
-*** Trouble Shooting [#t34ccee1] +**** Trouble Shooting [#t34ccee1] 
-**** apt-get [#of1d791e] +- apt-get 
-- Error: cannot get security labeling handle: No such file or directory+-- Error: cannot get security labeling handle: No such file or directory
 (コンテナ内) # mount -o remount,ro /sys/fs/selinux  (コンテナ内) # mount -o remount,ro /sys/fs/selinux
 +#br
 +**** Error [#v0f3fbce]
 +- passwd コマンドが実行できない.
 +- vyos ユーザがいない.
 +- vyos で configure コマンドが打てない.(adduser で vyosユーザを作成)
 +- 結局使えないじゃん!
#br #br


トップ   新規 ページ一覧 単語検索 最終更新   ヘルプ   最終更新のRSS 1.0 最終更新のRSS 2.0 最終更新のRSS Atom

サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 5月翌月
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
<今日>

オンライン状況

92 人のユーザが現在オンラインです。 (17 人のユーザが xpwiki を参照しています。)

登録ユーザ: 0
ゲスト: 92

もっと...

アクセスカウンタ

今日 : 1278912789127891278912789
昨日 : 1716817168171681716817168
総計 : 2350925023509250235092502350925023509250235092502350925023509250
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com