Hey,

On Sat, Jun 20, 2009 at 09:42:04PM +0530, kanishk rastogi wrote:
> I wanted to use ubuntu 8.04 in my uml machine.
> How do i create a filesystem image with ubuntu 8.04 installed...

assuming that you already have ubuntu or debian on you host
machine, follow these steps:

1. Create an empty filesystem image:
dd if=/dev/zero of=<image_file.bin> bs=1024 count=<image size in kB>
(Minimal 8.04 installation needs about 200MB)

2. Format the image with a filesystem of your choice (here ext3):
mkfs.ext3 <image_file.bin>
(You will be indicated, that the image file is not a block special
device, do proceed anyway.)

3. Mount the image file:
sudo mount <image_file.bin> <mount_point_of_your_choice> -o loop
(Obviously you must be allowed to use sudo...)

4. Install debootstrap on your host system:
sudo aptitude install debootstrap

5. Install ubuntu into the image filesystem:
sudo debootstrap hardy <mount_point_as_above>

6. Copy uml kernel modules into the image filesystem:
sudo cp -a <uml_modules_dir> <mount_point_as_above>/lib/modules/

7. Unmount the image file
sudo umount <mount_point_as_above>

8. Finished! Test the image:
<uml_binary> ubda=<image_file.bin>

-- 
Best Regards,
Leonid Chaichenets.

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to