{"id":601,"date":"2021-12-29T14:26:21","date_gmt":"2021-12-29T12:26:21","guid":{"rendered":"https:\/\/www.petersplanet.nl\/?p=601"},"modified":"2021-12-29T14:55:51","modified_gmt":"2021-12-29T12:55:51","slug":"vmware-home-lab","status":"publish","type":"post","link":"https:\/\/www.petersplanet.nl\/index.php\/2021\/12\/29\/vmware-home-lab\/","title":{"rendered":"VMware Home Lab"},"content":{"rendered":"\n<p>It is nice too have your own home lab with VMware ESXi to play around. In this post I am describing how my home lab looks like using nested ESXi.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p><strong>Hardware<\/strong><br>Everything is installed on a standard Dell Workstation XPS 8940 with an i9 processor, 3 TB SSD disk space and 128 GB memory.<\/p>\n\n\n\n<p><strong>Software<\/strong><br>On the Workstation is installed VMware ESXi 7. All the other software, including ESXi servers, are installed on top of that.<\/p>\n\n\n\n<p>On the main ESXi server have been installed a Vyos router, CentOS Linux (server05), 3 ESXi servers (server11, server12, server13) and vCenter. The CentOS Linux server05 contains DNS and also the shared storage in the form of NFS shares.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"378\" src=\"https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/nested-esxi-1024x378.jpg\" alt=\"Nested ESXi\" class=\"wp-image-604\" srcset=\"https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/nested-esxi-1024x378.jpg 1024w, https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/nested-esxi-300x111.jpg 300w, https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/nested-esxi-768x284.jpg 768w, https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/nested-esxi-1140x421.jpg 1140w, https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/nested-esxi.jpg 1369w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Network<\/strong><br>I have created 2 switches in VMware. vSwitch0 to connect to the outside world and vSwitch1 for within the home lab. Note that after adding vCenter a lot of the network is being maintained by vCenter. <\/p>\n\n\n\n<p>The home lab network switch1 consists of 2 VLANs. VLAN 1 contains the management network and VLAN 2 contains the workload network.<br><\/p>\n\n\n\n<p><em>vSwitch0<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"606\" height=\"358\" src=\"https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/vswitch0.jpg\" alt=\"\" class=\"wp-image-613\" srcset=\"https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/vswitch0.jpg 606w, https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/vswitch0-300x177.jpg 300w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/figure>\n\n\n\n<p><em>vSwitch1<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"668\" height=\"707\" src=\"https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/vswitch1.jpg\" alt=\"\" class=\"wp-image-614\" srcset=\"https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/vswitch1.jpg 668w, https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/vswitch1-283x300.jpg 283w\" sizes=\"auto, (max-width: 668px) 100vw, 668px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Vyos<\/strong><br>I am using Vyos as a router. <\/p>\n\n\n\n<p><a href=\"https:\/\/vyos.io\/products\/#vyos-router\">https:\/\/vyos.io\/products\/#vyos-router<\/a><\/p>\n\n\n\n<p>Virtual interfaces are used to route VLAN 1 and 2 traffic. See the config below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>interfaces {\n    ethernet eth0 {\n        address 192.168.86.254\/24\n        hw-id 00:0c:29:3c:4c:4f\n    }\n    ethernet eth1 {\n        duplex auto\n        hw-id 00:0c:29:3c:4e:59\n        smp-affinity auto\n        speed auto\n        vif 1 {\n            address 10.0.1.254\/24\n            description \"VLAN 1\"\n        }\n        vif 2 {\n            address 10.0.2.254\/24\n            description \"VLAN 2\"\n        }\n\n    }\n    loopback lo {\n    }\n}\nnat {\n    source {\n        rule 10 {\n            outbound-interface eth0\n            translation {\n                address masquerade\n            }\n        }\n    }\n}\nprotocols {\n    static {\n        route 0.0.0.0\/0 {\n            next-hop 192.168.86.2 {\n            }\n        }\n    }\n}\n<\/code><\/pre>\n\n\n\n<p><strong>Datastore<\/strong><\/p>\n\n\n\n<p>Datastore on the main ESXi server.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"232\" src=\"https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/datastore1-1024x232.jpg\" alt=\"\" class=\"wp-image-622\" srcset=\"https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/datastore1-1024x232.jpg 1024w, https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/datastore1-300x68.jpg 300w, https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/datastore1-768x174.jpg 768w, https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/datastore1-1140x258.jpg 1140w, https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/datastore1.jpg 1185w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>vCenter<\/strong><\/p>\n\n\n\n<p>Screenshot of vCenter.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"545\" src=\"https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/vCenter-1024x545.jpg\" alt=\"\" class=\"wp-image-624\" srcset=\"https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/vCenter-1024x545.jpg 1024w, https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/vCenter-300x160.jpg 300w, https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/vCenter-768x409.jpg 768w, https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/vCenter-1140x607.jpg 1140w, https:\/\/www.petersplanet.nl\/wp-content\/uploads\/2021\/12\/vCenter.jpg 1341w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is nice too have your own home lab with VMware ESXi to play around. In this post I am describing how my home lab looks like using nested ESXi.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-601","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/posts\/601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/comments?post=601"}],"version-history":[{"count":8,"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/posts\/601\/revisions"}],"predecessor-version":[{"id":627,"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/posts\/601\/revisions\/627"}],"wp:attachment":[{"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/media?parent=601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/categories?post=601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/tags?post=601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}