...
코드 블럭 |
---|
language | xml |
---|
title | virsh dumpxml 50e4385b-f762-42a1-9f3f-89bca3785ff1 |
---|
linenumbers | true |
---|
collapse | true |
---|
|
<domain type='kvm' id='2'>
<name>50e4385b-f762-42a1-9f3f-89bca3785ff1</name>
<uuid>50e4385b-f762-42a1-9f3f-89bca3785ff1</uuid>
<description>ubuntu-0: Lab at Mon 00:44 AM (ubuntu)</description>
<memory unit='KiB'>2097152</memory>
<currentMemory unit='KiB'>2097152</currentMemory>
<vcpu placement='auto'>1</vcpu>
<numatune>
<memory mode='strict' placement='auto'/>
</numatune>
<resource>
<partition>/machine</partition>
</resource>
<os>
<type arch='x86_64' machine='pc-i440fx-4.2'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
</features>
<cpu mode='host-passthrough' check='none'/>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='writethrough'/>
<source file='/var/local/virl2/images/9688ac22-ad37-4cf3-aa06-2efe9d8c7786/50e4385b-f762-42a1-9f3f-89bca3785ff1/node0.img' index='2'>
<seclabel model='dac' relabel='no'/>
</source>
<backingStore type='file' index='3'>
<format type='qcow2'/>
<source file='/var/lib/libvirt/images/virl-base-images/ubuntu-22-04-20240126/jammy-server-cloudimg-amd64.img'>
<seclabel model='dac' relabel='no'/>
</source>
<backingStore/>
</backingStore>
<target dev='vda' bus='virtio'/>
<alias name='virtio-disk0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw' cache='none'/>
<source file='/var/local/virl2/images/9688ac22-ad37-4cf3-aa06-2efe9d8c7786/50e4385b-f762-42a1-9f3f-89bca3785ff1/config.img' index='1'/>
<backingStore/>
<target dev='vdb' bus='ide'/>
<readonly/>
<alias name='ide0-0-1'/>
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
</disk>
<controller type='usb' index='0' model='piix3-uhci'>
<alias name='usb'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
</controller>
<controller type='pci' index='0' model='pci-root'>
<alias name='pci.0'/>
</controller>
<controller type='ide' index='0'>
<alias name='ide'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<interface type='udp'>
<mac address='52:54:00:19:35:da'/>
<source address='127.0.0.1' port='21008'>
<local address='127.0.0.1' port='21009'/>
</source>
<model type='virtio'/>
<driver>
<host csum='off'/>
</driver>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/13'/>
<target type='isa-serial' port='0'>
<model name='isa-serial'/>
</target>
<alias name='serial0'/>
</serial>
<console type='pty' tty='/dev/pts/13'>
<source path='/dev/pts/13'/>
<target type='serial' port='0'/>
<alias name='serial0'/>
</console>
<input type='mouse' bus='ps2'>
<alias name='input0'/>
</input>
<input type='keyboard' bus='ps2'>
<alias name='input1'/>
</input>
<memballoon model='virtio'>
<alias name='balloon0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</memballoon>
<rng model='virtio'>
<backend model='random'>/dev/urandom</backend>
<alias name='rng0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</rng>
</devices>
<seclabel type='dynamic' model='apparmor' relabel='yes'>
<label>libvirt-50e4385b-f762-42a1-9f3f-89bca3785ff1</label>
<imagelabel>libvirt-50e4385b-f762-42a1-9f3f-89bca3785ff1</imagelabel>
</seclabel>
<seclabel type='dynamic' model='dac' relabel='yes'>
<label>+64055:+108</label>
<imagelabel>+64055:+108</imagelabel>
</seclabel>
</domain>
|
Disk - snapshot
c8000v-universalk9_8G_serial.17.13.01a.qcow2 | read-only base image |
---|
node0.img | differences |
---|
코드 블럭 |
---|
language | xml |
---|
title | virsh dumpxml 86770ca2-685f-4c57-b215-350265c973c4 |
---|
linenumbers | true |
---|
|
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='writethrough'/>
<source file='/var/local/virl2/images/9688ac22-ad37-4cf3-aa06-2efe9d8c7786/86770ca2-685f-4c57-b215-350265c973c4/node0.img' index='2'>
<seclabel model='dac' relabel='no'/>
</source>d
<backingStore type='file' index='3'>
<format type='qcow2'/>
<source file='/var/lib/libvirt/images/virl-base-images/cat8000v-17-13-01a/c8000v-universalk9_8G_serial.17.13.01a.qcow2'>
<seclabel model='dac' relabel='no'/>
</source>
<backingStore/>
</backingStore>
<target dev='vda' bus='virtio'/>
<alias name='virtio-disk0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</disk> |
코드 블럭 |
---|
|
# ls -alh /var/local/virl2/images/9688ac22-ad37-4cf3-aa06-2efe9d8c7786/86770ca2-685f-4c57-b215-350265c973c4/node0.img \
/var/lib/libvirt/images/virl-base-images/cat8000v-17-13-01a/c8000v-universalk9_8G_serial.17.13.01a.qcow2
-r--rw-r-- 1 libvirt-qemu virl2 1.9G Jun 23 23:35 /var/lib/libvirt/images/virl-base-images/cat8000v-17-13-01a/c8000v-universalk9_8G_serial.17.13.01a.qcow2
-rw-r--r-- 1 libvirt-qemu kvm 303M Aug 19 01:16 /var/local/virl2/images/9688ac22-ad37-4cf3-aa06-2efe9d8c7786/86770ca2-685f-4c57-b215-350265c973c4/node0.img |
코드 블럭 |
---|
|
root@cml-controller:~# virsh domblklist 86770ca2-685f-4c57-b215-350265c973c4
Target Source
------------------------------------------------------------------------------------------------------------------------
vda /var/local/virl2/images/.../86770ca2-685f-4c57-b215-350265c973c4/node0.img
vdb /var/local/virl2/images/.../86770ca2-685f-4c57-b215-350265c973c4/config.img
root@cml-controller:~# virsh domblkstat 86770ca2-685f-4c57-b215-350265c973c4 vda --human
Device: vda
number of read operations: 20923
number of bytes read: 1582396928
number of write operations: 1077
number of bytes written: 608612352
number of flush operations: 0
total duration of reads (ns): 6638006817
total duration of writes (ns): 238078868428
total duration of flushes (ns): 0 |
https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/virtualization_deployment_and_administration_guide/sect-statlists
Network - QEMU UDP Unicast Tunnel
https://linuxsimba.github.io/qemu-tunnel-types
...
코드 블럭 |
---|
# virsh domiflist 86770ca2-685f-4c57-b215-350265c973c4
Interface Type Source Model MAC
----------------------------------------------------------
- udp - vmxnet3 52:54:00:05:2d:cf
- udp - vmxnet3 52:54:00:0f:2a:29
- udp - vmxnet3 52:54:00:04:be:e7
- udp - vmxnet3 52:54:00:0d:32:f4 |
...
root@cml-controller:~# netstat -anp | grep 2100
udp 0 0 127.0.0.1:21000 0.0.0.0:* 4484/fabric
udp 0 0 127.0.0.1:21001 0.0.0.0:* 66319/qemu-system-x
udp 0 0 127.0.0.1:21002 0.0.0.0:* 4484/fabric
udp 0 0 127.0.0.1:21003 0.0.0.0:* 66319/qemu-system-x
udp 0 0 127.0.0.1:21005 0.0.0.0:* 66319/qemu-system-x
udp 0 0 127.0.0.1:21007 0.0.0.0:* 66319/qemu-system-x
udp 0 0 127.0.0.1:21008 0.0.0.0:* 4484/fabric
udp 0 0 127.0.0.1:21009 0.0.0.0:* 66382/qemu-system-x
root@cml-controller:~# ps aux | grep 4484
virl2 /usr/local/bin/fabric -logtostderr -stderrthreshold=WARNING
-apiaddress ip6-localhost:8080 -remote lo -remoteipv6 -controller [::1]:443 -verify=false |