{"id":174,"date":"2014-02-28T13:42:45","date_gmt":"2014-02-28T18:42:45","guid":{"rendered":"http:\/\/ybontap.tynsoe.org\/wordpress\/?p=174"},"modified":"2014-02-28T13:42:45","modified_gmt":"2014-02-28T18:42:45","slug":"network-va-fusion","status":"publish","type":"post","link":"https:\/\/ybontap.tynsoe.org\/?p=174","title":{"rendered":"Configuring Network for NetApp Virtual Appliances in Fusion"},"content":{"rendered":"<p>NetApp Virtual Appliances like OnCommand Unified Manager 6 or OnCommand Performance Manager 1 are normally deployed within VMware ESX hypervisors. It can work on other hypervisors as well but it requires additional steps to workaround an error that occurs when you try to set the IP address to something else than DHCP. The purpose of this article is to explain how to make IP configuration available when you setup the virtual appliance in a <a title=\"Setting up your very own lab with VMware Fusion Pro\" href=\"http:\/\/ybontap.tynsoe.org\/wordpress\/lab\/\" target=\"_blank\" rel=\"noopener\">lab-on-laptop<\/a> lab, or anywhere else that is not a ESX server.<\/p>\n<p><!--more--><\/p>\n<p>When you try to change the IP address, either in the web UI or in the VM console, you will get an \u00ab\u00a0unknown error\u00a0\u00bb while trying to apply the settings.<\/p>\n<p>This is caused by the way the configuration scripts handles errors while restarting the different services. \u00a0For some reason, applying network settings restarts VMware tools, and with it, the HGFS service that is not available by default on a VMware Fusion VM which reports the error. It makes the configuration script roll back to previous setting.<\/p>\n<p>To prevent that issue, you must restart the virtual appliance, bypass normal boot, and edit vmware-tools init script manually.<\/p>\n<h1>Boot the virtual appliance directly in a shell<\/h1>\n<p>Boot the VA, and you should see a boot selection screen like this one :<\/p>\n<div id=\"attachment_176\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/ybontap.tynsoe.org\/wordpress\/wp-content\/uploads\/2014\/02\/netapp-va-1.png\"><img aria-describedby=\"caption-attachment-176\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-176\" alt=\"Standard boot screen for a NetApp Virtual Appliance\" src=\"http:\/\/ybontap.tynsoe.org\/wordpress\/wp-content\/uploads\/2014\/02\/netapp-va-1.png\" width=\"640\" height=\"480\" \/><\/a><p id=\"caption-attachment-176\" class=\"wp-caption-text\">Standard boot screen for a NetApp Virtual Appliance<\/p><\/div>\n<p>Type the \u00ab\u00a0<strong>e<\/strong>\u00a0\u00bb letter before the countdown expires.<\/p>\n<p>Then you need to edit the boot argument on the line that starts with \u00ab\u00a0<strong>linux<\/strong>\u00a0\u00bb to make it look like this :<\/p>\n<div id=\"attachment_178\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/ybontap.tynsoe.org\/wordpress\/wp-content\/uploads\/2014\/02\/netapp-va-21.png\"><img aria-describedby=\"caption-attachment-178\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-178\" alt=\"Boot arguments screen for a NetApp VA\" src=\"http:\/\/ybontap.tynsoe.org\/wordpress\/wp-content\/uploads\/2014\/02\/netapp-va-21.png\" width=\"640\" height=\"480\" \/><\/a><p id=\"caption-attachment-178\" class=\"wp-caption-text\">Boot arguments screen for a NetApp VA<\/p><\/div>\n<p>Basically, you remove \u00ab\u00a0<strong>quiet<\/strong>\u00a0\u00bb and \u00ab\u00a0<strong>console=tty2<\/strong>\u00a0\u00bb arguments, and add \u00ab\u00a0<strong>init=\/bin\/sh<\/strong>\u00a0\u00bb<\/p>\n<p>If you do that correctly, you should get to the following screen after typing \u00ab\u00a0<strong>Ctrl-x<\/strong>\u00a0\u00bb to boot<\/p>\n<div id=\"attachment_179\" style=\"width: 730px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/ybontap.tynsoe.org\/wordpress\/wp-content\/uploads\/2014\/02\/netapp-va-3.png\"><img aria-describedby=\"caption-attachment-179\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-179\" alt=\"This is the shell prompt you should get\" src=\"http:\/\/ybontap.tynsoe.org\/wordpress\/wp-content\/uploads\/2014\/02\/netapp-va-3.png\" width=\"720\" height=\"400\" \/><\/a><p id=\"caption-attachment-179\" class=\"wp-caption-text\">This is the shell prompt you should get<\/p><\/div>\n<h1>Modifying the vmware tools script<\/h1>\n<p>For now, the filesystem is mounted read-only, you need to remount it with \u00ab\u00a0rw\u00a0\u00bb option :<\/p>\n<pre># mount -o remount,rw \/<\/pre>\n<p>Then edit the following file :<\/p>\n<pre># vi \/etc\/init.d\/vmware-tools<\/pre>\n<ul>\n<li>go to the line that says \u00ab\u00a0is_vmhgfs_needed\u00a0\u00bb by typing \u00ab\u00a0<strong>:\/is_vmhgfs_needed<\/strong>\u00ab\u00a0<\/li>\n<li>insert a new line by typing \u00ab\u00a0<strong>o<\/strong>\u00a0\u00bb (lowercase o)<\/li>\n<li>type \u00ab\u00a0<strong>echo no<\/strong>\u00ab\u00a0<\/li>\n<li>Type <strong>Esc<\/strong><\/li>\n<\/ul>\n<p>You screen should like this one :<\/p>\n<div id=\"attachment_180\" style=\"width: 730px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/ybontap.tynsoe.org\/wordpress\/wp-content\/uploads\/2014\/02\/netapp-va-4.png\"><img aria-describedby=\"caption-attachment-180\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-180\" alt=\"Editor screen once the changes has been made\" src=\"http:\/\/ybontap.tynsoe.org\/wordpress\/wp-content\/uploads\/2014\/02\/netapp-va-4.png\" width=\"720\" height=\"400\" \/><\/a><p id=\"caption-attachment-180\" class=\"wp-caption-text\">Editor screen once the changes has been made<\/p><\/div>\n<p><span style=\"line-height: 1.714285714; font-size: 1rem;\">Type \u00ab\u00a0<strong>:x!<\/strong>\u00a0\u00bb to quit and force writing the file to disk<\/span><\/p>\n<p>Type \u00ab\u00a0<strong>reboot<\/strong>\u00a0\u00bb<\/p>\n<p>Once the VA has rebooted, you should be able to change IP configuration.<\/p>\n<h1>Alternative<\/h1>\n<p>If you prefer, you can also shut down the virtual appliance, and present its first disk to another Linux VM, then mount it to make the change in the configuration file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NetApp Virtual Appliances like OnCommand Unified Manager 6 or OnCommand Performance Manager 1 are normally deployed within VMware ESX hypervisors. It can work on other hypervisors as well but it requires additional steps to workaround an error that occurs when you try to set the IP address to something else than DHCP. The purpose of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,7],"tags":[18,29],"_links":{"self":[{"href":"https:\/\/ybontap.tynsoe.org\/index.php?rest_route=\/wp\/v2\/posts\/174"}],"collection":[{"href":"https:\/\/ybontap.tynsoe.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ybontap.tynsoe.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ybontap.tynsoe.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ybontap.tynsoe.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=174"}],"version-history":[{"count":0,"href":"https:\/\/ybontap.tynsoe.org\/index.php?rest_route=\/wp\/v2\/posts\/174\/revisions"}],"wp:attachment":[{"href":"https:\/\/ybontap.tynsoe.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ybontap.tynsoe.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ybontap.tynsoe.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}