I need to create an http url at my laptop to have a Ubuntu installation in my laptop on a Xen environment. This is what the final thing will look like.
The host and client are both going to be my laptop. I Googled and came across apt-mirror and some other packages. I do not want to archive the entire 15 GB Ubuntu repositories on my machine.
It is not possible to use a CD, ISO, loop mounted disk. I have tried using netboot image on local machine which failed because if you are attempting to create a virtual machine on a hardware which does not support VT virt-manager installer necessarily needs a URL of this sort
http://archive.ubuntu.com/ubuntu/dists/hardy/main/installer-i386/current/images/netboot/
Any other option to create guest OS is simply grayed out.
My Ethernet connections do not work when I boot with Xen-4.0 and a pv-ops Dom0 kernel from Jeremy's tree. Which is where I have to do this work. So I have to create a URL structure which is similar to Ubuntu mirrors. So how can I do this in bare minimum so that at least the console boots and once the console comes I can do some work.
Using apt-mirror you can get it down to only 7.5 GiB.
You can comment out the source, updates, security, universe and multiverse repositories in its config file,
/etc/apt/mirror.list
This leaves you only with the contents of main. As main contains everything that is shipped on the different CD images, it should be enough to get you installed. It might not be the smallest solution, but it's probably the simplest.This answer provides to way of doing what you are asking. https://askubuntu.com/a/154580/1110324
Edit: I found that when sharing the repro using the steps above, I needed to pass
-o Acquire::AllowInsecureRepositories=true
the the apt commands to get it to work.