21 Virtualization, Automation, and Programmability Flashcards

1
Q

Virtualization Components

A

The components that virtualization solutions rely upon are:
■ Hypervisor
■ Virtualization guest
■ Virtual appliance
■ Virtual switch
■ Shared storage
■ Virtual storage

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

Hypervisor

A

A hypervisor or virtualization host is simply the server that runs a virtualization solution. Most of the time, it’s just called “the host.” Typically, the host has lots of computational resources like processors, cores, and memory in order to run multiple virtual machines.

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

Virtualization Guest

A

A virtualization guest, or often just “guest,” is another term for a virtual machine that runs on a host. Depending on the exact virtualization solution, a guest can run practically any modern operating system.

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

Virtual Appliance

A

A virtual appliance is a virtual solution provided by a vendor. Nearly all vendors provide a virtual option when you buy their product. As for Cisco, they have an arsenal of virtual appliances. The most useful ones to remember objective-wise are:
■ Cloud Service Router 1000v (CSR1000v): A virtual router that runs IOS-XEc software.
■ ASAv: A virtual version of Cisco’s ASA firewall.
■ Firepower Threat Defense Virtual: Virtual version of Cisco’s Firepower firewall solution.

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

Virtual Switch

A

All virtualization solutions have a virtual switch (vSwitch) that each host uses. The virtual switch acts just like a regular switch except it doesn’t run STP. vSwitches basically allow hosts to assign VLANs to virtual machines. They can also perform more advanced tricks like trunking and can even support switch features like CDP, LLDP, and SPAN, and security features like Private VLANs. vSwitches tend to come in two forms:
■ Standard: This is the free version switch that offers basic features. With this variety, every host will have its own independent virtual switch, meaning if you configure VLAN11 and VLAN12 on a host’s vSwitch, you’ll need to configure the same VLANs on any new host you add into the network that’ll be sharing the workload. You do this just like you would when adding a new switch into the network if you aren’t using VTP.
■ Distributed : This option creates a single, logical, virtual switch that runs on all hosts. It supports advanced features and shares configuration between all hosts. A distributed vSwitch is just like a switch stack where all switches share the single configuration.

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

Shared Storage

A

While you can create virtual machines using a host’s internal storage, this approach is very limiting when growing your virtualization environment because other virtual hosts can’t easily reach the internal hard drive. The most common solution is to use shared storage technologies like accessing a SAN or NAS through iSCSI or Fibre Channel. Doing this permits all hosts in your network to access the same common storage enabling more features, which we’ll talk about a little bit further on. VMware uses a special fi lesystem on its storage wherein mounted paths are called datastores. Since Hyper-V just uses the regular Windows fi le structure, it doesn’t need this concept.

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

Virtual Storage

A

Maybe you’re thinking, “okay, you can virtualize servers and networks, but I bet you can’t virtualize storage!” Actually, you can! Just know that storage area networks, or SANs will defi nitely shrink your bank account and they’re complex too. To get around these caveats, the industry has begun embracing Hyper Converged solutions—a solution that combines computing, networking, and storage into a single server. Basically, with virtual storage, each host utilizes its local storage to create a logical SAN across the network, which all the virtual hosts can use as virtual machines. Common solutions for this include:
■ Cisco HyperFlex : This is Cisco’s main Hyper Converged solution that runs VMware or
Hyper-V with virtual storage on its Cisco Unified Computing System (UCS) servers.
■ VMware Virtual SAN : This is a built in VMware solution that provides a virtual SAN
for your VMware hosts.
■ Microsoft Storage Spaces : Clearly a Microsoft solution that provides virtual storage,
which can be generally used.

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

Virtualization Features

A

Here’s a list of three components that virtualization solutions use:
■ Hardware abstraction
■ Snapshots
■ Migrations

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

Hardware Abstraction

A

You’ll appreciate this one if you’ve built a computer or two because computer hardware can be pretty annoying. Because hardware requires drivers that only might be provided by Windows Update, trying to standardize computers across your company is a bit challenging. There will always be slight differences as computers get upgraded or the manufacture adjusts the hardware components! With virtual machines all the hardware is virtualized, so everything is always predictable even if you move the VM across several hosts.

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

Snapshots

A

Snapshots is basically an “undo” button for your virtual machine. It captures the state of a VM before you take on a task and allows you to revert to it if you need to. For instance, it’s a good idea to take a snapshot of a VM before you attempt an upgrade because if the upgrade blows up the application, you can simply revert to the snapshot rather than tangle with manually undoing the upgrade. Backup solutions such as Veeam also use snapshots to create a backup copy of the virtual machine. And of course, different vendors call features by their own names, for example, Microsoft calls their snapshot feature “checkpoints.” Note: Be aware that snapshots aren’t always a magic solution! In the example above, if the failed upgrade also made changes to a database on another VM, that VM would need to have a snapshot as well to fully revert the changes.

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

Clones

A

Clones allow you to quickly create a copy of a virtual machine. They’re a handy feature for creating several virtual machines based on a “golden” image that you’ve already patched and configured exactly the way you want it.

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

Migrations

A

