Linux cannot be booted in virtual machines

Source: Internet
Author: User
Article Title: Linux cannot be booted in virtual machines. Linux is a technology channel of the IT lab in China. Some basic categories, such as desktop applications, Linux system management, kernel research, embedded systems, and open source, have created a virtual machine, which also drives the learning of peripheral students, after installing a linux system for them, the system often fails to boot after powe off. This is because the grub boot program is not found, then we will fix the descent. Here we still use redhat9 as the column.

First, enter the virtual machine, press F2 at the beginning of the boot screen, enter the bios configuration, select the disc, use our installation disk, and insert the first one, press F5 at run time to enter the prompt linux-rescue press enter (Press enter all the way down), enter single-user mode, # enter the command, enter cd/mnt/systembin here and mount the file like/boot, and then enter the sbin file # Run cd sbin. /grub-install/dev/hda)

Run grub./grub and enter it in the grub command line.

> Root (hd0, 0)
> Setup (hd0)
> Kerner/vmlinux _ you can press the TAP button to display a prompt (so you have to write down your system information)
> Initrd/initrd TAp (loading file system)
> Reboot

Restart to see if it can be loaded.

In this way, at least you can find the grub program and solve the problem later. You have to study hard.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.