{"id":5199,"date":"2022-05-29T11:39:52","date_gmt":"2022-05-29T14:39:52","guid":{"rendered":"https:\/\/blog.clusterweb.com.br\/?p=5199"},"modified":"2022-05-29T11:39:52","modified_gmt":"2022-05-29T14:39:52","slug":"how-to-let-linux-scripts-detect-theyre-running-in-virtual-machines","status":"publish","type":"post","link":"https:\/\/blog.clusterweb.com.br\/?p=5199","title":{"rendered":"How to Let Linux Scripts Detect They\u2019re Running in Virtual Machines"},"content":{"rendered":"<figure class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage wp-image-803871 size-full\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/shutterstock_1164968740.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" sizes=\"auto, 400w, 1200w\" srcset=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/shutterstock_1164968740.png?width=398&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 400w, https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/shutterstock_1164968740.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 1200w\" alt=\"Two hands, one holding a red pill and the other a blue pill.\" width=\"1200\" height=\"675\" data-crediturl=\"https:\/\/www.shutterstock.com\/image-photo\/red-pill-blue-concept-right-choice-1164968740\" data-credittext=\"diy13\/Shutterstock.com\" \/><\/figure>\n<p>&nbsp;<\/p>\n<figure class=\"wp-caption alignnone\">Virtual machines\u00a0try really hard to convince their\u00a0operating systems\u00a0that they\u2019re running on physical hardware. So can you tell from\u00a0the Linux command line\u00a0if the computer is physical or virtual?<\/figure>\n<div><\/div>\n<h2 id=\"virtual-machines-and-hypervisors\">Virtual Machines and Hypervisors<\/h2>\n<p>A traditional computer is a physical object. It\u2019s a collection of different pieces of hardware that are plugged and bolted together so that you can load an operating system, install applications, launch them, and use them.<\/p>\n<p>Hardware is expensive.\u00a0Being restricted to one operating system per physical computer means the cost of running several operating systems soon becomes prohibitive. A better solution would be to allow a single physical computer to run a selection of operating systems at the same time, with each one thinking it\u2019s running in its own, unique hardware.<\/p>\n<div class=\"relatedside\">\n<div class=\"relateditemwrap\">A hypervisor\u00a0makes this possible. A hypervisor\u2014also called a virtual machine manager or virtual machine monitor\u2014is software that lets you create virtual machines. These behave as though they were individual, physical computers although they run on the same physical host, sharing its hard drive space, memory, and\u00a0CPU cores.<\/div>\n<\/div>\n<p>Of course, the host computer has to be powerful enough to cope with the demands of the collection of virtual machines, but, given sufficient\u00a0RAM\u00a0and processing power in the host, virtual machines can run at near bare-metal speeds.<\/p>\n<p>Since the release of the 2.6.20 kernel in 2007, Linux has had\u00a0<strong>K<\/strong>ernel-based\u00a0<strong>V<\/strong>irtual\u00a0<strong>M<\/strong>achine support baked right in. Linux has several hypervisors available to it, such as\u00a0VirtualBox,\u00a0GNOME Boxes, and\u00a0QEMU-KVM. They make use of the native KVM capability of Linux, building upon the native kernel functionality by adding user interfaces and functionality such as being able to\u00a0take a snapshot\u00a0of a virtual machine.<\/p>\n<p>Virtual machines bring cost savings, efficiencies, simplified deployments, and\u2014provisioned correctly\u2014security benefits. They also facilitate scalability. New servers can be automatically spun up as demand for a service increases and shut down when demand drops. This makes them hugely popular both in the cloud and in on-premise infrastructure.<\/p>\n<p>Perhaps you\u2019re\u00a0remotely administering a Linux server\u00a0and you need to know whether it is a virtual machine or a physical box. Or you have a\u00a0script\u00a0that needs to know what type of platform it is executing on. Here are several ways you can detect if the computer you\u2019re working on is physical or virtual.<\/p>\n<p><!--more--><\/p>\n<h2 id=\"the-dmidecode-command\">The dmidecode Command<\/h2>\n<p>The\u00a0<code>dmidecode<\/code>\u00a0command supports a large number of options and modifiers. It interrogates the Desktop Management Interface (DMI) tables, and prints the information in the terminal window.<\/p>\n<div class=\"relatedside\">\n<div class=\"relateditemwrap\">We\u2019ll use it with the <code>-s<\/code>\u00a0(display a single string) option, and ask for the system product name. Note that we must use\u00a0<code>sudo<\/code>.<\/div>\n<\/div>\n<p>We\u2019ll run the command on a VirtualBox VM running Ubuntu 22.04.<\/p>\n<div>\n<div id=\"v2campaignmidpage\">\n<div class=\"walter-march2021-inpage-style\">\n<div class=\"spacing-bar\"><\/div>\n<div class=\"spacing-bar\"><span style=\"font-family: Consolas, Monaco, monospace;\">sudo dmidecode -s system-product-name<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803841\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/ubuntu-dmidecode.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The dmidecode command correctly identifying a VirtualBox VM\" width=\"644\" height=\"95\" \/><\/p>\n<p>The platform is correctly identified as VirtualBox.<\/p>\n<p>On a QEMU-KVM VM running\u00a0Fedora 35, we get this output.<\/p>\n<pre>sudo dmidecode -s system-product-name<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803842\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/fedora-dmidecode.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The dmidecode command correctly identifying a GNOME Boxes VM\" width=\"644\" height=\"95\" \/><\/p>\n<p>Although this is reported as a standard PC, it is a standard QEMU virtual PC, of type Q35. So the platform is correctly recognized as a virtual machine.<\/p>\n<p>If we run the same command on a physical computer we get some information about the manufacturer.<\/p>\n<pre>sudo dmidecode -s system-product-name<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803843\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/hw-dmidecode.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The dmidecode command returning information about a physical computer\" width=\"644\" height=\"95\" \/><\/p>\n<p>This computer is a custom-build based on a Micro-Star International Company Limited motherboard, with the product code of MS-7B86.<\/p>\n<h2 id=\"the-lshw-command\">The lshw Command<\/h2>\n<p>The\u00a0<code>lshw<\/code>\u00a0command\u00a0lists the details for a wide range of computer hardware. We can choose which class of hardware we want\u00a0<code>lshw<\/code>\u00a0to report on.<\/p>\n<div class=\"relatedside\">\n<div class=\"relateditemwrap\">We\u2019re going to use the <code>-class<\/code>\u00a0option with the\u00a0<code>system<\/code>\u00a0modifier. Using\u00a0<code>sudo<\/code>\u00a0with this command ensures we see all of the detail.<\/div>\n<\/div>\n<p>We\u2019ll run this command on our Ubuntu VirtualBox VM.<\/p>\n<pre>sudo lshw -class system<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803844\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/ubuntu-lshw.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The lshw command reporting on a VirtualBox VM\" width=\"644\" height=\"270\" \/><\/p>\n<ul>\n<li>The \u201cdescription\u201d field has a generic entry of \u201ccomputer.\u201d<\/li>\n<li>The \u201cproduct\u201d field tells us this is a virtual machine running in VirtualBox.<\/li>\n<li>The \u201cvendor\u201d field contains the name of the German company that created VirtualBox, Innotek GmbH. Innotek was acquired by the Oracle Corporation in 2010 as part of its acquisition of Sun Microsystems, Inc.<\/li>\n<\/ul>\n<p>We had to install\u00a0<code>lshw<\/code>\u00a0on Fedora.<\/p>\n<pre>sudo dnf install lshw<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803849\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/fedora-install-lshw.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Installing lshw on Fedora with the dnf command\" width=\"644\" height=\"55\" \/><\/p>\n<p>Let\u2019s try that command in our Fedora VM running in GNOME Boxes.<\/p>\n<pre>sudo lshw -class system<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803845\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/fedora-lshw.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The lshw command reporting on a GNOME Boxes VM\" width=\"644\" height=\"380\" \/><\/p>\n<ul>\n<li>Again, the \u201cdescription\u201d field has a generic entry of \u201ccomputer.\u201d<\/li>\n<li>The \u201cproduct\u201d field gives us the same standard QEMU PC information that we saw with the\u00a0<code>dmidecode<\/code>\u00a0command.<\/li>\n<li>The \u201cvendor\u201d field contains \u201cQEMU\u201d which quite clearly indicates this is a virtual machine.<\/li>\n<\/ul>\n<p>This is the result of running the same command on our physical computer.<\/p>\n<pre>sudo lshw -class system<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803847\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/hw-lshw-1.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The lshw command reporting on a physical computer\" width=\"644\" height=\"229\" \/><\/p>\n<p>We can see that this is a hardware computer, with a Micro-Star\u00a0motherboard.<\/p>\n<ul>\n<li>The hardware is identified as a desktop computer.<\/li>\n<li>The \u201cproduct\u201d field gives us the motherboard type, MS-7B86.<\/li>\n<li>The \u201cvendor\u201d field contains the manufacturer\u2019s name.<\/li>\n<\/ul>\n<h2 id=\"the-hostnamectl-command\">The hostnamectl Command<\/h2>\n<p>This command has the advantage that you don\u2019t need to have\u00a0<code>sudo<\/code>\u00a0privileges to run it. However, it is only available on\u00a0<code>systemd<\/code>-enabled distributions. The majority of modern distributions\u00a0use\u00a0<code>systemd<\/code>.<\/p>\n<p>This is the response from running the command on our Ubuntu VirtualBox VM.<\/p>\n<pre>hostnamectl<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803851\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/ubuntu-hostnamectl.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The output from the hostnamectl command in a VirtualBox VM with the virtualization line highlighted\" width=\"644\" height=\"280\" \/><\/p>\n<ul>\n<li>The \u201cicon-name\u201d field has \u201c-vm\u201d appended to it.<\/li>\n<li>The \u201cChassis\u201d field contains \u201cvm.\u201d<\/li>\n<li>The \u201cVirtualization\u201d field contains \u201coracle.\u201d<\/li>\n<li>The \u201cHardware Vendor\u201d field contains \u201cinnotek GmbH.\u201d<\/li>\n<li>The \u201cHardware Model\u201d field contains \u201cVirtualBox.\u201d<\/li>\n<\/ul>\n<p>The output on our Fedora VM inside GNOME Boxes is very similar.<\/p>\n<pre>hostnamectl<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803852\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/fedora-hostnamectl.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The output from the hostnamectl command in a GNOME Boxes VM with the virtualization line highlighted\" width=\"644\" height=\"315\" \/><\/p>\n<ul>\n<li>The \u201cicon-name\u201d field has \u201c-vm\u201d appended to it.<\/li>\n<li>The \u201cChassis\u201d field contains \u201cvm.\u201d<\/li>\n<li>The \u201cVirtualization\u201d field contains \u201ckvm.\u201d<\/li>\n<li>The \u201cHardware Vendor\u201d field contains \u201cQEMU\u201d<\/li>\n<li>The \u201cHardware Model\u201d field contains \u201cStandard PC (Q35 + ICH9, 2009).\u201d<\/li>\n<\/ul>\n<p>If we use the hostnamectl command on our physical desktop, the output doesn\u2019t contain a \u201cVirtualization\u201d line.<\/p>\n<pre>hostnamectl<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803853\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/hw-hostnamectl.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The output from the hostnamectl command on a physical computer, with no &quot;Virtualization&quot; information\" width=\"644\" height=\"270\" \/><\/p>\n<p>If there\u2019s no \u201cVirtualization\u201d field, you must be running on bare metal.<\/p>\n<h2 id=\"the-systemd-detect-virt-command\">The systemd-detect-virt Command<\/h2>\n<p>If you want to get as short an answer as possible,\u00a0<code>systemd-detect-virt<\/code>\u00a0is probably what you\u2019re looking for. Again this requires a\u00a0<code>systemd<\/code>-equipped distribution, but it doesn\u2019t require\u00a0<code>sudo\u00a0<\/code>privileges. This\u2014and its terse output\u2014make it well suited for use in scripts.<\/p>\n<p>This is the result of running the command on our Ubuntu VirtualBox VM.<\/p>\n<pre>systemd-detect-virt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803854\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/ubuntu-systemd-detect-virt.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Identifying a VirtualBox VM with systemd-detect-virt\" width=\"644\" height=\"95\" \/><\/p>\n<p>Our copy of Fedora running in GNOME Boxes is reported as using KVM virtualization.<\/p>\n<pre>systemd-detect-virt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803856\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/fedora-systemd-detect-virt.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Identifying a GNOME Boxes VM with systemd-detect-virt\" width=\"644\" height=\"95\" \/><\/p>\n<p>Running\u00a0<code>systemd-detect-virt<\/code>\u00a0on our hardware machine results in \u201cnone\u201d being printed to the terminal.<\/p>\n<pre>systemd-detect-virt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803855\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/hw-systemd-detect-virt.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"A physical computer being correctly identified as having no virtualization\" width=\"644\" height=\"95\" \/><\/p>\n<h2 role=\"heading\" aria-level=\"2\">A Platform-Sensitive Script<\/h2>\n<p>To give a script the ability to detect whether it is running in a virtualized environment or on physical hardware, we can use the\u00a0<code>systemd-detect-virt<\/code>\u00a0command and use\u00a0Bash\u00a0<code>case<\/code>\u00a0statements\u00a0to handle the options.<\/p>\n<p>This is the script we\u2019ll use. Copy this text and save it into a file called \u201cplatform.sh.\u201d<\/p>\n<pre>#!\/bin\/bash\r\n\r\nshopt -s nocasematch\r\n\r\ncase $(systemd-detect-virt) in\r\n\r\n  none)\r\n    echo \"Physical Hardware\"\r\n    ;;\r\n\r\n  *)\r\n    echo \"Virtual Machine\"\r\n    ;;\r\nesac<\/pre>\n<p>The script\u00a0uses\u00a0<code>shopt<\/code>\u00a0to choose case-insensitive matching. The\u00a0<code>systemd-detect-virt<\/code>\u00a0command is used in the\u00a0<code>case<\/code>\u00a0statement. The output from this command is compared with each of the\u00a0<code>case<\/code>\u00a0clauses in the body of the\u00a0<code>case<\/code>\u00a0statement until a match is found.\u00a0Anything that isn\u2019t matched is captured by the \u201c*)\u201d default clause.<\/p>\n<div class=\"relatedside\">\n<div class=\"relateditemwrap\">The simplest way is to test if the response from <code>systemd-detect-virt<\/code>\u00a0is \u201cnone.\u201d If it is, the script is running on physical hardware. For all other cases, the script must be running on a virtual machine.<\/div>\n<\/div>\n<p>Before we can run the script we must make it executable, using\u00a0<code>chmod<\/code>.<\/p>\n<pre>chmod +x platform.sh<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803859\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/ubuntu-chmod.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Making the platform script executable with chmod\" width=\"644\" height=\"55\" \/><\/p>\n<p>It correctly identifies our Ubuntu VirtualBox VM as a virtual machine.<\/p>\n<pre>.\/platform.sh<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803860\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/ubuntu-platform.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Using the platform.sh script in a VirtualBox VM\" width=\"644\" height=\"95\" \/><\/p>\n<p>It also correctly detects the GNOME Boxes VM running Fedora.<\/p>\n<pre>.\/platform.sh<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803862\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/fedora-platform.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Using the platform.sh script in a GNOME Boxes VM\" width=\"644\" height=\"95\" \/><\/p>\n<p>The script also correctly detects when it is running on a physical machine.<\/p>\n<pre>.\/platform.sh<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803861\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/hw-platform.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Using the platform.sh script on a physical computer\" width=\"644\" height=\"95\" \/><\/p>\n<p>The different\u00a0<code>case<\/code>\u00a0clauses could\u00a0set variables\u00a0that were checked elsewhere in the script to perform different types of processing, or they could call specific functions within your script.<\/p>\n<p>If your script needed to detect and accommodate different types of virtual environments, you could add more\u00a0<code>case<\/code>\u00a0clauses, looking for the different strings that\u00a0<code>systemd-detect-virt<\/code>\u00a0can return. We can see the complete list of possible responses by using the\u00a0<code>--list<\/code>\u00a0option. To make it easier to see them all at once, we\u2019ll pipe the output through the\u00a0<code>column<\/code>\u00a0command.<\/p>\n<pre>systemd-detect-virt --list | column<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-803863\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/ubuntu-list.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The complete set of responses that systemd-detect-virt can return\" width=\"644\" height=\"210\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Virtual machines\u00a0try really hard to convince their\u00a0operating systems\u00a0that they\u2019re running on physical hardware. So can you tell from\u00a0the Linux command line\u00a0if the computer is physical or virtual? Virtual Machines and Hypervisors A traditional computer is a physical object. It\u2019s a collection of different pieces of hardware that are plugged and bolted together so that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1082,1,730,830,42,51,1301,495,501,548,691,1304,107],"tags":[1577,920,1065,1576,14,1580,1579,206,1578,921,421],"class_list":["post-5199","post","type-post","status-publish","format-standard","hentry","category-centos-7-rhel-7","category-viazap","category-clusterweb","category-debian","category-leitura-recomendada","category-linux-linuxrs","category-nuvens","category-profissional-de-ti","category-shell-script","category-ubuntu-2","category-virtualizacao-2","category-vmware-esxi","category-xenserver","tag-detect","tag-how","tag-in","tag-let","tag-linux","tag-machines","tag-running","tag-scripts","tag-theyre","tag-to","tag-virtual"],"_links":{"self":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts\/5199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5199"}],"version-history":[{"count":1,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts\/5199\/revisions"}],"predecessor-version":[{"id":5200,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts\/5199\/revisions\/5200"}],"wp:attachment":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}