<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>blog.crox.net (Entries tagged as diskless)</title>
    <link>https://blog.crox.net/</link>
    <description></description>
    <dc:language>en</dc:language>
    <generator>Serendipity 2.5.0 - http://www.s9y.org/</generator>
    <pubDate>Sun, 02 Aug 2015 14:25:40 GMT</pubDate>

    <image>
    <url>https://blog.crox.net/templates/2k11/img/s9y_banner_small.png</url>
    <title>RSS: blog.crox.net - </title>
    <link>https://blog.crox.net/</link>
    <width>100</width>
    <height>21</height>
</image>

<item>
    <title>Install Ubuntu without cd-rom over the network (Ubuntu netboot install, works for CF or USB too)</title>
    <link>https://blog.crox.net/archives/39-Install-Ubuntu-without-cd-rom-over-the-network-Ubuntu-netboot-install,-works-for-CF-or-USB-too.html</link>
    
    <comments>https://blog.crox.net/archives/39-Install-Ubuntu-without-cd-rom-over-the-network-Ubuntu-netboot-install,-works-for-CF-or-USB-too.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=39</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=39</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    It&#039;s quite easy actually, once you know where to look.&lt;br /&gt;
&lt;br /&gt;
Just browse to http://archive.ubuntu.com/ubuntu/dists/&lt;em&gt;[version]&lt;/em&gt;/main/installer-&lt;em&gt;[arch]&lt;/em&gt;/current/images/netboot/ubuntu-installer/&lt;em&gt;[arch]&lt;/em&gt;/ - eg &lt;a href=&quot;http://archive.ubuntu.com/ubuntu/dists/intrepid/main/installer-i386/current/images/netboot/ubuntu-installer/i386/&quot; &gt;http://archive.ubuntu.com/ubuntu/dists/intrepid/main/installer-i386/current/images/netboot/ubuntu-installer/i386/&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
The two files &quot;linux&quot; and &quot;initrd.gz&quot; can be used with pxegrub to boot a PC with a fully-working Ubuntu-installer (text-mode). See &lt;a href=&quot;http://blog.crox.net/plugin/tag/diskless&quot; &gt;my other posts about my diskless / network boot setup&lt;/a&gt; for details on how I configured the network booting part, based on dhcp, tftp and pxegrub.&lt;br /&gt;
&lt;br /&gt;
Alternatively, if you have a CF card USB stick etc. with a working GRUB install, you can just copy the two files over there.&lt;br /&gt;
&lt;br /&gt;
What I still haven&#039;t found is how to do an Ubuntu NFS install directly. For now I&#039;m stuck with &lt;a href=&quot;http://blog.crox.net/archives/29-Diskless-Ubuntu-Feisty-Fawn-NFS-install.html&quot; &gt;my diskless Ubuntu install procedure&lt;/a&gt; where I first do a hard disk install and then make it diskless.&lt;br /&gt;
&lt;br /&gt;
Credits: the whole thing was inspired by &lt;a href=&quot;https://help.ubuntu.com/community/Installation/NetbootInstallFromInternet&quot; &gt;this article&lt;/a&gt;.&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Mon, 08 Sep 2008 20:05:39 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/39-guid.html</guid>
    <category>diskless</category>
<category>linux</category>
<category>netboot</category>
<category>nfs</category>
<category>ubuntu</category>

</item>
<item>
    <title>Diskless Ubuntu (Feisty Fawn NFS install)</title>
    <link>https://blog.crox.net/archives/29-Diskless-Ubuntu-Feisty-Fawn-NFS-install.html</link>
    
    <comments>https://blog.crox.net/archives/29-Diskless-Ubuntu-Feisty-Fawn-NFS-install.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=29</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=29</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    Tonight I installed my first diskless Ubuntu system. The version I used is the latest available as of today, 7.04 &quot;FeistyFawn&quot;. This article covers the client part.&lt;br /&gt;
