Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

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://

Here is what I did
1) Download ubuntu 10.04 32 bit ISO
2) Kept it in /var/www (apache2 is running)

3) renamed it to ubuntu.iso

and when I reached a stage where installation begins I gave path http://localhost/ubuntu.iso but I got an error any installable distribution not found.

4) After this I did

mkdir /var/www/sk

mount -t iso9660 /var/www/ubuntu.iso /var/www/sk -o loop

and this time during the installation I gave path http://localhost/sk I was able to see the contents in browser http://localhost/sk which you will see in a normal CD. But beginning installation I got same error

ValueError: Could not find an installable distribution at 'http://localhost/sk

So I want to just confirm if http install is done only this way or some other way because the installation is not proceeding.

asked 08 Mar '11, 04:28

Registered%20User's gravatar image

Registered User
323
accept rate: 0%




Ok.... so then what about doing an apt-cache server or using AptonCD?

AptonCD http://aptoncd.sourceforge.net/

apt-cache server http://www.ubuntugeek.com/tag/apt-cache-server-setup-ubuntu

If it MUST be over HTTP, this should work either naturally or you can tunnel through http if need be.

link

answered 10 Mar '11, 16:01

Ron's gravatar image

Ron ♦
9361718
accept rate: 13%

@Ron thanks I will try this out.

(11 Mar '11, 07:55) Registered User

Thanks for making this an answer. If you need any help with it, just post again. :)

(11 Mar '11, 15:33) Ron ♦

If you just need to create an ISO image from your local directory the easiest way to do this is by a following command:


mkisofs -o /my/new/iso/image.iso /path/to/your/files/

To see the content of your new ISO image, you can mount it to any directory within your local filesystem:

mount -t iso9660 /my/new/iso/image.iso /mnt/iso/ -o loop

Next we can try burn an ISO image with cdrecord. First retrieve and base name of your burning device with wodim:

wodim --devices

To burn an ISO image use a block device's base name retrieved earlier in combination with a location of your iso image:

wodim -eject -tao speed=0 dev=/dev/scd0 -v -data /my/new/iso/image.iso

To burn ISO image directly from FTP source: Note: High speed internet access is recommended

curl http://remote-ftp.rem/linux-distro-image.iso | \

cdrecord -v speed=12 dev=/dev/scd1 fs=8 -data -

Furthermore, cdrecord does not have any problem with burning your local data on a remote machine over the encrypted ssh tunnel:

mkisofs -r /path/to/my/files | \

ssh user@remote.machine "cdrecord -v speed=12 dev=/dev/scd1 fs=8 -data

link

answered 08 Mar '11, 17:16

Ron's gravatar image

Ron ♦
9361718
accept rate: 13%

@Ron no this is not the question.I have to create a local mirror to be install from the CD over http.If I create a full mirror it takes 30GB space.I want my current ISO to behave as Ubuntu mirror for another installation which is going to happen on same laptop inside a thing known as virt-manager with some steps as in snapshots here http://www.cyberciti.biz/faq/kvm-virt-manager-install-centos-linux-guest/ the only option it shows me is to do via http.I do not have a connection that will pull 700 MB ISO to install.So I have one I want to use it.

(09 Mar '11, 13:33) Registered User
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×14

Asked: 08 Mar '11, 04:28

Seen: 3,743 times

Last updated: 10 Mar '11, 16:01

powered by OSQA