šŸŽ“ BookMCQ
← Back to 16. Virtual Machines

šŸ“ VMware virtualization example (10 MCQs)

VMware as a Platform for Hosting Virtual Machines

VMware provides virtualisation software that allows multiple guest operating systems to run on shared physical hardware. Products such as VMware ESXi illustrate bare-metal hypervisor deployment, while VMware Workstation illustrates hosted desktop virtualisation. These environments create virtual CPUs, memory, disks, and network interfaces, allowing administrators and developers to manage independent guest systems.

Why Organisations Use VMware Virtual Infrastructure

Organisations may operate many physical servers with low average utilisation and high maintenance requirements. Virtualisation consolidates workloads while preserving separate operating system environments. VMware platforms support provisioning, resource allocation, virtual networking, storage integration, and central management, helping administrators operate server workloads with greater flexibility.

Creating and Configuring a VMware Guest

An administrator selects a guest operating system type and configures its virtual CPUs, memory, disk, and network adapter. The hypervisor creates the virtual machine environment and starts the guest installation. During operation, management tools can adjust supported resources, monitor performance, and perform tasks such as snapshots or migration.

Example of a VMware Server Deployment

A physical server with 32 GB RAM and eight CPU cores runs VMware ESXi. An administrator creates a Linux web server VM with two virtual CPUs and 8 GB RAM, plus a Windows application VM with two virtual CPUs and 12 GB RAM. Both guests share the server's physical resources.

Management Features and Platform Dependencies

VMware virtualisation supports consolidation, snapshots, templates, virtual networking, and managed migration where platform and licence capabilities permit. Performance still depends on host capacity and storage design. Administrators must maintain hypervisor security, compatible hardware, and backup procedures. Specific product features vary by version and deployment, so they should not be assumed universally available.

Misconceptions About VMware Virtualisation

'Every VMware product is a Type 1 hypervisor' is false because desktop products can be hosted. 'A virtual machine receives dedicated physical hardware automatically' ignores resource sharing. 'A snapshot replaces a backup strategy' is incorrect because snapshots may depend on the original datastore and do not independently protect against every storage failure.

Exam Focus: ESXi and Hosted VMware Models

Identify ESXi as a bare-metal hypervisor and Workstation as a hosted virtualisation product. Trace virtual machine creation, resource allocation, and guest execution. Questions may compare their architectures or examine snapshots, templates, virtual networking, migration, and the importance of host capacity and backup planning.

Key Terms of VMware Virtualisation

  • VMware ESXi - Bare-metal hypervisor platform.
  • Workstation - Hosted desktop virtualisation software.
  • Guest VM - Virtual machine running an operating system.
  • Template - Reusable virtual machine configuration.
  • Snapshot - Saved point-in-time VM state.
3
Easy
4
Medium
3
Hard

šŸ“ All VMware virtualization example MCQs

Q1. A Solaris 10 host has 8 physical CPU cores. An administrator creates two zones and wants to allocate CPUs so each zone receives an equal share while leaving at least one core for the global zone. Which allocation meets the requirement?

A.Zone 1: 4 CPUs, Zone 2: 4 CPUs
B.Zone 1: 3 CPUs, Zone 2: 3 CPUs āœ…
C.Zone 1: 4 CPUs, Zone 2: 3 CPUs
D.Zone 1: 2 CPUs, Zone 2: 2 CPUs
šŸ’” Difficulty: easy | āœ… Correct: B

šŸ“– Explanation: Option B gives each zone three CPUs, using six of the eight cores and leaving two cores for the global zone, which satisfies the requirement of at least one core remaining free. Option A consumes all eight cores, leaving none for the global zone. Option C allocates an unequal share and still exceeds the available cores. Option D provides too few CPUs for each zone and does not use the available resources efficiently.

Q2. A web server runs in Zone A and a database server runs in Zone B on the same Solaris 10 host. Both need to listen on port 80 for health checks, but only the web server should accept external traffic. Which configuration ensures this behavior?

A.Assign the same IP address to both zones and use firewall rules to block external traffic to Zone B.
B.Give each zone a unique IP address and configure Zone B’s firewall to deny inbound connections on port 80. āœ…
C.Share a single network interface without VLANs and rely on application‑level authentication.
D.Run both services in the global zone and use chroot to separate them.
šŸ’” Difficulty: medium | āœ… Correct: B

šŸ“– Explanation: Option B isolates the zones with distinct IP addresses and explicitly denies inbound port 80 traffic in Zone B, ensuring only the web server receives external connections. Option A shares an IP address, making firewall rules ambiguous and potentially allowing traffic to both zones. Option C lacks any network isolation, so both zones could accept traffic. Option D moves services out of zones, defeating the purpose of containment.

Q3. A Solaris host runs three zones with memory caps of 4 GB, 6 GB, and 8 GB respectively, while the physical RAM is 12 GB. The administrator enables dynamic memory management. After a workload spike, the total memory demand reaches 15 GB. What is the most likely outcome?

A.All zones will be throttled equally until demand drops below 12 GB.
B.The zone with the smallest cap will be swapped first, possibly causing its applications to pause. āœ…
C.The hypervisor will allocate additional swap space, allowing all zones to continue running without slowdown.
D.Memory requests will be denied for the zone with the largest cap, causing its processes to fail.
šŸ’” Difficulty: hard | āœ… Correct: B

šŸ“– Explanation: Dynamic memory management allows zones to exceed their caps temporarily, but when total demand surpasses physical RAM, the system must reclaim memory. The smallest‑capped zone is the first candidate for swapping, so its processes may pause, matching option B. Option A incorrectly assumes equal throttling. Option C overlooks the need to swap when RAM is insufficient. Option D misstates that the largest‑capped zone is denied, which is contrary to the reclamation policy.

