3. Implement Hyper-V Flashcards

1
Q

Type 2 virtualization

A

The hypervisor runs on top of a host operating system. They share access to the computer’s processor passing control back and forth.

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

Type 1 Virtualization

A

The hypervisor is an abstraction layer that interfaces directly with the computer hardware. Creates parent(runs the virt stack) and child partitions.

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

Shared Nothing Live Migration

A

Moves a running VM with no shared storage to another host server in the same or a trusted domain.

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

Hyper-V Manager

A

A tool that allows you to remotely manage VMs. Can connect to any server with the hyper-v role installed even if it doesn’t have management tools installed. Hyper-v manager can also be installed on a windows 10 machine if it has the server administration tools package installed.

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

Remoting to a domain connected hyper-v server with hyper-v manager

A

uses Kerberos for authentication.

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

Remoting to a Hyper-v server not in a domain with hyper-v manager

A

uses CredSSP for authentication.

Remote managed: Enable-PSRemoting -sets a firewall rule

Enable-wsmancredssp -enables credssp Local

Managing: Set-Item wsman:\Localhost\Client\trustedhosts -value “hypervserver.domain.com” -adds the domain name

enable-wsmancredssp -role client -delegatecomputer “hypervserver.domain.com” -enables credssp

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

Powershell direct

A

A way of connecting to the guest os from the host os.

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

Copy-Item

A

allows you to copy an item to or from a guest os to or from the host.

Copy-item -tosession (get-psssession) -path <> -destination <>

Copy-item -fromsession (get-pssession) -Path <> -destiantion <>

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

Nested Virtualization

A

set-vmprocessor -vmname -exposevirtualizationextensions $true

Page table support required

Mac address spoofing required

does not support dynamic memory, live migrations, memory resizing, or checkpoints.

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

.vmc

A

Virtual Machine Configuration file stored in XML format.

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

.vsv

A

the saved state of a virtual machine.

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

Can you enable dynamic memory while a vm is running?

A

No.

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

If dynamic memory is enabled can you hot-add memory to a machine?

A

you can modify the maximum ram setting but you cannot change the startup memory settings of a machine.

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

Hot add memory

A

The ability to add memory to a machine while it is running.

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

Dynamic Memory Limitations

A

you cannot enable or disable dynamic memory while a VM is running

You cannot modify the bootup ram setting while dynamic memory is running

you can lower but not raise the minimum ram setting while the vm is running

you can raise but lower the maximum ram setting while the vm is running

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

Memory Buffer

A

Specifies the percentage of currently allocated memory that dynamic memory should retain as a buffer for future expansion.

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

Smart Paging

A

The ability of a vm to use the disk as ram for bootup sequences. used in scenarios where there is not enough memory to boot up.

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

Vm Resource Metering

A

CPU Metering - specifies the vm processor utilization in mhz

Memory Metering - tracks the min, max, and average memory usage

Network metering - specifies the total incoming and outgoing network traffic of a vm

Disk Metering - specifies the total storage capacity of a virtual hard disk plus the space consumed by snapshots

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

Integration Services

A

A software package that runs on guest operating systems enabling them to communicate with the hyper-v host. includes 6 different services.

Operating system shutdown

Time synchronization

Data Exchange

HeartBeat

Backup (volume shadow copy)

Guest Services

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

Operating System Shutdown

A

Allows administrators to perform orderly shutdowns on a VM without logging into it through the use of tools like hyper-v manager and powershell.

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

Time Synchronization

A

synchronizes the clock of the vm with the clock of the hyper-v host. this is a feature that you may want disabled on an active directory vm because you will want the AD domains to be in sync with each other.

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

Data Exchange or Key-Value Pair

A

A service that allows the guest os on a vm to share information with the hyper-v host without the use of a network connection.

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

Backup

Volume Shadow Copy

A

Allows administrators to back up a vm. this backup includes the vm configuration, the virtual hard disks, and any checkpoints. However, the Volume Shadow Copy requires that the VM uses an NTFS file system.

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

Guest Service

A

allows administrators to copy files to and from a running vm through the vm bus instead of using a network connection.

Copy-VMFile

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

Creating a vm with powershell

A

new-vm -name server1 -generation 2 -startupbytes 4gb -newvhdpath “c:\disks\server1.vhdx”

omitting the generation tag will create a gen 1 machine if you dont want to type it

The path of your vhd will specify what type of vhd to create for the system disk.

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

Choosing a VM Generation

A

Gen 1 Bios - Gen 2 UEFI

You have a VHD that does not support UEFI

You want to install a guest operating system that does not support generation 2

you plan to move the vm to a windows server 2008 r2 or older server

you plan to move the VM to windows azure

realistically unless you need gen 1 you should be using gen 2 VMs

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

Enhanced Session Mode

(virtual machine connect)

A

the tool hyper-v manager uses to connect to a running vm and access its desktop. allows the VM and the computer you are using to connect to share some resources like sound, printers, and clipboards.

in server 2016 enhanced session mode is disabled by default.

supported since windows server 2008

28
Q

Linux integration services

A

Do nothing - some older versions do not have support for LIS.

Download and install LIS - some linux distros have integration support but it is not built-in.

Use Built-in LIS - newer versions on linux distros tend to have integration services.

29
Q

Secure Boot

A

Makes sure that every component during a computers boot sequence has been digitally signed.

only supported by gen 2 VMs since it requires a UEFI

Use Microsoft UEFI certificate authority for Linux secure boot

30
Q

Upgrading VM Versions

A

you are no longer forced to upgrade your vm version when you upgrade operating systems. This means you can run older vm versions on 2016 and continue to move them to older servers like 2012 or 2008. If you upgrade to a new version you cannot move the server back to 2012 from 2016.

