Adding Passthrough Physical Disk in KVM Guests

I found myself needing to add a physical disk thats installed on a KVM host on to one of its guests. Although this is not always advised, it can be helpful in data recovery scenarios.

Find which disk you want to add by using ‘fdisk -l’, looking at the listed partitions.

Second, you can make sure its not mounted with the ‘mount’ command.

third, use virsh to edit the VM ‘virsh edit VMNAME’.

fourth add a disk config:

<disk type=’block’ device=’disk’>
<driver name=’qemu’ type=’raw’/>
<source dev=’/dev/sdd’/>
<target dev=’vdb’ bus=’virtio’/>
</disk>

last, define the new config in the VM:
virsh define /etc/libvirt/qemu/VMNAME.xml


Adding Passthrough Physical Disk in KVM Guests

I found myself needing to add a physical disk thats installed on a KVM host on to one of its guests. Although this is not always advised, it can be helpful in data recovery scenarios. Find which disk you want to add by using ‘fdisk -l’, looking at the...

Part 3.[PSGet-Counter] The Powershell Get-Counter cmdlet

Part 1.[Overview] ElasticSearch, Kibana, Logstash, and Windows Metrics over PowerShell TCP Connections Part 2.[PSJSON] The Powershell JSON TCP Connection Part 3.[PSGet-Counter] The Powershell Get-Counter cmdlet In the github repo, let’s take a look at the actual...

Part 2.[PSJSON] The Powershell JSON TCP Connection

Part 1.[Overview] ElasticSearch, Kibana, Logstash, and Windows Metrics over PowerShell TCP Connections Part 2.[PSJSON] The Powershell JSON TCP Connection Part 3.[PSGet-Counter] The Powershell Get-Counter cmdlet The JSON TCP connection is as follows: Function...

SuperMicro Server + CentOS 6.6 Kernel / PCIe Power

I recently had a bare metal SuperMicro server which was running an installation of CentOS 6.6. There was an issue with it where the NIC would randomly stop working. There seems to be an issue with PCIe Active State Power Management in some Linux Kernels...

Upgrading a Ubiquiti Unifi Controller on CentOS

In a previous post, I ran over how to install the UniFi controller on CentOS. In this post, I will show how to upgrade the installation, as they upgrade their software, you can follow along in the RHEL world. Download the Update Download the release from the UniFi...

Installing and Working With CentOS 7 x64 and KVM

Section A: Installing KVM on Centos 7 x64 Minimal Checking for Virtualization Support Just to be clear, we’ll need to check for virtualization support; that it is enabled in the BIOS and also enabled on kernel. To check if the kernel has virtualization support,...

Shinken/Nagios/Check_WMI_Plus Filtering

So I have a few windows servers getting checked with CHECK_WMI_PLUS. I am using Shinken as the service instead of Nagios. When using the Windows Pack I was frustrated because part of the checks are looking to services that are set to AUTO and reporting an error if...

Ubiquiti Unifi Controller In A Layer 3 Environment

I have got three fancy new UAP-AC-PRO units and I needed to get these across a layer 3 network. My controller actually sits at another site, and I wanted to have a single controller VM with a wide workload of APs around the buildings. Setting up the layer 3 is...

Centos 7 NetInstall Mirror

Centos 7 doesnt have a minimal build up yet (so sad!). But we can get this minimal installation by using the netinstall image and setting our URL to http://mirror.centos.org/centos/7/os/x86_64/ Happy centOSing.

WordPress ‘The uploaded file could not be moved to’ …

I recently moved a WordPress installation from Apache to Nginx on a different host. Each were running CentOS. The Nginx configuration was a little different due to the use of PHP-FPM. When I attempted to upload any files to the clients server via the WordPress web...

Using a USB/Serial with OSX and Screen

I’ve been using a Mac for quite a while as a systems administrator/network administrator. I don’t run into many people that use OSX for their daily machines as administrators, but I think that OS androgyny is more ubiquitous, so I think its apt to write an...

ESXi 5.1 SNMP Service Starting Failure

When you look up how to change the SNMP community for ESXi 5.1, VMWare has an article that displays the command to change the community of the SNMP service via the esxcli command. But when you attempt to actually start the service in the GUI, you get this error: This...

The Sea

She was a fickle mistress, hair spraying everywhere. Cold hands and hard eyes. She stared at me through the lens of foam and fuss. Pillars, all done up with ancient ideas and ‘stuck to’ ideas of how the world works and where we are all in part of it. She is powerful,...