Files
document-haness/docs/keycloak-session-store/final/assets/guest-as-host-process/guest-as-host-process.alt.md
T

28 lines
2.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 게스트 두 대는 호스트에서 qemu 프로세스 두 개다
## Alternative text
호스트 안에 libvirtd·machine.slice·virbr0 와 qemu 프로세스 두 개가 있고, 각 프로세스가 게스트 하나씩을 담는 배치도.
## Long description
위에서 아래로 읽는다. 호스트 test-server 경계 안에 libvirtd 가 있고 그 아래에 qemu-system-x86_64 프로세스가 게스트 수만큼 있다. 경계 밖 아래쪽에 게스트 kc-lab-1 과 kc-lab-2 가 각각 따로 있고, 게스트가 보는 디스크와 인터페이스는 자기를 담은 프로세스가 virtio 로 내준다. 프로세스에 적힌 RSS 와 게스트에 적힌 available 은 같은 메모리를 다른 껍질에서 읽은 값이다. machine.slice 와 virbr0 는 이 그림에 넣지 않았고 본문이 맡는다.
## Elements and evidence
- **Boundary: 호스트 test-server** (system): libvirtd 와 게스트 프로세스가 함께 도는 호스트 경계. Evidence: L946L948, L956L956.
- **Boundary: 게스트 kc-lab-1** (system): qemu 프로세스 하나가 담는 Debian 게스트. Evidence: L987L990, L1039L1039.
- **Boundary: 게스트 kc-lab-2** (system): 나머지 qemu 프로세스가 담는 Debian 게스트. Evidence: L1033L1033, L1040L1040.
- **libvirtd** (service): 게스트마다 qemu-system-x86_64 를 하나씩 띄우는 호스트 데몬. htop 트리 뷰에서 그 아래에 게스트 프로세스가 달린다. Evidence: L946L948, L956L956.
- **qemu-system-x86_64** (service): kc-lab-1 게스트 전체가 들어 있는 호스트 프로세스. vCPU 는 이 프로세스의 스레드이고 RSS 는 게스트가 터치한 페이지만큼이다. Evidence: L946L948, L987L987, L1032L1032.
- **qemu-system-x86_64** (service): kc-lab-2 게스트 전체가 들어 있는 호스트 프로세스. A-4 의 virsh destroy 가 끊는 것이 이 프로세스다. Evidence: L946L948, L967L976, L1033L1033.
- **Debian 게스트 커널** (service): virtio 장치만 보는 게스트. free 가 읽는 값이 여기 있다. Evidence: L994L998, L1039L1039.
- **Debian 게스트 커널** (service): 같은 방식으로 붙은 두 번째 게스트. Evidence: L994L998, L1040L1040.
## Relationships
- **libvirtd → qemu-system-x86_64:** 프로세스 생성. Evidence: L946L948, L956L956.
- **libvirtd → qemu-system-x86_64:** 프로세스 생성. Evidence: L946L948, L956L956.
- **qemu-system-x86_64 → Debian 게스트 커널:** virtio 디스크 · virtio-net. Evidence: L987L990, L994L998.
- **qemu-system-x86_64 → Debian 게스트 커널:** virtio 디스크 · virtio-net. Evidence: L987L990, L994L998.