update-vmversion -vm server1

31
Q

Export a VM

A

A way of moving or creating a copy of a vm on the same or different server.

Creates a copy of all files of the vm including its configuration files, virtual hard disks, and checkpoints.

export-vm -name server1 -path c\export

32
Q

Register the VM in place

A

Leaves the exported files where they are and registers the vm in hyper-v using the same ID as the exported VM. both the new and old vm cannot run at the same time with the same id.

33
Q

Restore the VM

A

Copies the exported files where you want them and registers the vm with the same ID these vms cannot run at the same time on the same host because they have the same vm Id.

34
Q

Copy the VM

A

Copies the exported files where you want them and registers the vm with a new ID, this allows you to run it at the same time as the original since it has a new Id.

35
Q

Discrete Device Assignment

A

The ability to assign physical hardware like a gpu to a vm. the hardware must be offline and unmounted from the host for this to be possible.

disable-pnpdevice

dismount-vmhostassignabledevice

add-vmassignabledevice

36
Q

Gen 1 Storage

A

controllers

IDE - integrated drive electronics - system drive and DVD drive.

SCSI - small computer system interface - not iSCSI

vhd - 2tb

37
Q

Gen 2 Storage

A

controllers : No IDE just SCSI

vhdx-64tb

38
Q

VHD Set

A

Creates an image for disk sharing among guest operating systems that supports features like online disk resizing and host-based backups. generally for use with failover clustering.

the vhd file interacts with the hypervisor and the avhdx is the actual storage file.

new-vhd –path c:\diskfile.vhds –dynamic –sizebytes 1tb

39
Q

Creating a virtual disk with Powershell

A

new-vhd –path c:\diskfile.vhdx –fixed –sizebytes 500gb - logicalsectorsizebytes 4096

Max logical sector size is 4kb

40
Q

Install roles and features while offline

A

install-windowsfeature -vhd c:\disks\server1.vhdx -name webserver -includemanagementtools

41
Q

Pass-through disk

A

physical disk drive itself, installed on the host server. When you add a hard drive to any of the controllers in a virtual machine, you can select a physical hard disk, as opposed to a virtual one. the physical disk must be offline on the host in order to add it to the vm.

add-vmharddiskdrive

42
Q

Compact

A

Reduces the size of a dynamically expanding or differencing disk by deleting empty space, while leaving the disk’s capacity unchanged.

optimize-vhd

43
Q

Convert

A

Creates a copy of the disk image file, enabling you to change the format (VHD or VHDX) or the type (fixed size or dynamically expanding) in the process

convert-vhd

44
Q

Expand

A

Increases the capacity of the disk by adding empty storage space to the image file.

resize-vhd

45
Q

Shrink

A

Reduces the capacity of the disk by deleting empty storage space from the file.

resize-vhd

46
Q

Merge

A

Combines the data on a differencing disk with that on its parent disk, to form a single composite image file.

merge-vhd

47
Q

Production checkpoint

A

uses volume shadow copy service to create a snapshot of vm data without saving the memory state.

48
Q

Checkpoint

A

a captured image of the state, data, and hardware configuration of a virtual machine at a specific moment in time. These checkpoints will be placed in the virtual hard disk folder. avhd or avhdx file format.

set-vm -name server1 -checkpointtype standard

49
Q

Standard Checkpoint

A

Creates a checkpoint that includes the memory state. can be potentially disruptive.

50
Q

Storage QoS

A

Storage quality of service- the ability to set limits on virtual hard disk input/output operations so that they cannot monopolize the physical disk.

set-vmharddiskdrive -vmname server1 -controllertype scsi - controllernumber 0 -minimumiops 10 -maximumiops 500

51
Q

Add/Remove a virtual switch with Powershell

A

add-vmnetworkadapter -vmname server1 -switchname private1

remove-vmnetworkadapter -vmname server1 -vmnetworkadapter nic1

52
Q

Internal Switch

A

Allows the host and the VMs to communicate with each other.

53
Q

External switch

A

Allows the VMs to communicate with the external network

54
Q

Private Switch

A

Allows the vms to communicate with one another

55
Q

Virtual Machine Queue (VMQ)

A

Allows packets to be sent directly to virtual machines in separate queues bypassing the host.

network adapter must be 10 gig or faster

enable-netadaptervmq -name nic1

56
Q

IPsec Task Offloading

A

moves the ipsec decoding to the network adapter instead of the host processor.

57
Q

Single-root I/O Virtualization

A

Virtual machines are able to share the hardware resources of a pci express device like a network adapter.

58
Q

Virtualization Service Provider (VSP)

A

Provides synthetic device support to child partitions over the vmbus.

59
Q

Virtualization Service Client (VSC)

A

is a synthetic devices instance on the child partition that communicates with the VSP (virtualization service provider)

60
Q

emulated device

A

Gen 1 machines emulate the physical hardware like switches.

Gen 1 emulated devices support PXE boot

61
Q

synthetic device

A

Gen 2 machines communicate through the vm bus eliminating the need for emulation through software.

62
Q

Nic Teaming

A

Allows you to join multiple network adapters into a single entity for performance enhancements like network load balancing and increased bandwidth.

Hyper-v is limited to teams of two network adapters. The host can have teams up to 32 network adapters.

63
Q

Switch independent team

A

The switch connected to the team is unaware that the network interface cards are in a team.

64
Q

Switch dependent teaming

A

The switch is aware of the team and determines how to distribute inbound traffic to the team.

65
Q

Remote Direct Memory Access (RDMA)

A

Allows packets to be sent directly to application memory bypassing the host os.

SMB Direct relies on RDMA

requires SET switches?

66
Q

Switch Embedded Teaming (SET)

A

Applies the concept of teaming to virtual switches.

enableembeddedteaming