Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo as a guest on VMware ESXi boot problem
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 191

PostPosted: Tue Apr 09, 2019 4:44 pm    Post subject: Gentoo as a guest on VMware ESXi boot problem Reply with quote

Hi, i installed gentoo on VMware ESXi, but it hung with following lines:

Code:
Apr 09 18:03:08 gentoo kernel: random: crng init done
Apr 09 18:03:08 gentoo kernel: random: 7 urandom warning(s) missed due to ratelimiting


i booted again with minimal installation CD, chrooted to installed environment, and on journalctl it stopped after those lines:
Code:
Apr 09 19:22:30 gentoo kernel: random: crng init done
Apr 09 19:22:30 gentoo kernel: random: 7 urandom warning(s) missed due to ratelimiting
Apr 09 19:22:40 gentoo systemd[1]: systemd-hostnamed.service: Succeeded.
Apr 09 19:22:43 gentoo dhclient[2025]: XMT: Info-Request on ens192, interval 32340ms.
Apr 09 19:22:57 gentoo NetworkManager[1950]: <warn>  [1554826977.0713] dhcp6 (ens192): request timed out
Apr 09 19:22:57 gentoo NetworkManager[1950]: <info>  [1554826977.0713] dhcp6 (ens192): state changed unknown -> timeout
Apr 09 19:22:57 gentoo NetworkManager[1950]: <info>  [1554826977.0721] dhcp6 (ens192): canceled DHCP transaction, DHCP client pid 2025
Apr 09 19:22:57 gentoo NetworkManager[1950]: <info>  [1554826977.0721] dhcp6 (ens192): state changed timeout -> done


What can i check beside this?

Code:

CONFIG_VMWARE_VMCI_VSOCKETS=y
CONFIG_VMWARE_BALLOON=y
CONFIG_VMWARE_VMCI=y
CONFIG_VMWARE_PVSCSI=y

all vmware related items compiled in-kernel and not as modules

please your help

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 191

PostPosted: Tue Apr 09, 2019 5:26 pm    Post subject: Reply with quote

just checked - i'm able to ssh to machine, so the problem is, that i don't get login on gentoo box.
any thoughts?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 18165

PostPosted: Tue Apr 09, 2019 5:40 pm    Post subject: Reply with quote

Incorrect video support seems the most likely. Do you have a CD or bootable image that provides tools such as lspci to identify video support needed by the kernel?

The only other similar experience I've had is with hardware when the console gets redirected and requires a kernel line entry to alter the output destination. That seems unlikely. I don't recall that ever happening to me with a VM.
_________________
Those who know what's best for us must rise and save us from ourselves.
Back to top
View user's profile Send private message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 191

PostPosted: Tue Apr 09, 2019 8:13 pm    Post subject: Reply with quote

I still didn't installed Xorg, it's a basic install, it still might be video problem?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 18165

PostPosted: Tue Apr 09, 2019 9:21 pm    Post subject: Reply with quote

I don't recall specifically having had the problem myself, but if not, then I've at least read about it. I'm just not recalling the exact situation. I was not expecting X, but video drivers have tended to cause problems.

Other possibilities:
CONFIG_TTY
CONFIG_VT
CONFIG_VGA_CONSOLE

I've not yet found any threads I was expecting.

EDIT: A recent 2018 thread with no solution, but none of the above seems to have been the issue.
Another from January.

Looks like you're using systemd... maybe "systemctl start systemd-logind.service"?
_________________
Those who know what's best for us must rise and save us from ourselves.
Back to top
View user's profile Send private message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 191

PostPosted: Wed Apr 10, 2019 3:09 pm    Post subject: Reply with quote

all 3 you mentions compiled in kernel. systemd-logind.service is running - restarting didn't help
by the way - tried also to configure and boot with openrc instead of systemd - same symptom - it boots ok, i don't get login at all, but able to ssh. very wierd
another thing to mention - the same config was bootable and worked perfectly on VMware Workstation 15 on Windows 10 on same pc, before i installed VMware ESXi on this pc (all mentioned modules was compiled before as modules - so first of all, without changing anything - i tried to boot with it - it didn't boot - so i changed vmware related modules to be in-kernel instead - and now i'm with login problem)



gentoo /usr/src/linux # cat .config | egrep -i "config_tty|config_vt|config_vga_console"
CONFIG_TTY=y
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_VT_CONSOLE_SLEEP=y
CONFIG_VT_HW_CONSOLE_BINDING=y
# CONFIG_TTY_PRINTK is not set
CONFIG_VGA_CONSOLE=y
# CONFIG_VT6655 is not set
# CONFIG_VT6656 is not set
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 18165

