虚拟机修复
A:引导出现问题
1:破坏引导,虚拟里面做
dd if=/dev/zero of=/dev/vda bs=446 count=1
2:启动虚拟机
booting from hard disk…
force poweroff
virt-manager
3:点虚拟机
4:点灯泡
processor –> add hardware
1:storage Browse /iso/rhel.. CDROM device SATA finish
SATA CDROM 1 readonly
boot options SATA CDROM 1
5:**启动虚拟机
选择
troubleshooting —> rescue a redhat enterprose linux system
选择
1
enter键
chroot /mnt/sysimage/
grub2-install /dev/vda
此时按enter得到一个shell
等待出现 no error reported
exit
exit
关闭虚拟机
选择
virtio disk 1 从硬盘启动