feat: 가상화 문서들 추가
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
# 게스트 두 대는 호스트에서 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: L946–L948, L956–L956.
|
||||
- **Boundary: 게스트 kc-lab-1** (system): qemu 프로세스 하나가 담는 Debian 게스트. Evidence: L987–L990, L1039–L1039.
|
||||
- **Boundary: 게스트 kc-lab-2** (system): 나머지 qemu 프로세스가 담는 Debian 게스트. Evidence: L1033–L1033, L1040–L1040.
|
||||
- **libvirtd** (service): 게스트마다 qemu-system-x86_64 를 하나씩 띄우는 호스트 데몬. htop 트리 뷰에서 그 아래에 게스트 프로세스가 달린다. Evidence: L946–L948, L956–L956.
|
||||
- **qemu-system-x86_64** (service): kc-lab-1 게스트 전체가 들어 있는 호스트 프로세스. vCPU 는 이 프로세스의 스레드이고 RSS 는 게스트가 터치한 페이지만큼이다. Evidence: L946–L948, L987–L987, L1032–L1032.
|
||||
- **qemu-system-x86_64** (service): kc-lab-2 게스트 전체가 들어 있는 호스트 프로세스. A-4 의 virsh destroy 가 끊는 것이 이 프로세스다. Evidence: L946–L948, L967–L976, L1033–L1033.
|
||||
- **Debian 게스트 커널** (service): virtio 장치만 보는 게스트. free 가 읽는 값이 여기 있다. Evidence: L994–L998, L1039–L1039.
|
||||
- **Debian 게스트 커널** (service): 같은 방식으로 붙은 두 번째 게스트. Evidence: L994–L998, L1040–L1040.
|
||||
|
||||
## Relationships
|
||||
|
||||
- **libvirtd → qemu-system-x86_64:** 프로세스 생성. Evidence: L946–L948, L956–L956.
|
||||
- **libvirtd → qemu-system-x86_64:** 프로세스 생성. Evidence: L946–L948, L956–L956.
|
||||
- **qemu-system-x86_64 → Debian 게스트 커널:** virtio 디스크 · virtio-net. Evidence: L987–L990, L994–L998.
|
||||
- **qemu-system-x86_64 → Debian 게스트 커널:** virtio 디스크 · virtio-net. Evidence: L987–L990, L994–L998.
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
# 게스트 두 대는 호스트에서 qemu 프로세스 두 개다
|
||||
# Question: 호스트에서 게스트는 무엇으로 존재하고, 게스트가 보는 장치는 누가 만들어 주는가
|
||||
direction: down
|
||||
g0: "호스트 test-server" {
|
||||
n0: "libvirtd" {
|
||||
shape: rectangle
|
||||
}
|
||||
n1: "qemu-system-x86_64" {
|
||||
shape: rectangle
|
||||
}
|
||||
n2: "qemu-system-x86_64" {
|
||||
shape: rectangle
|
||||
}
|
||||
}
|
||||
g1: "게스트 kc-lab-1" {
|
||||
n3: "Debian 게스트 커널" {
|
||||
shape: rectangle
|
||||
}
|
||||
}
|
||||
g2: "게스트 kc-lab-2" {
|
||||
n4: "Debian 게스트 커널" {
|
||||
shape: rectangle
|
||||
}
|
||||
}
|
||||
g0.n0 -> g0.n1: "프로세스 생성"
|
||||
g0.n0 -> g0.n2: "프로세스 생성"
|
||||
g0.n1 -> g1.n3: "virtio 디스크 · virtio-net"
|
||||
g0.n2 -> g2.n4: "virtio 디스크 · virtio-net"
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mxfile host="app.diagrams.net" modified="2026-07-23T00:00:00.000Z" agent="techviz-harness" version="24.7.17" type="device">
|
||||
<diagram id="guest-as-host-process" name="게스트 두 대는 호스트에서 qemu 프로세스 두 개다">
|
||||
<mxGraphModel dx="680" dy="642" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0"/>
|
||||
<mxCell id="1" parent="0"/>
|
||||
<mxCell id="g_host-zone" value="호스트 test-server" style="swimlane;html=1;rounded=1;startSize=30;horizontal=1;dashed=1;strokeWidth=1.5;fillColor=#f7f9fb;strokeColor=#66788a;fontStyle=1;fontSize=13;" vertex="1" parent="1">
|
||||
<mxGeometry x="75.0" y="35.0" width="440.0" height="361.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="g_guest-1-zone" value="게스트 kc-lab-1" style="swimlane;html=1;rounded=1;startSize=30;horizontal=1;dashed=1;strokeWidth=1.5;fillColor=#f7f9fb;strokeColor=#66788a;fontStyle=1;fontSize=13;" vertex="1" parent="1">
|
||||
<mxGeometry x="40.0" y="420.0" width="255.0" height="177.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="g_guest-2-zone" value="게스트 kc-lab-2" style="swimlane;html=1;rounded=1;startSize=30;horizontal=1;dashed=1;strokeWidth=1.5;fillColor=#f7f9fb;strokeColor=#66788a;fontStyle=1;fontSize=13;" vertex="1" parent="1">
|
||||
<mxGeometry x="295.0" y="420.0" width="255.0" height="177.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="n_libvirtd" value="libvirtd<br/>qemu:///system" tooltip="게스트마다 qemu-system-x86_64 를 하나씩 띄우는 호스트 데몬. htop 트리 뷰에서 그 아래에 게스트 프로세스가 달린다. | Evidence: L946-L948, L956-L956" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="220.0" y="81.0" width="150.0" height="71.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="n_qemu-kc-lab-1" value="qemu-system-x86_64<br/>kc-lab-1<br/>vCPU 2<br/>할당 3584MB<br/>RSS 3765MB" tooltip="kc-lab-1 게스트 전체가 들어 있는 호스트 프로세스. vCPU 는 이 프로세스의 스레드이고 RSS 는 게스트가 터치한 페이지만큼이다. | Evidence: L946-L948, L987-L987, L1032-L1032" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
|
||||
<mxGeometry x="105.0" y="248.0" width="160.0" height="122.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="n_qemu-kc-lab-2" value="qemu-system-x86_64<br/>kc-lab-2<br/>할당 2560MB<br/>RSS 2633MB" tooltip="kc-lab-2 게스트 전체가 들어 있는 호스트 프로세스. A-4 의 virsh destroy 가 끊는 것이 이 프로세스다. | Evidence: L946-L948, L967-L976, L1033-L1033" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="325.0" y="256.5" width="160.0" height="105.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="n_guest-kernel-1" value="Debian 게스트 커널<br/>enp1s0 · 192.168.122.11<br/>총 3423MB<br/>available 1959MB" tooltip="virtio 장치만 보는 게스트. free 가 읽는 값이 여기 있다. | Evidence: L994-L998, L1039-L1039" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="70.0" y="466.0" width="195.0" height="105.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="n_guest-kernel-2" value="Debian 게스트 커널<br/>enp1s0 · 192.168.122.12<br/>총 2480MB<br/>available 1899MB" tooltip="같은 방식으로 붙은 두 번째 게스트. | Evidence: L994-L998, L1040-L1040" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="325.0" y="466.0" width="195.0" height="105.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="e_libvirtd-spawns-1" value="프로세스 생성" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_libvirtd" target="n_qemu-kc-lab-1">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="235.5" y="172.0" as="offset"/>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="e_libvirtd-spawns-2" value="프로세스 생성" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_libvirtd" target="n_qemu-kc-lab-2">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="354.5" y="176.2" as="offset"/>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="e_qemu1-virtio" value="virtio 디스크 · virtio-net" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_qemu-kc-lab-1" target="n_guest-kernel-1">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="176.2" y="390.0" as="offset"/>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="e_qemu2-virtio" value="virtio 디스크 · virtio-net" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_qemu-kc-lab-2" target="n_guest-kernel-2">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="413.8" y="385.8" as="offset"/>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
</mxfile>
|
||||
+961
@@ -0,0 +1,961 @@
|
||||
{
|
||||
"type": "excalidraw",
|
||||
"version": 2,
|
||||
"source": "techviz-harness",
|
||||
"elements": [
|
||||
{
|
||||
"id": "group-host-zone",
|
||||
"type": "rectangle",
|
||||
"x": 75.0,
|
||||
"y": 35.0,
|
||||
"width": 440.0,
|
||||
"height": 361.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "#f8f9fa",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 1,
|
||||
"strokeStyle": "dashed",
|
||||
"roughness": 0,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 870740741,
|
||||
"version": 1,
|
||||
"versionNonce": 412901763,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": "group-label-host-zone",
|
||||
"type": "text",
|
||||
"x": 91.0,
|
||||
"y": 41.0,
|
||||
"width": 135,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 1,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 0,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 1945047456,
|
||||
"version": 1,
|
||||
"versionNonce": 680659727,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"fontSize": 14,
|
||||
"fontFamily": 5,
|
||||
"text": "호스트 test-server",
|
||||
"textAlign": "center",
|
||||
"verticalAlign": "middle",
|
||||
"containerId": null,
|
||||
"originalText": "호스트 test-server",
|
||||
"autoResize": true,
|
||||
"lineHeight": 1.25
|
||||
},
|
||||
{
|
||||
"id": "group-guest-1-zone",
|
||||
"type": "rectangle",
|
||||
"x": 40.0,
|
||||
"y": 420.0,
|
||||
"width": 255.0,
|
||||
"height": 177.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "#f8f9fa",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 1,
|
||||
"strokeStyle": "dashed",
|
||||
"roughness": 0,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 1946150759,
|
||||
"version": 1,
|
||||
"versionNonce": 1446291239,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": "group-label-guest-1-zone",
|
||||
"type": "text",
|
||||
"x": 56.0,
|
||||
"y": 426.0,
|
||||
"width": 108,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 1,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 0,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 234158938,
|
||||
"version": 1,
|
||||
"versionNonce": 638600275,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"fontSize": 14,
|
||||
"fontFamily": 5,
|
||||
"text": "게스트 kc-lab-1",
|
||||
"textAlign": "center",
|
||||
"verticalAlign": "middle",
|
||||
"containerId": null,
|
||||
"originalText": "게스트 kc-lab-1",
|
||||
"autoResize": true,
|
||||
"lineHeight": 1.25
|
||||
},
|
||||
{
|
||||
"id": "group-guest-2-zone",
|
||||
"type": "rectangle",
|
||||
"x": 295.0,
|
||||
"y": 420.0,
|
||||
"width": 255.0,
|
||||
"height": 177.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "#f8f9fa",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 1,
|
||||
"strokeStyle": "dashed",
|
||||
"roughness": 0,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 27742558,
|
||||
"version": 1,
|
||||
"versionNonce": 176708121,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": "group-label-guest-2-zone",
|
||||
"type": "text",
|
||||
"x": 311.0,
|
||||
"y": 426.0,
|
||||
"width": 108,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 1,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 0,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 746153233,
|
||||
"version": 1,
|
||||
"versionNonce": 1519863769,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"fontSize": 14,
|
||||
"fontFamily": 5,
|
||||
"text": "게스트 kc-lab-2",
|
||||
"textAlign": "center",
|
||||
"verticalAlign": "middle",
|
||||
"containerId": null,
|
||||
"originalText": "게스트 kc-lab-2",
|
||||
"autoResize": true,
|
||||
"lineHeight": 1.25
|
||||
},
|
||||
{
|
||||
"id": "edge-libvirtd-spawns-1",
|
||||
"type": "arrow",
|
||||
"x": 185.0,
|
||||
"y": 152.0,
|
||||
"width": 101.0,
|
||||
"height": 96.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": null,
|
||||
"seed": 1250848425,
|
||||
"version": 1,
|
||||
"versionNonce": 1443824793,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"points": [
|
||||
[
|
||||
101.0,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
101.0,
|
||||
48.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
48.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
96.0
|
||||
]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
"startBinding": {
|
||||
"elementId": "node-libvirtd",
|
||||
"focus": 0,
|
||||
"gap": 4
|
||||
},
|
||||
"endBinding": {
|
||||
"elementId": "node-qemu-kc-lab-1",
|
||||
"focus": 0,
|
||||
"gap": 4
|
||||
},
|
||||
"startArrowhead": null,
|
||||
"endArrowhead": "arrow",
|
||||
"elbowed": true
|
||||
},
|
||||
{
|
||||
"id": "edge-label-libvirtd-spawns-1",
|
||||
"type": "text",
|
||||
"x": 190.5,
|
||||
"y": 160.0,
|
||||
"width": 90,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 1,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 0,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 124252151,
|
||||
"version": 1,
|
||||
"versionNonce": 186547372,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"fontSize": 13,
|
||||
"fontFamily": 5,
|
||||
"text": "프로세스 생성",
|
||||
"textAlign": "center",
|
||||
"verticalAlign": "middle",
|
||||
"containerId": null,
|
||||
"originalText": "프로세스 생성",
|
||||
"autoResize": true,
|
||||
"lineHeight": 1.25
|
||||
},
|
||||
{
|
||||
"id": "edge-libvirtd-spawns-2",
|
||||
"type": "arrow",
|
||||
"x": 304.0,
|
||||
"y": 152.0,
|
||||
"width": 101.0,
|
||||
"height": 104.5,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": null,
|
||||
"seed": 463063329,
|
||||
"version": 1,
|
||||
"versionNonce": 1576006883,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"points": [
|
||||
[
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
52.25
|
||||
],
|
||||
[
|
||||
101.0,
|
||||
52.25
|
||||
],
|
||||
[
|
||||
101.0,
|
||||
104.5
|
||||
]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
"startBinding": {
|
||||
"elementId": "node-libvirtd",
|
||||
"focus": 0,
|
||||
"gap": 4
|
||||
},
|
||||
"endBinding": {
|
||||
"elementId": "node-qemu-kc-lab-2",
|
||||
"focus": 0,
|
||||
"gap": 4
|
||||
},
|
||||
"startArrowhead": null,
|
||||
"endArrowhead": "arrow",
|
||||
"elbowed": true
|
||||
},
|
||||
{
|
||||
"id": "edge-label-libvirtd-spawns-2",
|
||||
"type": "text",
|
||||
"x": 309.5,
|
||||
"y": 164.25,
|
||||
"width": 90,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 1,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 0,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 774873599,
|
||||
"version": 1,
|
||||
"versionNonce": 45588994,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"fontSize": 13,
|
||||
"fontFamily": 5,
|
||||
"text": "프로세스 생성",
|
||||
"textAlign": "center",
|
||||
"verticalAlign": "middle",
|
||||
"containerId": null,
|
||||
"originalText": "프로세스 생성",
|
||||
"autoResize": true,
|
||||
"lineHeight": 1.25
|
||||
},
|
||||
{
|
||||
"id": "edge-qemu1-virtio",
|
||||
"type": "arrow",
|
||||
"x": 167.5,
|
||||
"y": 370.0,
|
||||
"width": 17.5,
|
||||
"height": 96.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": null,
|
||||
"seed": 1054083273,
|
||||
"version": 1,
|
||||
"versionNonce": 1609768765,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"points": [
|
||||
[
|
||||
17.5,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
17.5,
|
||||
48.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
48.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
96.0
|
||||
]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
"startBinding": {
|
||||
"elementId": "node-qemu-kc-lab-1",
|
||||
"focus": 0,
|
||||
"gap": 4
|
||||
},
|
||||
"endBinding": {
|
||||
"elementId": "node-guest-kernel-1",
|
||||
"focus": 0,
|
||||
"gap": 4
|
||||
},
|
||||
"startArrowhead": null,
|
||||
"endArrowhead": "arrow",
|
||||
"elbowed": true
|
||||
},
|
||||
{
|
||||
"id": "edge-label-qemu1-virtio",
|
||||
"type": "text",
|
||||
"x": 84.25,
|
||||
"y": 378.0,
|
||||
"width": 184,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 1,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 0,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 1192631446,
|
||||
"version": 1,
|
||||
"versionNonce": 1279906491,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"fontSize": 13,
|
||||
"fontFamily": 5,
|
||||
"text": "virtio 디스크 · virtio-net",
|
||||
"textAlign": "center",
|
||||
"verticalAlign": "middle",
|
||||
"containerId": null,
|
||||
"originalText": "virtio 디스크 · virtio-net",
|
||||
"autoResize": true,
|
||||
"lineHeight": 1.25
|
||||
},
|
||||
{
|
||||
"id": "edge-qemu2-virtio",
|
||||
"type": "arrow",
|
||||
"x": 405.0,
|
||||
"y": 361.5,
|
||||
"width": 17.5,
|
||||
"height": 104.5,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": null,
|
||||
"seed": 1173063830,
|
||||
"version": 1,
|
||||
"versionNonce": 1429081454,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"points": [
|
||||
[
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
52.25
|
||||
],
|
||||
[
|
||||
17.5,
|
||||
52.25
|
||||
],
|
||||
[
|
||||
17.5,
|
||||
104.5
|
||||
]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
"startBinding": {
|
||||
"elementId": "node-qemu-kc-lab-2",
|
||||
"focus": 0,
|
||||
"gap": 4
|
||||
},
|
||||
"endBinding": {
|
||||
"elementId": "node-guest-kernel-2",
|
||||
"focus": 0,
|
||||
"gap": 4
|
||||
},
|
||||
"startArrowhead": null,
|
||||
"endArrowhead": "arrow",
|
||||
"elbowed": true
|
||||
},
|
||||
{
|
||||
"id": "edge-label-qemu2-virtio",
|
||||
"type": "text",
|
||||
"x": 321.75,
|
||||
"y": 373.75,
|
||||
"width": 184,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 1,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 0,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 158399087,
|
||||
"version": 1,
|
||||
"versionNonce": 1245508410,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"fontSize": 13,
|
||||
"fontFamily": 5,
|
||||
"text": "virtio 디스크 · virtio-net",
|
||||
"textAlign": "center",
|
||||
"verticalAlign": "middle",
|
||||
"containerId": null,
|
||||
"originalText": "virtio 디스크 · virtio-net",
|
||||
"autoResize": true,
|
||||
"lineHeight": 1.25
|
||||
},
|
||||
{
|
||||
"id": "node-libvirtd",
|
||||
"type": "rectangle",
|
||||
"x": 220.0,
|
||||
"y": 81.0,
|
||||
"width": 150.0,
|
||||
"height": 71.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "#ffffff",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 1342418446,
|
||||
"version": 1,
|
||||
"versionNonce": 538925829,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": "node-label-libvirtd",
|
||||
"type": "text",
|
||||
"x": 230.0,
|
||||
"y": 91.0,
|
||||
"width": 130.0,
|
||||
"height": 51.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 1,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 0,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 547517362,
|
||||
"version": 1,
|
||||
"versionNonce": 605616290,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"fontSize": 15,
|
||||
"fontFamily": 5,
|
||||
"text": "libvirtd\nqemu:///system",
|
||||
"textAlign": "center",
|
||||
"verticalAlign": "middle",
|
||||
"containerId": null,
|
||||
"originalText": "libvirtd\nqemu:///system",
|
||||
"autoResize": true,
|
||||
"lineHeight": 1.25
|
||||
},
|
||||
{
|
||||
"id": "node-qemu-kc-lab-1",
|
||||
"type": "rectangle",
|
||||
"x": 105.0,
|
||||
"y": 248.0,
|
||||
"width": 160.0,
|
||||
"height": 122.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "#ffffff",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 151836861,
|
||||
"version": 1,
|
||||
"versionNonce": 221047748,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": "node-label-qemu-kc-lab-1",
|
||||
"type": "text",
|
||||
"x": 115.0,
|
||||
"y": 258.0,
|
||||
"width": 140.0,
|
||||
"height": 102.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 1,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 0,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 784659461,
|
||||
"version": 1,
|
||||
"versionNonce": 283887783,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"fontSize": 15,
|
||||
"fontFamily": 5,
|
||||
"text": "qemu-system-x86_64\nkc-lab-1\nvCPU 2\n할당 3584MB\nRSS 3765MB",
|
||||
"textAlign": "center",
|
||||
"verticalAlign": "middle",
|
||||
"containerId": null,
|
||||
"originalText": "qemu-system-x86_64\nkc-lab-1\nvCPU 2\n할당 3584MB\nRSS 3765MB",
|
||||
"autoResize": true,
|
||||
"lineHeight": 1.25
|
||||
},
|
||||
{
|
||||
"id": "node-qemu-kc-lab-2",
|
||||
"type": "rectangle",
|
||||
"x": 325.0,
|
||||
"y": 256.5,
|
||||
"width": 160.0,
|
||||
"height": 105.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "#ffffff",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 1539760600,
|
||||
"version": 1,
|
||||
"versionNonce": 1076713752,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": "node-label-qemu-kc-lab-2",
|
||||
"type": "text",
|
||||
"x": 335.0,
|
||||
"y": 266.5,
|
||||
"width": 140.0,
|
||||
"height": 85.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 1,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 0,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 416935857,
|
||||
"version": 1,
|
||||
"versionNonce": 124918568,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"fontSize": 15,
|
||||
"fontFamily": 5,
|
||||
"text": "qemu-system-x86_64\nkc-lab-2\n할당 2560MB\nRSS 2633MB",
|
||||
"textAlign": "center",
|
||||
"verticalAlign": "middle",
|
||||
"containerId": null,
|
||||
"originalText": "qemu-system-x86_64\nkc-lab-2\n할당 2560MB\nRSS 2633MB",
|
||||
"autoResize": true,
|
||||
"lineHeight": 1.25
|
||||
},
|
||||
{
|
||||
"id": "node-guest-kernel-1",
|
||||
"type": "rectangle",
|
||||
"x": 70.0,
|
||||
"y": 466.0,
|
||||
"width": 195.0,
|
||||
"height": 105.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "#ffffff",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 324645886,
|
||||
"version": 1,
|
||||
"versionNonce": 234656840,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": "node-label-guest-kernel-1",
|
||||
"type": "text",
|
||||
"x": 80.0,
|
||||
"y": 476.0,
|
||||
"width": 175.0,
|
||||
"height": 85.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 1,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 0,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 383931435,
|
||||
"version": 1,
|
||||
"versionNonce": 838146256,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"fontSize": 15,
|
||||
"fontFamily": 5,
|
||||
"text": "Debian 게스트 커널\nenp1s0 · 192.168.122.11\n총 3423MB\navailable 1959MB",
|
||||
"textAlign": "center",
|
||||
"verticalAlign": "middle",
|
||||
"containerId": null,
|
||||
"originalText": "Debian 게스트 커널\nenp1s0 · 192.168.122.11\n총 3423MB\navailable 1959MB",
|
||||
"autoResize": true,
|
||||
"lineHeight": 1.25
|
||||
},
|
||||
{
|
||||
"id": "node-guest-kernel-2",
|
||||
"type": "rectangle",
|
||||
"x": 325.0,
|
||||
"y": 466.0,
|
||||
"width": 195.0,
|
||||
"height": 105.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "#ffffff",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 1474124435,
|
||||
"version": 1,
|
||||
"versionNonce": 1748268600,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": "node-label-guest-kernel-2",
|
||||
"type": "text",
|
||||
"x": 335.0,
|
||||
"y": 476.0,
|
||||
"width": 175.0,
|
||||
"height": 85.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 1,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 0,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": null,
|
||||
"roundness": {
|
||||
"type": 3
|
||||
},
|
||||
"seed": 516515521,
|
||||
"version": 1,
|
||||
"versionNonce": 1402202909,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 0,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"fontSize": 15,
|
||||
"fontFamily": 5,
|
||||
"text": "Debian 게스트 커널\nenp1s0 · 192.168.122.12\n총 2480MB\navailable 1899MB",
|
||||
"textAlign": "center",
|
||||
"verticalAlign": "middle",
|
||||
"containerId": null,
|
||||
"originalText": "Debian 게스트 커널\nenp1s0 · 192.168.122.12\n총 2480MB\navailable 1899MB",
|
||||
"autoResize": true,
|
||||
"lineHeight": 1.25
|
||||
}
|
||||
],
|
||||
"appState": {
|
||||
"gridSize": 10,
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
"currentItemFontFamily": 5
|
||||
},
|
||||
"files": {}
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"harness_version": "0.2.0",
|
||||
"spec_id": "guest-as-host-process",
|
||||
"spec_version": "1.1",
|
||||
"spec_sha256": "4095e88815b73ef3f87fca3e8a33d88f7d8534595d74f14f84986d71c63e2056",
|
||||
"source_context": {
|
||||
"document": "docs/keycloak-session-store/final/document.md",
|
||||
"document_sha256": "0ae5674723f25dc85d5069529890f07be1a11b768b56901103fa3ea6ac3dcf55",
|
||||
"anchor": {
|
||||
"kind": "heading",
|
||||
"value": "0층. 가상화 — 「바닥」 아래에 있는 것",
|
||||
"line": 935
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
"guest-as-host-process.svg",
|
||||
"guest-as-host-process.drawio",
|
||||
"guest-as-host-process.mmd",
|
||||
"guest-as-host-process.d2",
|
||||
"guest-as-host-process.excalidraw",
|
||||
"guest-as-host-process.alt.md"
|
||||
],
|
||||
"lint_issue_count": 0,
|
||||
"assumption_count": 0,
|
||||
"assumptions_allowed": false,
|
||||
"composition_profile": "component-flow",
|
||||
"reference_ids": [
|
||||
"payment-event-flow"
|
||||
],
|
||||
"diagram_only": true
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
%% 게스트 두 대는 호스트에서 qemu 프로세스 두 개다
|
||||
%% question: 호스트에서 게스트는 무엇으로 존재하고, 게스트가 보는 장치는 누가 만들어 주는가
|
||||
flowchart TB
|
||||
subgraph g_host_zone["호스트 test-server"]
|
||||
n0["libvirtd"]
|
||||
n1["qemu-system-x86_64"]
|
||||
n2["qemu-system-x86_64"]
|
||||
end
|
||||
subgraph g_guest_1_zone["게스트 kc-lab-1"]
|
||||
n3["Debian 게스트 커널"]
|
||||
end
|
||||
subgraph g_guest_2_zone["게스트 kc-lab-2"]
|
||||
n4["Debian 게스트 커널"]
|
||||
end
|
||||
n0 -->|"프로세스 생성"| n1
|
||||
n0 -->|"프로세스 생성"| n2
|
||||
n1 -->|"virtio 디스크 · virtio-net"| n3
|
||||
n2 -->|"virtio 디스크 · virtio-net"| n4
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="680" height="642" viewBox="0 0 680 642" role="img" aria-labelledby="diagram-title diagram-description">
|
||||
<title id="diagram-title">게스트 두 대는 호스트에서 qemu 프로세스 두 개다</title>
|
||||
<desc id="diagram-description">위에서 아래로 읽는다. 호스트 test-server 경계 안에 libvirtd 가 있고 그 아래에 qemu-system-x86_64 프로세스가 게스트 수만큼 있다. 경계 밖 아래쪽에 게스트 kc-lab-1 과 kc-lab-2 가 각각 따로 있고, 게스트가 보는 디스크와 인터페이스는 자기를 담은 프로세스가 virtio 로 내준다. 프로세스에 적힌 RSS 와 게스트에 적힌 available 은 같은 메모리를 다른 껍질에서 읽은 값이다. machine.slice 와 virbr0 는 이 그림에 넣지 않았고 본문이 맡는다.</desc>
|
||||
<metadata>{"techviz":{"spec_version":"1.1","id":"guest-as-host-process","profile":"component-flow"},"source_context":{"document":"docs/keycloak-session-store/final/document.md","document_sha256":"0ae5674723f25dc85d5069529890f07be1a11b768b56901103fa3ea6ac3dcf55","anchor":{"kind":"heading","value":"0층. 가상화 — 「바닥」 아래에 있는 것","line":935}},"evidence_policy":"Each factual element cites source lines or is marked assumption.","diagram_only":true}</metadata>
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
||||
<path d="M 0 0 L 10 5 L 0 10 z" />
|
||||
</marker>
|
||||
<style>
|
||||
:root { color-scheme: light; }
|
||||
text { font-family: Inter, Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #111827; }
|
||||
.canvas { fill: #ffffff; }
|
||||
.group-box { fill: #ffffff; stroke: #9ca3af; stroke-width: 1.4; stroke-dasharray: 7 5; }
|
||||
.group-label-bg { fill: #ffffff; }
|
||||
.group-label { font-size: 13px; font-weight: 650; fill: #374151; }
|
||||
.edge { fill: none; stroke: #374151; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; marker-end: url(#arrow); }
|
||||
.edge.style-dashed, .edge.semantic-dashed, .edge.assumption { stroke-dasharray: 7 5; }
|
||||
.edge.style-dotted { stroke-dasharray: 2 5; }
|
||||
.edge.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
|
||||
.edge.emphasis-muted { stroke: #9ca3af; }
|
||||
.edge.emphasis-warning, .edge.kind-failure, .edge.kind-error { stroke: #dc2626; stroke-width: 2.2; }
|
||||
.edge-label-bg { fill: #ffffff; }
|
||||
.edge-label { font-size: 12px; font-weight: 560; text-anchor: middle; }
|
||||
.node-shape { fill: #ffffff; stroke: #4b5563; stroke-width: 1.7; }
|
||||
.node-shape.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
|
||||
.node-shape.emphasis-muted { stroke: #9ca3af; fill: #f9fafb; }
|
||||
.node-shape.emphasis-warning { stroke: #d97706; stroke-width: 2; fill: #fffdf5; }
|
||||
.node-shape.kind-database, .node-shape.kind-datastore, .node-shape.kind-storage { fill: #f8fafc; }
|
||||
.node-shape.kind-queue, .node-shape.kind-event, .node-shape.kind-topic { fill: #fafafa; }
|
||||
.node-shape.assumption { stroke-dasharray: 4 4; }
|
||||
.storage-bottom, .controller-divider { fill: none; stroke: #4b5563; stroke-width: 1.4; }
|
||||
.controller-led { fill: #4b5563; }
|
||||
.actor-symbol { fill: none; stroke: #4b5563; stroke-width: 1.8; stroke-linecap: round; }
|
||||
.actor-symbol.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
|
||||
.node-label { font-size: 14px; font-weight: 650; text-anchor: middle; }
|
||||
.node-role { font-size: 10px; letter-spacing: 0.04em; text-anchor: middle; fill: #6b7280; }
|
||||
.node-detail-divider { stroke: #d1d5db; stroke-width: 1; }
|
||||
.node-detail { font-size: 11px; fill: #374151; }
|
||||
.assumption-badge { font-size: 9px; font-weight: 700; fill: #92400e; }
|
||||
.failure-mark { stroke: #dc2626; stroke-width: 4; stroke-linecap: round; }
|
||||
.lifeline { stroke: #9ca3af; stroke-width: 1.2; stroke-dasharray: 5 5; }
|
||||
.timeline-axis { stroke: #374151; stroke-width: 1.8; marker-end: url(#arrow); }
|
||||
.timeline-stem { stroke: #6b7280; stroke-width: 1.3; }
|
||||
.timeline-marker { fill: #ffffff; stroke: #374151; stroke-width: 1.7; }
|
||||
.timeline-marker.primary { fill: #2563eb; stroke: #2563eb; }
|
||||
.timeline-marker.warning { fill: #dc2626; stroke: #dc2626; }
|
||||
.timeline-label { font-size: 13px; font-weight: 650; text-anchor: middle; }
|
||||
.timeline-detail { font-size: 11px; fill: #4b5563; text-anchor: middle; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect class="canvas" width="680" height="642" />
|
||||
<rect class="group-box" x="75.0" y="35.0" width="440.0" height="361.0" rx="8" />
|
||||
<rect class="group-label-bg" x="89.0" y="25.0" width="127.0" height="22" />
|
||||
<text class="group-label" x="99.0" y="40.0">호스트 test-server</text>
|
||||
<rect class="group-box" x="40.0" y="420.0" width="255.0" height="177.0" rx="8" />
|
||||
<rect class="group-label-bg" x="54.0" y="410.0" width="106.0" height="22" />
|
||||
<text class="group-label" x="64.0" y="425.0">게스트 kc-lab-1</text>
|
||||
<rect class="group-box" x="295.0" y="420.0" width="255.0" height="177.0" rx="8" />
|
||||
<rect class="group-label-bg" x="309.0" y="410.0" width="106.0" height="22" />
|
||||
<text class="group-label" x="319.0" y="425.0">게스트 kc-lab-2</text>
|
||||
<polyline class="edge kind-control style-solid emphasis-normal" points="286.0,152.0 286.0,200.0 185.0,200.0 185.0,248.0" data-evidence="946-948,956-956" />
|
||||
<rect class="edge-label-bg" x="203.1" y="158.0" width="64.9" height="22" rx="3" />
|
||||
<text class="edge-label" x="235.5" y="173.0">프로세스 생성</text>
|
||||
<polyline class="edge kind-control style-solid emphasis-normal" points="304.0,152.0 304.0,204.2 405.0,204.2 405.0,256.5" data-evidence="946-948,956-956" />
|
||||
<rect class="edge-label-bg" x="322.1" y="162.2" width="64.9" height="22" rx="3" />
|
||||
<text class="edge-label" x="354.5" y="177.2">프로세스 생성</text>
|
||||
<polyline class="edge kind-data style-solid emphasis-normal" points="185.0,370.0 185.0,418.0 167.5,418.0 167.5,466.0" data-evidence="987-990,994-998" />
|
||||
<rect class="edge-label-bg" x="90.2" y="376.0" width="172.1" height="22" rx="3" />
|
||||
<text class="edge-label" x="176.2" y="391.0">virtio 디스크 · virtio-net</text>
|
||||
<polyline class="edge kind-data style-solid emphasis-normal" points="405.0,361.5 405.0,413.8 422.5,413.8 422.5,466.0" data-evidence="987-990,994-998" />
|
||||
<rect class="edge-label-bg" x="327.7" y="371.8" width="172.1" height="22" rx="3" />
|
||||
<text class="edge-label" x="413.8" y="386.8">virtio 디스크 · virtio-net</text>
|
||||
<g id="node-libvirtd">
|
||||
<rect class="node-shape kind-service emphasis-normal role-source" data-evidence="946-948,956-956" x="220.0" y="81.0" width="150.0" height="71.0" rx="7" />
|
||||
<text class="node-label" x="295.0" y="108.0">libvirtd</text>
|
||||
<line class="node-detail-divider" x1="234.0" y1="129.0" x2="356.0" y2="129.0" />
|
||||
<text class="node-detail" x="236.0" y="146.0">qemu:///system</text>
|
||||
</g>
|
||||
<g id="node-qemu-kc-lab-1">
|
||||
<rect class="node-shape kind-service emphasis-primary role-service" data-evidence="946-948,987-987,1032-1032" x="105.0" y="248.0" width="160.0" height="122.0" rx="7" />
|
||||
<text class="node-label" x="185.0" y="275.0">qemu-system-x86_64</text>
|
||||
<line class="node-detail-divider" x1="119.0" y1="296.0" x2="251.0" y2="296.0" />
|
||||
<text class="node-detail" x="121.0" y="313.0">kc-lab-1</text>
|
||||
<text class="node-detail" x="121.0" y="329.0">vCPU 2</text>
|
||||
<text class="node-detail" x="121.0" y="345.0">할당 3584MB</text>
|
||||
<text class="node-detail" x="121.0" y="361.0">RSS 3765MB</text>
|
||||
</g>
|
||||
<g id="node-qemu-kc-lab-2">
|
||||
<rect class="node-shape kind-service emphasis-normal role-service" data-evidence="946-948,967-976,1033-1033" x="325.0" y="256.5" width="160.0" height="105.0" rx="7" />
|
||||
<text class="node-label" x="405.0" y="283.5">qemu-system-x86_64</text>
|
||||
<line class="node-detail-divider" x1="339.0" y1="304.5" x2="471.0" y2="304.5" />
|
||||
<text class="node-detail" x="341.0" y="321.5">kc-lab-2</text>
|
||||
<text class="node-detail" x="341.0" y="337.5">할당 2560MB</text>
|
||||
<text class="node-detail" x="341.0" y="353.5">RSS 2633MB</text>
|
||||
</g>
|
||||
<g id="node-guest-kernel-1">
|
||||
<rect class="node-shape kind-service emphasis-normal role-sink" data-evidence="994-998,1039-1039" x="70.0" y="466.0" width="195.0" height="105.0" rx="7" />
|
||||
<text class="node-label" x="167.5" y="493.0">Debian 게스트 커널</text>
|
||||
<line class="node-detail-divider" x1="84.0" y1="514.0" x2="251.0" y2="514.0" />
|
||||
<text class="node-detail" x="86.0" y="531.0">enp1s0 · 192.168.122.11</text>
|
||||
<text class="node-detail" x="86.0" y="547.0">총 3423MB</text>
|
||||
<text class="node-detail" x="86.0" y="563.0">available 1959MB</text>
|
||||
</g>
|
||||
<g id="node-guest-kernel-2">
|
||||
<rect class="node-shape kind-service emphasis-normal role-sink" data-evidence="994-998,1040-1040" x="325.0" y="466.0" width="195.0" height="105.0" rx="7" />
|
||||
<text class="node-label" x="422.5" y="493.0">Debian 게스트 커널</text>
|
||||
<line class="node-detail-divider" x1="339.0" y1="514.0" x2="506.0" y2="514.0" />
|
||||
<text class="node-detail" x="341.0" y="531.0">enp1s0 · 192.168.122.12</text>
|
||||
<text class="node-detail" x="341.0" y="547.0">총 2480MB</text>
|
||||
<text class="node-detail" x="341.0" y="563.0">available 1899MB</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 9.1 KiB |
Reference in New Issue
Block a user