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