102.6 Flashcards

1
Q

Which command can be used to check if the Linux kernel supports virtualization? A) lscpu B) lsmod C) dmesg D) vmstat

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following is a Type-2 hypervisor? A) KVM B) VirtualBox C) Xen D) VMware ESXi

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which command lists virtual machines managed by libvirt? A) virsh list B) virsh show C) virt-list D) virt-show

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the option ‘vga=ask’ in GRUB configuration do? A) Enables text mode B) Asks for VGA mode during boot C) Disables VGA support D) Auto-detects VGA

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following can be used to create a virtual machine on KVM? A) virt-install B) vm-create C) kvm-new D) qemu-launch

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you enable nested virtualization in KVM? A) Set /sys/module/kvm_intel/nested to 1 B) Enable the VM flag in /proc/cpuinfo C) Install nested-kvm package D) Set CPU architecture to x86

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which option in a libvirt domain XML file defines the number of CPUs for a guest? A) <cpu> B) <vcpu> C) <processor> D) <cores></cores></processor></vcpu></cpu>

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the purpose of the ‘virtio’ drivers in a virtualized environment? A) To provide optimized drivers for virtual devices B) To allow direct hardware access C) To manage VM security D) To control VM network traffic

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which command is used to manage QEMU/KVM virtual machines? A) qemu-manager B) virt-manager C) kvm-config D) vm-tool

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which file is commonly used to store disk images for KVM virtual machines? A) .img B) .iso C) .qcow2 D) .vhd

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which virtualization platform uses ‘dom0’ and ‘domU’ terminology? A) KVM B) VMware C) Xen D) VirtualBox

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which command can display the capabilities of the current virtualization environment? A) virsh capabilities B) virt-cap C) vmcap show D) qemu-capabilities

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the role of the ‘qemu-kvm’ package in a KVM environment? A) It provides virtualization for the KVM hypervisor B) It manages networking for VMs C) It provides graphical interface for VMs D) It enables direct disk access

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the primary configuration file for libvirt-managed virtual machines? A) /etc/libvirt/qemu.conf B) /etc/libvirt/vm.xml C) /etc/virt/virsh.conf D) /etc/libvirt/libvirt.xml

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which command can be used to attach a virtual disk to a running VM? A) virsh attach-disk B) virt-disk add C) kvm-add-disk D) qemu-disk-attach

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which option defines the amount of memory available to a VM in libvirt’s domain XML file? A) <mem> B) <memory> C) <ram> D) <vcpu></vcpu></ram></memory></mem>

A

B

17
Q

How do you start a virtual machine using the virsh command? A) virsh start <VM-name> B) virsh launch <VM-name> C) virsh poweron <VM-name> D) virsh boot <VM-name></VM-name></VM-name></VM-name></VM-name>

A

A

18
Q

Which of the following is a paravirtualized network driver? A) virtio-net B) e1000 C) realtek D) r8169

A

A

19
Q

What does the ‘virt-manager’ tool do? A) Provides a graphical interface for managing virtual machines B) Configures firewall settings for VMs C) Monitors disk space on virtual disks D) Generates VM reports

A

A

20
Q

Which Linux kernel module is responsible for managing KVM virtualization? A) kvm-intel B) kvm-cpu C) vm-kernel D) kvm-core

A

A

21
Q

Which of the following is the default network type used by libvirt? A) NAT B) Bridge C) Host-only D) None

A

A

22
Q

What is the purpose of ‘virt-clone’? A) To create a copy of an existing VM B) To monitor VM performance C) To manage VM snapshots D) To install virtio drivers

A

A

23
Q

What does the command ‘virsh shutdown <VM-name>' do? A) Shuts down the virtual machine gracefully B) Forces the VM to shut down C) Powers off the VM immediately D) Restarts the VM</VM-name>

A

A

24
Q

What is the default location for libvirt’s virtual machine configuration files? A) /etc/libvirt/qemu B) /var/lib/qemu/vm C) /usr/share/qemu/config D) /home/vm/config

A

A

25
Q

Which command is used to live-migrate a VM to another host? A) virsh migrate B) virt-transfer C) vm-copy D) qemu-move

A

A

26
Q

Which Linux command is used to list kernel modules related to virtualization? A) lsmod B) modprobe C) lsvm D) modinfo

A

A

27
Q

What is a key advantage of using the qcow2 disk image format? A) It supports snapshots B) It is faster than raw images C) It uses less CPU resources D) It supports direct I/O

A

A

28
Q

Which component is essential for hardware virtualization in KVM? A) VT-x or AMD-V CPU support B) NUMA architecture C) SMP support D) HyperThreading

A

A

29
Q

What does ‘virsh destroy <VM-name>' do? A) It stops the virtual machine immediately B) It deletes the VM from storage C) It uninstalls the VM D) It resets the VM to factory settings</VM-name>

A

A

30
Q

Which command is used to list all currently active VMs in a KVM environment? A) virsh list –all B) virsh show-vms C) kvm-list D) vmctl list

A

A