On master, using genericx86-64 machine with linux-yocto kernel I also see grub 
booted into a blank screen when none of the Hyper-V kernel configs are enabled.

I couldn’t find any Hyper-V kernel config fragments in yocto-kernel-cache or 
meta-virtualization, so I googled for “hyper-v kernel config” and used a trick 
[1] to apply the necessary kernel configs to get both core-image-minimal and 
core-image-sato boot up properly.

[1] https://wiki.yoctoproject.org/wiki/TipsAndTricks/QuickAndDirtyKernelConfig

--Chin Huat

From: yocto-boun...@yoctoproject.org <yocto-boun...@yoctoproject.org> On Behalf 
Of Yair Itzhaki
Sent: Monday, August 5, 2019 11:41 PM
To: yocto@yoctoproject.org
Subject: [yocto] Loading a Yocto kernel on Hyper-V hangs

Hi ,
I'm using Poky (Warrior).
Built a Plain Vanilla system for bare-metal x64, and put it on a hard-drive.
The system boots well on an Intel MB.

Then, added a WIC image target, and converted the disk iamge (using qemu-img) 
into a VMDK.
The image boots well (Grub prompt, followed by kernel loading) on a Windows 
VmWare (though I had to add some kernel features to make the root FS available).

Next, I converted the same image to VHDX using qemu-img.
Configured a HyperV Gen2 machine (to use UEFI). Security is turned off.
Grub2 loads well:
I get a Grub prompt, select the kernel – but once selected - the system hangs.
Tried on different Windows machine (Win10, Server 2016)

When replacing the kernel with a stock Ubuntu kernel – the kernel loads well.
Tried other (pre-built) kernels from 
http://downloads.yoctoproject.org/releases/yocto/yocto-x.y/.... – same odd 
behavior: Grub loads, kernel does not load.
Tried a different compression (other than gzip) – same.

Any idea?

Thanks,
Yair


-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to