From: Sandeep M. <sam...@no...> - 2002-08-30 16:23:31
|
Hi, I am just starting to use UML. I created a root filesystem using umlbuilder_gui for redhat 7.3 (kernel 2.4.18-3). I was able to successfully get uml running with the created rootfs following the documentation on the uml page. It boots up with kernel "2.4.18-36um". However, now I want to be able to start UML with my own modified image. I followed the directions on the web as to how to compile the kernel and apply the uml patch to it. I was able to compile the kernel (get the linux image build). But I did not find any documentation as to how to start the UML with this compiled image. Thanks. Sandeep Malhotra |
From: David C. <da...@da...> - 2002-08-30 16:27:59
|
Sandeep Malhotra wrote: > However, now I want to be able to start UML with my own modified image. > I followed the directions on the web as to how to compile the kernel and > apply the uml patch to it. I was able to compile the kernel (get the > linux image build). But I did not find any documentation as to how to > start the UML with this compiled image. ./linux ubd0=whatever How exactly are you starting UML at the moment? David -- David Coulson http://davidcoulson.net/ d...@vi... http://journal.davidcoulson.net/ |
From: Roger B. <ro...@ro...> - 2002-08-30 17:21:42
|
Running uml with my own image ..> However, now I want to be able to start UML with my own modified image. UML Builder just expects to find 'linux' on your path somewhere. > I was able to compile the kernel (get the linux image build). But I did > not find any documentation as to how to start the UML with this compiled > image. I recommend you follow http://umlbuilder.sourceforge.net/umlcustom.shtml This will create a new RPM for you (customised any way you want), and then you can just install that RPM. (It also takes care of ensuring the modules are available etc). The resulting RPM has exactly the same layout and contents as the official one Jeff produces. Roger |
From: Cameron K. <cam...@pa...> - 2002-08-30 21:06:02
|
On Fri, 30 Aug 2002, Roger Binns wrote: >Running uml with my own image ..> However, now I want to be able to start UML with my own modified image. > >UML Builder just expects to find 'linux' on your path somewhere. Oh, so you want to use your own _kernel_? ("image" == "filesystem") If thats the case, just grab the kernel source, apply the latest matching UML diff, and compile, remembering to add the ARCH=um to each step in building the kernel, like so make dep clean linux ARCH=um Copy linux to wherever you want, then to run it: /path/to/linux ubd0=....... Its all documented on the web-page, along with how to build your own filesystem. Quick steps for building your own filesystem from scratch #Create a sparse file (here its 500MB) dd if=/dev/zero of=root_fs bs=1M count=0 seek=500 ls -lhs root_fs #Value on the left is the size currently used mke2fs -F root_fs #alter to whatever fs you want to use mkdir root_fs.d mount root_fs root_fs.d -o loop Create the contents of your new system. You might like to look at Linux From Scratch. Of you can now use tar (or cpio?) to extract the base system of whatever distro your trying to install, then install the packages you want. This is easier with some distros than others. Slackware is pretty good with it. You may have trouble with some of the graphical installers, esp if they don't have a text-mode fallback. Cameron Kerr -- Email: cam...@pa... Website: http://homepages.paradise.net.nz/~cameronk/ |