{"url":"https://takuya-1st.hatenablog.jp/entry/2023/02/08/180245","provider_name":"Hatena Blog","height":"190","type":"rich","blog_url":"https://takuya-1st.hatenablog.jp/","categories":["linux","raspberry pi"],"version":"1.0","provider_url":"https://hatena.blog","title":"\u8907\u88fd\u3057\u305f\u3089machine-id\u3092\u5909\u3048\u3066\u304a\u304f\u3002MAC\u30a2\u30c9\u30ec\u30b9\u304c\u91cd\u8907\u3059\u308b\u3002(macvlan)","blog_title":"\u305d\u308c\u30de\u30b0\u3067\uff01","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2023%2F02%2F08%2F180245\" title=\"\u8907\u88fd\u3057\u305f\u3089machine-id\u3092\u5909\u3048\u3066\u304a\u304f\u3002MAC\u30a2\u30c9\u30ec\u30b9\u304c\u91cd\u8907\u3059\u308b\u3002(macvlan) - \u305d\u308c\u30de\u30b0\u3067\uff01\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"takuya_1st","author_url":"https://blog.hatena.ne.jp/takuya_1st/","published":"2023-02-08 18:02:45","width":"100%","description":"Raspberry Pi \u306eSD\u30ab\u30fc\u30c9\u3092\u8907\u88fd\u3057\u3066\u3001\uff12\u53f0\u8d77\u52d5\u3057\u305f\u3089MAC\u30a2\u30c9\u30ec\u30b9\u304c\u885d\u7a81\u3057\u305f\u3002eth0\u306f\u885d\u7a81\u3057\u306a\u3044\u3093\u3060\u3051\u3069\u3001macvlan \u304c\u885d\u7a81\u3057\u305f machine-id \u306e\u5909\u66f4 rm -f /etc/machine-id dbus-uuidgen --ensure=/etc/machine-id reboot machine-id \u3092\u5909\u66f4\u3057\u305f\u3089\u885d\u7a81\u304c\u306a\u304f\u306a\u3063\u305f\u3002 dd \u306b\u3088\u308bclone\u5f8c\u306b\u3084\u3063\u3066\u304a\u304f\u3079\u304d\u3060\u3063\u305f\u304b\u3082\u3057\u308c\u306a\u3044\u3002 systemd-firstboot --root=/mnt --setup-machine-id \u78ba\u8a8d\u65b9\u6cd5 \u6b21\u306e\u3088\u3046\u306b\u884c\u3063\u3066\u3001\u30de\u30b7\u30f3\u306eID\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304f\u3002 hostname\u2026"}