[solved]CentOS 7 don't start in VMware Player

Issues related to applications and software problems
Hanisch
Posts: 76
Joined: 2015/08/10 13:26:03

[solved]CentOS 7 don't start in VMware Player

Post by Hanisch » 2019/11/09 10:41:34

Hello,
my CentOS 7 installation in a CentOS.vmdk don't start in VMware Player.
Show attachment.
How can I regenerate the initramfs?

with regards
Ch. Hanisch
Attachments
CentOS.png
CentOS.png (28.34 KiB) Viewed 1929 times
Last edited by Hanisch on 2019/11/11 10:45:32, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 7 don't start in VMware Player

Post by TrevorH » 2019/11/09 13:30:19

Is this during the install or are you attempting to boot a previously installed system? If it was a previously installed system, then what was it installed using?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Hanisch
Posts: 76
Joined: 2015/08/10 13:26:03

Re: CentOS 7 don't start in VMware Player

Post by Hanisch » 2019/11/09 14:30:36

TrevorH wrote:
2019/11/09 13:30:19
If it was a previously installed system, then what was it installed using?
The system CentOS Linux release 7.7.1908 (Core) is upgrated from a older CentOS.
In VirtualBox and from a other external USB-HardDisk it is working well.

with regards
Ch. Hanisch

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 7 don't start in VMware Player

Post by TrevorH » 2019/11/09 15:03:39

The system CentOS Linux release 7.7.1908 (Core) is upgrated from a older CentOS.
If by "upgrated from" you mean a previous CentOS version other than 7 then that is not supported. Upgrades from previous CentOS 7 minor versions are of course supported by yum update.
In VirtualBox and from a other external USB-HardDisk it is working well.
VBox and VMWare emulate different hardware to the guest so you cannot flip between them unless you either use the "Rescue" kernel or you rebuild the initramfs to include drivers for both sets of hardware. If this is a permanent move to VMWare then you will need to boot the rescue kernel and then use dracut -f --kver $whateverthecurrentkernelversion to rebuild it for the current "hardware" on the VM. Or, if you don't currently have the latest kernel, 3.10.0-1062.4.1.el7 installed, then it is probably easier to just run yum update to get the newer one which will automatically build a new initramfs customised for the current "hardware"
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Hanisch
Posts: 76
Joined: 2015/08/10 13:26:03

Re: CentOS 7 don't start in VMware Player

Post by Hanisch » 2019/11/09 16:28:23

TrevorH wrote:
2019/11/09 15:03:39
Or, if you don't currently have the latest kernel, 3.10.0-1062.4.1.el7 installed, then it is probably easier to just run yum update to get the newer one which will automatically build a new initramfs customised for the current "hardware"
I have installed only the kernel 3.10.0-693.21.1.el7.x86_64 x86_64
How can I get the new initramfs for this kernel?

with regards
Ch. Hanisch

tunk
Posts: 1205
Joined: 2017/02/22 15:08:17

Re: CentOS 7 don't start in VMware Player

Post by tunk » 2019/11/09 16:44:29

I think Trevor suggested something like this:
dracut -f --kver 3.10.0-693.21.1.el7
And when you get it running, run yum update as 3.10.0-693.21.1
is 1.5 years out of date.

Hanisch
Posts: 76
Joined: 2015/08/10 13:26:03

Re: CentOS 7 don't start in VMware Player

Post by Hanisch » 2019/11/09 17:23:39

tunk wrote:
2019/11/09 16:44:29
I think Trevor suggested something like this:
dracut -f --kver 3.10.0-693.21.1.el7
In VirtualBox:

Code: Select all

$ sudo dracut -f --kver 3.10.0-693.21.1.el7
Kernel version 3.10.0-693.21.1.el7 has no module directory /lib/modules/3.10.0-693.21.1.el7
Failed to install module libnvdimmvmxnet3

Broadcast message from systemd-journald@VM-CentOS (Sat 2019-11-09 18:19:54 CET):

dracut[11690]: Failed to install module libnvdimmvmxnet3

Message from syslogd@VM-CentOS at Nov  9 18:19:54 ...
 dracut:Failed to install module libnvdimmvmxnet3
And when you get it running, run yum update as 3.10.0-693.21.1
is 1.5 years out of date.

Code: Select all

$ sudo yum install kernel3.10.0-1062.4.1.el7
Geladene Plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: artfiles.org
 * centosplus: mirror.23media.com
 * epel: ftp.plusline.net
 * extras: mirror.alpha-labs.net
 * fasttrack: centosmirror.netcup.net
 * nux-dextop: mirror.li.nux.ro
 * updates: mirror.fra10.de.leaseweb.net
