Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: No operating system found na een fysieke naar virtuele migratie 16.04  (gelezen 1399 keer)

Offline Hendymen

  • Lid
Wij zijn bezig om een oudere ubuntu server up-to-date te krijgen naar 20.04. We draaien momenteel op 16.04 en zijn al 2 maal geupgrade. Echter hebben we ervoor gekozen om de fysieke server ook direct te virtualiseren om ruimte en kosten te besparen. De fysieke server maakt gebruik van Raid 1 op twee 500GB disks. De nieuwe server gebruikt Raid op de hypervisor laag, daar heeft de ubuntu dus niks mee van doen.

We hebben de machine al eens geprobeerd te migreren met VEEAM backup en daarna een instant recovery op de nieuwe server te draaien, als mede de vmware standalone converter en Veeam Agent backup en deze terug zetten in een nieuwe virtuele machine.

Helaas maakt het niet uit wat we proberen, wanneer we de machine proberen op te starten, geeft het de melding No Operating System Found.

De fysieke server heeft deze partities;

Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0002db09

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *           63  39070079  39070017  18.6G fd Linux raid autodetect
/dev/sda2        39070080  78140159  39070080  18.6G fd Linux raid autodetect
/dev/sda3        78140160 976768064 898627905 428.5G  5 Extended
/dev/sda5        78140223 117210239  39070017  18.6G fd Linux raid autodetect
/dev/sda6       117210303 253923389 136713087  65.2G fd Linux raid autodetect
/dev/sda7       253923453 390636539 136713087  65.2G fd Linux raid autodetect
/dev/sda8       390636603 976768064 586131462 279.5G fd Linux raid autodetect


Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00054c34

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1  *           63  39070079  39070017  18.6G fd Linux raid autodetect
/dev/sdb2        39070080  78140159  39070080  18.6G fd Linux raid autodetect
/dev/sdb3        78140160 976768064 898627905 428.5G  5 Extended
/dev/sdb5        78140223 117210239  39070017  18.6G fd Linux raid autodetect
/dev/sdb6       117210303 253923389 136713087  65.2G fd Linux raid autodetect
/dev/sdb7       253923453 390636539 136713087  65.2G fd Linux raid autodetect
/dev/sdb8       390636603 976768064 586131462 279.5G fd Linux raid autodetect

We hebben ook al eens geprobeerd om boot-repair te draaien vanaf de live iso, (ook vanaf 18.04, 20.04, 16.04) maar zonder succes. De uitdraai van boot-repair;

boot-repair-4ppa200                                              [20220324_2019]

============================== Boot Info Summary ===============================


sda: ___________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System:  Ubuntu 16.04.7 LTS
    Boot files:        /boot/grub/menu.lst /boot/grub/grub.cfg /etc/fstab

sdb: ___________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System: 
    Boot files:       

sdc: ___________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info:

sdd: ___________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System: 
    Boot files:       

sde: ___________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System: 
    Boot files:       

sdf: ___________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System: 
    Boot files:       


================================ 0 OS detected =================================


================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: SVGA II Adapter from VMware
Live-session OS is Ubuntu 64-bit (Ubuntu 20.04.4 LTS, focal, x86_64)

===================================== UEFI =====================================

BIOS/UEFI firmware: 6.00(4.6) from Phoenix Technologies LTD
This live-session is in Legacy/BIOS/CSM mode (not in EFI mode).



============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________


Partitions info (1/3): _________________________________________________________


Partitions info (2/3): _________________________________________________________


Partitions info (3/3): _________________________________________________________


fdisk -l (filtered): ___________________________________________________________

Disk sda: 18.65 GiB, 20003749888 bytes, 39069824 sectors
Disk sdb: 65.19 GiB, 69996969984 bytes, 136712832 sectors
Disk sdc: 18.65 GiB, 20003815424 bytes, 39069952 sectors
Disk sdd: 279.5 GiB, 300099239936 bytes, 586131328 sectors
Disk sde: 18.65 GiB, 20003749888 bytes, 39069824 sectors
Disk sdf: 65.19 GiB, 69996969984 bytes, 136712832 sectors

parted -lm (filtered): _________________________________________________________

sda:20.0GB:scsi:512:512:loop:VMware Virtual disk:;
1:0.00B:20.0GB:20.0GB:ext4::;
sdb:70.0GB:scsi:512:512:loop:VMware Virtual disk:;
1:0.00B:70.0GB:70.0GB:ext4::;
sdc:20.0GB:scsi:512:512:loop:VMware Virtual disk:;
1:0.00B:20.0GB:20.0GB:linux-swap(v1)::;
sdd:300GB:scsi:512:512:loop:VMware Virtual disk:;
1:0.00B:300GB:300GB:ext4::;
sde:20.0GB:scsi:512:512:loop:VMware Virtual disk:;
1:0.00B:20.0GB:20.0GB:ext4::;
sdf:70.0GB:scsi:512:512:loop:VMware Virtual disk:;
1:0.00B:70.0GB:70.0GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME  FSTYPE   UUID                                 PARTUUID LABEL                    PARTLABEL
sda   ext4     06148417-25c8-4711-a129-861bb4d17cd7                                   
sdb   ext4     5058677e-045d-45e1-9d9b-319f2d83ad1e                                   
sdc   swap     070c6715-6efc-4737-80c1-380a3a26ee27                                   
sdd   ext4     0370e4ea-a4c2-486e-ace4-e098fa63da19                                   
sde   ext4     cff52656-0065-4b3c-b3ce-e2d26b036093                                   
sdf   ext4     cd46f9c4-6733-48ca-a751-143c77fe81a0                                   