PostPosted: Wed Apr 10, 2019 10:46 pm    Post subject: Reply with quote

leonchik1976 wrote:
the problem is, that i don't get login on gentoo box.
To clarify, do you see any output on the console up to that point, or is the screen blank?

The only other thing I've been able to come up with is to try booting with 'nomodeset' on the kernel line.
_________________
Those who know what's best for us must rise and save us from ourselves.
Back to top
View user's profile Send private message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 191

PostPosted: Thu Apr 11, 2019 2:47 am    Post subject: Reply with quote

with nomodeset i have no output at all. here what i have:
https://paste.pics/59MU9
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 18165

PostPosted: Thu Apr 11, 2019 5:47 am    Post subject: Reply with quote

I expected something like the picture, so that nomodeset causes no picture seems expected. I think that most likely means video support isn't the issue.

So next is possibly redirection of the console from within ESXi. What version are you using? As I recall, they quit calling it ESXi years ago, so I'm curious about your environment. You have ESXi on a physical box. How do you interact with the VMs which show you the console?

With redirection from the kernel line including something like "linux console=ttyS0,9600", although I'm not recalling how to determine the part after console. You can try with trial and error, but I was thinking there was another option for vga, or non-serial, but I'm not recalling and can't find anything at the moment.
_________________
Those who know what's best for us must rise and save us from ourselves.


Last edited by pjp on Thu Apr 11, 2019 5:56 am; edited 1 time in total
Back to top
View user's profile Send private message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 191

PostPosted: Thu Apr 11, 2019 5:55 am    Post subject: Reply with quote

i'm using VMRC for console (also tried a web console)
VMware vSphere Hypervisor (ESXi) 6.7U1 - it's the exact name of what i have
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 18165

PostPosted: Thu Apr 11, 2019 5:58 am    Post subject: Reply with quote

I took too long to edit. The redirection piece is all I have now. I'm guessing you don't have support?
_________________
Those who know what's best for us must rise and save us from ourselves.
Back to top
View user's profile Send private message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 191

PostPosted: Thu Apr 11, 2019 3:49 pm    Post subject: Reply with quote

adding this cause completely blank screen
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 18165

PostPosted: Thu Apr 11, 2019 7:55 pm    Post subject: Reply with quote

Adding what?
_________________
Those who know what's best for us must rise and save us from ourselves.
Back to top
View user's profile Send private message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 191

PostPosted: Thu Apr 11, 2019 8:11 pm    Post subject: Reply with quote

console parameter on kernel.
if the problem was with console, when there was no output at all, correct?
Back to top
View user's profile Send private message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 191

PostPosted: Thu Apr 11, 2019 8:19 pm    Post subject: Reply with quote

the minimal installation CD iso boots perfectly on this machine - so what i did:
1. Boot minimal installation CD
2. copied kernel config from /proc/config.gz

then on buggy installation, i connect to it via ssh, installed kernel with exactly the same kernel version 4.19.27-gentoo-r1 as on installation cd, and compiled it with the config from minimal installation cd.
so - the config is identical as on installation cd, except 4 vmware modules i had to add:

CONFIG_VMWARE_VMCI_VSOCKETS=y
CONFIG_VMWARE_BALLOON=y
CONFIG_VMWARE_VMCI=y
CONFIG_VMWARE_PVSCSI=y


because the minimal installation cd is openrc and not systemd, i configured my system with openrc according to handbook.

but with no luck - it still boot to the exactly same point - i'm unable to login (the is no "login")

so maybe it's not related to kernel at all?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 18165

PostPosted: Thu Apr 11, 2019 8:42 pm    Post subject: Reply with quote

I didn't expect redirecting to serial to work. Maybe console=tty0?

The experience I'm recalling was having the kernel boot without output to the VM console. Then at some point after that, output tot he console stopped, but ssh login worked. It was with Red Hat, but I don't recall if it was using ESX/VMware.

With the new kernel, are loaded modules the same as when running under the minimal install CD?

If there's no other console= option that works, trying to narrow down the last output that works is the next approach I can think of, but I'm not sure if that will be useful. Basically just adding echo statements to the various boot scripts close to the last output. Then advancing where the echo is located.

The only other possibility that comes to mind is something rc related, but that gets back to finding it with the echo statements. Unless there's something in the client, but I don't recall having to do anything with that.

Maybe something in inittab? I can't imagine why on a new install.

