On Fri, May 5, 2017 at 12:52 PM, Nikolaos Milas <nmilas at noa.gr> wrote:> On 5/5/2017 1:42 ??, Nikolaos Milas wrote: > > Hmm, it seems that the boot flag should be removed from /dev/vda2 >> partition? >> > > Actually, I tried this and left the boot flag only to /dev/vda1. I > rebooted and I am still getting the same error. :-( > > I was hoping we were close to a solution... > > > Nick > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >what do you get when you boot the VM (I imagine with supergrub2 you described) and run this lspci lspci -kn in particular in respect with scsi devices ad kernel modules used eg in a VM of mine under oVirt [root at ractorshe ~]# lspci 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02) 00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] 00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] 00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01) 00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03) 00:02.0 Unclassified device [00ff]: Red Hat, Inc Virtio RNG 00:03.0 Ethernet controller: Red Hat, Inc Virtio network device 00:04.0 SCSI storage controller: Red Hat, Inc Virtio SCSI 00:05.0 Communication controller: Red Hat, Inc Virtio console 00:06.0 SCSI storage controller: Red Hat, Inc Virtio block device [root at ractorshe ~]# [root at ractorshe ~]# lspci -kn 00:00.0 0600: 8086:1237 (rev 02) Subsystem: 1af4:1100 00:01.0 0601: 8086:7000 Subsystem: 1af4:1100 00:01.1 0101: 8086:7010 Subsystem: 1af4:1100 Kernel driver in use: ata_piix Kernel modules: ata_piix, pata_acpi, ata_generic 00:01.2 0c03: 8086:7020 (rev 01) Subsystem: 1af4:1100 Kernel driver in use: uhci_hcd 00:01.3 0680: 8086:7113 (rev 03) Subsystem: 1af4:1100 Kernel driver in use: piix4_smbus Kernel modules: i2c_piix4 00:02.0 00ff: 1af4:1005 Subsystem: 1af4:0004 Kernel driver in use: virtio-pci Kernel modules: virtio_pci 00:03.0 0200: 1af4:1000 Subsystem: 1af4:0001 Kernel driver in use: virtio-pci Kernel modules: virtio_pci 00:04.0 0100: 1af4:1004 Subsystem: 1af4:0008 Kernel driver in use: virtio-pci Kernel modules: virtio_pci 00:05.0 0780: 1af4:1003 Subsystem: 1af4:0003 Kernel driver in use: virtio-pci Kernel modules: virtio_pci 00:06.0 0100: 1af4:1001 Subsystem: 1af4:0002 Kernel driver in use: virtio-pci Kernel modules: virtio_pci [root at ractorshe ~]#
On 5/5/2017 1:57 ??, Gianluca Cecchi wrote:> what do you get when you boot the VM (I imagine with supergrub2 you > described) and run this > > lspci > lspci -knHere you are: # lspci 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02) 00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] 00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] 00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01) 00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03) 00:02.0 VGA compatible controller: Cirrus Logic GD 5446 00:03.0 Unclassified device [00ff]: Red Hat, Inc Virtio memory balloon 00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device 00:05.0 Ethernet controller: Red Hat, Inc Virtio network device # lspci -kn 00:00.0 0600: 8086:1237 (rev 02) Subsystem: 1af4:1100 00:01.0 0601: 8086:7000 Subsystem: 1af4:1100 00:01.1 0101: 8086:7010 Subsystem: 1af4:1100 Kernel driver in use: ata_piix Kernel modules: ata_piix, pata_acpi, ata_generic 00:01.2 0c03: 8086:7020 (rev 01) Subsystem: 1af4:1100 Kernel driver in use: uhci_hcd 00:01.3 0680: 8086:7113 (rev 03) Subsystem: 1af4:1100 Kernel driver in use: piix4_smbus Kernel modules: i2c_piix4 00:02.0 0300: 1013:00b8 Subsystem: 1af4:1100 Kernel driver in use: cirrus Kernel modules: cirrus 00:03.0 00ff: 1af4:1002 Subsystem: 1af4:0005 Kernel driver in use: virtio-pci Kernel modules: virtio_pci 00:04.0 0100: 1af4:1001 Subsystem: 1af4:0002 Kernel driver in use: virtio-pci Kernel modules: virtio_pci 00:05.0 0200: 1af4:1000 Subsystem: 1af4:0001 Kernel driver in use: virtio-pci Kernel modules: virtio_pci Nick
On 05/05/2017 12:57, Gianluca Cecchi wrote: grub-install /dev/vda2 didn't work ?> On Fri, May 5, 2017 at 12:52 PM, Nikolaos Milas <nmilas at noa.gr> wrote: > >> On 5/5/2017 1:42 ??, Nikolaos Milas wrote: >> >> Hmm, it seems that the boot flag should be removed from /dev/vda2 >>> partition? >>> >> Actually, I tried this and left the boot flag only to /dev/vda1. I >> rebooted and I am still getting the same error. :-( >> >> I was hoping we were close to a solution... >> >> >> Nick >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> https://lists.centos.org/mailman/listinfo/centos >> > what do you get when you boot the VM (I imagine with supergrub2 you > described) and run this > > lspci > lspci -kn > > in particular in respect with scsi devices ad kernel modules used > eg in a VM of mine under oVirt > > [root at ractorshe ~]# lspci > 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02) > 00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] > 00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton > II] > 00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton > II] (rev 01) > 00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03) > 00:02.0 Unclassified device [00ff]: Red Hat, Inc Virtio RNG > 00:03.0 Ethernet controller: Red Hat, Inc Virtio network device > 00:04.0 SCSI storage controller: Red Hat, Inc Virtio SCSI > 00:05.0 Communication controller: Red Hat, Inc Virtio console > 00:06.0 SCSI storage controller: Red Hat, Inc Virtio block device > [root at ractorshe ~]# > > > [root at ractorshe ~]# lspci -kn > 00:00.0 0600: 8086:1237 (rev 02) > Subsystem: 1af4:1100 > 00:01.0 0601: 8086:7000 > Subsystem: 1af4:1100 > 00:01.1 0101: 8086:7010 > Subsystem: 1af4:1100 > Kernel driver in use: ata_piix > Kernel modules: ata_piix, pata_acpi, ata_generic > 00:01.2 0c03: 8086:7020 (rev 01) > Subsystem: 1af4:1100 > Kernel driver in use: uhci_hcd > 00:01.3 0680: 8086:7113 (rev 03) > Subsystem: 1af4:1100 > Kernel driver in use: piix4_smbus > Kernel modules: i2c_piix4 > 00:02.0 00ff: 1af4:1005 > Subsystem: 1af4:0004 > Kernel driver in use: virtio-pci > Kernel modules: virtio_pci > 00:03.0 0200: 1af4:1000 > Subsystem: 1af4:0001 > Kernel driver in use: virtio-pci > Kernel modules: virtio_pci > 00:04.0 0100: 1af4:1004 > Subsystem: 1af4:0008 > Kernel driver in use: virtio-pci > Kernel modules: virtio_pci > 00:05.0 0780: 1af4:1003 > Subsystem: 1af4:0003 > Kernel driver in use: virtio-pci > Kernel modules: virtio_pci > 00:06.0 0100: 1af4:1001 > Subsystem: 1af4:0002 > Kernel driver in use: virtio-pci > Kernel modules: virtio_pci > [root at ractorshe ~]# > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos-- (?- Bernard Lheureux //\ Linux System Administrator v_/_ MailTo:bernard at lheureux.be
On Fri, May 5, 2017 at 2:05 PM, Bernard Lheureux < bernard.lheureux at bbsoft4.org> wrote:> On 05/05/2017 12:57, Gianluca Cecchi wrote: > > grub-install /dev/vda2 didn't work ? > >As this is a CentOS 7.x system, I would say this, if you want to install it on MBR: grub2-install /dev/vda as detailed here: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sec-Reinstalling_GRUB_2.html Was this one of the command you already tried?