Files

56 lines
6.0 KiB
XML

<?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&lt;br/&gt;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&lt;br/&gt;kc-lab-1&lt;br/&gt;vCPU 2&lt;br/&gt;할당 3584MB&lt;br/&gt;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&lt;br/&gt;kc-lab-2&lt;br/&gt;할당 2560MB&lt;br/&gt;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 게스트 커널&lt;br/&gt;enp1s0 · 192.168.122.11&lt;br/&gt;총 3423MB&lt;br/&gt;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 게스트 커널&lt;br/&gt;enp1s0 · 192.168.122.12&lt;br/&gt;총 2480MB&lt;br/&gt;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>