&lt;br /&gt;
My other diskless machines all run Gentoo (for the time being). I&#039;ve described previously &lt;a href=&quot;http://blog.crox.net/archives/2-Diskless-Linux-on-a-Sunblade-100.html&quot;  title=&quot;Diskless Linux on a Sunblade 100&quot;&gt;how I set up my SB 100&lt;/a&gt;, the rest of the setup was based on &lt;a href=&quot;http://gentoo-wiki.com/HOWTO_Gentoo_Diskless_Install&quot;  title=&quot;HOWTO Gentoo Diskless Install&quot;&gt;this article&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
The following two articles were helpful:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://help.ubuntu.com/community/Installation/OnNFSDrive&quot;  title=&quot;Ubuntu Installation on NFS Drive&quot;&gt;https://help.ubuntu.com/community/Installation/OnNFSDrive&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://developer.novell.com/wiki/index.php/Feisty/HOWTO:_Convert_Ubuntu_to_Diskless&quot;  title=&quot;HOWTO convert Ubuntu to Diskless&quot;&gt;http://developer.novell.com/wiki/index.php/Feisty/HOWTO:_Convert_Ubuntu_to_Diskless&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
However I found some of the info to be uncomplete or outdated.&lt;br /&gt;
&lt;br /&gt;
From what I have read, unlike with Gentoo, it seems that there is no easy way to get a working diskless Ubuntu system directly. Instead, you have to install to a disk first, and then make your setup diskless. I did not really want to open the box, so I tried first to install on a 2 GB CF card, which didn&#039;t work because the card was full before the install completed (du now reports that the system is 2.1 GB big). So I ended up putting a disk in the box, and I ran a regular install.&lt;br /&gt;
&lt;br /&gt;
Note: As in the SB100 article, 10.0.0.10 will be my dhcp/nfs/tftp server (&#039;fileserver&#039;). 10.0.0.30 will be the Ubuntu desktop.&lt;br /&gt;
&lt;br /&gt;
Once that was completed, instead of rebooting as suggested by the installer, I opened a shell (gnome-terminal), and ran:&lt;br /&gt;
&lt;pre&gt;sudo su -&lt;br /&gt;
mkdir /mnt/tmp&lt;br /&gt;
mkdir /mnt/nfs&lt;br /&gt;
mount /dev/sda1 /mnt/tmp&lt;br /&gt;
mount 10.0.0.10:/diskless/ubuntu /mnt/nfs&lt;br /&gt;
cp -a /mnt/tmp/* /mnt/nfs/&lt;/pre&gt;&lt;br /&gt;
After that, there are just a couple of things that need to be changed:&lt;br /&gt;
&lt;pre&gt;chroot /mnt/nfs&lt;br /&gt;
mount -t proc proc proc&lt;br /&gt;
vi etc/initramfs-tools/initramfs.conf&lt;/pre&gt;&lt;br /&gt;
and make sure you have:&lt;pre&gt;BOOT=nfs&lt;/pre&gt;&lt;br /&gt;
then run:&lt;pre&gt;update-initramfs -u&lt;/pre&gt;&lt;br /&gt;
Now check what you have in /boot, and update your network boot config files accordingly. I use pxegrub, and here is how /boot/grub.lst looks like:&lt;br /&gt;
&lt;pre&gt;default 0&lt;br /&gt;
timeout 10&lt;br /&gt;
title=Diskless Ubuntu&lt;br /&gt;
root (nd)&lt;br /&gt;
kernel /diskless/tv/boot/vmlinuz-2.6.20-15-generic ip=dhcp root=/dev/nfs nfsroot=10.0.0.10:/diskless/tv ro quiet splash&lt;br /&gt;
initrd /diskless/tv/boot/initrd.img-2.6.20-15-generic&lt;/pre&gt;&lt;br /&gt;
Finally, don&#039;t forget to update etc/fstab and etc/network/interfaces. I&#039;ve read several theories, here is what worked for me:&lt;br /&gt;
&lt;br /&gt;
fstab:&lt;br /&gt;
&lt;pre&gt;# /etc/fstab: static file system information.&lt;br /&gt;
#&lt;br /&gt;
# &lt;file system&gt; &lt;mount point&gt;   &lt;type&gt;  &lt;options&gt;       &lt;dump&gt;  &lt;pass&gt;&lt;br /&gt;
proc            /proc           proc    defaults        0       0&lt;br /&gt;
/dev/nfs        /               nfs     defaults        0       0&lt;br /&gt;
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0&lt;/pre&gt;&lt;br /&gt;
network/interfaces:&lt;br /&gt;
&lt;pre&gt;auto lo&lt;br /&gt;
iface lo inet loopback&lt;br /&gt;
&lt;br /&gt;
auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
        address 10.0.0.30&lt;br /&gt;
        netmask 255.255.255.0&lt;br /&gt;
        network 10.0.0.0&lt;br /&gt;
        broadcast 10.0.0.255&lt;br /&gt;
        gateway 10.0.0.1&lt;/pre&gt;&lt;br /&gt;
(note: commenting out eth0 as suggested in some places made the system hang during the boot process.)&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Thu, 05 Jul 2007 20:23:16 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/29-guid.html</guid>
    <category>diskless</category>
<category>linux</category>
<category>netboot</category>
<category>nfs</category>
<category>ubuntu</category>

</item>
<item>
    <title>Diskless Linux on a Sunblade 100</title>
    <link>https://blog.crox.net/archives/2-Diskless-Linux-on-a-Sunblade-100.html</link>
    
    <comments>https://blog.crox.net/archives/2-Diskless-Linux-on-a-Sunblade-100.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=2</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=2</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    &lt;i&gt;Initially written on 2006-05-17&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
On my other (x86/amd64) diskless machines, I use PXE with pxegrub. My setup is quite similar to (and inspired by) &lt;a href=&quot;http://gentoo-wiki.com/HOWTO_Gentoo_Diskless_Install&quot;  title=&quot;HOWTO Gentoo Diskless Install&quot;&gt;this one&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Now, on sparc machines, there is no BIOS nor PXE. But you don&#039;t need all that, since you have the &lt;a href=&quot;http://en.wikipedia.org/wiki/Open_Boot&quot;  title=&quot;Open Boot&quot;&gt;Open Boot&lt;/a&gt;... This is how I managed to make my Sunblade 100 totally diskless (using a &quot;vanilla&quot; kernel, the latest version being currently 2.6.16.16).&lt;br /&gt;
&lt;br /&gt;
Note: In this example, 10.0.0.10 will be my dhcp/nfs/tftp server which I will refer to as &#039;fileserver&#039;. 10.0.0.30 is the sunblade.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;- when configuring the kernel:&lt;/b&gt;&lt;br /&gt;
&lt;pre&gt;[*] Default bootloader kernel arguments (ip=dhcp root=/dev/nfs nfsroot=10.0.0.10:/diskless/sunblade)&lt;/pre&gt;&lt;br /&gt;
(in &quot;Networking&quot; -&gt; &quot;Networking support&quot; -&gt; &quot;Networking options&quot;)&lt;br /&gt;
&lt;pre&gt;[*]   IP: kernel level autoconfiguration&lt;br /&gt; [*]     IP: DHCP support&lt;br /&gt; [*]     IP: BOOTP support&lt;br /&gt; [*]     IP: RARP support&lt;/pre&gt;&lt;br /&gt;
(in &quot;File systems&quot; -&gt; &quot;Network File Systems&quot;)&lt;br /&gt;
&lt;pre&gt;&lt;*&gt; NFS file system support&lt;br /&gt;[*]   Provide NFSv3 client support&lt;br /&gt;[*] Root file system on NFS&lt;/pre&gt;&lt;br /&gt;
Configure all other settings as you would do for a disk install, but make sure you compile your NIC driver in the kernel (not as module)&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;pre&gt;make&lt;br /&gt;make modules_install&lt;br /&gt;make tftpboot.img ROOT_IMG=/dev/null&lt;/pre&gt;(the resulting tftpboot.img will be in arch/sparc64/boot/tftpboot.img)&lt;br /&gt;
&lt;br /&gt;
I copied tftpboot.img to &lt;i&gt;fileserver&lt;/i&gt; as tftpimage-2.6.16.16, and added the following entry in my dhcpd.conf:&lt;br /&gt;
&lt;pre&gt;host sunblade {&lt;br /&gt;    hardware ethernet 00:03:BA:08:12:34;&lt;br /&gt;    fixed-address 10.0.0.30;&lt;br /&gt;    always-reply-rfc1048 on;&lt;br /&gt;    filename &quot;sunblade/boot/tftpimage-2.6.16.16&quot;;&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Finally, to net-boot your diskless Sunblade you&#039;ll need to enter&lt;pre&gt;boot net:dhcp&lt;/pre&gt;in the Open Boot prompt. When you are happy with it, you can set it as default:&lt;pre&gt;setenv boot-device net:dhcp cdrom disk net&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Notes&lt;/u&gt;:&lt;br /&gt;
&lt;br /&gt;
- apparently, instead of using make tftpboot.img you can just &quot;elftoaout&quot; vmlinux&lt;br /&gt;
&lt;br /&gt;
- another alternative would be to use tilo, which comes with silo, to build the image&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sat, 31 Mar 2007 22:14:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/2-guid.html</guid>
    <category>diskless</category>
<category>gentoo</category>
<category>linux</category>
<category>netboot</category>
<category>nfs</category>
<category>sparc</category>

</item>

</channel>
</rss>