Virtual machines can be migrated between hosts to balance the workload or ensure VMs are still running if the host needs to shut down for maintenance. This is cool because if shared storage is being used, the virtual machine can be migrated while it’s running to avoid downtime! Otherwise, the VM most likely will need to be powered down during the move. Migrations can be manual or automatic based on performance or host availability. Migrations come in two types:
■ Virtual Machine Migration: Refers to when moving a virtual machine from one host to another.
■ Storage Migration: Refers to when moving a virtual machine from one storage location to another. For example, moving a VM from internal storage to an iSCSI datastore.

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

Virtualization Types

A

There are two types of hypervisors available.

Type 1
Also known as a bare-metal hypervisor—when the entire server and OS is dedicated to virtualization, the hypervisor can directly access all hardware on the system. This is the most common enterprise solution since it provides the most features and the best performance. Here are three Type 1 solutions:
■ VMware ESXi
■ Hyper-V
■ Xen

Type 2
Also called desktop virtualization. It refers to when the virtualization solution runs on top of your desktop OS as an application and is mostly meant for IT/developer
testing since it offers a lot less features and performance. You get what you pay for—Type 2
is really simple to use and it’s cheap! These are Type 2 solutions:
■ VMware Workstation/Fusion
■ VirtualBox
■ KVM

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

Hardware Virtualized

A

Machine Hardware Virtualized Machine (HVM) refers to when the virtual machine isn’t aware it’s a virtual machine. The hypervisor presents hardware to the VM that it can interact with—a hypervisor will commonly present an Intel e1000 network adapter for network connectivity, which is a widely supported NIC that should be run “out of the box” on most systems.

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

Paravirtualization

A

This virtualization type takes advantage of virtualization-aware operating systems. In this kind of system, the guest is “enlightened” to the fact that it’s a VM and directly contacts the hypervisor instead of using emulated hardware. Paravirtualization can give us better performance, but the downside is that the VM needs to support the feature, so it often requires drivers to be installed on the guest operating system for it to actually function.

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

VMware ESXi

A

Pretty much everyone has heard of VMware because it’s the virtualization market leader. ESXi, their Type 1, fully featured hypervisor, is based on a custom Linux OS. Management duties are carried out via either ESXi’s web interface or through the VMware management solution VCenter. While ESXi isn’t free, VMware graciously provides a free license for standalone hosts for us to have some fun with.

17
Q

Hyper-V

A

All of us have definitely heard of Microsoft, but maybe not Hyper-V, which is Microsoft’s virtualization solution. It’s also a Type-1 hypervisor that we run either as its own OS for a dedicated deployment, or we can install it on a Windows Server or Desktop as a role. This makes it sound sort of like it should be both Type-1 and Type-2, but Hyper-V gets full hardware access, so it’s still considered a Type-1. Management is handled either through the Hyper-V Management Tool that you install on a Windows box or via Microsoft’s management solution, “System Center Virtual Machine Manager.” You can even take Hyper-V for a test drive by installing it on a Windows Server box or on Windows 10. There’s a catch, though—if you install it, you won’t be able to use Type-2 solutions like VMware Workstation on the computer because Hyper-V claims the hardware access. There’s just never really a free lunch!

18
Q

VMware Workstation/Fusion

A

VMware Workstation is a paid Tier-2 solution for Windows and Linux that even offers a Mac version called VMware Fusion. It provides solid virtualization support with some pretty decent features too! VMware also has a free desktop solution called Player that lets you run a single virtual machine.

19
Q

VirtualBox

A

VirtualBox is a free open source Type-2 solution from Oracle. It doesn’t provide as many features as VMware Workstation does, but the price is right for a simple lab.

20
Q

Automation Components

A

It’s a Monday morning, so of course your boss asks you to add a new loopback interface with an IP in the 192.168.255.0/24 subnet on all your routers. No big deal if you have two or three routers since you can easily SSH into the devices and add the interfaces using the skills you learned from this book. But that’s not the company you work at and with your 200+ routers, it would take forever to confi gure all the devices individually. Plus, keeping track of which IP address to use on each router is not a day at the beach, and it just gets worse if you happen to make mistakes along the way! There are a whole bunch of surveys that put human error in the number-one spot as the cause of network outages. Sometimes it’s because you accidentally shut down the wrong interface, and sometimes it’s an old confi guration lurking around that reacts rather poorly to your changes. And sometimes you just really needed more coffee before logging into that router! Besides the ever-present risk when making sweeping network changes, there’s the issue of your time. Getting tasked with adding 200 interfaces might be kind of cool if it’s your fi rst time, but it grows old fast, and odds are there’s something a lot more interesting to spend your week on. This is a great example of when automation seriously saves the day— or week! Network automation comes in many forms, but generally, you can boil it down to being able to apply tasks in a predictable way with increased odds of a positive outcome. And what that means for us is that instead of tediously connecting to 200 devices, we can write a script that will apply the confi guration to all of the devices for us.

21
Q

RESTful API

A

A RESTful API uses common HTTP requests to GET, PUT, POST, and DELETE data from a server or device. Since HTTP is supported everywhere, it is easy to use restful APIs in practically all automation solutions.

22
Q

JSON

A

JavaScript Object Notation (JSON) is a data exchange format that presents data in a human-readable format and is widely supported by most systems. Data is represented in key/value pairs; information can also be nested as required.