Page 1 of 1
Boot a Kernel and a initrd
Posted: 6. Aug 2012, 16:02
by edge
Hi,
Is possible boot a Kernel and a initrd file with VirtualBox,
A think similar to:
qemu-system-x86_64 -kernel kernel -initrd rootfs.cpio.gz
For qemu.
Thanks Bye
Re: Boot a Kernel and a initrd
Posted: 6. Aug 2012, 17:18
by mpack
A VM is a simulated PC. The simulation includes a BIOS which can boot the MBR of a disk (or similar from a CD). What happens after that depends on the contents of the MBR. So yes, if you can place (say) grub boot loader in there then you could load a non standard Linux kernel. However the discussion of how is really beyond the scope of these forums, since being virtual adds nothing to and takes nothing from the problem.
ps. Moving to "Linux Guests", since the choice of host OS seems to be irrelevant to the question.
Re: Boot a Kernel and a initrd
Posted: 6. Aug 2012, 17:57
by edge
Thanks for your answers but I have not understood as I can act.
Can you explain a little more?
Thanks
Re: Boot a Kernel and a initrd
Posted: 6. Aug 2012, 18:00
by michaln
edge wrote:Can you explain a little more?
There are no Linux specific hacks in VirtualBox. Operating systems are booted exactly the same way a real PC works, i.e. through a boot loader.
Re: Boot a Kernel and a initrd
Posted: 6. Aug 2012, 18:19
by edge
Ok but how can I say grub to load my kernel (in virtualbox)?
Re: Boot a Kernel and a initrd
Posted: 6. Aug 2012, 21:32
by edge
Can you link me a guide about?
Thanks
Re: Boot a Kernel and a initrd
Posted: 6. Aug 2012, 21:47
by Perryg
You are going to need to boot the guest from a live CD and do the normal preparations for the drive and then install grub.
http://www.google.com/search?q=install+ ... channel=fs
Re: Boot a Kernel and a initrd
Posted: 7. Aug 2012, 18:20
by edge
Hi,
I have installed Ubuntu, then Grub2, so through shared Folder , I have copied kernel and initrd in my Ubuntu Machine(Virtualized), then
I added an entry in grub2:
Code: Select all
..
linux /boot/kernel
initrd /boot/initrd
When I boot this customize Kernel, boot doesn't finish and it seems crash just before login.
Is possibile that this happens because initrd is a Buildroot initrd (with busybox)?
Thankyou
Bye