최신RedHat Red Hat Certified Specialist in OpenShift Virtualization - EX316무료샘플문제
How do you install the OADP Operator using the OpenShift Web Console?
Explanation:
1. Go to Operators OperatorHub.
2. Search for OpenShift API for Data Protection (OADP).
3. Click Install, select target namespace (e.g., oadp-operator), and approve defaults.
4. Wait for status Succeeded in Installed Operators.
5. Confirm pods are running: oc get pods -n oadp-operator
How do you configure migration policies for OpenShift Virtualization?
Explanation:
1. Create a MigrationPolicy object:
apiVersion: kubevirt.io/v1alpha3
kind: MigrationPolicy
metadata:
name: fast-policy
spec:
selectors:
namespaceSelector:
matchLabels:
policy-group: fast
allowAutoConverge: true
allowPostCopy: true
2. Label target namespaces:
oc label ns <target-ns> policy-group=fast
3. Applies advanced migration controls to selected VMs.
How do you test external reachability of a VM via its Multus IP?
Explanation:
1. Get IP via:
oc get pod <virt-launcher> -o json | jq '.metadata.annotations["k8s.v1.cni.cncf.io/networks-status"]'
2. Ping from external system.
3. Ensure firewall allows traffic to VM.
4. Verify return path (routing) exists.
5. Use tcpdump on node interface to debug.
How do you prepare the OpenShift cluster for OVA imports using the virt-v2v toolset?
Explanation:
1. Ensure OpenShift Virtualization and CDI (Containerized Data Importer) are installed.
2. Create a namespace/project: oc new-project ova-import
3. Ensure access to virt-v2v container or CLI utility on the system performing the import.
4. Set up persistent storage and the required storage class.
5. Validate cluster status using: oc get hyperconverged -n openshift-cnv
How do you automatically create a ClusterIP service with a VM using templates?
Explanation:
1. Use a VM template that includes a label (e.g., app: my-vm)
2. Create a Service YAML that selects that label.
3. Deploy from template and then deploy the service.
4. Both connect seamlessly.
5. Test with curl or ssh.
How do you check if a VM's health probes are affecting service routing?
Explanation:
1. Create a Service pointing to the VM.
2. Run readinessProbe in VM.
3. When readinessProbe fails, run:
oc get endpoints <service-name>
4. VM IP should disappear.
5. Confirms traffic routing is influenced by probe status.
How do you find all ClusterIP services targeting virtual machines?
Explanation:
1. List all services: oc get svc -A -o wide
2. Filter by label selector in YAML:
oc get svc --selector=kubevirt.io/domain -o wide
3. Optionally search for known port usage (22, 80, 443).
4. Cross-check with running VMs.
5. Use: oc get endpoints for connection info.
How do you configure DNS for a VM to resolve custom internal domains?
Explanation:
1. Use cloud-init in VM spec to write /etc/resolv.conf:
cloudInitNoCloud:
userData: |
#cloud-config
write_files:
- path: /etc/resolv.conf
content: |
nameserver
10.0.0.10
search internal.local
2. Apply and restart the VM.
3. Test name resolution inside VM.
How do you resize the imported VM's root disk?
Explanation:
1. Ensure PVC is expandable (allowVolumeExpansion: true).
2. Run:
oc patch pvc imported-disk -p '{"spec": {"resources": {"requests": {"storage": "25Gi"}}}}'
3. Inside VM, run growpart and resize2fs.
4. Confirm new disk size with df -h.
5. Used to accommodate new workloads.
How do you verify that a cloned VM has separate PVCs from the original?
Explanation:
1. List PVCs:
oc get pvc -n <namespace>
2. Match PVC names with cloned VM name (e.g., <clone-vm-name>-rootdisk).
3. Describe:
oc describe pvc <clone-pvc>
4. Confirm the cloneRequest annotation is present.
5. Validate disk content independently.
How do you reboot the virtual machine from inside the guest OS?
Explanation:
1. Inside
VM: sudo
reboot
2. VM will shut down and restart.
3. From host:
virtctl restart <vm-name>
4. Confirm with oc get vmi
5. Useful during package updates.
How do you resize a VM disk using PVC expansion?
Explanation:
1. Ensure the storage class supports allowVolumeExpansion.
2. Run:
oc patch pvc vm-root-disk -p '{"spec": {"resources": {"requests": {"storage": "15Gi"}}}}'
3. Restart the VM.
4. Resize partition inside the OS using growpart or resize2fs.
5. Confirm disk size with df -h.
How do you clone only specific disks from a multi-disk VM?
Explanation:
1. Identify target disk PVC.
2. Clone that PVC using a DataVolume.
3. In cloned VM YAML, define:
disks:
- name: cloned-
disk disk:
bus: virtio
volumes:
- name: cloned-
disk
dataVolume:
name: <cloned-dv>
4. Leave other disks unmounted or reconfigure.
5. Used for testing or forensic recovery.
How do you detach a Multus interface from a VM safely?
Explanation:
1. Stop VM: virtctl stop <vm>
2. Edit VM spec to remove the multus network and bridge interface.
3. Apply change: oc apply -f vm.yaml
4. Start VM: virtctl start <vm>
5. Confirm with ip a that interface is removed.
How do you check the status of a service (e.g., sshd) inside a running VM?
Explanation:
1. Access the VM via
console: virtctl console
<vm-name>
2. Authenticate with the VM's user credentials.
3. Run:
systemctl status sshd
4. Look for Active: active (running) status.
5. Use q to exit the status viewer.