flagflag  
1: 2020-09-20 (Sun) 10:27:33 iseki source 2: 2020-09-20 (Sun) 11:54:54 iseki source
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


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
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
Today

Who's Online

38 user(s) are online (6 user(s) are browsing xpwiki)

Members: 0
Guests: 38

more...

Access Counter

Today : 2941294129412941
Yesterday : 5790579057905790
Total : 2365573723655737236557372365573723655737236557372365573723655737
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com