Guest grub file modification.

Use grub file in boot patition instead of symbolic link file in /etc/,
since the link file may be corrupted or not exist some times.
Sync the file system after file modification for disk synchronization.
Merge pull request #1898 from rbian/libvirt_vm

Guest grub file modification.