To create a vCPAA on a KVM hypervisor
Steps
|
|
1 |
Navigate to the desired directory on the host machine.
|
2 |
Create the XML file as follows:
Note: The values used in this procedure are specific to this example. The actual values must reflect the user’s setup.
<domain type="kvm">
<memory>4194304</memory>
<currentMemory>4194304</memory>
<name>vsim98_66</name>
<uuid>df806b10-c863-40fd-2187-dead98066001</uuid>
<cpu mode="custom" match="minimum">
<model>SandyBridge</model>
<vendor>Intel</vendor>
</cpu>
<vcpu current="4">4</vcpu>
<os>
<type arch="x86_64" machine="rhel7.3.0">hvm</type>
<boot dev="hd"/>
<smbios mode="emulate"/>
</os>
<clock offset="utc">
<timer name="pit" tickpolicy="delay"/>
<timer name="rtc" tickpolicy="delay"/>
</clock>
<devices>
<emulator>/usr/libexec/qemu-kvm</emulator>
<disk type="file" device="disk">
<driver name='qemu' type='qcow2' cache="none"/>
<source file="/var/lib/libvirt/images/cpaa-vm.qcow2"/>
<target dev="hda" bus="virtio"/>
</disk> --> |
|
3 |
In the XML file, configure the following lines to map the host physical interface to the vCPAA IP management port A/1:
<interface type="bridge">
<mac address="DE:AD:98:66:01:01:/>
<source bridge="breth0/>
<model type="virtio/>
</interface>
|
4 |
Perform one of the following:
-
In the XML file, configure the following lines to map the host physical interface(s) to the vCPAA logical network interface port(s) 1/1/1...1/1/4 with the bridge interface model:
<interface type="bridge">
<mac address="DE:AD:98:66:01:02/>
<source bridge="breth1"/>
<model type="virtio"/>
</interface>
-
In the XML file, configure the following lines to map the host physical interface(s) to the vCPAA logical network interface port(s) 1/1/1...1/1/4 with the direct interface model:
<interface type="direct">
<mac address="DE:AD:98:66:01:02/>
<source dev="eth1" mode=passthrough"/>
<model type="virtio"/>
</interface>
|
5 |
In the XML file, configure the following lines to specify the console port of the vCPAA:
<console type="tcp">
<source mode="bind" host="198.51.98.62" service="40066"/>
<protocol type="telnet"/>
<target port="0"/>
<alias name="serial0"/>
</console> |
|
6 |
In the XML file, configure the following lines to close the configuration of the vCPAA:
</devices>
<seclabel type="none"/>
</domain>
|
7 |
Save and close the XML file.
End of steps |
© 2022 Nokia. Nokia Confidential Information
Use subject to agreed restrictions on disclosure and use.