{"id":2126,"date":"2021-10-28T20:14:05","date_gmt":"2021-10-28T12:14:05","guid":{"rendered":"https:\/\/www.wjxy.net.cn\/?p=2126"},"modified":"2023-10-04T06:32:24","modified_gmt":"2023-10-03T22:32:24","slug":"esxi6-5-%e8%af%af%e5%b0%86%e7%a1%ac%e7%9b%98%e9%98%b5%e5%88%97%e5%8d%a1%e9%85%8d%e7%bd%ae%e4%b8%bapassthru%e7%9b%b4%e9%80%9a%e6%a8%a1%e5%bc%8f%e5%90%8e-%e6%89%be%e4%b8%8d%e5%88%b0%e7%a1%ac%e7%9b%98","status":"publish","type":"post","link":"https:\/\/www.wjxy.net.cn\/?p=2126","title":{"rendered":"ESXI6.5 \u8bef\u5c06\u786c\u76d8\u9635\u5217\u5361\u914d\u7f6e\u4e3apassthru\u76f4\u901a\u6a21\u5f0f\u540e, \u627e\u4e0d\u5230\u786c\u76d8\u7684\u95ee\u9898"},"content":{"rendered":"<p>There is no easy way to do it, it seems.<\/p>\n<p>So I wanted to say that I couldn&#8217;t afford to do an upgrade on my server and my service provider wanted $30 for IPMI access. I have searched countless forums on how in the world to fix this problem. I set Passthrough on and all my datastores vanished and said I need to add a datastore. I couldn&#8217;t remove Passthrough because since the file system is mounted in read only for some reason you can&#8217;t ssh in to the server and edit esxi.conf to fix the problem. This is my first tutorial on how to do this, so don&#8217;t bash my head that it&#8217;s sloppy.<\/p>\n<p>1. Boot with a debian or ubuntu live cd<\/p>\n<p>List your drives \/ partitioned: Open a terminal window<\/p>\n<p>2. type parted -l<\/p>\n<p>Mine was sda5<\/p>\n<p>3. mount \/dev\/sda5 \/mnt<\/p>\n<p>4. ls \/mnt\/<\/p>\n<p>5. cp \/mnt\/state.tgz ~\/<\/p>\n<p>6. cd ~<\/p>\n<p>7. tar xvf state.tgz<\/p>\n<p>8. tar xvf local.tgz<\/p>\n<p>So you get a etc folder now. Go to \/etc\/vmware<\/p>\n<p>9. nano esxi.conf<\/p>\n<p>10. Replace everything that says passthru with vmkernel<\/p>\n<p>11. Save the file<\/p>\n<p>Now lets copy the file back to the mount point, but first we have to recreate the archive.<\/p>\n<p>12. tar czf local.tgz etc\/<\/p>\n<p>13. tar czf state.tgz local.tgz<\/p>\n<p>14. cp state.tgz \/mnt\/<\/p>\n<p>Done. Reboot and everything should work as it did originally.<\/p>\n<p>This was tested in ESXi 6.0 and 5.5.<\/p>\n<p>Hope this will help others that are trapped in a similar situation. Of course you can reinstall but a lot of people wanted to know how to do it. This which is basically 14 steps can probably be shortened. I hope that my first contribution on this forum is not overlooked.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is no easy way to do it, it seems. So I wanted to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"_links":{"self":[{"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/2126"}],"collection":[{"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2126"}],"version-history":[{"count":1,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/2126\/revisions"}],"predecessor-version":[{"id":2127,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/2126\/revisions\/2127"}],"wp:attachment":[{"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}