Kein Paket kernel3.10.0-1062.4.1.el7 verfügbar.
Fehler: Nichts zu tun
How can I get the newest kernel?

with regards
Ch. Hanisch

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 7 don't start in VMware Player

Post by TrevorH » 2019/11/09 18:25:34

If you're on such an old kernel then you should do a full yum update to get yourself up to date. You're on 7.5 and the current version is 7.7 and there have been lots of important security related bugs fixed since your version. That will also install the latest kernel and build the correct initramfs file for you.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Hanisch
Posts: 76
Joined: 2015/08/10 13:26:03

Re: CentOS 7 don't start in VMware Player

Post by Hanisch » 2019/11/09 20:04:03

TrevorH wrote:
2019/11/09 18:25:34
If you're on such an old kernel then you should do a full yum update to get yourself up to date.
Sorry.

Code: Select all

$ sudo yum update
Geladene Plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.rrzn.uni-hannover.de
 * centosplus: centos.mirrors.psw.services
 * epel: ftp.wcss.plinxi -F
  * extras: mirror.fra10.de.leaseweb.net
 * fasttrack: mirror1.hs-esslingen.de
 * nux-dextop: mirror.li.nux.ro
 * updates: centos.mirrors.psw.services
No packages marked for update
What mean you with full yum update ?
You're on 7.5 and the current version is 7.7 and there have been lots of important security related bugs fixed since your version. That will also install the latest kernel and build the correct initramfs file for you.
No, I have Version 7.7.

Code: Select all

$ inxi -F
System:    Host: VM-CentOS Kernel: 3.10.0-693.21.1.el7.x86_64 x86_64 bits: 64 Desktop: Gnome 3.28.3 
           Distro: CentOS Linux release 7.7.1908 (Core) 
Machine:   Type: Virtualbox System: innotek product: VirtualBox v: 1.2 serial: <root required> 
           Mobo: Oracle model: VirtualBox v: 1.2 serial: <root required> BIOS: innotek v: VirtualBox date: 12/01/2006 
CPU:       Topology: Single Core model: Intel Core i7-2630QM bits: 64 type: MCP L2 cache: 6144 KiB 
           Speed: 1996 MHz min/max: N/A Core speed (MHz): 1: 1996 
Graphics:  Device-1: InnoTek Systemberatung VirtualBox Graphics Adapter driver: vboxvideo v: 6.0.10 r132072 
           Display: x11 server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa resolution: 1280x720~60Hz 
           OpenGL: renderer: llvmpipe (LLVM 7.0 256 bits) v: 2.1 Mesa 18.3.4 
Audio:     Device-1: Intel 82801FB/FBM/FR/FW/FRW High Definition Audio driver: snd_hda_intel 
           Sound Server: ALSA v: k3.10.0-693.21.1.el7.x86_64 
Network:   Device-1: Intel 82540EM Gigabit Ethernet driver: e1000 
           IF: enp0s3 state: up speed: 1000 Mbps duplex: full mac: 08:00:27:60:a9:c8 
           Device-2: Intel 82371AB/EB/MB PIIX4 ACPI type: network bridge driver: piix4_smbus 
           IF-ID-1: virbr0 state: down mac: 52:54:00:c9:8f:e4 
           IF-ID-2: virbr0-nic state: down mac: 52:54:00:c9:8f:e4 
Drives:    Local Storage: total: 20.00 GiB used: 158.61 GiB (793.1%) 
           ID-1: /dev/sda vendor: VirtualBox model: VBOX HARDDISK size: 20.00 GiB 
Partition: ID-1: / size: 15.07 GiB used: 11.90 GiB (79.0%) fs: xfs dev: /dev/sda1 
           ID-2: /home size: 3.91 GiB used: 2.08 GiB (53.4%) fs: xfs dev: /dev/sda2 
           ID-3: swap-1 size: 1.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda3 
Sensors:   Permissions: Unable to run ipmi sensors.  Root privileges required. 
           Message: No sensors data was found. Is sensors configured? 
Info:      Processes: 187 Uptime: 11m Memory: 2.78 GiB used: 618.1 MiB (21.7%) Shell: bash inxi: 3.0.35 

with regards
Ch. Hanisch

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 7 don't start in VMware Player

Post by TrevorH » 2019/11/09 20:26:30

You are running a prehistoric kernel.

Next thing to check then... If you are having problems with grub2 on CentOS 7, such as new kernels not being detected, you should check the symlink exists between
/etc/grub2.cfg -> ../boot/grub2/grub.cfg (legacy BIOS)
or
/etc/grub2-efi.cfg -> ../boot/efi/EFI/centos/grub.cfg (UEFI systems)
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply