LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-13-2023, 02:22 AM   #1
JonAng
LQ Newbie
 
Registered: Dec 2023
Posts: 2

Rep: Reputation: 0
CentOS Guest Machines in Proxmox VE not bootable anymore


I have a guest machines (let's call it AutoInstall) running CentOS, running off a Proxmox VE. Other guest machines on that same proxmox VE are not having any issue booting up. Except this Autoinstall machine.

When I click on the noVNC console, I can see Autoinstall is trying to boot up. It says 'Booting from harddisk', then 'Cannot find bootable device', and then it repeat itself non stop.

So I managed to boot Autoinstall up using CDROM, and found there's /dev/sda, /dev/sdb and /dev/sdb1.

But I am not sure which device is the boot up device.

When I do a 'fdisk -l", I see
/dev/sda does not have any partition.
/dev/sdb1 having "Disktype label:dos"

From Proxmox GUI, under Options, I can see Sata0, Sata1, and CDROM as bootup option.

So I choose Sata0 and reboot. In the console, I see "No MBR magic. Warning: treating disk as raw. Booting....". and no further response.

When I choose Sata1 and reboot, In the console I see "Booting..." and no further response.

Question: How do I find out which disk is actually the root partition/disk? IF it's corrupted, how can I restore back, but I do not have any backup/snapshot. Will I loose the data after setup from scratch the CentOS? Thanks for any advice.

Last edited by JonAng; 12-13-2023 at 02:45 AM.
 
Old 12-13-2023, 04:59 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,561

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
Quote:
But I am not sure which device is the boot up device.
You indicate you have 2 devices and you have tried booting from both with no success so you have your answer, neither. When you ran fdisk, did it show a filesystem on sda, should be under the Type column. If you run parted -l as root, it should tell you the filesystem type if one exists. Have you been using this system for some time? Is it new, did it ever boot successfully? Disklabel is for the device not the partition and if yours shows 'dos' then it is likely a Legacy/MBR install. With a Legacy install, boot code is inserted into the MBR and a message you posted would seem to indicate that did not happen.

If you can boot with the cdrom, try mounting the filesystems on each device to explore them to see what if anyting, is one them. Particular interest to any /boot directory information. Is their an EFI partition on either? Is there a BIOS_boot partition?

I think the best starting point for help is to indicate whether this system ever booted. If it did, some change had to be made. If not, the bootloader was likely not correctly installed.
 
Old 12-13-2023, 10:18 PM   #3
JonAng
LQ Newbie
 
Registered: Dec 2023
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks Yancek. This machine was running fine last time. I just took over this job recently.

After booting up from rescue CDROM, I am not able to mount /dev/sda. It says "NTFS signature is missing, Fail to mount /dev/sta"
For mounting /dev/sdb1, it was mounted. And I do see the folders that contained the our data.

So I guess the /dev/sta (which I believe is Sata0) is indeed setup last time as the bootdisk? But I am puzzled why there's no partition when I do a "lsblk"


sda 8G Disk
sdb 16G Disk
|__sdb1 8G Part

Last edited by JonAng; 12-13-2023 at 10:21 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Backup Proxmox Containers And Virtual Machines To USB Drive LXer Syndicated Linux News 0 06-18-2022 11:18 AM
LXer: How To Create Proxmox Virtual Machines From Proxmox Web UI LXer Syndicated Linux News 0 03-29-2022 01:51 PM
LXer: How To Create Proxmox Containers From Proxmox VE Web UI Dashboard LXer Syndicated Linux News 0 03-28-2022 09:06 PM
Guest to Host message passing - guest's memory usage statistics & guest's IP address Prince_Pangeni Linux - Virtualization and Cloud 2 03-03-2012 03:06 AM
Linux guest on Vmware is not communicating to other guest machines Saravana Linux - Virtualization and Cloud 2 10-25-2009 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration