{"id":244781,"date":"2022-07-02T08:10:14","date_gmt":"2022-07-02T00:10:14","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=244781"},"modified":"2022-06-23T18:10:30","modified_gmt":"2022-06-23T10:10:30","slug":"overlay2-bind-iso","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/overlay2-bind-iso.html","title":{"rendered":"\u5982\u4f55\u901a\u8fc7 Overlay2 \u6216 Bind \u8fdb\u884cISO \u91cd\u65b0\u6784\u5efa"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u81ea\u4ece\u6362\u4e86\u65b0\u5de5\u4f5c\u4e4b\u540e\uff0c\u5219\u5f00\u59cb\u8d1f\u8d23 \u8d85\u878d\u5408\u4ea7\u54c1[3] \u96c6\u7fa4\u90e8\u7f72\u76f8\u5173\u5de5\u4f5c\uff0c\u56e0\u6b64\u4e5f\u4f1a\u63a5\u89e6\u5f88\u591a\u955c\u50cf\uff0c\u4e0d\u8fc7\u8fd9\u4e2a\u955c\u50cf\u662f\u64cd\u4f5c\u7cfb\u7edf\u7684 ISO \u955c\u50cf\u800c\u4e0d\u662f\u5bb9\u5668\u955c\u50cf \u3002\u867d\u7136\u4e24\u8005\u90fd\u7edf\u79f0\u4e3a\u955c\u50cf\uff0c\u4f46\u4e24\u8005\u6709\u7740\u672c\u8d28\u7684\u533a\u522b\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u7b14\u8005\u4e4b\u524d\u5728\u5b57\u8282\u8df3\u52a8\u7684\u65f6\u5019\u662f\u8d1f\u8d23 PaaS \u5bb9\u5668\u4e91\u5e73\u53f0\u7684\u79c1\u6709\u5316\u90e8\u7f72\u76f8\u5173\u7684\u5de5\u4f5c\uff0c\u6240\u4ee5\u7ecf\u5e38\u4f1a\u548c\u4e00\u4e9b\u5bb9\u5668\u955c\u50cf\u6253\u4ea4\u9053\uff0c\u5bf9\u5bb9\u5668\u955c\u50cf\u4e5f\u6709\u4e00\u4e9b\u7814\u7a76\uff0c\u4e4b\u524d\u8fd8\u5199\u8fc7\u4e0d\u5c11\u535a\u5ba2\u6587\u7ae0\u3002\u6bd4\u5982 \u6df1\u5165\u6d45\u51fa\u5bb9\u5668\u955c\u50cf\u7684\u4e00\u751f[1]\u3001overlay2 \u5728\u6253\u5305\u53d1\u5e03\u6d41\u6c34\u7ebf\u4e2d\u7684\u5e94\u7528[2] \u7b49\u7b49\u3002<\/p>\n \u9996\u5148\u4e24\u8005\u6784\u5efa\u7684\u65b9\u5f0f\u6709\u672c\u8d28\u7684\u5f88\u5927\u7684\u533a\u522b\uff0cISO \u955c\u50cf\u4e00\u822c\u4f7f\u7528 mkisofs \u6216\u8005 genisoimage \u7b49\u547d\u4ee4\u5c06\u4e00\u4e2a\u5305\u542b\u64cd\u4f5c\u7cfb\u7edf\u5b89\u88c5\u6240\u6709\u6587\u4ef6\u76ee\u5f55\u6784\u5efa\u4e3a\u4e00\u4e2a ISO \u955c\u50cf\uff1b\u800c\u5bb9\u5668\u955c\u50cf\u6784\u5efa\u5219\u662f\u6839\u636e Dockerfile \u6587\u4ef6\u4f7f\u7528\u76f8\u5e94\u7684\u5bb9\u5668\u955c\u50cf\u6784\u5efa\u5de5\u5177\u6765\u4e00\u5c42\u4e00\u5c42\u6784\u5efa\uff1b<\/p>\n \u53e6\u5916 ISO \u955c\u50cf\u6302\u8f7d\u540e\u662f\u53ea\u8bfb\u7684\uff0c\u8fd9\u5c31\u610f\u5473\u7740\u5982\u679c\u60f3\u8981\u4fee\u6539 ISO \u955c\u50cf\u4e2d\u7684\u4e00\u4e2a\u6587\u4ef6\uff08\u6bd4\u5982 kickstart \u6587\u4ef6\uff09\uff0c\u5219\u9700\u8981\u5148\u5c06 ISO \u955c\u50cf\u4e2d\u7684\u6240\u6709\u5185\u5bb9\u590d\u5236\u5230\u4e00\u4e2a\u53ef\u4ee5\u8bfb\u5199\u7684\u76ee\u5f55\u4e2d\uff0c\u5728\u8fd9\u4e2a\u8bfb\u5199\u7684\u76ee\u5f55\u4e2d\u8fdb\u884c\u4fee\u6539\u548c\u91cd\u65b0\u6784\u5efa ISO \u64cd\u4f5c\u3002<\/p>\n \u256d\u2500root@esxi-debian-devbox ~\/build\r\n\u2570\u2500# mount -o loop CentOS-7-x86_64-Minimal-2009.iso \/mnt\/iso\r\nmount: \/mnt\/iso: WARNING: device write-protected, mounted read-only.\r\n\u256d\u2500root@esxi-debian-devbox ~\/build\r\n\u2570\u2500# touch \/mnt\/iso\/kickstart.cfg\r\ntouch: cannot touch '\/mnt\/iso\/kickstart.cfg': Read-only file system<\/pre>\n |