Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Stuck on gentoo-sources 3.10.7 (Hyper-V)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
stelardactek
n00b
n00b


Joined: 28 Aug 2005
Posts: 39

PostPosted: Mon Jan 29, 2018 10:02 pm    Post subject: [Solved] Stuck on gentoo-sources 3.10.7 (Hyper-V) Reply with quote

I look after a Gentoo VM running under Microsoft Hyper-V (Windows Server 2012 R2). Currently it's an x86 system running gentoo-sources 3.10.7.

At some point after gentoo-sources 3.10.7 I lost the ability to get the thing to boot, and I've tried everything I can think of, up to trying to make a new x86_64 UEFI-booting generation 2 VM from scratch (using Ubuntu media for chroot).

Grub loads up just fine, but no matter what I do, I can't seem to get the kernel to load. If I keep framebuffer in the kernel, the video output gets corrupted; otherwise it just sits on the 'Loading (kernel and version)...' message. The kernel could possibly be booting without output but I have no way of knowing. Maybe it's not a Hyper-V issue and there's just something about console framebuffers I don't understand. Setting the video=hyperv_fb:<resolution> parameter doesn't seem to help any; the window changes size but the output is still corrupted.

Config for the working 3.10.7 kernel: https://pastebin.com/AJbKjyU3
Config for a non-booting 4.14.15 kernel (tried the same on 4.9.76-r1 first): https://pastebin.com/VGi2FCAD

Any suggestions would be very much appreciated.


Last edited by stelardactek on Mon Feb 05, 2018 1:09 am; edited 1 time in total
Back to top
View user's profile Send private message
stelardactek
n00b
n00b


Joined: 28 Aug 2005
Posts: 39

PostPosted: Mon Feb 05, 2018 12:29 am    Post subject: Reply with quote

I think I've fixed this, finally. I added the following to my kernel build:

Code:
CONFIG_VGACON_SOFT_SCROLLBACK=y
CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y


And added the following to my kernel command line:

Code:
splash=verbose video=hyperv_fb:800x600 CONSOLE=/dev/tty1
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42800
Location: 56N 3W

PostPosted: Mon Feb 05, 2018 12:46 am    Post subject: Reply with quote

stelardactek,

Post the output of
Code:
lspci -knn
from the guest.
Tell how you make your kernel.

Code:
# CONFIG_FRAMEBUFFER_CONSOLE is not set
You will need that for a framebuffer console.

-- edit --

The content of grub.cfg may be useful too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
stelardactek
n00b
n00b


Joined: 28 Aug 2005
Posts: 39

PostPosted: Mon Feb 05, 2018 1:27 am    Post subject: Reply with quote

Odd, lspci returns no output, now that I've gotten my kernel to boot. And yes, I figured out that I hadn't set CONFIG_FRAMEBUFFER_CONSOLE just before you posted about it, funnily enough.

I made the kernel by hand using make menuconfig.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42800
Location: 56N 3W

PostPosted: Mon Feb 05, 2018 1:36 am    Post subject: Reply with quote

stelardactek,

No output from lspci means that the hypervisor does not provide any emulated PCI hardware.
You use the Hyper-V interfaces eveywhere.
That will let you slim down your kernel a lot.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
stelardactek
n00b
n00b


Joined: 28 Aug 2005
Posts: 39

PostPosted: Mon Feb 05, 2018 2:55 am    Post subject: Reply with quote

Ah nice, I'll have to give that a look. Not that kernel size is an issue for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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