Chapter 3 - Implement Hyper-V Flashcards
You are the administrator for your company network. You have a Windows Server 2016 Hyper-V host named Server1. Server1 has a dynamically expanding virtual hard disk (VHD) file that is 950 GB. The VHD currently contains about 450 GB of free space. What command/ cmdlet should you use if you want to reduce the amount of disk space used by the VHD? A. Mount-VHD cmdlet B. DiskPart command C. Set-VHD cmdlet D. Optimize-VHD cmdlet
D. The Optimize-VHD cmdlet allows an administrator to optimize the allocation of space in virtual hard disk files, except for fixed virtual hard disks. The Compact operation opti- mizes the files. It reclaims unused blocks and rearranges them to be more efficiently packed, which reduces the size of a virtual hard disk file.
You are the administrator for your company network. You have a Windows Server 2016 Hyper-V host named Server1. Server1 contains a virtual machine named VM1. What should you run on Server1 if you need to make sure that you can use nested virtualization on VM1? A. Mount-VHD cmdlet B. DiskPart command C. Set-VMProcessor cmdlet D. Set-VM cmdlet
C. The Set-VMProcessor cmdlet allows an administrator to configure the processors of a vir- tual machine. While the virtual machine is in the OFF state, run the Set-VMProcessor cmdlet on the physical Hyper-V host. This enables nested virtualization for the virtual machine.
You are the administrator for your company network. You have a Windows Server 2016 Hyper-V host named Server1. Server1 contains two virtual machines named VM1 and VM2. You need to ensure that VM1 and VM2 can communicate with each other only. What cmdlet should you use to prevent VM1 and VM2 from communicating with Server1?
A. Set-NetNeighbor
B. Remove-VMSwitchTeamMember C. Set-VMSwitch
D. Enable-VMSwitchExtension
C. The Set-VMSwitch cmdlet allows an administrator to configure a virtual switch. Con- figuring a virtual switch between VM1 and VM2 will prevent them from communicating with Server1.
You are the administrator for your company network. You have a Windows Server 2016 Hyper-V host named Server1. Server1 contains a virtual machine named VM1. You want to deploy several shielded virtual machines on VM1. You deploy a Host Guardian on a new server. What should you run if you want to view the process of the shielded virtual machines installation?
A. Get-ShieldedVMProvisioningStatus cmdlet
B. Diskpart command
C. Set-VHD cmdlet
D. Set-VM cmdlet
A. The Get-ShieldedVMProvisioningStatus cmdlet allows you to view the provisioning status of a shielded virtual machine.
You are the administrator for your company network. You have a Windows Server 2016 Hyper-V host named Server1. The host contains a virtual machine named VM1. VM1 has resource metering enabled. What cmdlet should you run if you need to use resource meter- ing to track the amount of network traffic that VM1 sends to the 10.10.16.0/20 network?
A. Add-VMNetworkAdapter
B. Set-VMNetworkAdapter
C. New-VMResourcePool
D. Set-VMNetworkAdapterRoutingDomainMapping
B. The Set-VMNetworkAdapter cmdlet allows an administrator to configure features of the virtual network adapter in a virtual machine or the management operating system.
You are the administrator for your company network. You have a Windows Server 2016 server named Server1, which has the Hyper-V Server role installed. You want to create a virtual machine named VM1 on Server1. You need to make sure that you can start VM1 from the network. What are two possible ways to do this? (Choose two.)
A. Create a Generation 2 virtual machine.
B. Create a Generation 1 virtual machine and run the Enable-NetAdapterPackageDirect
cmdlet.
C. Create a Generation 1 virtual machine that has a legacy network adapter.
D. Create a Generation 1 virtual machine and configure a Single Root I/O Virtualization (SR-IOV) interface for the network adapter.
A and C. To boot a virtual machine from the network, it must be a Generation 2 VM, or a Generation 1 VM connected to a legacy network adapter. Your choice to create a Genera- tion 1 or Generation 2 virtual machine depends on which guest operating system you want to install and the boot method you want to use to deploy the virtual machine. A virtual machine created with Generation 1 supports legacy drivers and uses Hyper-V BIOS-based architecture. Hyper-V BIOS-based virtual machines can only initialize IDE controllers for operating systems to initialize a filesystem. Alternatively, a virtual machine created with Generation 2 supports UEFI-based architecture, in which a subset of Integration Service components has been included to allow SCSI controllers to initialize before the operating system starts loading.
You are the administrator for your company network. You have a Windows Server 2016 Hyper-V host named Server1. Server1 contains a virtual machine named VM1. What should you run on Server1 if you need to ensure that you can use nested virtualization on VM1? A. Mount-VHD cmdlet B. Diskpart command C. Set-VHD cmdlet D. Set-VM cmdlet E. Set-VMHost cmdlet F. Set-VMProcessor cmdlet G. Install-WindowsFeature cmdlet H. Optimize-VHD cmdlet
F. The Set-VMProcessor cmdlet allows an administrator to configure the processors of a virtual machine. While the virtual machine is in the OFF state, run the Set-VMProcessor cmdlet on the physical Hyper-V host. This enables nested virtualization for the virtual machine.
8. You are the administrator for your company network. You have a Windows Server 2016 Hyper-V host named Server1. You plan to deploy several shielded virtual machines on Server1 and deploy a Host Guardian on the server. What should you run first if you need to ensure that Server1 can host shielded virtual machines? A. Mount-VHD cmdlet B. Diskpart command C. Set-VHD cmdlet D. Set-VM cmdlet E. Set-VMHost cmdlet F. Set-VMProcessor cmdlet G. Install-WindowsFeature cmdlet H. Optimize-VHD cmdlet
G. The first thing you need to do is install the Host Guardian feature on the new server by running the Install-WindowsFeature cmdlet.
You are the administrator for your company network. You have a Windows Server 2016 Hyper-V host named Server1. Server1 has a virtual machine that uses a VHD named Disk1.vhdx. You receive a warning message from Event Viewer stating that “One or more virtual hard disks have a physical sector size that is smaller than the physical sector size of the storage on which the virtual hard disk file is located.” What should you run if you need to resolve the problem that causes the warning message? A. Mount-VHD cmdlet B. Diskpart command C. Set-VHD cmdlet D. Set-VM cmdlet E. Set-VMHost cmdlet F. Set-VMProcessor cmdlet G. Install-WindowsFeature cmdlet H. Optimize-VHD cmdlet
C. The Set-VHD cmdlet sets the properties associated with a virtual hard disk. The Set-VHD cmdlet sets the ParentPath or PhysicalSectorSizeBytes properties of a virtual hard disk. The two properties must be set in separate operations.
You are the administrator for your company network. You have a Windows Server 2016 Hyper-V host named Server1. Server1 has a virtual machine named VM1 that uses a single VHDX file. VM1 is configured as shown in the following table.
Configuration Details
Virtual Machine Generation V2
Operating System Windows 8
Filesystem NTFS
Number of Partitions 1
Disk Type Basic
Unallocated Disk Space 100 GB
You plan to use VM1 as a virtual machine template to deploy shielded virtual machines. What should you run if you need to ensure that VM1 can be used to deploy shielded virtual machines? A. Mount-VHD cmdlet B. Diskpart command C. Set-VHD cmdlet D. Set-VM cmdlet E. Set-VMHost cmdlet F. Set-VMProcessor cmdlet G. Install-WindowsFeature cmdlet H. Optimize-VHD cmdlet
B. The question asks to deploy a shielded virtual machine. A shielded virtual machine needs to have at least two partitions. So, the first thing you must do is run the Diskpart command to create another partition.
You are the administrator for your company network. Your network contains an Active Direc- tory forest. You install Windows Server 2016 on 10 virtual machines. You need to deploy the Web Server (IIS) server role identically to the virtual machines. What should you do?
A. Use PowerShell Desired State Configuration (DSC) to create a default configuration and then apply the configuration to the virtual machines.
B. Create a software installation package and then publish the package to the virtual machines by using a Group Policy Object (GPO).
C. From a Group Policy Object (GPO), create an application control policy and then apply the policy to the virtual machines.
D. From Windows System Image Manager, create an answer file, copy the file to C:\Sysprep on each virtual machine, and then run the Apply-Image cmdlet.
A. Desired State Configuration (DSC) is an important part of the configuration, manage- ment, and maintenance of Windows Server 2016. Using a PowerShell script specifies the configuration of the machine using a standard way that is easy to maintain and understand.
You are the administrator for your company network. You have a Windows Server 2016 Hyper-V host named Server1. Server1 contains four virtual machines. VM1 is a shielded virtual machine that runs Windows Server 2012 R2. VM2 is a shielded virtual machine that runs Windows Server 2016. VM3 is a virtual machine that runs Windows Server 2012 R2 and has Secure Boot enabled. VM4 is a virtual machine that runs Windows Server 2016 and has all of its drives protected by using BitLocker Drive Encryption (BitLocker). Using the Virtual Machine Connection tool from Hyper-V Manager, what machine or machines can you connect to? A. VM1, VM2, VM3, and VM4 B. VM4 only C. VM1 and VM2 only D. VM3 and VM4 only E. VM2 only
D. Virtual Machine Connection cannot be used to connect to shielded virtual machines, so the answer would be VM3 and VM4 only.
You are the administrator for your company network. You have decided to delete a virtual
machine using Hyper-V Manager. What else must you do?
A. The only way you can do this is by using PowerShell.
B. Manually delete any virtual disks that were part of the virtual machine to free up disk space after the virtual machine has been deleted using Hyper-V Manager.
C. You must first delete the virtual machine’s files on the hard drive before deleting the virtual machine using Hyper-V Manager.
D. Nothing; everything will be deleted when you use Hyper-V Manager.
B. Make sure to manually delete any virtual disks that were part of the virtual machines to free up disk space. Virtual disks are not deleted when you delete a virtual machine.
You are the administrator for your company network. You are planning on deploying virtual machines. Which of the following statements is true regarding virtual machines?
A. Virtual machines each run in their own child partitions. Child partitions have direct access to hardware resources.
B. Virtual machines each run in their own child partitions. Child partitions do not have direct access to hardware resources.
C. Virtual machines run in another server’s child partitions. Child partitions have direct access to hardware resources.
D. Virtual machines run in another server’s child partitions. Child partitions do not have direct access to hardware resources.
B. Virtual machines each run in their own child partitions. Child partitions do not have direct access to hardware resources; instead, they have a virtual view of the resources, which are called virtual devices.
You are the network administrator for your company network. You are looking at the different types of hard disks available with Hyper-V. One type of disk starts with a small VHD file and expands it on demand once an installation takes place. What type of hard disk is being described? A. Dynamically expanding B. Fixed size C. Differencing D. Physical (or pass-through) disk
A. Dynamically expanding is a disk that starts with a small VHD file and expands on demand once an installation takes place. It can grow to the maximum size you define dur- ing creation. You can use this type of disk to clone a local hard drive during creation.
You are the network administrator for your company network. You have a Windows Server 2016 Hyper-V host named Server1 and a two-node scale-out file server cluster named Clus- ter1. A virtual machine named VM1 runs on Server1. What tool should you use if you need to migrate the storage on VM1 to Cluster1? A. The clussvc.exe command B. The cluster.exe command C. The Computer Management console D. The configurehyperv.exe command E. The Disk Management console F. The Failover Cluster Manager console G. The Hyper-V Manager console H. Server Manager
G. The Hyper-V Manager console allows you to migrate storage of the virtual machine to the cluster. Hyper-V Manager is an administrative tool that allows you to create, change, and delete virtual machines.
You are the network administrator for your company network. You have three Windows Server 2016 servers named Server1, Server2, and Server3. Server1 and Server2 have the Hyper-V server role installed. Server3 has the iSCSI Target Server role installed. What tool should you use first if you need to create a Hyper-V cluster? A. The clussvc.exe command B. The cluster.exe command C. The Computer Management console D. The configurehyperv.exe command E. The Disk Management console F. The Failover Cluster Manager console G. The Hyper-V Manager console H. Server Manager
H. The question does not state that the Failover Cluster feature has been installed, so it would need to be installed on Server1 and Server2 before a cluster can be created. So, for that reason, Server Manager is the option that you must use first. The same result can be achieved by running the command Install-WindowsFeature -name Failover-Clustering on Server1 and Server2.
You are the administrator for your company network.You are planning the configuration of a virtual network switch for your Hyper-V network. It will contain the following Hyper-V hosts. Server1 will have 10 virtual machines that must be able to communicate with each other. The virtual machines must be prevented from communicating with Server1 and all other servers on the corporate network. The Hyper-V network will also have a two-node failover cluster named Cluster1 that will have 20 virtual machines. The virtual machines will run on both nodes. Hyper-V hosts on the corporate network must be able to connect to the virtual machines. What type of virtual switch should you select for the 10 virtual machines on Server1? A. External B. Internal C. Private D. Public
C. When you use the Private virtual switch type, the virtual machines can communicate with each other but not with the host system or the physical network; thus, no network packets are hitting the wire. This question states that the virtual machines must be pre- vented from communicating with Server1 and all other servers on the corporate network.
You are the administrator for your company network.You are planning the configuration of a virtual network switch for your Hyper-V network. It will contain the following Hyper-V hosts. Server1 will have 10 virtual machines that must be able to communicate with each other. The virtual machines must be prevented from communicating with Server1 and all other servers on the corporate network. The Hyper-V network will also have a two-node failover cluster named Cluster1 that will have 20 virtual machines. The virtual machines will run on both nodes. Hyper-V hosts on the corporate network must be able to connect to the virtual machines. What type of virtual switch should you select for the 20 virtual machines on Cluster1? A. External B. Internal C. Private D. Public
A. When you use the External virtual switch type, any virtual machine connected to this virtual switch can access the physical network. This option is used in production environ- ments where your clients connect directly to the virtual machines. This question states that Hyper-V hosts on the corporate network must be able to connect to the virtual machines.
You are the administrator for your company network. You have an application named App1. App1 is distributed to multiple Hyper-V virtual machines in a multitenant environ- ment. What should you include in the environment if you need to ensure that the traffic is distributed evenly among the virtual machines that host App1?
A. A network controller and Windows Server Network Load Balancing (NLB) nodes
B. A network controller and Windows Server Software Load Balancing (SLB) nodes
C. A RAS Gateway and Windows Server Network Load Balancing (NLB) nodes
D. A RAS Gateway and Windows Server Software Load Balancing (SLB) nodes
D. By using Windows Server Software Load Balancing (SLB), you can scale out your load balancing capabilities using SLB VMs on the same Hyper-V compute servers that you use for your other virtual machine workloads. Multitenancy for VLANs is not supported by network controllers; however, you can use VLANs with SLB for service provider managed workloads, such as the datacenter infrastructure and high-density web servers.
You are the administrator for your company network. You have a Windows Server 2016 Hyper-V host named Server1. What counter should you use from Performance Monitor if you need to identify the amount of processor resources consumed by Hyper-V and virtual machines?
A. \Hyper-V Hypervisor\Logical Processors
B. \Hyper-V Hypervisor Virtual Processor(_Total)\% Hypervisor Run Time
C. \Hyper-V Hypervisor Logical Processor(_Total)\% Total Run Time
D. \Hyper-V Hypervisor Root Virtual Processor(_Total)\% Guest Run Time
A. The \Hyper-V Hypervisor\Logical Processors counter monitors the number of logical processors that are being consumed by Hyper-V and the virtual machines.
- You are the administrator for your company network. You have a Windows Server 2016 server named Server1. Server1 also has the Hyper-V role installed. Virtual machines on Server1 are connected to an external switch named Switch1. You create a virtual machine named VM1 on Server1 by running the following cmdlets:
Add-VM VM1
Add-VMHardDiskDrive –VMName VM1 –ControllerType IDE –Path C:\VMs\Disk1. vhd
Add-VMNetworkAdapter –VMName VM1
What should you do if you need to ensure that you can install the operating system on VM1 by using Windows Deployment Services?
A. Add a SCSI controller to VM1.
B. Modify the DefaultFlowMinimumBandwidthWeight parameter of Switch1. C. Modify the SwitchType parameter of Switch1.
D. Add a legacy network adapter to VM1.
D. A legacy network adapter is required for Preboot Execution Environment (PXE) boot. Generation 1 virtual machines require a Legacy NIC. Generation 2 virtual machines do not have this requirement.
You are the administrator for your company network. You have a four-node Hyper-V clus- ter named Cluster1. A virtual machine named VM1 runs on Cluster1. VM1 has a network adapter that connects to a virtual machine named Network1. What command should you run if you need to prevent a network disconnection on VM1 from causing VM1 to move to another cluster node?
A. Remove-ClusterVMMonitoredItem –VirtualMachine VM1 B. Set-VM –VMName VM1
C. Set-VMNetworkAdapter –VMName VM1
D. Set-VMSwitch –Name Network1
C. Set-VMNetworkAdapter configures features of the virtual network adapter in a virtual machine or the management operating system. The -VMName switch specifies the name of the virtual machine that has the virtual network adapter that you want to configure.
You are the administrator for your company network. You have a Windows Server 2016 Hyper-V host named Server1. Server1 hosts a virtual machine named VM1. You install the Hyper-V server role on VM1. What should you do if you need to ensure that the virtual machines hosted on VM1 can communicate with the virtual machines hosted on Server1?
A. Run the Set-VMNetworkAdapterIsolation cmdlet and specify the MultiTenantStack Off parameter on Server1.
B. Run the Set-VMNetworkAdapter cmdlet and specify the MacAddressSpoofing Off parameter on VM1.
C. Run the Set-VMNetworkAdapterIsolation cmdlet and specify the MultiTenantStack On parameter on VM1.
D. Run the Set-VMNetworkAdapter cmdlet and specify the MacAddressSpoofing On parameter on Server1.
C. The Set-VMNetworkAdapterIsolation cmdlet modifies isolation settings for a vir- tual network adapter. You can isolate a virtual machine adapter by using virtual local area network (VLAN), Hyper-V Network Virtualization, or a third-party virtualization solution. You can specify the isolation method and modify other settings, which include multitenancy settings. The MultiTenantStack parameter specifies whether to use multiple isolation IDs for the virtual machine. The acceptable values for this parameter are On and Off. On indicates isolation IDs so that the virtual machine provides services to multiple tenants on different isolation subnets. Off does not indicate isolation IDs to the virtual machine