Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Installing Gentoo in HyperV Gen2 VM
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Rudistar
n00b
n00b


Joined: 01 Apr 2020
Posts: 2

PostPosted: Thu Apr 30, 2020 3:55 pm    Post subject: [SOLVED] Installing Gentoo in HyperV Gen2 VM Reply with quote

Hey guys,

I just tried to install Gentoo into a HyperV Gen2 VM. After the first attempt didn't work I searched a bit and found different statements wheter it should work or not.

First I followed the official installation guide. I used GPT/UEFI, vfat for /boot and ext4 for /.
Bootloader is GRUB and I used genkernel with default settings to make the kernel as I'm new back to Gentoo.

At first boot after installation I get the error message "Block device UUID=... is not a valid root device ..."

Since then I had two more attempts of rebuilding the kernel with different settings after guides on the internet (don't know if I'm allowed to post them here). First I changed the kernel config for genkernel and added all the HyperV parts as modules but got the same error as before. At the third attempt I set the HyperV things to compile directly into the kernel with the same result as before.

Now what makes me wonder is, before I get the error it states something like Genkernel is loading modules, but there is nothing behind "Loading from hyperv: ". It also was this way, when the HyperV drivers where compiled as modules.

Does anybody know if this could be working as I planned or any idea on what to change?

EDIT: Maybe I should mention, that booting from the gentoo minimalCD worked like a charm for network and also disk access. I read in some posts, that this was a problem in the past.


Regards,

Rudistar


Last edited by Rudistar on Fri May 08, 2020 5:37 am; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7602
Location: Goose Creek SC

PostPosted: Thu Apr 30, 2020 11:04 pm    Post subject: Reply with quote

PARTUUID instead of UUID as kernel boot option root= might solve this

I make an efi stub kernel which contains a kernel command line that overrides whatever the boot manager/boot loader may come up with as below:

grep -i cmdline /usr/src/linux/.config
CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE="root=PARTUUID=dddddddddd-dddddddd-dddddd-ddddddd ro net.ifnames=0"
CONFIG_CMDLINE_OVERRIDE=y

blkid output includes PARTUUID
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Rudistar
n00b
n00b


Joined: 01 Apr 2020
Posts: 2

PostPosted: Fri May 08, 2020 5:35 am    Post subject: Reply with quote

Hallo DONAHUE,

I tried your Suggestion with the CMDLINE_OVERRRIDE. I also read the part of the handbook about the EFI Stub kernel. Both in combination did not work first.
Then I realized, that I didn't save the kernel config as default ".config", but "hyperv.config" which led to "make" not using the config at all. After correcting my error the stub kernel compiled correctly and the system booted successfully and is now working.
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
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