feat(vm-x64): add Microsoft Hyper-V suport
This commit is contained in:
parent
d3e8dd770c
commit
45f49687f3
|
|
@ -11,7 +11,7 @@ PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
|
||||||
|
|
||||||
MACHINE_EXTRA_RRECOMMENDS += "kernel-modules linux-firmware"
|
MACHINE_EXTRA_RRECOMMENDS += "kernel-modules linux-firmware"
|
||||||
|
|
||||||
IMAGE_FSTYPES += "ext4 wic wic.xz wic.bmap wic.vmdk"
|
IMAGE_FSTYPES += "ext4 wic wic.xz wic.bmap wic.vmdk wic.vhdx"
|
||||||
|
|
||||||
WKS_FILE ?= "generic-uefi.wks.in"
|
WKS_FILE ?= "generic-uefi.wks.in"
|
||||||
do_image_wic[depends] += "gptfdisk-native:do_populate_sysroot"
|
do_image_wic[depends] += "gptfdisk-native:do_populate_sysroot"
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
CONFIG_HYPERVISOR_GUEST=y
|
||||||
|
CONFIG_PARAVIRT=y
|
||||||
|
CONFIG_PARAVIRT_SPINLOCKS=y
|
||||||
|
CONFIG_CONNECTOR=y
|
||||||
|
CONFIG_SCSI_FC_ATTRS=y
|
||||||
|
CONFIG_HYPERV=y
|
||||||
|
CONFIG_HYPERV_UTILS=y
|
||||||
|
CONFIG_HYPERV_BALLOON=y
|
||||||
|
CONFIG_HYPERV_STORAGE=y
|
||||||
|
CONFIG_HYPERV_NET=y
|
||||||
|
CONFIG_HYPERV_KEYBOARD=y
|
||||||
|
CONFIG_FB_HYPERV=y
|
||||||
|
CONFIG_HID_HYPERV_MOUSE=y
|
||||||
|
CONFIG_PCI_HYPERV=y
|
||||||
|
CONFIG_VSOCKETS=y
|
||||||
|
CONFIG_HYPERV_VSOCKETS=y
|
||||||
|
|
@ -14,3 +14,4 @@ LINUX_VERSION:beaglebone = "5.15.54"
|
||||||
require ${@bb.utils.contains("COMBINED_FEATURES", "efi", "linux-yocto-coreos-efi.inc", "", d)}
|
require ${@bb.utils.contains("COMBINED_FEATURES", "efi", "linux-yocto-coreos-efi.inc", "", d)}
|
||||||
|
|
||||||
SRC_URI += " file://k3s_kernel_adaptions.cfg"
|
SRC_URI += " file://k3s_kernel_adaptions.cfg"
|
||||||
|
SRC_URI:append:vm-x64 = " file://hyperv.cfg"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue