{"id":666,"date":"2013-06-08T23:07:50","date_gmt":"2013-06-08T22:07:50","guid":{"rendered":"http:\/\/www.p2vpro.com\/?p=666"},"modified":"2013-06-08T23:08:30","modified_gmt":"2013-06-08T22:08:30","slug":"frustration","status":"publish","type":"post","link":"https:\/\/www.p2vpro.com\/?p=666","title":{"rendered":"Frustration :-("},"content":{"rendered":"<p>Allow me, once again, to vent my frustration on this blog. I am trying to upgrade VMware workstation from version 7.1.6 to 8.0.6 on Ubuntu 12.04. I am doing this so I can run windows 8 VMs.<\/p>\n<p>There is no working upgrade path. You have to uninstall VMware workstation 7 and install VMware workstation 8 on Ubuntu. The command to uninstall is:<\/p>\n<pre>\/usr\/bin\/vmware-installer -u vmware-workstation<\/pre>\n<p>but this starts a wizard which immediately fails with the message:<\/p>\n<pre>The VWMare Installer could not shut down all\r\nrunning virtual machines. If you have ACE\r\nVMs open, please shut them down or suspend\r\nthem now and press 'Retry' to continue.<\/pre>\n<p>Needless to say, I have no running VMs after a reboot. So, OK, lets shut down all VMware process and unload all kernel modules using:<\/p>\n<pre>\/etc\/init.d\/vmware stop<\/pre>\n<p>Oh dear. That gives:<\/p>\n<pre>Stopping VMware services:\r\n\u00a0\u00a0 VMware USB Arbitrator \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 done\r\n\/etc\/init.d\/vmware: line 370: [: 18177068162212705687: integer expression expected\r\n\u00a0\u00a0 VM communication interface socket family\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 failed\r\n\u00a0\u00a0 Virtual machine communication interface\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 failed\r\n\u00a0\u00a0 Virtual machine monitor\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 failed\r\n\u00a0\u00a0 Blocking file system\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 failed\r\nERROR: Module vmnet is in use by [permanent]<\/pre>\n<p>Well, that doesn&#8217;t look good! Turning on some debugging leads to the following line in the\u00a0vmmonUseCount() function:<\/p>\n<pre>\u00a0\u00a0 count=`\/sbin\/lsmod | awk 'BEGIN {n = 0} {if ($1 == \"'\"$driver\"'\") n = $3} END {print n}'`<\/pre>\n<p>which indeed when used with vmmon as $driver returns a silly number.<\/p>\n<pre># count=`\/sbin\/lsmod | awk 'BEGIN {n = 0} {if ($1 == \"'vmmon'\") n = $3} END\u00a0 {print n}'`\r\n# echo $count\r\n18177068162212705687<\/pre>\n<p>So, what is going on? Well, it&#8217;s not lsmod, because cat&#8217;ing \/proc\/modules gives a similar number, which means that the scripts is making bad assumptions. It thinks there are 18177068162212705687 VMware workstations are running. I think not. In fact, it can&#8217;t even know this since the number is so large, it&#8217;s bigger than the biggest integer that the shell test expression can handle, hence the error. See <a href=\"http:\/\/stackoverflow.com\/questions\/2965761\/find-maximum-positive-integer-value-in-bourne-shell\">http:\/\/stackoverflow.com\/questions\/2965761\/find-maximum-positive-integer-value-in-bourne-shell<\/a><\/p>\n<p>My answer here is to comment out the block which begins with the integer -gt expression.<\/p>\n<pre># \/etc\/init.d\/vmware stop\r\nStopping VMware services:\r\n\u00a0\u00a0 VMware USB Arbitrator\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 done\r\n\u00a0\u00a0 VM communication interface socket family\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 failed\r\n\u00a0\u00a0 Virtual machine communication interface\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 failed\r\n\u00a0\u00a0 Virtual machine monitor\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 failed\r\n\u00a0\u00a0 Blocking file system\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 failed\r\nERROR: Module vmnet is in use by [permanent]<\/pre>\n<p>Well, that gets rid of one thing. The rest will have to wait since it&#8217;s past my bedtime. Sigh.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Allow me, once again, to vent my frustration on this blog. I am trying to upgrade VMware workstation from version 7.1.6 to 8.0.6 on Ubuntu 12.04. I am doing this so I can run windows 8 VMs. There is no &hellip; <a href=\"https:\/\/www.p2vpro.com\/?p=666\">Continue reading <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":[19,3],"tags":[],"class_list":["post-666","post","type-post","status-publish","format-standard","hentry","category-general-technology","category-virtualisation"],"_links":{"self":[{"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=\/wp\/v2\/posts\/666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=666"}],"version-history":[{"count":8,"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=\/wp\/v2\/posts\/666\/revisions"}],"predecessor-version":[{"id":674,"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=\/wp\/v2\/posts\/666\/revisions\/674"}],"wp:attachment":[{"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}