EDIT: Also, maybe this would be a useful test:
Quote:
Note: When the terminal --timeout=5 serial console line is added to your menu.lst grub configuration, your boot sequence will now show a series of "Press any key to continue" messages. If no key is pressed, the boot menu will appear on whichever (serial or console) appears first in the 'terminal' configuration line.

_________________
Those who know what's best for us must rise and save us from ourselves.
Back to top
View user's profile Send private message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 191

PostPosted: Fri Apr 12, 2019 4:15 am    Post subject: Reply with quote

it happens also on the same version kernel as on installation cd, with the exact config, except of adding 4 vmware modules
Back to top
View user's profile Send private message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 191

PostPosted: Sun Apr 14, 2019 2:48 pm    Post subject: Reply with quote

before i installed vmware esxi, i had on this pc windows 10 with vmware workstaion 15, and before removing it i did a backup of a working kernel config (which i tried to use with esxi without success).
so today, i reinstalled windows 10 with vmware workstation 15 - used the same working kernel that was before - and the same problem - i don't have login prompt but able to ssh to it.

so my guess - it's may be related somehow to gcc, systemd, on anything else (i already had the problem in the past with booting kernel after upgrading gcc, and problem was resolved after another gcc upgrade after a couple of day - can't recall what version it was).
Back to top
View user's profile Send private message
bbgermany
Veteran
Veteran


Joined: 21 Feb 2005
Posts: 1795
Location: Oranienburg/Germany

PostPosted: Mon Apr 15, 2019 9:58 am    Post subject: Reply with quote

Try to check for

CONFIG_DRM_VMWGFX
CONFIG_DRM_VMWGFX_FBCON

greets, bb
_________________
1st: i5-4570, 16GB, 1.75TB
2nd: i5-4570, 16GB, 620GB
3rd: i5-4570, 16GB, 10,5TB
4th: Asus N61VN, 8GB, 240GB
5th: C2D T7200, 2GB, 16GB USB + NFS
Back to top
View user's profile Send private message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 191

PostPosted: Mon Apr 15, 2019 2:34 pm    Post subject: Reply with quote

CONFIG_DRM_VMWGFX=m
CONFIG_DRM_VMWGFX_FBCON=y
Back to top
View user's profile Send private message
axl
l33t
l33t


Joined: 11 Oct 2002
Posts: 719
Location: Romania

PostPosted: Mon Apr 15, 2019 6:50 pm    Post subject: Reply with quote

CONFIG_RANDOM_TRUST_CPU=y

just a thought. if the crng is the problem, it will eventually fix itself when the kernel gathers enough random data. about a minute or so. If not, make sure to add that to the kernel config and crng will initialize instantly at boot.
Back to top
View user's profile Send private message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 191

PostPosted: Tue Apr 16, 2019 2:38 am    Post subject: Reply with quote

axl wrote:
CONFIG_RANDOM_TRUST_CPU=y

just a thought. if the crng is the problem, it will eventually fix itself when the kernel gathers enough random data. about a minute or so. If not, make sure to add that to the kernel config and crng will initialize instantly at boot.


i enabled it in kernel config, it didn't resolved the problem - i still have no "login", but "crng init done" and "urandom warning" messages are gone...
Back to top
View user's profile Send private message
axl
l33t
l33t


Joined: 11 Oct 2002
Posts: 719
Location: Romania

PostPosted: Tue Apr 16, 2019 2:56 am    Post subject: Reply with quote

leonchik1976 wrote:
axl wrote:
CONFIG_RANDOM_TRUST_CPU=y

just a thought. if the crng is the problem, it will eventually fix itself when the kernel gathers enough random data. about a minute or so. If not, make sure to add that to the kernel config and crng will initialize instantly at boot.


i enabled it in kernel config, it didn't resolved the problem - i still have no "login", but "crng init done" and "urandom warning" messages are gone...


Well, it solved part of the problem. Anyway, people should be aware that the RANDOM_TRUST_CPU can delay boot. Should be up to each individual if they choose one way or the other.

In regard to the other problems, did you try to change console? sometimes systemd doesn't open a console on tty0. Did you try manually switching to console 2 with alt+f2 ?
Back to top
View user's profile Send private message
axl
l33t
l33t


Joined: 11 Oct 2002
Posts: 719
Location: Romania

PostPosted: Tue Apr 16, 2019 3:01 am    Post subject: Reply with quote

also if you can ssh into the machine a good place to start would be to just check systemctl and see if anything failed.
Back to top
View user's profile Send private message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 191

PostPosted: Tue Apr 16, 2019 1:49 pm    Post subject: Reply with quote

i don't see any errors, but on other consoles i do see login!
so the problem is only with tty0
so it's related to systemd itself?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum