Sponsored Content
Full Discussion: QEMU not booting my image
Special Forums Hardware Filesystems, Disks and Memory QEMU not booting my image Post 302485247 by Corona688 on Tuesday 4th of January 2011 05:05:58 PM
Old 01-04-2011
Quote:
Originally Posted by neur0n
Hey I never refused I said I'd appreciate it
I meant the basic grub image that couldn't contain files. Right now we don't even know if you're running qemu correctly Smilie

I'm uploading an image maker thing.

---------- Post updated at 04:05 PM ---------- Previous update was at 03:55 PM ----------

http://burningsmell.org/mkisoboot.tar.gz

You have to extract it as root since it contains device files, so be careful not to extract it anywhere insane. tar -zxf ./mkisoboot.tar.gz

Once extracted you can just run ./mkisoboot.sh (this does not need to be done as root) and it will go through all the steps of turning the stuff in initramfs/ into linux's root ramdisk, then everything in cdimage/ into boot.iso, which I burned and booted on my end. It boots memtest86 by default, but if you enter 'linux' instead it will boot to the ramdisk.

It contains the following stuff:

Code:
cdimage/
        stuff that will appear in the raw CD image -- all bootloader stuff.

cdimage/isolinux/
        dump kernels, initrds, menus, etc. into here, so isolinux can find them.

cdimage/isolinux/vmlinuz
        A 32-bit x86 linux kernel copied from one of my systems.  It probably
        runs better on AMD than Intel, substitute with one of your choice.

cdimage/isolinux/memtest86
        just another example kernel.

initramfs/
        stuff that will appear in root when Linux boots.  Dump your own stuff
        in here.  Replace initramfs/init with a script of your choosing to make it
        boot your init script instead of mine.

        I put busybox, nano, and bash in it, all compiled to run safely on
        most 32-bit processors.  I didn't put anything kernel-specific
        in it, so it shouldn't puke when you replace vmlinuz with a kernel
        better suited to you.

mkisoboot.sh
        turns initramfs/ into cdimage/isolinux/init.gz, then turns cdimage/ into
        boot.iso.

clean.sh
        removes boot.iso and cdimage/isolinux/init.gz


Last edited by Corona688; 01-04-2011 at 06:11 PM..
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Create an Ignite image on tape from Online IgniteUX image

Hi, (HP-UX 11.11) I need to create a tape image of an igniteUX image created on our igniteUX server. That is to say. I have a "Online" image of the igniteUX of the targeted system but I now need to copy it to a useable TAPE (igniteUX) image so i can build an other server from it that is not... (3 Replies)
Discussion started by: Andrek
3 Replies

2. UNIX for Dummies Questions & Answers

Anyone ever used qemu and networked it ?

hi i got a virtual linux machine running on qemu my problem is connecting it to the internet im a bit confused weather i have to make a virtual network card in qemu and than tun tap it? can anyone thats done it before help me out? (1 Reply)
Discussion started by: russian460
1 Replies

3. Programming

Qemu + gdb

Hi, I got: host machine: RedHat (RHEL6) virtual machine: RedHat (RHEL6) I run (on host machine): qemu-system-x86_64 ...... -S -s after that i run (on host machine): gdb target remote localhost:1234 set architecture i386:x86-64 and then i can use (on host machine) 'ctrl + c' to... (2 Replies)
Discussion started by: Chrisdot
2 Replies

4. Solaris

Dual Booting - Solaris image CD doesn't read in BIOS

