Answers to: how to install Ubuntu over httphttp://linuxexchange.org/questions/1504/how-to-install-ubuntu-over-http<p>Hi, I am having a situation where I can not use a CD or PxE boot or wubi to install.I need to necessarily do an http install of Ubuntu.I am basically trying to create a guest OS in a virtualization setup on Xen on a non VT hardware.On a non VT hardware the virt-manager does not allow to install from local ISO or PXE even the only option is via a URL on http://</p> <p>Here is what I did<br> 1) Download ubuntu 10.04 32 bit ISO<br> 2) Kept it in /var/www (apache2 is running) </p> <p>3) renamed it to ubuntu.iso</p> <p>and when I reached a stage where installation begins I gave path <a href="http://localhost/ubuntu.iso" rel="nofollow">http://localhost/ubuntu.iso</a> but I got an error any installable distribution not found.</p> <p>4) After this I did</p> <pre><code>mkdir /var/www/sk mount -t iso9660 /var/www/ubuntu.iso /var/www/sk -o loop </code></pre> <p>and this time during the installation I gave path <a href="http://localhost/sk" rel="nofollow">http://localhost/sk</a> I was able to see the contents in browser <a href="http://localhost/sk" rel="nofollow">http://localhost/sk</a> which you will see in a normal CD. But beginning installation I got same error</p> <pre><code>ValueError: Could not find an installable distribution at 'http://localhost/sk </code></pre> <p>So I want to just confirm if http install is done only this way or some other way because the installation is not proceeding.</p>enThu, 10 Mar 2011 16:01:00 -0500Answer by Ronhttp://linuxexchange.org/questions/1504/how-to-install-ubuntu-over-http/1508<p>Ok.... so then what about doing an apt-cache server or using AptonCD?</p> <p>AptonCD <a href="http://aptoncd.sourceforge.net/" rel="nofollow">http://aptoncd.sourceforge.net/</a></p> <p>apt-cache server <a href="http://www.ubuntugeek.com/tag/apt-cache-server-setup-ubuntu" rel="nofollow">http://www.ubuntugeek.com/tag/apt-cache-server-setup-ubuntu</a></p> <p>If it MUST be over HTTP, this should work either naturally or you can tunnel through http if need be.</p>RonThu, 10 Mar 2011 16:01:00 -0500http://linuxexchange.org/questions/1504/how-to-install-ubuntu-over-http/1508Answer by Ronhttp://linuxexchange.org/questions/1504/how-to-install-ubuntu-over-http/1505<p>If you just need to create an ISO image from your local directory the easiest way to do this is by a following command:</p> <pre><code> mkisofs -o /my/new/iso/image.iso /path/to/your/files/ </code></pre> <p>To see the content of your new ISO image, you can mount it to any directory within your local filesystem:</p> <p><pre><code></p> <h1>mount -t iso9660 /my/new/iso/image.iso /mnt/iso/ -o loop</h1> <p></pre></code></p> <p>Next we can try burn an ISO image with cdrecord. First retrieve and base name of your burning device with wodim:</p> <p><pre><code></p> <h1>wodim --devices</h1> <p></pre></code></p> <p>To burn an ISO image use a block device's base name retrieved earlier in combination with a location of your iso image: <pre><code></p> <h1>wodim -eject -tao speed=0 dev=/dev/scd0 -v -data /my/new/iso/image.iso</h1> <p></pre></code></p> <p>To burn ISO image directly from FTP source: Note: High speed internet access is recommended <pre><code></p> <h1>curl <a href="http://remote-ftp.rem/linux-distro-image.iso" rel="nofollow">http://remote-ftp.rem/linux-distro-image.iso</a> | \</h1> <p>cdrecord -v speed=12 dev=/dev/scd1 fs=8 -data - </pre></code></p> <p>Furthermore, cdrecord does not have any problem with burning your local data on a remote machine over the encrypted ssh tunnel: <pre><code></p> <h1>mkisofs -r /path/to/my/files | \</h1> <p>ssh user@remote.machine "cdrecord -v speed=12 dev=/dev/scd1 fs=8 -data </pre></code></p>RonTue, 08 Mar 2011 17:16:10 -0500http://linuxexchange.org/questions/1504/how-to-install-ubuntu-over-http/1505