<domain type='kvm'>
<name>Testguest1</name>
<uuid>ec6fbaa1-3eb4-49da-bf61-bb02fbec4967</uuid>
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
<domain type='kvm'>
<name>Testguest1</name>
<uuid>ec6fbaa1-3eb4-49da-bf61-bb02fbec4967</uuid>
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
1024MiB가 할당된 Testguest1 이라는 KVM 가상 머신입니다.
<vcpu placement='static'>1</vcpu>
<vcpu placement='static'>1</vcpu>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
VM은 단일 가상 CPU(vCPU)로 할당됩니다.
vCPU 구성에 대한 자세한 내용은 가상 머신 CPU 성능 최적화를 참조하십시오.
<os>
<type arch='x86_64' machine='pc-q35-rhel10.0.0'>hvm</type>
<boot dev='hd'/>
</os>
<os>
<type arch='x86_64' machine='pc-q35-rhel10.0.0'>hvm</type>
<boot dev='hd'/>
</os>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
시스템 아키텍처는 AMD64 및 Intel 64 아키텍처로 설정되며 Intel Q35 시스템 유형을 사용하여 기능 호환성을 결정합니다. OS는 하드 디스크 드라이브에서 부팅되도록 설정됩니다.
<features>
<acpi/>
<apic/>
</features>
<features>
<acpi/>
<apic/>
</features>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
acpi 및 apic 하이퍼바이저 기능은 비활성화되어 있습니다.
<cpu mode='host-model' check='partial'/>
<cpu mode='host-model' check='partial'/>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
기능 XML의 호스트 CPU 정의( virsh domcapabilities
)의 호스트 CPU 정의는 VM의 XML 구성에 자동으로 복사됩니다. 따라서 VM이 부팅되면 libvirt
에서 호스트 CPU와 유사한 CPU 모델을 선택한 다음 호스트 모델을 가능한 한 근접하게 대략적인 기능을 추가합니다.
<clock offset='utc'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
</clock>
<clock offset='utc'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
</clock>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
VM의 가상 하드웨어 클록은 UTC 시간대를 사용합니다. 또한 QEMU 하이퍼바이저와 동기화할 세 가지 타이머가 설정됩니다.
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
VM의 전원을 끄거나 OS가 예기치 않게 종료되면 libvirt
는 VM을 종료하고 할당된 모든 리소스를 해제합니다. VM이 재부팅되면 libvirt
가 동일한 구성으로 다시 시작됩니다.
<pm>
<suspend-to-mem enabled='no'/>
<suspend-to-disk enabled='no'/>
</pm>
<pm>
<suspend-to-mem enabled='no'/>
<suspend-to-disk enabled='no'/>
</pm>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
이 VM에 대해 S3 및 S4 ACPI 절전 상태가 비활성화되어 있습니다.
<devices>
<emulator>/usr/libexec/qemu-kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/var/lib/libvirt/images/Testguest.qcow2'/>
<target dev='vda' bus='virtio'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<target dev='sdb' bus='sata'/>
<readonly/>
</disk>
<devices>
<emulator>/usr/libexec/qemu-kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/var/lib/libvirt/images/Testguest.qcow2'/>
<target dev='vda' bus='virtio'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<target dev='sdb' bus='sata'/>
<readonly/>
</disk>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
VM은 에뮬레이션을 위해 /usr/libexec/qemu-kvm
바이너리 파일을 사용하고 두 개의 디스크 장치가 연결되어 있습니다.
첫 번째 디스크는 호스트에 저장된 /var/lib/libvirt/images/Testguest.qcow2
를 기반으로 하는 가상화된 하드 드라이브이며 논리 장치 이름은 vda
로 설정됩니다.
두 번째 디스크는 가상화된 CD-ROM이며 논리 장치 이름은 sdb
로 설정됩니다.
<controller type='usb' index='0' model='qemu-xhci' ports='15'/>
<controller type='sata' index='0'/>
<controller type='pci' index='0' model='pcie-root'/>
<controller type='pci' index='1' model='pcie-root-port'>
<model name='pcie-root-port'/>
<target chassis='1' port='0x10'/>
</controller>
<controller type='pci' index='2' model='pcie-root-port'>
<model name='pcie-root-port'/>
<target chassis='2' port='0x11'/>
</controller>
<controller type='pci' index='3' model='pcie-root-port'>
<model name='pcie-root-port'/>
<target chassis='3' port='0x12'/>
</controller>
<controller type='pci' index='4' model='pcie-root-port'>
<model name='pcie-root-port'/>
<target chassis='4' port='0x13'/>
</controller>
<controller type='pci' index='5' model='pcie-root-port'>
<model name='pcie-root-port'/>
<target chassis='5' port='0x14'/>
</controller>
<controller type='pci' index='6' model='pcie-root-port'>
<model name='pcie-root-port'/>
<target chassis='6' port='0x15'/>
</controller>
<controller type='pci' index='7' model='pcie-root-port'>
<model name='pcie-root-port'/>
<target chassis='7' port='0x16'/>
</controller>
<controller type='virtio-serial' index='0'/>
<controller type='usb' index='0' model='qemu-xhci' ports='15'/>
<controller type='sata' index='0'/>
<controller type='pci' index='0' model='pcie-root'/>
<controller type='pci' index='1' model='pcie-root-port'>
<model name='pcie-root-port'/>
<target chassis='1' port='0x10'/>
</controller>
<controller type='pci' index='2' model='pcie-root-port'>
<model name='pcie-root-port'/>
<target chassis='2' port='0x11'/>
</controller>
<controller type='pci' index='3' model='pcie-root-port'>
<model name='pcie-root-port'/>
<target chassis='3' port='0x12'/>
</controller>
<controller type='pci' index='4' model='pcie-root-port'>
<model name='pcie-root-port'/>
<target chassis='4' port='0x13'/>
</controller>
<controller type='pci' index='5' model='pcie-root-port'>
<model name='pcie-root-port'/>
<target chassis='5' port='0x14'/>
</controller>
<controller type='pci' index='6' model='pcie-root-port'>
<model name='pcie-root-port'/>
<target chassis='6' port='0x15'/>
</controller>
<controller type='pci' index='7' model='pcie-root-port'>
<model name='pcie-root-port'/>
<target chassis='7' port='0x16'/>
</controller>
<controller type='virtio-serial' index='0'/>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
VM은 단일 컨트롤러를 사용하여 USB 장치를 연결하고 PCI-Express(PCIe) 장치의 루트 컨트롤러를 사용합니다. 또한 virtio-serial
컨트롤러를 사용할 수 있으므로 VM이 직렬 콘솔과 같은 다양한 방식으로 호스트와 상호 작용할 수 있습니다.
가상 장치에 대한 자세한 내용은 가상 장치 유형을 참조하십시오.
<interface type='network'>
<mac address='52:54:00:65:29:21'/>
<source network='default'/>
<model type='virtio'/>
</interface>
<interface type='network'>
<mac address='52:54:00:65:29:21'/>
<source network='default'/>
<model type='virtio'/>
</interface>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
네트워크 인터페이스는 기본
가상 네트워크 및 virtio
네트워크 장치 모델을 사용하는 VM에서 설정됩니다.
네트워크 인터페이스 구성에 대한 자세한 내용은 가상 머신 네트워크 // 성능 최적화를 참조하십시오.
<serial type='pty'>
<target type='isa-serial' port='0'>
<model name='isa-serial'/>
</target>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<channel type='unix'>
<target type='virtio' name='org.qemu.guest_agent.0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
<serial type='pty'>
<target type='isa-serial' port='0'>
<model name='isa-serial'/>
</target>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<channel type='unix'>
<target type='virtio' name='org.qemu.guest_agent.0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
호스트와
의 기본 VM 통신을 활성화하는 Pty 직렬 콘솔이 VM에 설정됩니다. 콘솔은 포트 1의 UNIX
채널을 사용합니다. 이 설정은 자동으로 설정되며 이러한 설정을 변경하는 것은 권장되지 않습니다.
VM과 상호 작용하는 방법에 대한 자세한 내용은 웹 콘솔을 사용하여 가상 머신 상호 작용을 참조하십시오.
<input type='tablet' bus='usb'>
<address type='usb' bus='0' port='1'/>
</input>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<input type='tablet' bus='usb'>
<address type='usb' bus='0' port='1'/>
</input>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
VM은 태블릿 입력을 수신하도록 설정된 가상 usb 포트와 마우스 및 키보드 입력을 수신하도록 설정된 가상 ps2 포트를 사용합니다. 이 설정은 자동으로 설정되며 이러한 설정을 변경하는 것은 권장되지 않습니다.
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'>
<listen type='address' address='127.0.0.1'/>
</graphics>
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'>
<listen type='address' address='127.0.0.1'/>
</graphics>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
VM은 vnc
프로토콜을 사용하여 그래픽 출력을 렌더링합니다.
<redirdev bus='usb' type='tcp'>
<source mode='connect' host='localhost' service='4000'/>
<protocol type='raw'/>
</redirdev>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</memballoon>
</devices>
</domain>
<redirdev bus='usb' type='tcp'>
<source mode='connect' host='localhost' service='4000'/>
<protocol type='raw'/>
</redirdev>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</memballoon>
</devices>
</domain>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
VM은 USB 장치를 원격으로 연결하는 데 tcp
re-director를 사용하고 메모리 풍선이 켜집니다. 이 설정은 자동으로 설정되며 이러한 설정을 변경하는 것은 권장되지 않습니다.