{"id":451,"date":"2011-04-23T14:12:00","date_gmt":"2011-04-23T14:12:00","guid":{"rendered":"http:\/\/zensonic.dk\/?p=451"},"modified":"2017-04-09T10:03:43","modified_gmt":"2017-04-09T10:03:43","slug":"installing-esxi-4-1-on-an-amd-brazos-platform","status":"publish","type":"post","link":"https:\/\/zensonic.dk\/?p=451","title":{"rendered":"Installing ESXi 4.1 on an AMD Brazos platform"},"content":{"rendered":"<p>One of my projects this easter was to give my home server an  overhaul. The harddrives was running very low on kapacity and the Ubuntu  server installation was beginning to be a nightmare to maintain. I  choose to upgrade the hardware as well and then thrown in ESXi into the  equation as well.<\/p>\n<h2>The hardware<\/h2>\n<p>The hardware centers around an\u00c2\u00a0 <a href=\"http:\/\/www.asus.com\/Motherboards\/AMD_CPU_on_Board\/E35M1M\/\">ASUS E35M1-M<\/a> mainboard with an AMD Zarcate APU and a AMD Hudson M1 FCH. The APU has  two cores, a TDP of mere 18W and has the AMD-V extensions.<\/p>\n<p>I bought 2 x 4GB of memory for the setup, which is maximum for the board.\u00c2\u00a0 Lastly I bought a couple of <a href=\"http:\/\/www.storagereview.com\/samsung_spinpoint_f4eg_review_hd204ui\">Samsung F4EG HD204ui drives<\/a> (low power, low cost, high capacity, resonable performance)<\/p>\n<h2>Planning it<\/h2>\n<p>Planning the installation revealed that<\/p>\n<ul>\n<li>ESXi 4.1 does not support the board; the onboard NIC is not supported.<\/li>\n<li>The Samsung drives has a serious <a href=\"http:\/\/sourceforge.net\/apps\/trac\/smartmontools\/wiki\/SamsungF4EGBadBlocks\">firmware bug<\/a>.<\/li>\n<li>The E35M1-1 doesn&#8217;t have raid functionality, if you care about (some of) your data.<\/li>\n<li>The E35M1-1 board has an EATX 24pin power connector and my oldish antec cabinet\/psu only has an ATX 20pin.<\/li>\n<\/ul>\n<p>All items can either be fixed or worked around, not to worry.<\/p>\n<h2>Getting the hardware running.<\/h2>\n<p>I put the hardware together in my oldish Antec cabinet. I then used a  standard $10 multimeter to verify that the 4 extra pins on the EATX  connector on the mainboard (compared to a normal 20 pin ATX connector),\u00c2\u00a0  was in fact hardwired\/bridged to other pins on the mainboard. This  bascially means, that a 20 pin ATX PSU will suffice for this board.<\/p>\n<div id=\"attachment_462\" class=\"wp-caption aligncenter\" style=\"width: 410px\"><a href=\"https:\/\/zensonic.dk\/wp-content\/uploads\/IMAG0290-13.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-462\" title=\"IMAG0290-1\" src=\"https:\/\/zensonic.dk\/wp-content\/uploads\/IMAG0290-13.jpg\" alt=\"\" width=\"400\" height=\"240\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Hardware assembled. Using an normal ATX 20 pins PSU<\/p>\n<\/div>\n<p>After that, I obtained the <a href=\"http:\/\/www.samsung.com\/global\/business\/hdd\/faqView.do?b2b_bbs_msg_id=386\">firmware fix<\/a> for the Samsung drives. It turned out, that I did not need it as drives  manufactured later than December 2010 already contains the fix  according to <a href=\"http:\/\/sourceforge.net\/mailarchive\/forum.php?thread_name=34E79188-3354-4FB4-A2C2-18220DD6381C%40gmail.com&amp;forum_name=smartmontools-support\">this post<\/a>.<\/p>\n<h2>Installing ESXi 4.1 on the E35M1-M<\/h2>\n<p>You can <a href=\"https:\/\/www.vmware.com\/tryvmware\/index.php?p=free-esxi\">download ESXi 4.1 for free<\/a>.  I did that. I burned the .iso file and booted from the CD. It booted the hypervisor, but  complained\/failed when I pressed F11 for installation. As guessed, it is due to  the fact that the NIC, an RealTek 8111E is not supported.<\/p>\n<p>The fix is to include the realtek 8111E driver in the iso file, in two places: One place, used to include support in the installer. An one inside the ddimage, that the installer deploys onto the hardware. It is fairly simple if you know your way around linux. Instructions on how to build ESXi modules is <a href=\"http:\/\/www.kernelcrash.com\/blog\/using-a-marvell-lan-card-with-esxi-4\/2009\/08\/22\/\">on the net<\/a>. For the lazy, you can pretty much get it served to you: an <a href=\"http:\/\/www.vm-help.com\/forum\/viewtopic.php?f=12&amp;t=1272\">oem.tgz<\/a> (local copy <a href=\"https:\/\/zensonic.dk\/offer\/RTL8111_8168_P55_integr_SATA_Ctrl.AHCI.oem.tgz\">here<\/a>) and a script called <a href=\"http:\/\/code.google.com\/p\/mkesxiaio\/\">mkesxiaio<\/a> (local copy <a href=\"https:\/\/zensonic.dk\/offer\/mkesxiaio_4.2.sh\">here<\/a>) that combines the oem.tgz and the ESXi installation iso.<\/p>\n<p>Download iso and oem.tgz and script. Run script and burn resulting iso file. Boot that iso and install ESXi 4.1 onto the system. For me it worked flawlessly.<\/p>\n<div id=\"attachment_461\" class=\"wp-caption aligncenter\" style=\"width: 410px\"><a href=\"https:\/\/zensonic.dk\/wp-content\/uploads\/IMAG0287-11.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-461\" title=\"IMAG0287-1\" src=\"https:\/\/zensonic.dk\/wp-content\/uploads\/IMAG0287-11.jpg\" alt=\"\" width=\"400\" height=\"240\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Booting the ESXi 4.1 hypervisor on the ASUS E35M1-M mainboard<\/p>\n<\/div>\n<h2>The Software side<\/h2>\n<p>After that I installed the ESX license key, provisioned an vm, installed debian 6.0 and migrated all my files to the new server.<\/p>\n<p>In the past I used to have a raid setup. The Hudson H1 FCH does not have raid support and neither does ESXi, except on selected raid controllers. Now what?<\/p>\n<p>The trick is to do it in software on the VM side. You provision two VM disks, one from each datastore, and combine them into a mirror\/raid device inside the vm. You basically have two options:<\/p>\n<ol>\n<li>md driver<\/li>\n<li>lvm mirror<\/li>\n<\/ol>\n<p>If you care about performance and the integrity of your data, you should go for the md driver as it respects write barriers.\u00c2\u00a0 for my setup I thus ended up with 5 vmdisks<\/p>\n<ul>\n<li>One for the OS<\/li>\n<li>two combined into an md device for the crucial stuff and that in turn was used in a vg called vgsafe<\/li>\n<li>two spanned across that datastores for the the non crucial stuff.\u00c2\u00a0 Those disks were just added to a vg called vgspan<\/li>\n<\/ul>\n<div class=\"codesnip-container\" >edison% mount | egrep -i &#8216;(mapper|boot)&#8217;<br \/>\n\/dev\/mapper\/edison-root on \/ type ext3 (rw,errors=remount-ro)<br \/>\n\/dev\/sda1 on \/boot type ext2 (rw)<br \/>\n\/dev\/mapper\/edison-tmp on \/tmp type ext3 (rw)<br \/>\n\/dev\/mapper\/edison-usr on \/usr type ext3 (rw)<br \/>\n\/dev\/mapper\/edison-var on \/var type ext3 (rw)<br \/>\n\/dev\/mapper\/vgsafe-lvhome on \/home type ext4 (rw)<br \/>\n\/dev\/mapper\/vgspan-software on \/home\/software type ext4 (rw)<br \/>\n\/dev\/mapper\/vgspan-media on \/home\/media type xfs (rw)<\/div>\n","protected":false},"excerpt":{"rendered":"<p>One of my projects this easter was to give my home server an overhaul. The harddrives was running very low on kapacity and the Ubuntu server installation was beginning to be a nightmare to maintain. I choose to upgrade the hardware as well and then thrown in ESXi into the equation as well. The hardware [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,4,19],"tags":[],"class_list":["post-451","post","type-post","status-publish","format-standard","hentry","category-fun-projects","category-hardware","category-linux-lvm"],"_links":{"self":[{"href":"https:\/\/zensonic.dk\/index.php?rest_route=\/wp\/v2\/posts\/451"}],"collection":[{"href":"https:\/\/zensonic.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zensonic.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zensonic.dk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/zensonic.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=451"}],"version-history":[{"count":0,"href":"https:\/\/zensonic.dk\/index.php?rest_route=\/wp\/v2\/posts\/451\/revisions"}],"wp:attachment":[{"href":"https:\/\/zensonic.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zensonic.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zensonic.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}