Mount points (filtered): _______________________________________________________

                        Avail Use% Mounted on

Mount options (filtered): ______________________________________________________


====================== sda/boot/grub/menu.lst (filtered) =======================

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/md0 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect
## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 14.04.1 LTS, kernel 3.13.0-119-generic
root (hd0,0)
kernel /boot/vmlinuz-3.13.0-119-generic root=/dev/md0 ro quiet splash
initrd /boot/initrd.img-3.13.0-119-generic
title Ubuntu 14.04.1 LTS, kernel 3.13.0-119-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-3.13.0-119-generic root=/dev/md0 ro  single
initrd /boot/initrd.img-3.13.0-119-generic
title Ubuntu 12.04.1 LTS, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
### END DEBIAN AUTOMAGIC KERNELS LIST

====================== sda/boot/grub/grub.cfg (filtered) =======================

GNU/Linux   06148417-25c8-4711-a129-861bb4d17cd7
GNU/Linux, with Linux 4.4.0-210-generic   06148417-25c8-4711-a129-861bb4d17cd7
GNU/Linux, with Linux 4.4.0-210-generic (upstart)   gnulinux-4.4.0-210-generic-init-upstart-06148417-25c8-4711-a129-861bb4d17cd7
GNU/Linux, with Linux 3.13.0-147-generic   06148417-25c8-4711-a129-861bb4d17cd7
GNU/Linux, with Linux 3.13.0-147-generic (upstart)   gnulinux-3.13.0-147-generic-init-upstart-06148417-25c8-4711-a129-861bb4d17cd7
GNU/Linux, with Linux 3.13.0-119-generic   06148417-25c8-4711-a129-861bb4d17cd7
GNU/Linux, with Linux 3.13.0-119-generic (upstart)   gnulinux-3.13.0-119-generic-init-upstart-06148417-25c8-4711-a129-861bb4d17cd7
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

=========================== sda/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/md0 during installation
UUID=06148417-25c8-4711-a129-861bb4d17cd7 /               ext4    relatime,errors=remount-ro 0       1
# /data was on /dev/md5 during installation
UUID=0370e4ea-a4c2-486e-ace4-e098fa63da19 /data           ext4    relatime        0       2
# /home was on /dev/md4 during installation
UUID=5058677e-045d-45e1-9d9b-319f2d83ad1e /home           ext4    relatime        0       2
# /tmp was on /dev/md2 during installation
UUID=cff52656-0065-4b3c-b3ce-e2d26b036093 /tmp            ext4    relatime        0       2
# /var was on /dev/md3 during installation
UUID=cd46f9c4-6733-48ca-a751-143c77fe81a0 /var            ext4    relatime        0       2
# swap was on /dev/md1 during installation
UUID=070c6715-6efc-4737-80c1-380a3a26ee27 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0

==================== sda: Location of files loaded by Grub =====================

           GiB - GB             File                                 Fragment(s)
   0.135410309 = 0.145395712    boot/grub/menu.lst                             1
   0.250419617 = 0.268886016    boot/grub/grub.cfg                             1
   0.145862579 = 0.156618752    boot/grub/stage2                               1
  12.482009888 = 13.402456064   boot/vmlinuz-3.13.0-119-generic                2
   4.997669220 = 5.366206464    boot/vmlinuz-3.13.0-147-generic                1
  16.615230560 = 17.840467968   boot/vmlinuz-4.4.0-210-generic                 3
  16.615230560 = 17.840467968   vmlinuz                                        3
   4.997669220 = 5.366206464    vmlinuz.old                                    1
  13.811492920 = 14.829977600   boot/initrd.img-3.13.0-119-generic             1
  15.109371185 = 16.223563776   boot/initrd.img-3.13.0-147-generic             5
  13.484371185 = 14.478733312   boot/initrd.img-4.4.0-210-generic              7
  13.484371185 = 14.478733312   initrd.img                                     7
  15.109371185 = 16.223563776   initrd.img.old                                 5

====================== sda: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 12627 Apr 30  2021 10_linux
-rwxr-xr-x 1 root root 11082 Apr 30  2021 20_linux_xen
-rwxr-xr-x 1 root root 11692 Aug  2  2016 30_os-prober
-rwxr-xr-x 1 root root  1418 Aug  2  2016 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Oct 24  2009 40_custom
-rwxr-xr-x 1 root root   216 Aug  2  2016 41_custom



Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would not act on the boot.

Ik hoop dat iemand ons kan helpen! Bedankt!

Offline bart85

  • Lid
Re: No operating system found na een fysieke naar virtuele migratie 16.04
« Reactie #1 Gepost op: 2022/03/25, 09:40:16 »
Citaat
Warning: the /boot filesystem cannot use any softRAID level other than 1 with the stock Ubuntu bootloader. If you want to use some other RAID level for most things, you'll need to create separate partitions and make a RAID1 device for /boot.

Heb je /boot juist geconfigureerd?
https://help.ubuntu.com/community/Installation/SoftwareRAID
« Laatst bewerkt op: 2022/03/25, 09:42:58 door bart85 »
Je leert maar mooi over weg gaan met de commandline.
Linus: "I'm happy with the people who are wandering around looking at the stars but I am looking at the ground and I want to fix the pothole before I fall in."
I look to the clouds behind me and see the thunder coming.