이 절에서는 논리적 도메인 Manager 리소스 및 해당 리소스 각각에 대해 정의할 수 있는 등록 정보의 예를 제공합니다. 리소스와 등록 정보는 XML 예제에서 굵게 표시됩니다. 이 예는 바인드 출력이 아닌 리소스를 보여줍니다. 도메인 마이그레이션 출력을 제외하고 제약 조건 출력은 논리적 도메인 Manager 작업에 대한 입력을 만드는 데 사용할 수 있습니다. 도메인 마이그레이션을 참조하십시오. 각 리소스는 <Section> OVF 섹션에 정의되며 <rasd:OtherResourceType> 태그로 지정됩니다.
다음 예에서는 ldom_info 리소스의 선택적 등록 정보를 보여줍니다.
예 10 ldom_info XML 출력 예다음 예에서는 여러 ldom_info 등록 정보(예: uuid, hostid 및 Address)에 대해 지정된 값을 보여줍니다.
<Envelope> <References/> <Content xsi:type="ovf:VirtualSystem_Type" id="primary"> <Section xsi:type="ovf:ResourceAllocationSection_type"> <Item> <rasd:OtherResourceType>ldom_info</rasd:OtherResourceType> <uuid>c2c3d93b-a3f9-60f6-a45e-f35d55c05fb6</uuid> <rasd:Address>00:03:ba:d8:ba:f6</rasd:Address> <gprop:GenericProperty key="hostid">83d8baf6</gprop:GenericProperty> <gprop:GenericProperty key="master">plum</gprop:GenericProperty> <gprop:GenericProperty key="failure-policy">reset</gprop:GenericProperty> <gprop:GenericProperty key="extended-mapin-space">on</gprop:GenericProperty> <gprop:GenericProperty key="progress">45%</gprop:GenericProperty> <gprop:GenericProperty key="status">ongoing</gprop:GenericProperty> <gprop:GenericProperty key="source">system1</gprop:GenericProperty> <gprop:GenericProperty key="rc-add-policy"></gprop:GenericProperty> <gprop:GenericProperty key="perf-counters">global</gprop:GenericProperty> </Item> </Section> </Content> </Envelope>
ldom_info 리소스는 항상 <Content> 섹션 내에 있습니다. ldom_info 리소스 내에 있는 다음 등록 정보는 선택적 등록 정보입니다.
<uuid> 태그 - 도메인의 UUID를 지정합니다.
<rasd:Address> 태그 - 도메인에 지정할 MAC 주소를 지정합니다.
<gprop:GenericProperty key="extended-mapin-space"> 태그 - 도메인에 대한 확장 Mapin 공간을 사용으로 설정할지(on) 아니면 사용 안함으로 설정할지(off) 지정합니다. 기본값은 off입니다.
<gprop:GenericProperty key="failure-policy"> 태그 - 마스터 도메인에서 실패가 발생할 경우 슬레이브 도메인의 작동 방식을 지정합니다. 기본값은 ignore입니다. 유효한 등록 정보 값은 다음과 같습니다.
ignore - 마스터 도메인의 오류를 무시합니다(슬레이브 도메인이 영향을 받지 않음).
panic으로 설정하면 마스터 도메인이 실패할 경우 슬레이브 도메인에 패닉이 발생합니다.
reset으로 설정하면 마스터 도메인이 실패할 경우 슬레이브 도메인이 재설정됩니다.
stop으로 설정하면 마스터 도메인이 실패할 경우 슬레이브 도메인이 중지됩니다.
<gprop:GenericProperty key="hostid"> 태그 - 도메인에 지정할 호스트 ID를 지정합니다.
<gprop:GenericProperty key="master"> 태그 - 마스터 도메인 이름을 쉼표로 구분하여 4개까지 지정합니다.
<gprop:GenericProperty key="progress"> 태그 - 명령에 의해 수행된 진행률을 지정합니다.
<gprop:GenericProperty key="source"> 태그 - 명령의 진행률에 대해 보고하는 시스템을 지정합니다.
<gprop:GenericProperty key="status"> 태그 - 명령의 상태(done, failed 또는 ongoing)를 지정합니다.
<gprop:GenericProperty key="rc-add-policy"> 태그 - 지정된 도메인에 추가될 수 있는 루트 컴플렉스에서 직접 I/O 및 SR-IOV I/O 가상화 작업을 사용으로 설정할지 아니면 사용 안함으로 설정할지 지정합니다. 유효한 값은 iov 및 값 없음(rc-add-policy=)입니다.
<gprop:GenericProperty key="perf-counters"> 태그 - 액세스할 성능 레지스터 세트(global, htstrand, strand)를 지정합니다.
플랫폼에 성능 액세스 기능이 없으면 perf-counters 등록 정보 값이 무시됩니다.
cpu 리소스에 대한 할당 단위 등록 정보 <rasd:AllocationUnits>는 항상 코어 수가 아닌 가상 CPU 수를 지정합니다.
cpu 리소스는 항상 <Content> 섹션 내에 있습니다.
예 11 ldm list-bindings 명령의 cpu XML 섹션 출력다음 예에서는 ldm list-bindings 명령을 사용하여 <cpu> 섹션의 XML 출력을 보여줍니다.
<?xml version="1.0"?> <LDM_interface xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ovf="./schemas/envelope" xmlns:rasd="./schemas/CIM_ResourceAllocationSettingData" xmlns:vssd="./schemas/CIM_VirtualSystemSettingData" xmlns:gprop="./schemas/GenericProperty" xmlns:bind="./schemas/Binding" version="1.3" xsi:noNamespaceSchemaLocation="./schemas/combined-v3.xsd"> <cmd> <action>list-bindings</action> <data version="3.0"> <Envelope> <References/> <Content xsi:type="ovf:VirtualSystem_Type" ovf:id="primary"> <Section xsi:type="ovf:ResourceAllocationSection_Type"> <Item> <rasd:OtherResourceType>ldom_info</rasd:OtherResourceType> <uuid>1e04cdbd-472a-e8b9-ba4c-d3eee86e7725</uuid> <rasd:Address>00:21:28:f5:11:6a</rasd:Address> <gprop:GenericProperty key="hostid">0x8486632a</gprop:GenericProperty> <failure-policy>fff</failure-policy> <wcore>0</wcore> <extended-mapin-space>0</extended-mapin-space> <cpu-arch>native</cpu-arch> <rc-add-policy/> <gprop:GenericProperty key="state">active</gprop:GenericProperty> </Item> </Section> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>cpu</rasd:OtherResourceType> <rasd:AllocationUnits>8</rasd:AllocationUnits> <bind:Binding> <Item> <rasd:OtherResourceType>cpu</rasd:OtherResourceType> <gprop:GenericProperty key="vid">0</gprop:GenericProperty> <gprop:GenericProperty key="pid">0</gprop:GenericProperty> <gprop:GenericProperty key="cid">0</gprop:GenericProperty> <gprop:GenericProperty key="strand_percent">100</gprop:GenericProperty> <gprop:GenericProperty key="util_percent">1.1%</gprop:GenericProperty> <gprop:GenericProperty key="normalized_utilization">0.1%</gprop:GenericProperty> </Item> </Section> </Content> </Envelope> </data> </cmd> </LDM_interface>예 12 ldm list-domain 명령의 cpu XML 섹션 출력
다음 예에서는 ldm list-domain 명령을 사용하여 <cpu> 섹션의 XML 출력을 보여줍니다.
<?xml version="1.0"?> <LDM_interface xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ovf="./schemas/envelope" xmlns:rasd="./schemas/CIM_ResourceAllocationSettingData" xmlns:vssd="./schemas/CIM_VirtualSystemSettingData" xmlns:gprop="./schemas/GenericProperty" xmlns:bind="./schemas/Binding" version="1.3" xsi:noNamespaceSchemaLocation="./schemas/combined-v3.xsd"> <cmd> <action>list-domain</action> <data version="3.0"> <Envelope> <References/> <Content xsi:type="ovf:VirtualSystem_Type" ovf:id="primary"> <Section xsi:type="ovf:ResourceAllocationSection_Type"> <Item> <rasd:OtherResourceType>ldom_info</rasd:OtherResourceType> <gprop:GenericProperty key="state">active</gprop:GenericProperty> <gprop:GenericProperty key="flags">-n-cv-</gprop:GenericProperty> <gprop:GenericProperty key="utilization">0.7%</gprop:GenericProperty> <gprop:GenericProperty key="uptime">3h</gprop:GenericProperty> <gprop:GenericProperty key="normalized_utilization">0.1%</gprop:GenericProperty> </Item> </Section> </Content> </Envelope> </data> </cmd> </LDM_interface>
mau 리소스는 항상 <Content> 섹션 내에 있습니다. 유일한 등록 정보는 MAU 또는 다른 암호화 단위의 개수를 나타내는 <rasd:AllocationUnits> 태그입니다.
<Envelope> <References/> <Content xsi:type="ovf:VirtualSystem_Type" id="ldg1"> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>mau</rasd:OtherResourceType> <rasd:AllocationUnits>1</rasd:AllocationUnits> </Item> </Section> </Content> </Envelope>
memory 리소스는 항상 <Content> 섹션 내에 있습니다. 유일한 등록 정보는 메모리의 양을 나타내는 <rasd:AllocationUnits> 태그입니다.
예 14 memory XML 예<Envelope> <References/> <Content xsi:type="ovf:VirtualSystem_Type" id="ldg1"> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>memory</rasd:OtherResourceType> <rasd:AllocationUnits>4G</rasd:AllocationUnits> </Item> </Section> </Content> </Envelope>
가상 SAN(vsan) 리소스는 <Content> 섹션에 포함될 수 있습니다. 다음 키를 포함하는 <gprop:GenericProperty> 태그를 사용해야 합니다.
service_name – 가상 SAN의 이름
vsan_iport – 가상 SAN의 개시자 포트
vsan_volume 섹션에 단일 vol_name 등록 정보를 포함하는 항목이 있어야 합니다. 이 vol_name 등록 정보는 *로 설정해야 합니다.
예 15 vsan XML 예<Envelope> <References/> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>vsan</rasd:OtherResourceType> <gprop:GenericProperty key="service_name">vs1</gprop:GenericProperty> <gprop:GenericProperty key="vsan_iport"> /pci@400/pci@1/pci@0/pci@8/SUNW,emlxs@0/fp@0,0</gprop:GenericProperty> <bind:Binding> <Item> <rasd:OtherResourceType>vsan_volume</rasd:OtherResourceType> <gprop:GenericProperty key="vol_name">*</gprop:GenericProperty> </Item> </bind:Binding> </Item> </Section> </Envelope>
가상 디스크 서버(vds) 리소스는 도메인 설명의 일부로 <Content> 섹션에 표시되거나, <Envelope> 섹션에 자체적으로 표시될 수 있습니다. 유일한 등록 정보는 설명할 vds 리소스의 이름을 포함하는 service_name 키가 있는 <gprop:GenericProperty> 태그입니다.
예 16 vds XML 예<Envelope> <References/> <Content xsi:type="ovf:VirtualSystem_Type" id="ldg1"> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>vds</rasd:OtherResourceType> <gprop:GenericProperty key="service_name">vdstmp</gprop:GenericProperty> </Item> </Section> </Content> </Envelope>
vds_volume 리소스는 도메인 설명의 일부로 <Content> 섹션에 표시되거나, <Envelope> 섹션에 자체적으로 표시될 수 있습니다. 다음 키를 포함하는 <gprop:GenericProperty> 태그가 있어야 합니다.
vol_name – 볼륨 이름입니다.
service_name – 이 볼륨이 바인드될 가상 디스크 서버의 이름입니다.
block_dev – 이 볼륨과 연관될 파일 또는 장치 이름입니다.
선택적으로 vds_volume 리소스는 다음과 같은 등록 정보를 포함할 수도 있습니다.
vol_opts – {ro,slice,excl}과 같이 한 문자열 내에 쉼표로 구분된 하나 이상의 옵션입니다.
mpgroup – 다중 경로(페일오버) 그룹의 이름입니다.
<Envelope> <References/> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>vds_volume</rasd:OtherResourceType> <gprop:GenericProperty key="vol_name">vdsdev0</gprop:GenericProperty> <gprop:GenericProperty key="service_name">primary-vds0</gprop:GenericProperty> <gprop:GenericProperty key="block_dev"> opt/SUNWldm/domain_disks/testdisk1</gprop:GenericProperty> <gprop:GenericProperty key="vol_opts">ro</gprop:GenericProperty> <gprop:GenericProperty key="mpgroup">mpgroup-name</gprop:GenericProperty> </Item> </Section> </Envelope>
disk 리소스는 항상 <Content> 섹션 내에 있습니다. 다음 키를 포함하는 <gprop:GenericProperty> 태그가 있어야 합니다.
vdisk_name – 가상 디스크의 이름입니다.
service_name – 이 가상 디스크가 바인드될 가상 디스크 서버의 이름입니다.
vol_name – 이 가상 디스크와 연관될 가상 디스크 서비스 장치입니다.
선택적으로 disk 리소스는 timeout 등록 정보를 포함할 수도 있습니다. 이 등록 정보는 가상 디스크 클라이언트(vdc)와 가상 디스크 서버(vds) 간에 연결을 설정하기 위한 시간 초과 값(초)입니다. 가상 디스크(vdisk) 경로가 여러 개 있을 경우 vdc가 다른 vds에 대한 연결을 시도할 수 있습니다. 시간 초과는 지정된 시간 이내에 vds에 대한 연결이 설정되도록 합니다.
예 18 disk XML 예<Envelope> <References/> <Content xsi:type="ovf:VirtualSystem_Type" id="ldg1"> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>disk</rasd:OtherResourceType> <gprop:GenericProperty key="vdisk_name">vdisk0</gprop:GenericProperty> <gprop:GenericProperty key="service_name">primary-vds0</gprop:GenericProperty> <gprop:GenericProperty key="vol_name">vdsdev0</gprop:GenericProperty> <gprop:GenericProperty key="timeout">60</gprop:GenericProperty> </Item> </Section> </Content> </Envelope>
vsw 리소스는 도메인 설명의 일부로 <Content> 섹션에 표시되거나, <Envelope> 섹션에 자체적으로 표시될 수 있습니다. 가상 스위치에 지정될 이름인 service_name 키를 포함하는 <gprop:GenericProperty> 태그가 있어야 합니다.
선택적으로 vsw 리소스는 다음과 같은 등록 정보를 포함할 수도 있습니다.
<rasd:Address> – 가상 스위치에 MAC 주소를 지정합니다.
default-vlan-id – 태그 지정 모드에서 가상 네트워크 장치 또는 가상 스위치가 멤버로 속해 있어야 하는 기본 VLAN(Virtual Local Area Network) 을 지정합니다. 첫번째 VLAN ID(vid1)는 default-vlan-id용으로 예약되었습니다.
dev_path – 이 가상 스위치와 연관될 네트워크 장치의 경로입니다.
id – 새 가상 스위치 장치의 ID를 지정합니다. 기본적으로 ID 값은 자동으로 생성되므로, OS의 기존 장치 이름과 일치해야 하는 경우 이 등록 정보를 설정하십시오.
inter_vnet_link – Vnet 간 통신을 위해 LDC 채널을 지정할지 여부를 지정합니다. 유효한 값은 on, off 및 auto입니다. 기본값은 auto입니다.
linkprop – 가상 장치가 물리적 링크 상태 업데이트를 가져오도록 지정합니다(기본값: phys-state). 값이 비어 있을 경우, 가상 장치가 물리적 링크 상태 업데이트를 가져오지 않습니다.
mode – Oracle Solaris Cluster 하트비트 지원의 경우 sc입니다.
pvid – 포트 VLAN(Virtual Local Area Network) ID(식별자)는 태그 미지정 모드에서 가상 네트워크가 멤버로 속해 있어야 하는 VLAN을 나타냅니다.
mtu – 가상 스위치나 가상 스위치에 바인드된 가상 네트워크 장치 또는 둘 다의 MTU(최대 전송 단위)를 지정합니다. 유효한 값의 범위는 1500-16000입니다. 잘못된 값이 지정된 경우 ldm 명령이 오류를 발행합니다.
vid – VLAN(Virtual Local Area Network) ID(식별자)는 태그 지정 모드에서 가상 네트워크와 가상 스위치가 멤버로 속해 있어야 하는 VLAN을 나타냅니다.
<Envelope> <References/> <Content xsi:type="ovf:VirtualSystem_Type" id="ldg2"> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>vsw</rasd:OtherResourceType> <rasd:Address>00:14:4f:fb:ec:00</rasd:Address> <gprop:GenericProperty key="service_name">test-vsw1</gprop:GenericProperty> <gprop:GenericProperty key="inter_vnet_link">auto</gprop:GenericProperty> <gprop:GenericProperty key="default-vlan-id">1</gprop:GenericProperty> <gprop:GenericProperty key="pvid">1</gprop:GenericProperty> <gprop:GenericProperty key="mtu">1500</gprop:GenericProperty> <gprop:GenericProperty key="dev_path">switch@0</gprop:GenericProperty> <gprop:GenericProperty key="id">0</gprop:GenericProperty> </Item> </Section> </Content> </Envelope>
network 리소스는 항상 <Content> 섹션 내에 있습니다. 다음 키를 포함하는 <gprop:GenericProperty> 태그가 있어야 합니다.
linkprop – 가상 장치가 물리적 링크 상태 업데이트를 가져오도록 지정합니다(기본값: phys-state). 값이 비어 있을 경우, 가상 장치가 물리적 링크 상태 업데이트를 가져오지 않습니다.
vnet_name – 가상 네트워크(vnet)의 이름입니다.
service_name – 이 가상 네트워크가 바인드될 가상 스위치(vswitch)의 이름입니다.
custom – 신뢰할 수 있는 호스트에서 가상 네트워크 장치에 지정될 수 있는 최대 VLAN 및 MAC 주소 수에 대한 사용자정의 설정을 사용으로 설정할지 아니면 사용 안함으로 설정할지 지정합니다. 기본값은 disable입니다.
custom/max-mac-addrs – 신뢰할 수 있는 호스트에서 가상 네트워크 장치에 지정될 수 있는 최대 MAC 주소 수를 지정합니다. 기본값은 4096입니다.
custom/max-vlans – 신뢰할 수 있는 호스트에서 가상 네트워크 장치에 지정될 수 있는 최대 VLAN 수를 지정합니다. 기본값은 4096입니다.
선택적으로 network 리소스는 다음과 같은 등록 정보를 포함할 수도 있습니다.
<rasd:Address> – 가상 스위치에 MAC 주소를 지정합니다.
pvid – 포트 VLAN(Virtual Local Area Network) ID(식별자)는 태그 미지정 모드에서 가상 네트워크가 멤버로 속해 있어야 하는 VLAN을 나타냅니다.
vid – VLAN(Virtual Local Area Network) ID(식별자)는 태그 지정 모드에서 가상 네트워크와 가상 스위치가 멤버로 속해 있어야 하는 VLAN을 나타냅니다.
<Envelope> <References/> <Content xsi:type="ovf:VirtualSystem_Type" id="ldg1"> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>network</rasd:OtherResourceType> <gprop:GenericProperty key="linkprop">phys-state</gprop:GenericProperty> <gprop:GenericProperty key="custom">enable</gprop:GenericProperty> <gprop:GenericProperty key="custom/max-mac-addrs">4096</gprop:GenericProperty> <gprop:GenericProperty key="custom/max-vlans">12</gprop:GenericProperty> <gprop:GenericProperty key="vnet_name">ldg1-vnet0</gprop:GenericProperty> <gprop:GenericProperty key="service_name">primary-vsw0</gprop:GenericProperty> <rasd:Address>00:14:4f:fc:00:01</rasd:Address> </Item> </Section> </Content> </Envelope>
vcc 리소스는 도메인 설명의 일부로 <Content> 섹션에 표시되거나, <Envelope> 섹션에 자체적으로 표시될 수 있습니다. 다음 키를 포함하는 <gprop:GenericProperty> 태그가 있을 수 있습니다.
service_name – 가상 콘솔 집중기 서비스에 지정할 이름입니다.
min_port – 이 vcc와 연관될 최소 포트 번호입니다.
max_port – 이 vcc와 연관될 최대 포트 번호입니다.
<Envelope> <References/> <Content xsi:type="ovf:VirtualSystem_Type" id="ldg1"> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>vcc</rasd:OtherResourceType> <gprop:GenericProperty key="service_name">vcc1</gprop:GenericProperty> <gprop:GenericProperty key="min_port">6000</gprop:GenericProperty> <gprop:GenericProperty key="max_port">6100</gprop:GenericProperty> </Item> </Section> </Content> </Envelope>
var 리소스는 항상 <Content> 섹션 내에 있습니다. 다음 키를 포함하는 <gprop:GenericProperty> 태그가 있을 수 있습니다.
name – 변수의 이름입니다.
value – 변수 값입니다.
<Envelope> <References/> <Content xsi:type="ovf:VirtualSystem_Type" id="ldg1"> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>var</rasd:OtherResourceType> <gprop:GenericProperty key="name">test_var</gprop:GenericProperty> <gprop:GenericProperty key="value">test1</gprop:GenericProperty> </Item> </Section> </Content> </Envelope>
physio_device 리소스는 항상 <Content> 섹션 내에 있습니다. add-io, set-io, remove-io, create-vf, destroy-vf 및 set-domain 하위 명령을 사용하여 이 리소스를 수정할 수 있습니다.
예 23 physio_device XML 예다음 예에서는 가상 기능, 물리적 기능 및 루트 컴플렉스에 대해 작업을 수행하는 방법을 보여줍니다.
다음 XML 단편 예에서는 ldm add-io 명령을 사용하여 /SYS/MB/NET0/IOVNET.PF0.VF0 가상 기능을 ldg1 도메인에 추가하는 방법을 보여줍니다.
<LDM_interface version="1.3"> <cmd> <action>add-io</action> <data version="3.0"> <Envelope> <References/> <Content xsi:type="ovf:VirtualSystem_Type" ovf:id="ldg1"> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>physio_device</rasd:OtherResourceType> <gprop:GenericProperty key="name"> /SYS/MB/NET0/IOVNET.PF0.VF0</gprop:GenericProperty> </Item> </Section> </Content> </Envelope> </data> </cmd> </LDM_interface>
다음 XML 단편 예에서는 ldm set-io 명령을 사용하여 pci_1 루트 컴플렉스에 대한 iov_bus_enable_iov 등록 정보 값을 on으로 설정하는 방법을 보여줍니다.
<LDM_interface version="1.3"> <cmd> <action>set-io</action> <data version="3.0"> <Envelope> <References/> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>physio_device</rasd:OtherResourceType> <gprop:GenericProperty key="name">pci_1</gprop:GenericProperty> <gprop:GenericProperty key="iov_bus_enable_iov"> on</gprop:GenericProperty> </Item> </Section> </Envelope> </data> </cmd> </LDM_interface>
다음 XML 단편 예에서는 ldm set-io 명령을 사용하여 /SYS/MB/NET0/IOVNET.PF1 물리적 기능에 대한 unicast-slots 등록 정보 값을 6으로 설정하는 방법을 보여줍니다.
<LDM_interface version="1.3"> <cmd> <action>set-io</action> <data version="3.0"> <Envelope> <References/> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>physio_device</rasd:OtherResourceType> <gprop:GenericProperty key="name"> /SYS/MB/NET0/IOVNET.PF1</gprop:GenericProperty> <gprop:GenericProperty key="unicast-slots">6</gprop:GenericProperty> </Item> </Section> </Envelope> </data> </cmd> </LDM_interface>
다음 XML 단편 예에서는 ldm create-vf 명령을 사용하여 다음 등록 정보 값으로 /SYS/MB/NET0/IOVNET.PF1.VF0 가상 기능을 만드는 방법을 보여줍니다.
unicast-slots=6
pvid=3
mtu=1600
<LDM_interface version="1.3"> <cmd> <action>create-vf</action> <data version="3.0"> <Envelope> <References/> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>vf_device</rasd:OtherResourceType> <gprop:GenericProperty key="iov_pf_name"> /SYS/MB/NET0/IOVNET.PF1</gprop:GenericProperty> <gprop:GenericProperty key="unicast-slots">6</gprop:GenericProperty> <gprop:GenericProperty key="pvid">3</gprop:GenericProperty> <gprop:GenericProperty key="mtu">1600</gprop:GenericProperty> </Item> </Section> </Envelope> </data> </cmd> </LDM_interface>
다음 XML 단편 예에서는 ldm create-vf 명령을 사용하여 /SYS/MB/NET0/IOVNET.PF1 물리적 기능과 함께 iov_pf_repeat_count_str 값(3)으로 지정된 개수의 가상 기능을 만드는 방법을 보여줍니다. iov_pf_repeat_count_str 등록 정보로 여러 가상 기능을 만들 때 다른 등록 정보 값은 지정할 수 없습니다.
<LDM_interface version="1.3"> <cmd> <action>create-vf</action> <data version="3.0"> <Envelope> <References/> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>vf_device</rasd:OtherResourceType> <gprop:GenericProperty key="iov_pf_name"> /SYS/MB/NET0/IOVNET.PF1</gprop:GenericProperty> <gprop:GenericProperty key="iov_pf_repeat_count_str"> 3</gprop:GenericProperty> </Item> </Section> </Envelope> </data> </cmd> </LDM_interface>
SP(서비스 프로세서) 구성(spconfig) 리소스는 항상 <Envelope> 섹션에 자체적으로 표시됩니다. 다음 키를 포함하는 <gprop:GenericProperty> 태그가 있을 수 있습니다.
spconfig_name – SP에 저장될 구성의 이름입니다.
spconfig_status – 특정 SP 구성의 현재 상태입니다. 이 등록 정보는 ldm list-spconfig 명령의 출력에 사용됩니다.
<Envelope> <Section xsi:type="ovf:ResourceAllocationSection_type"> <Item> <rasd:OtherResourceType>spconfig</rasd:OtherResourceType> <gprop:GenericProperty key="spconfig_name">primary</gprop:GenericProperty> <gprop:GenericProperty key="spconfig_status">current</gprop:GenericProperty> key="spconfig_aux_status">degraded</gprop:GenericProperty> </Item> </Section> </Envelope>
DRM 정책(policy) 리소스는 <Envelope> 섹션에 표시되며 다음 키를 포함하는 <gprop:GenericProperty> 태그가 있을 수 있습니다.
policy_name – DRM 정책의 이름입니다.
policy_enable – DRM 정책을 사용 또는 사용 안함으로 설정할지 여부를 지정합니다.
policy_priority – DRM 정책의 우선 순위입니다.
policy_vcpu_min – 도메인의 최소 가상 CPU 리소스 수입니다.
policy_vcpu_max – 도메인의 최대 가상 CPU 리소스 수입니다.
policy_util_lower – 정책 분석이 트리거되는 하한 사용량 레벨입니다.
policy_util_upper – 정책 분석이 트리거되는 상한 사용량 레벨입니다.
policy_tod_begin – DRM 정책의 유효 시작 시간입니다.
policy_tod_end – DRM 정책의 유효 중지 시간입니다.
policy_sample_rate – 초 단위의 주기 시간인 샘플 비율입니다.
policy_elastic_margin – CPU 사용량의 상한 및 하한 간 버퍼 양입니다.
policy_attack – 한 리소스 제어 주기 중에 추가될 최대 리소스 양입니다.
policy_decay – 한 리소스 제어 주기 중에 제거될 최대 리소스 양입니다.
<Envelope> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>policy</rasd:OtherResourceType> <gprop:GenericProperty key="policy_name">test-policy</gprop:GenericProperty> <gprop:GenericProperty key="policy_enable">on</gprop:GenericProperty> <gprop:GenericProperty key="policy_priority">1</gprop:GenericProperty> <gprop:GenericProperty key="policy_vcpu_min">12</gprop:GenericProperty> <gprop:GenericProperty key="policy_vcpu_max">13</gprop:GenericProperty> <gprop:GenericProperty key="policy_util_lower">8</gprop:GenericProperty> <gprop:GenericProperty key="policy_util_upper">9</gprop:GenericProperty> <gprop:GenericProperty key="policy_tod_begin">07:08:09</gprop:GenericProperty> <gprop:GenericProperty key="policy_tod_end">09:08:07</gprop:GenericProperty> <gprop:GenericProperty key="policy_sample_rate">1</gprop:GenericProperty> <gprop:GenericProperty key="policy_elastic_margin">8</gprop:GenericProperty> <gprop:GenericProperty key="policy_attack">8</gprop:GenericProperty> <gprop:GenericProperty key="policy_decay">9</gprop:GenericProperty> </Item> </Section> </Envelope>
console 리소스는 항상 <Content> 섹션에 포함됩니다. 다음 키를 포함하는 <gprop:GenericProperty> 태그가 있을 수 있습니다.
port – 이 가상 콘솔(console)을 변경할 포트입니다.
service_name – 이 console을 바인드할 가상 콘솔 집중기(vcc) 서비스입니다.
group – 이 console을 바인드할 그룹의 이름입니다.
enable-log – 이 콘솔에 대한 가상 콘솔 로깅을 사용 또는 사용 안함으로 설정합니다.
<Envelope> <References/> <Content xsi:type="ovf:VirtualSystem_Type" id="ldg1"> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>console</rasd:OtherResourceType> <gprop:GenericProperty key="port">6000</gprop:GenericProperty> <gprop:GenericProperty key="service_name">vcc2</gprop:GenericProperty> <gprop:GenericProperty key="group">group-name</gprop:GenericProperty> <gprop:GenericProperty key="enable-log">on</gprop:GenericProperty> </Item> </Section> </Content> </Envelope>
이 예에서는 ldm migrate-domain 명령의 <data> 섹션에 포함된 내용을 보여줍니다.
첫번째 <Content> 노드(<ldom_info> 섹션 없음)는 마이그레이션할 소스 도메인입니다.
두번째 <Content> 노드(<ldom_info> 섹션 있음)는 마이그레이션할 대상 도메인입니다. 소스 및 대상 도메인 이름은 같아도 됩니다.
대상 도메인의 <ldom_info> 섹션은 마이그레이션할 시스템 및 해당 시스템으로 마이그레이션하는 데 필요한 세부정보를 설명합니다.
target-host - 마이그레이션할 대상 시스템입니다.
user-name - 대상 시스템에 대한 로그인 사용자 이름으로, SASL 64비트로 인코딩되어야 합니다.
password - 대상 시스템에 로그인하는 데 사용할 암호로, SASL 64비트로 인코딩되어야 합니다.
<Envelope> <References/> <Content xsi:type="ovf:VirtualSystem_Type" ovf:id="ldg1"/> <Content xsi:type="ovf:VirtualSystem_Type" ovf:id="ldg1"/> <Section xsi:type="ovf:ResourceAllocationSection_Type"> <Item> <rasd:OtherResourceType>ldom_info</rasd:OtherResourceType> <gprop:GenericProperty key="target">target-host</gprop:GenericProperty> <gprop:GenericProperty key="username">user-name</gprop:GenericProperty> <gprop:GenericProperty key="password">password</gprop:GenericProperty> <Item> </Section> </Content> </Envelope>