GNS3 - Microcore Live CD

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Login Register FAQ Search

It is currently Sat Aug 28, 2010 10:03 am

PIV Systems High-Speed PIV, Micro PIV LIF-PIV Systems www.lavision.com

USB DUX Linux USB Data Acquisition The only Linux USB DAQ Available www.linux-usb-daq.com

lemon affordable vps Best Quality Linux and Windows VPS Start Just 15$ Per Month www.lemonvps.com

View unanswered posts | View active topics


Board index » GNS3 » HOWTOs All times are UTC

Microcore Live CD installation on Qemu image

Page 1 of 1 [ 3 posts ]

Print view Previous topic | Next topic

Author Message

brezular Post subject: Microcore Live CD installation on Qemu image Posted: Thu Jul 22, 2010 9:42 pm

Hi,

Joined: Mon Nov 10, 2008 I got a question about installation Microcore Linux on Qemu image. There is lots of stuff about it so I decide to write this
10:31 am
Posts: 249 tutorial for everyone who wish to install Microcore by his/her own.
Location: Slovakia
1. First of all you need to download current microcore image (live CD version 3.0)

Quote:

wget http://distro.ibiblio.org/pub/linux/dis ... urrent.iso .

2. Create virtual qemu disk (use qcow2 format to reduce size of image)

qemu-img create -f qcow2 ./linux-microcore.img 20M

3. Run qemu virtual disk "linux-microcore" with microcore-current.iso mounted to cdrom

qemu -no-acpi -boot d -hda linux-microcore.img -cdrom ./microcore-current.iso

4. After microcore boot install "cfdisk.tcz" and "grub-0.97-splash.tcz" on qemu disk (image)

tce-load -wi cfdisk.tcz


tce-load -wi grub-0.97-splash.tcz

5. Run cfdisk command to create partition on /dev/hda

cfdisk /dev/hda

Now the Cfdisk Menu is opened. Use arrow keys and ENTER for navigate trough Menu

Navigate and select NEW -> Primary

Leave default size 16.45 MB for partiton.

Select Bootable for new Primary partition.


Select Write - partiton will be written on disk
Select Quit - you leave cfdisk Menu

6. Format new partition for ext3 file system

mkfs.ext3 /dev/hda1

7. Rebuild fstab file


rebuildfstab

8. Mount the new installed partition

edit /etc/fstab and add this line to the end of file

/dev/hda1/ /mnt/had1/ ext3 noauto,users,exec 0 0

Now re-mount content of /etc/fstab:

mount -av

Check if /dev/hda1 is mounted with df command:

df -h

If not try to mount it:

mount /mnt/hda

9. Create directories /mnt/hda1/boot/grub/

mkdir -p /mnt/hda1/boot/grub/

10. Mount CD again

mount /mnt/hdc

11. Copy content of /mnt/hdc/boot/ from CD to /mnt/hda1/boot/

cp -p /mnt/hdc/boot/* /mnt/hda1/boot

bzImage and tinycore.gz should be copied to /mnt/hda1/boot/ directory

12. Create tce directory for extension

mkdir -p /mnt/hda1/tce

13. Prepare file for backup and restore (create empty file mydata.tgz)

touch /mnt/hda1/tce/mydata.tgz

14. Check if directory /usr/lib/grub/ exist.

If not, reboot qemu image and run image with this command

qemu -no-acpi -boot d -hda linux-microcore.img -cdrom ./microcore-current.iso

Then you neeed install grub-0.97-splash again:

tce-load --wi grub-0.97-splash.tcz

15. Install grub

cp -p /usr/lib/grub/i386-pc/* /mnt/hda1/boot/grub/

16. Create file /mnt/hda1/boot/grub/menu.lst

vi /mnt/hda1/boot/grub/menu.lst
Press i (enters insert mode)

default 0
timeout 10
title microcore 3.0
kernel /boot/bzImage quiet
initrd /boot/tinycore.gz
Press <esc> when done. Enter :x (saves and quits)

17. Run grub

grub

Write these lines to grub prompt:

root (hd0,0)
setup (hd0)
quit

18. Eject Live CD and reboot

eject /dev/hdc
reboot

19. Test qemu disk

qemu ./linux-microcore.img

Your new image should boot now and you can start load extensions (programs)

20. Installation of Extensions

20.1. Add ipv6 support to microcore

a) Load extension to add ipv6 support to microcore

tce-load -iw ipv6-2.6.33.3-tinycore.tcz

b) Make loading module ipv6 persistent and load the modul

echo "modprobe ipv6" >> /opt/bootlocal.sh


/opt/bootlocal.sh
/usr/bin/filestool.sh backup

20.2. Add ssh, iptables and tcpdump support to microcore

tce-load -wi openssh


tce-load -wi iptables
tce-load -wi tcpdump

Reboot image and enjoy it ;-)

Read more how to install Tinycore (Microcore + GUI) at:

Quote:

http://tinycorelinux.com/install.html

The Qemu image "linux-microcore.img" we made in this tutorial is available for download:

Quote:

http://rapidshare.com/files/408477504/linux-microcore.img.html

Cheers,

High precision DAQ card 16 bit, 50 mV to 10 V input ranges Sampling rate 100 kS/s up to 3 MS/s www.spectrum-instrumentation.com
CCNA / CCNP Boot Camps in Kerala, the God's Own Country Best lab facilities, Best faculty www.ipsr.org
Indoor Research Robot Affordable, Capable, and Expandable Program in Linux or Windows robotics.coroware.com/corobot
Notebook & Laptop Harga menarik, model terlengkap, di Situs Iklan jual/beli Terbesar www.tokobagus.com
_________________
Brezular

Top

cisco006 Post subject: Re: Microcore Live CD installation on Qemu image Posted: Thu Jul 22, 2010 11:25 pm

brezular wrote:
Joined: Sun Feb 01, 2009
8:29 am
Hi,
Posts: 54 19. Test qemu disk
qemu ./linux-microcore.img
Your new image should boot now and you can start load extensions (programs)
Cheers,

Thanks for this...i manage to get the installation working. One question regarding step 19.
Should this be qemu -m 48 ./linux-microcore.img

Thanks

Top

brezular Post subject: Re: Microcore Live CD installation on Qemu image Posted: Thu Jul 22, 2010 11:46 pm

Hi,

Joined: Mon Nov 10, 2008 Quote:


10:31 am
Posts: 249 Should this be qemu -m 48 ./linux-microcore.img
Location: Slovakia

you can specify how much memory your image takes with -m parameter (48MB).

If "m" is missing qemu runs image with default value (125MB). You can check it with "free" command in Microcore.

Cheers,

_________________
Brezular

Top

Display posts from previous: All posts Sort by Post time Ascending Go

Page 1 of 1 [ 3 posts ]

Board index » GNS3 » HOWTOs All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum


You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: Go Jump to: HOWTOs Go


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

You might also like