I request to add support Hyper-V VM guest in gentoo. This task required: 1. Add ebuild for Linux Integration Services from microsoft.com site 2. openrc support 3 dracut/genkernel support ( add drivers file and udev rules in iniramfs to boot)
http://www.microsoft.com/en-us/download/details.aspx?id=34603 Sample SUSE spek file : https://build.opensuse.org/package/view_file?file=microsoft-hyper-v.spec&package=RHEL6&project=isv%3Amicrosoft&rev=de7b9894b9f1be9e86db501e7c7cb00a
Adding dracut/genkernel/openrc maintainers to CC, maybe they will be interested
Why are initramfs changes needed for Hyper-V integration? Is there a module that we need to load before we can mount root?
(In reply to comment #3) > Why are initramfs changes needed for Hyper-V integration? Is there a module > that we need to load before we can mount root? Short: yes . Long: 1) genkernel not include this module in initrams ( systemrescuecd does it ) 2) Have add custom udev rules ( and daemon ) to start more Hyper-V susbsystem in userpace ( start "vmbus" ) i.e sample rules to add network and storage driver: rules.d # cat 20-vmbus.rules SUBSYSTEM=="vmbus", RUN+="/etc/vmbus/vmbus.uevent $env{ACTION} $env{VMBUS_DEVICE_CLASS_GUID}" P.S please donwload to link "integration disk" and see install script P.S.S http://social.technet.microsoft.com/wiki/contents/articles/961.how-to-install-ubuntu-server-10-04-in-hyper-v.aspx
Created attachment 343450 [details] src.rpm countain source code userspace tool's, daemons, etc; see speck file to "howtoo install"
genkernel: Please confirm that this branch does what you expect for genkernel. http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=7ca70b01c31a7ea22fd5056a4a91738e4a22e43c openrc/udev: There are ZERO changes from Hyper-V that would belong in OpenRC or udev. Whatever packages you created should install udev rules in their own files, init.d scripts etc. And I'm not going to download something from Microsoft.
Please don't upload SRPMs either. Extract the specfile if anything, and convert it to an ebuild yourself, and attach that.
Created attachment 343592 [details] microsoft-hyper-v.spec Speck file from microsoft disk
Created attachment 343594 [details] hyper-v.spec hyper-v.spec from SUSE
Created attachment 343596 [details] microsoft-hyper-v-3.4.ebuild Use suse rpm, install only userspace tool Untested
Created attachment 343598 [details] sample init hvp daemon file
> openrc/udev: > There are ZERO changes from Hyper-V that would belong in OpenRC or udev. > Whatever packages you created should install udev rules in their own files, > init.d scripts etc. Ideally it would be nice to add detect hypervisor to be able to use keywords in init scripts
> Ideally it would be nice to add detect hypervisor to be able to use keywords > in init scripts You can find sample code in app-emulation/virt-what