@olivierlambert

I have tried this, but not work.

root@sl1802:~# grub-install /dev/xvda
Searching for GRUB installation directory ... found: /boot/grub
WARNING: tempfile is deprecated; consider using mktemp instead.
WARNING: tempfile is deprecated; consider using mktemp instead.
The file /boot/grub/stage1 not read correctly.