{"id":506,"date":"2013-09-25T12:47:13","date_gmt":"2013-09-25T10:47:13","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?p=506"},"modified":"2014-03-14T22:19:17","modified_gmt":"2014-03-14T21:19:17","slug":"boot-ubuntu-live-over-ipxe-and-cifs","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=506","title":{"rendered":"Boot Ubuntu (LIVE) over iPXE and CIFS"},"content":{"rendered":"<p>We already saw <a href=\"https:\/\/labalec.fr\/erwan\/?p=471\" target=\"_blank\">earlier <\/a>how to boot ubuntu over ipxe with NFS<\/p>\n<p>Howeber, setting an NFS server in windows is not always a given.<\/p>\n<p>Hence, lets see now how to do it with a CIFS share i.e a simple windows share which Tiny PXE Server can manage for you.<br \/>\nSide note :<br \/>\n-I could make it work only with ubuntu 12.10, not 13.04.<br \/>\n-I could make it work only in plain DHCP mode, not proxydhcp mode.<\/p>\n<p>needed :<br \/>\n&#8211;<a href=\"http:\/\/ipxe.org\/\" target=\"_blank\">ipxe<\/a><br \/>\n&#8211;<a href=\"http:\/\/reboot.pro\/topic\/18488-tiny-pxe-server\/\" target=\"_blank\">tiny pxe server<\/a><br \/>\n&#8211;<a href=\"http:\/\/www.ubuntu.com\/\" target=\"_blank\">ubuntu<\/a><\/p>\n<h3>1\/ open ubuntu.iso in winrar<\/h3>\n<p>(or any other iso reading capable tool)<\/p>\n<p>extract casper folder to x:\\pxe\\iso\\ubuntu.12.10 (or any path that suit you)<\/p>\n<p>&nbsp;<\/p>\n<h3>2\/use the below ipxe script :<\/h3>\n<p>#!ipxe<br \/>\nset boot-url http:\/\/${dhcp-server}<br \/>\nkernel ${boot-url}\/ubuntu.12.10\/casper\/vmlinuz showmounts toram root=\/dev\/cifs boot=casper netboot=cifs nfsroot=${cifs-server}\/pxe\/ubuntu.12.10 NFSOPTS=-ouser=username,pass=password,ro ip=dhcp ro<br \/>\ninitrd ${boot-url}\/ubuntu.12.10\/casper\/initrd.lz<br \/>\nboot<\/p>\n<p>In the script above, adapt the username and password.<br \/>\nname it ubuntu.ipxe and put it in x:\\pxe<\/p>\n<p><em>Note :<br \/>\nAbout that syntax, as there is a controversy, be aware that I did not make it up.<br \/>\nGoogle it and you&rsquo;ll find tons of similar examples and\/or variants.<br \/>\nSee my latest post abou this <a href=\"https:\/\/labalec.fr\/erwan\/?p=516\" target=\"_blank\">here<\/a>.<\/em><\/p>\n<p>&nbsp;<\/p>\n<h3>3\/put ipxe-undionly.kpxe in x:\\pxe<\/h3>\n<p>&nbsp;<\/p>\n<h3>4\/modify config.ini with the following<\/h3>\n<p>(so that Tiny PXE Server will create a PXE share automatically for you pointing to your root folder) :<br \/>\n[dhcp]<br \/>\nsmb=1<\/p>\n<p>&nbsp;<\/p>\n<h3>5\/launch tiny pxe server with the following settings<\/h3>\n<p>(leave other settings untouched) :<br \/>\ntick \u00ab httpd \u00bb<br \/>\nboot filename = ipxe-undionly.kpxe (use the browse files and folders \u00ab \u2026 \u00bb button)<br \/>\ntick \u00ab filename if user-class=gPXE or iPXE \u00bb = http:\/\/${dhcp-server}\/ubuntu.ipxe<br \/>\npush the online button<\/p>\n<p>&nbsp;<\/p>\n<h3>6\/pxe boot your computer and here we go<\/h3>\n<p><iframe loading=\"lazy\" width=\"640\" height=\"480\" src=\"\/\/www.youtube.com\/embed\/D8GSMBUR2vE\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p><strong><span style=\"font-size: 1.17em; line-height: 1.5em;\">7\/ Notes<\/span><\/strong><\/p>\n<p>The same can be achieved with <a href=\"http:\/\/www.linuxmint.com\/\" target=\"_blank\">LinuxMint<\/a>.<\/p>\n<p>Extract the content of the iso to mint folder and use the ipxe script below :<\/p>\n<p>#!ipxe<br \/>\nset boot-url http:\/\/${dhcp-server}<br \/>\nkernel ${boot-url}\/mint\/casper\/vmlinuz showmounts toram root=\/dev\/cifs boot=casper netboot=cifs nfsroot=${cifs-server}\/pxe\/mint NFSOPTS=-ouser=username,pass=password,ro ip=dhcp ro<br \/>\ninitrd ${boot-url}\/mint\/casper\/initrd.lz<br \/>\nboot<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We already saw earlier how to boot ubuntu over ipxe with NFS Howeber, setting an NFS server in windows is not always a given. Hence, lets see now how to do it with a CIFS share i.e a simple windows share which Tiny PXE Server can manage for you. Side note : -I could make <a href='https:\/\/labalec.fr\/erwan\/?p=506' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,45],"tags":[],"class_list":["post-506","post","type-post","status-publish","format-standard","hentry","category-boot","category-pxe","category-16-id","category-45-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=506"}],"version-history":[{"count":20,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/506\/revisions"}],"predecessor-version":[{"id":1010,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/506\/revisions\/1010"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}