I am trying to install solaris 10-x86 as second OS on top of Windows XP. I have downloaded iso image from Oracle website and burned into bootable cd. when I loaded into CD-drive and made changes in BIOS to boot from CD. Its not reading from CD drive. After restarting the system with CD(solaris... (8 Replies)
Discussion started by: SunSolars_admin
8 Replies

5. Shell Programming and Scripting

matching image files to create one image

Hi, I have two sets of image files. Both sets have names A to Z but set 1 ends with .cdt.png and set 2 ends with .matrix.png. I want set 1 to match with set 2 if the names match (i.e. A.cdt.png will match with A.matrix.png) and with the convert image tool (program for images), it will merge the... (6 Replies)
Discussion started by: kylle345
6 Replies

6. IP Networking

Create a Bridge for Qemu using only loopback

hello networking folks, i have 3 virtual machines that need to talk to each other How can i create a bridge to loopback ? -net tap,vlan=0,ifname=tap1 where tap1 is connected to lo:1 , tap2 is connected to lo:2 etc thx (0 Replies)
Discussion started by: TwiceDone
0 Replies

7. Virtualization and Cloud Computing

QEMU performance?

Heyas So, i like doing custom a LiveImage of my OS. Using Redhats kickstart/livecd-creator method. Anyway, so i would like to test the liveimages... AND also, i WOULD like to install FreeBSD, Solaris, or whatever, onto a Virtual Machine. I used to use Oracles Virtualbox, but eversince... (3 Replies)
Discussion started by: sea
3 Replies

8. BSD

How to install Ultrix 4.2 on Qemu?

Hi Problem changed. I've got a message showing on the screen which says Guest has not initialized the display (yet) Any how I can fix this? Thanks Jack (4 Replies)
Discussion started by: lucky7456969
4 Replies
DEBIRF(1)							   User Commands							 DEBIRF(1)

NAME
debirf - build an initrd to boot a full Debian system entirely from RAM SYNOPSIS
debirf <subcommand> [options] [args] DESCRIPTION
debirf (DEBian on Initial Ram Filesystem) is a set of tools designed to create and prepare a kernel and initial ram filesystem that can run a full-blown Debian environment entirely from RAM. debirf has various subcommands (see SUBCOMMANDS) which act on a specified debirf profile (see PROFILES). The debirf system is outlined at: http://cmrg.fifthhorseman.net/wiki/debirf EXAMPLES
Make a stock debirf rescue image using the default settings: $ tar xzf /usr/share/doc/debirf/example-profiles/rescue.tgz $ debirf make rescue Make a debirf rescue image, specifying the mirror and a local HTTP proxy: $ tar xzf /usr/share/doc/debirf/example-profiles/rescue.tgz $ DEBIRF_MIRROR=http://ftp.debian.org/debian http_proxy=http://127.0.0.1:3128/ debirf make rescue SUBCOMMANDS
debirf takes various subcommands: make [options] PROFILE Create a debirf system based on profile PROFILE. This will create the root for the profile, run all modules on the root, and then generate the kernel image (see KERNEL) and debirf initramfs. This subcommand takes various options (see OPTIONS). enter PROFILE Chroot into root of profile PROFILE, with full profile environment. makeiso PROFILE Create a bootable CD-ROM image from the kernel and initramfs in PROFILE. This requires a bootloader to be available. If grub- mkrescue (in the grub-common package on debian) is available, it will be used. Otherwise, isolinux (from the syslinux-common pack- age) is used if it is available. You may use the DEBIRF_ISO_BOOTLOADER environment variable to specify a preference manually (see below). help Output a brief usage summary. OPTIONS (for make subcommand only) -c, --check-vars check variables before make -n, --new create new root, even if old one exists -o, --overwrite debootstrap on top of old root if it exists -s, --skip skip debootstrap step altogether if old root exists -r, --root-build use real chroot to build instead of fakechroot (requires superuser privileges or CAP_SYS_CHROOT) -w, --no-warning skip superuser warning -i, --initrd-only remake initramfs from existing root (skip debootstrap and module stages) -k, --kernel-deb=KERNEL install KERNEL .deb, instead of default kernel PROFILES
A debirf profile is a directory containing a debirf.conf config file and a modules sub-directory (see MODULES). MODULES
Modules are used to configure the debirf system, and can be used to extend the capabilities of debirf. Modules are bash shell scripts that are executed in alpha-numeric order by run-parts in a chroot in the debirf root during the module stage of the debirf build. The module stage is right after the debirf debootstrap stage, and right before the initramfs archive is created. All shell variables beginning with "DEBIRF_", including those defined in the debirf.conf file, are available to the modules. NOTE: Some modules are more important to the proper functioning of debirf than others, and the ordering of modules is important. Some mod- ules may depend on certain other modules having already been, or not yet been, run. For instance, the module that cleans the debirf apt cache ("z1_clean_root") should be the last module run at the end of the module stage. KERNEL
The debirf "install-kernel" module will try to pick the most up-to-date kernel for the suite you are installing (versions 2.6 only), with the arch determined by the kernel running on the host build system. FUNCTIONS
A set of pre-defined bash shell functions are available to the modules to fasciliate configuring the debirf system: debirf_exec <command> Execute <command> within debirf root (DEBIRF_ROOT) with chroot. msg <message> Output a message to standard out during the build process. failure <message> <exit-code> Cause debirf script to fail with <exit-code>, and <message> to stderr. debirf_info_sh <message> Write one line of sh code to the debirf.info file on the debirf root. debirf_info_comment <message> Write one line of comment to the debirf.info file on the debirf root. ENVIRONMENT
The following environment variables are used by debirf: DEBIRF_LABEL debirf label (default: debirf) DEBIRF_BUILDD where to build the debirf (default: ./) DEBIRF_ARCH architecture to build (default is the architecture of the build machine) DEBIRF_SUITE suite to build from (default determined from lsb_release, otherwise "sid") DEBIRF_DISTRO distro for suite (default determined from lsb_release, otherwise "debian") DEBIRF_MIRROR mirror to pull suite (default determined by DEBIRF_DISTRO) DEBIRF_KEYRING keyring to verify debootstrap (default determined by DEBIRF_DISTRO) DEBIRF_KERNEL_FLAVOR the flavor of kernel debirf should install. Supply everything from a typical debian package name after the version number. e.g. 486, vserver-686-bigmem, openvz-amd64. (default chosen based on currently-running kernel) DEBIRF_ISO_BOOTLOADER whether to use "grub" or "isolinux" as the El Torito bootloader for debirf makeiso. if not specified, "grub" is the default. FILES
$DEBIRF_PROFILE/debirf.conf Debirf profile configuration file. Contains values for the various debirf environment variables (see ENVIRONMENT). Variables spec- ified in the debirf.conf override those specified on the command line. $DEBIRF_ROOT/etc/debirf/debirf.info File that stores various information about the debirf build. This is a bash-sourceable file. AUTHOR
Written by Jameson Rollins and Daniel Kahn Gillmor. BUGS
Debirf does not work as a non-privileged user across different versions of libc. In particular, this means that you probably won't be able to build an image from a different version of the operating system than you're using without building as root. Please report bugs in debirf via the debian BTS: http://bugs.debian.org/ COPYRIGHT
Copyright (C) 2007-2011 Jameson Rollins and Daniel Kahn Gillmor This is free software. You may redistribute copies of it under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law. SEE ALSO
/usr/share/doc/debirf/README, debootstrap(8), fakechroot(1) debirf 0.32 Dec 2011 DEBIRF(1)
All times are GMT -4. The time now is 12:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy