차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
| pve9_local_repository_구성 [2025/11/21 02:13] – koov | pve9_local_repository_구성 [2025/11/21 03:02] (현재) – koov | ||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ====== PVE9 local repository 구성 ====== | ====== PVE9 local repository 구성 ====== | ||
| + | --- // | ||
| 인터넷이 안되는 환경이나 특수한 상황에서 PVE를 구성해야 할 경우 레포지토리를 접근하기 위해 로컬에 레포지토리 미러를 구성하는 방법에 대해 설명한다. | 인터넷이 안되는 환경이나 특수한 상황에서 PVE를 구성해야 할 경우 레포지토리를 접근하기 위해 로컬에 레포지토리 미러를 구성하는 방법에 대해 설명한다. | ||
| 줄 47: | 줄 48: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| + | |||
| + | 미러링 설정한 내용을 조회하려면 아래와 같다. | ||
| + | |||
| + | <WRAP prewrap> | ||
| + | <code bash> | ||
| + | root@pve:/ | ||
| + | ┌────────────────────────────┬───────────────────────────────────────────────────────────────────────────────────────────────────┬───────────────────────────────────────┬────────┬──────┐ | ||
| + | │ ID │ repository | ||
| + | ╞════════════════════════════╪═══════════════════════════════════════════════════════════════════════════════════════════════════╪═══════════════════════════════════════╪════════╪══════╡ | ||
| + | │ ceph_squid_trixie | ||
| + | ├────────────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────┼───────────────────────────────────────┼────────┼──────┤ | ||
| + | │ debian_trixie_backports | ||
| + | ├────────────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────┼───────────────────────────────────────┼────────┼──────┤ | ||
| + | │ debian_trixie_main | ||
| + | ├────────────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────┼───────────────────────────────────────┼────────┼──────┤ | ||
| + | │ debian_trixie_security | ||
| + | ├────────────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────┼───────────────────────────────────────┼────────┼──────┤ | ||
| + | │ debian_trixie_updates | ||
| + | ├────────────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────┼───────────────────────────────────────┼────────┼──────┤ | ||
| + | │ pve_trixie_no-subscription │ deb http:// | ||
| + | └────────────────────────────┴───────────────────────────────────────────────────────────────────────────────────────────────────┴───────────────────────────────────────┴────────┴──────┘ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | 혹시 미러링 경로나 대상 디렉토리를 변경하려면 아래와 같이 수행하면 된다. | ||
| + | <WRAP prewrap> | ||
| + | <code bash> | ||
| + | proxmox-offline-mirror config mirror update --id debian_trixie_backports --repository "deb http:// | ||
| + | proxmox-offline-mirror config mirror update --id debian_trixie_main --repository "deb http:// | ||
| + | proxmox-offline-mirror config mirror update --id debian_trixie_updates --repository "deb http:// | ||
| + | proxmox-offline-mirror config mirror update --id debian_trixie_security --repository "deb http:// | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
| 위의 6개 레포지토리를 선택했다면 저장하고 나와서 스냅샷을 생성하고 미러링을 수행한다. | 위의 6개 레포지토리를 선택했다면 저장하고 나와서 스냅샷을 생성하고 미러링을 수행한다. | ||
| 줄 209: | 줄 245: | ||
| 위와같이 미러링을 시도할때마다 스냅샷이 날짜시간 형태로 계속해서 만들어진다. 그렇다고 해서 동일한 패키지 파일을 계속 받아두는 방식은 아니고 '' | 위와같이 미러링을 시도할때마다 스냅샷이 날짜시간 형태로 계속해서 만들어진다. 그렇다고 해서 동일한 패키지 파일을 계속 받아두는 방식은 아니고 '' | ||
| + | |||
| + | '' | ||
| 만약 스냅샷을 모두 삭제하고 싶다면 아래 스크립트를 이용하도록 한다. | 만약 스냅샷을 모두 삭제하고 싶다면 아래 스크립트를 이용하도록 한다. | ||
| 줄 235: | 줄 273: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | <WRAP center round important 60%> | ||
| 실행후 반드시 다시한번 미러링을 실시하여 스냅샷을 최소 한개 만들어놔야지만 '' | 실행후 반드시 다시한번 미러링을 실시하여 스냅샷을 최소 한개 만들어놔야지만 '' | ||
| + | </ | ||
| 이렇게 미러는 구성되어 있지만 우리는 일반적인 레포지토리 형태로 사용하고 싶기 때문에 아래 스크립트를 이용하여 레포지토리를 복제하도록 한다. | 이렇게 미러는 구성되어 있지만 우리는 일반적인 레포지토리 형태로 사용하고 싶기 때문에 아래 스크립트를 이용하여 레포지토리를 복제하도록 한다. | ||
| 줄 320: | 줄 361: | ||
| ##### | ##### | ||
| Types: deb | Types: deb | ||
| - | URIs: file:/// | + | URIs: file:///data/ |
| Suites: trixie | Suites: trixie | ||
| Components: no-subscription | Components: no-subscription | ||
| 줄 326: | 줄 367: | ||
| Types: deb | Types: deb | ||
| - | URIs: file:/// | + | URIs: file:/// |
| + | Suites: trixie-backports | ||
| + | Components: main contrib non-free non-free-firmware | ||
| + | Trusted: yes | ||
| + | |||
| + | Types: deb | ||
| + | URIs: file:/// | ||
| Suites: trixie | Suites: trixie | ||
| - | Components: main contrib | + | Components: main contrib |
| Trusted: yes | Trusted: yes | ||
| Types: deb | Types: deb | ||
| - | URIs: file:/// | + | URIs: file:///data/ |
| Suites: trixie-security | Suites: trixie-security | ||
| - | Components: main | + | Components: main contrib non-free non-free-firmware |
| Trusted: yes | Trusted: yes | ||
| Types: deb | Types: deb | ||
| - | URIs: file:/// | + | URIs: file:///data/ |
| Suites: trixie-updates | Suites: trixie-updates | ||
| - | Components: main | + | Components: main contrib non-free non-free-firmware |
| Trusted: yes | Trusted: yes | ||
| Types: deb | Types: deb | ||
| - | URIs: file:/// | + | URIs: file:///data/ |
| Suites: trixie | Suites: trixie | ||
| Components: pve-no-subscription | Components: pve-no-subscription | ||
| Trusted: yes | Trusted: yes | ||
| + | |||
| </ | </ | ||
| </ | </ | ||
| 줄 359: | 줄 407: | ||
| ##### | ##### | ||
| deb [trusted=yes] file:/// | deb [trusted=yes] file:/// | ||
| - | deb [trusted=yes] file:/// | + | deb [trusted=yes] file:/// |
| - | deb [trusted=yes] file:/// | + | deb [trusted=yes] file:/// |
| - | deb [trusted=yes] file:/// | + | deb [trusted=yes] file:/// |
| + | deb [trusted=yes] file:/// | ||
| deb [trusted=yes] file:/// | deb [trusted=yes] file:/// | ||
| </ | </ | ||