Q4. In a Solaris system with two zones, Zone X runs a CPU‑intensive batch job, while Zone Y hosts latency‑sensitive user sessions. Which scheduling strategy should the administrator apply to minimize latency in Zone Y?

A.Set a higher priority for Zone X’s scheduler.
B.Allocate more physical CPUs to Zone X.
C.Configure Zone Y with a real‑time priority class and limit Zone X’s CPU share. āœ…
D.Disable preemption in the global scheduler.
šŸ’” Difficulty: medium | āœ… Correct: C

šŸ“– Explanation: Option C gives Zone Y a real‑time priority class, ensuring its processes are scheduled before lower‑priority work in Zone X, and also restricts Zone X’s CPU share to prevent it from monopolizing the processor. Option A would worsen latency for Zone Y. Option B benefits Zone X, not Zone Y. Option D removes preemption, causing long‑running jobs to block all other work, increasing latency.

Q5. A company needs to migrate Zone Prod from Host A to Host B without downtime. Both hosts run Solaris 10 with identical hardware. Which sequence of steps will most reliably achieve a live migration?

A.Export the zone’s file system, shut down the zone, import on Host B, then start.
B.Use ZFS send/receive to replicate the zone’s dataset while the zone remains active, then switch network routing. āœ…
C.Clone the zone using Solaris Live Upgrade, then activate the clone on Host B.
D.Perform a snapshot, copy the snapshot to Host B, and restart the zone on Host B.
šŸ’” Difficulty: hard | āœ… Correct: B

šŸ“– Explanation: Option B leverages ZFS send/receive, which can copy a live dataset incrementally, allowing the zone to stay running while its data is streamed to Host B. After the transfer, updating routing directs traffic to the new host, achieving near‑zero downtime. Option A requires shutting down the zone, causing downtime. Option C describes a different technology not intended for live migration. Option D’s snapshot copy also necessitates a stop‑start cycle.

Q6. Which statement best distinguishes Solaris zones from a traditional hypervisor‑based virtual machine?

A.Zones virtualize hardware, while hypervisors virtualize only the OS.
B.Zones share a single kernel, whereas hypervisors provide separate kernels for each guest. āœ…
C.Zones require separate physical CPUs for each instance, unlike hypervisors.
D.Zones cannot isolate network stacks, while hypervisors can.
šŸ’” Difficulty: easy | āœ… Correct: B

šŸ“– Explanation: Option B correctly captures the core difference: zones operate as OS‑level containers sharing one kernel, while hypervisors emulate full hardware and run separate kernels per VM. Option A reverses the roles of hardware and OS virtualization. Option C incorrectly claims zones need dedicated CPUs. Option D falsely states zones cannot isolate network stacks, which they can via virtual interfaces.

Q7. How does the per‑zone scheduler cooperate with the global scheduler in Solaris zones?

A.The per‑zone scheduler directly controls physical CPU registers, bypassing the global scheduler.
B.The global scheduler allocates time slices to zones, and each zone’s scheduler further distributes them among its processes. āœ…
C.Zones do not have their own scheduler; only the global scheduler exists.
D.The per‑zone scheduler only manages memory, leaving CPU scheduling to the global scheduler.
šŸ’” Difficulty: medium | āœ… Correct: B

šŸ“– Explanation: Option B describes the two‑level scheduling model: the global scheduler grants CPU time to each zone, and the zone’s own scheduler then decides which processes run within that slice. Option A is inaccurate because low‑level CPU control remains with the global scheduler. Option C ignores the existence of per‑zone schedulers. Option D limits the per‑zone scheduler’s role incorrectly to memory only.

Q8. Why does Solaris use a single kernel for all zones instead of a separate kernel per zone?

A.To reduce memory overhead and allow fast context switching between zones. āœ…
B.Because each zone requires its own device drivers, which a single kernel cannot provide.
C.To enable each zone to run a different operating system version.
D.Because hardware virtualization is required for isolation.
šŸ’” Difficulty: medium | āœ… Correct: A

šŸ“– Explanation: Option A explains the efficiency gain: a shared kernel eliminates the need for multiple kernel copies, saving memory and enabling rapid context switches. Option B is false; device drivers are shared across zones. Option C is incorrect because zones cannot run different OS versions. Option D misattributes isolation to hardware virtualization, which zones do not use.

Q9. In Solaris zones, which mechanism provides I/O isolation while allowing zones to share physical devices?

A.Full device pass‑through, where each zone receives a dedicated physical device.
B.Virtual network interfaces (VNICs) and virtual disks backed by ZFS, which mediate access to the underlying hardware. āœ…
C.Emulated BIOS calls that translate I/O requests to the global zone.
D.Direct memory access (DMA) mapping that bypasses the global zone entirely.
šŸ’” Difficulty: hard | āœ… Correct: B

šŸ“– Explanation: Option B is correct: VNICs and ZFS‑backed virtual disks give each zone its own logical I/O view while the underlying physical device is shared and mediated by the global zone. Option A would require exclusive hardware, which defeats sharing. Option C describes an unrealistic BIOS emulation layer. Option D suggests bypassing the global zone, which is not how zones enforce isolation.

Q10. In which Solaris release were zones first introduced?

A.Solaris 8
B.Solaris 9
C.Solaris 10 āœ…
D.Solaris 11
šŸ’” Difficulty: easy | āœ… Correct: C

šŸ“– Explanation: Option C is correct because zones were introduced as a feature of Solaris 10, providing OS‑level virtualization. Options A and B predate the feature, and option D refers to a later release that expanded zone capabilities but did not originally introduce them.

šŸ”— Related Topics (MCQs)