[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building grub2 for use as a kernel on qemu

From: Andrei Borzenkov
Subject: Re: Building grub2 for use as a kernel on qemu
Date: Fri, 3 Feb 2017 06:15:41 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

02.02.2017 22:30, Shaun Reitan пишет:
> I guess the question is, should i be using i386-qemu?  For kicks i just
> built a image using
> ./grub-mkstandalone -O i386-qemu -o grub2.img boot/grub/grub.cfg -d
> grub-core
> and qemu will use it, however when i connect to the VNC console all i
> see is a bunch of colorful giberish.

QEMU platform is intended to run on "bare metal" replacing BIOS, i.e.

qemu-system-x86_64 -bios grub2.img

You will need to include at_keyboard in image to get console input.

> -- 
> Shaun
> ------ Original Message ------
> From: "Andrei Borzenkov" <address@hidden>
> To: "Shaun Reitan" <address@hidden>; "address@hidden"
> <address@hidden>
> Sent: 2017-02-02 12:01:58 AM
> Subject: Re: Building grub2 for use as a kernel on qemu
>> On Thu, Feb 2, 2017 at 6:25 AM, Andrei Borzenkov <address@hidden>
>> wrote:
>> ...
>>>>  grub-mkimage -O i386-pc -c grub.cfg -o grub2.img at_keyboard
>>>> configfile
>>>>  biosdisk ext2 linux serial halt minicmd terminal all_video cat echo
>>>> gzio
>>>>  search linux16 normal disk test true fat memdisk tar ls sleep -p
>>>>  /usr/src/grub/grub-core/
>> ...
>>>  Use grub-mkstandalone to create image that includes internal memory
>>> disk
>>>  and place your config on this memory disk. Do not include your modules
>>>  in image itself. By default grub-mkstandalone adds all available
>>>  modules; if size is an issue (but this is really a couple of megabytes,
>>>  so I do not expect it), you can restrict module list and other
>>>  components - see help output.
>> Sorry, missed that you use i386-pc platform, not i386-qemu. Then size
>> of boot image does matter, you may want to at least exclude themes and
>> translations (if any). Full standalone image that includes all bells
>> and whistles for GUI boot does not fit in available memory on this
>> platform.
>> _______________________________________________
>> Help-grub mailing list
>> address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]