Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 463182 - Request for base Hyper-V VM support in tree
Summary: Request for base Hyper-V VM support in tree
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL: http://www.microsoft.com/en-us/downlo...
Whiteboard:
Keywords: Goal
Depends on:
Blocks:
 
Reported: 2013-03-25 07:05 UTC by Andreis Vinogradovs ( slepnoga )
Modified: 2020-05-24 09:41 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
src.rpm (microsoft-hyper-v-rhel63.3.4-1.20120727.src.rpm,88.83 KB, application/x-redhat-package-manager)
2013-03-27 17:45 UTC, Andreis Vinogradovs ( slepnoga )
Details
microsoft-hyper-v.spec (microsoft-hyper-v.spec,4.06 KB, text/plain)
2013-03-29 09:19 UTC, Andreis Vinogradovs ( slepnoga )
Details
hyper-v.spec (hyper-v.spec,7.52 KB, text/plain)
2013-03-29 09:21 UTC, Andreis Vinogradovs ( slepnoga )
Details
microsoft-hyper-v-3.4.ebuild (microsoft-hyper-v-3.4.ebuild,1.02 KB, text/plain)
2013-03-29 09:22 UTC, Andreis Vinogradovs ( slepnoga )
Details
sample init hvp daemon file (hyper-v.init,320 bytes, text/plain)
2013-03-29 09:23 UTC, Andreis Vinogradovs ( slepnoga )
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreis Vinogradovs ( slepnoga ) 2013-03-25 07:05:07 UTC
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)
Comment 2 Sergey Popov gentoo-dev 2013-03-25 08:55:11 UTC
Adding dracut/genkernel/openrc maintainers to CC, maybe they will be interested
Comment 3 Richard Yao (RETIRED) gentoo-dev 2013-03-25 13:02:09 UTC
Why are initramfs changes needed for Hyper-V integration? Is there a module that we need to load before we can mount root?
Comment 4 Andreis Vinogradovs ( slepnoga ) 2013-03-27 17:29:33 UTC
(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
Comment 5 Andreis Vinogradovs ( slepnoga ) 2013-03-27 17:45:51 UTC
Created attachment 343450 [details]
src.rpm

countain source code userspace tool's,  daemons, etc; see speck file to "howtoo install"
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-03-27 17:55:30 UTC
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.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-03-27 17:56:13 UTC
Please don't upload SRPMs either. Extract the specfile if anything, and convert it to an ebuild yourself, and attach that.
Comment 8 Andreis Vinogradovs ( slepnoga ) 2013-03-29 09:19:31 UTC
Created attachment 343592 [details]
microsoft-hyper-v.spec

Speck file from microsoft disk
Comment 9 Andreis Vinogradovs ( slepnoga ) 2013-03-29 09:21:39 UTC
Created attachment 343594 [details]
hyper-v.spec

hyper-v.spec from SUSE
Comment 10 Andreis Vinogradovs ( slepnoga ) 2013-03-29 09:22:54 UTC
Created attachment 343596 [details]
microsoft-hyper-v-3.4.ebuild

Use suse rpm, install only userspace tool
Untested
Comment 11 Andreis Vinogradovs ( slepnoga ) 2013-03-29 09:23:29 UTC
Created attachment 343598 [details]
sample init hvp daemon file
Comment 12 Andreis Vinogradovs ( slepnoga ) 2013-03-29 09:35:11 UTC
> 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
Comment 13 Andreis Vinogradovs ( slepnoga ) 2013-03-29 09:38:52 UTC
> 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