{"id":62,"date":"2014-10-09T14:47:24","date_gmt":"2014-10-09T14:47:24","guid":{"rendered":"http:\/\/www.clientcyde.com\/?p=62"},"modified":"2014-10-18T07:08:53","modified_gmt":"2014-10-18T07:08:53","slug":"network-configuration-for-centos-minimal-on-vmware-workstation","status":"publish","type":"post","link":"https:\/\/www.clientcyde.com\/?p=62","title":{"rendered":"Network configuration for CentOS minimal on VMware Workstation"},"content":{"rendered":"<p>This was a pain.<\/p>\n<p>As I didn&#8217;t want to hang around too long, I downloaded the minimal ISO for CentOS. \u00a0I attempted to create a VM, but this failed when VMware tools were installing:<\/p>\n<pre>Installing VMware Tools, please wait...\r\nmount: special device \/dev\/hda does not exist\r\nmount: block device \/dev\/sr0 is write-protected, mounting read only\r\n\/etc\/rc5.d\/S99local: line 25: eject: command not found\r\n\/etc\/rc5.d\/S99local: line 25: eject: command not found<\/pre>\n<p>I had to create a new VM without an OS, then mount the ISO as the CD drive, reboot and install that way.<\/p>\n<p>Then I had to somehow configure the network. \u00a0I couldn&#8217;t install VMware tools because perl wasn&#8217;t installed, so I don&#8217;t know if that might have fixed it.<\/p>\n<p>I ended up editing \/etc\/sysconfig\/network-scripts\/ifcfg-eth0, and I had to use VI because I couldn&#8217;t install nano&#8230; \u00a0An issue I had was that I didn&#8217;t know what the gateway was &#8211; I had NAT networking setup in VMware workstation. \u00a0There&#8217;s a handy tool to find out bundled with VMware Workstation. \u00a0It also works with VMware player, but doesn&#8217;t come with it.\u00a0 I found it here:<\/p>\n<pre>C:\\Program Files (x86)\\VMware\\VMware Workstation\\vmnetcfg.exe<\/pre>\n<p>I selected the NAT network, then NAT settings, and this shows the gateway:<\/p>\n<p><a href=\"http:\/\/www.clientcyde.com\/wp-content\/uploads\/2014\/10\/Virtual-Network-Editor.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-63\" src=\"http:\/\/www.clientcyde.com\/wp-content\/uploads\/2014\/10\/Virtual-Network-Editor-300x271.png\" alt=\"Virtual Network Editor\" width=\"681\" height=\"618\" srcset=\"https:\/\/www.clientcyde.com\/wp-content\/uploads\/2014\/10\/Virtual-Network-Editor-300x271.png 300w, https:\/\/www.clientcyde.com\/wp-content\/uploads\/2014\/10\/Virtual-Network-Editor-331x300.png 331w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/a><\/p>\n<p>My\u00a0\/etc\/sysconfig\/network-scripts\/ifcfg-eth0 ended as this:<\/p>\n<pre>DEVICE=eth0\r\nHWADDR=00:0C:29:FC:8F:27\r\nNM_CONTROLLED=no\r\nONBOOT=\"yes\"\r\nIPADDR=192.168.153.20\r\nBOOTPROTO=none\r\nNETMASK=255.255.255.0\r\nGATEWAY=192.168.153.2\r\nDNS1=8.8.8.8\r\nDNS2=8.8.4.4\r\nUSERCTL=no\r\nTYPE=Ethernet<\/pre>\n<p>The device, MAC and a few others were already set. \u00a0The DNS entires I have used are Google&#8217;s DNS servers. \u00a0The IP address I chose was a free one (all apart from .1 should\u00a0be free, I think) on the network &#8211; select the DHCP settings for the network in the Virtual Network Editor to see the address range. \u00a0I also updated the file \/etc\/sysconfig\/network to this:<\/p>\n<pre>NETWORKING=yes<\/pre>\n<p>That file didn&#8217;t need the gateway, as I read elsewhere. \u00a0I then restarted the network:<\/p>\n<pre>service network restart<\/pre>\n<p>I was then able to connect to the internet and install perl and then VMware tools. \u00a0It all turned out to be a complete waste of time, but ah well.<\/p>\n<p>Vmware Workstation-&gt;VM (to the right of File, Edit, View)-&gt;Install VMware Tools&#8230;<\/p>\n<pre>yum install perl\r\nmkdir \/mnt\/cdrom\r\nmount \/dev\/cdrom \/mnt\/cdrom\r\ncd \/tmp\r\ntar -xzf \/mnt\/cdrom\/VMwareTools-&lt;version&gt;.tar.gz\r\ncd vmware-tools-distrib\r\n.\/vmware-install.pl\r\n[hit enter a lot to accept all the defaults]<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This was a pain. As I didn&#8217;t want to hang around too long, I downloaded the minimal ISO for CentOS. \u00a0I attempted to create a VM, but this failed when VMware tools were installing: Installing VMware Tools, please wait&#8230; mount: special device \/dev\/hda does not exist mount: block device \/dev\/sr0 is write-protected, mounting read only &hellip; <a href=\"https:\/\/www.clientcyde.com\/?p=62\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Network configuration for CentOS minimal on VMware Workstation<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,4],"tags":[],"class_list":["post-62","post","type-post","status-publish","format-standard","hentry","category-centos","category-unix"],"_links":{"self":[{"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=\/wp\/v2\/posts\/62","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=62"}],"version-history":[{"count":3,"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=\/wp\/v2\/posts\/62\/revisions"}],"predecessor-version":[{"id":66,"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=\/wp\/v2\/posts\/62\/revisions\/66"}],"wp:attachment":[{"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=62"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=62"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=62"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}