1 |
Bill Kenworthy wrote: |
2 |
> On 10/03/16 01:56, Rich Freeman wrote: |
3 |
>> On Wed, Mar 9, 2016 at 12:41 PM, hw <hw@×××××.de> wrote: |
4 |
>>> |
5 |
>>> I'm stuck with 'Could not find the root block device |
6 |
>>> in UUID= ...' when trying to boot the guest. |
7 |
>>> |
8 |
>>> Is grub2 unable to work with virtio devices? |
9 |
>>> |
10 |
>> |
11 |
>> Are you sure that is a grub2 message? It seems more likely that this |
12 |
>> is a message from the kernel (unless it is referring to the grub2 root |
13 |
>> - posting the entire error would probably help here, and I didn't |
14 |
>> realize grub2 even can find its root with a UUID assuming it actually |
15 |
>> can). Does your kernel have virtio support enabled? What initramfs |
16 |
>> are you using? The problem could lie with either. See if you can get |
17 |
>> the initramfs to give you a shell (usually this can be done with a |
18 |
>> kernel command line option) and see what block devices it can see (run |
19 |
>> blkid or such). |
20 |
>> |
21 |
>> If you're not using an initramfs then that is your problem. You can't |
22 |
>> use UUID to reference your root if you aren't using an initramfs. |
23 |
>> |
24 |
> |
25 |
> I had to use this on grub install: |
26 |
> |
27 |
> grub2-install --target=i386-pc /dev/vda && \ |
28 |
> grub2-mkconfig -o /boot/grub/grub.cfg |
29 |
> |
30 |
> It couldn't find the right module without the hint. |
31 |
|
32 |
That seems to work just fine: |
33 |
|
34 |
|
35 |
livecd linux # grub2-install /dev/vda |
36 |
Installing for i386-pc platform. |
37 |
installation beendet. Keine Fehler aufgetreten. |
38 |
|
39 |
|
40 |
Do you think it claims to have worked but actually didn't? |