Archive for the ‘Hyper-V’ Category

OpenSUSE 13.1 Milestone 1 Build0466 on Hyper-V

First impression:

Even KDE LiveCD include GParted 0.16.1 ( with support LVM2 PV Resize/Move )

uname -a
==
Linux linux.site 3.9.0-1-desktop #1 SMP PREEMPT Tue May 7 08:14:56 UTC 2013 (d6e99fd) x86_64 x86_64 x86_64 GNU/Linux
==
=
lsmod
==
hv_utils 13647 0
hv_netvsc 31301 0
hv_storvsc 17568 0

hyperv_fb 17606 2
fb_sys_fops 12703 1 hyperv_fb
sysimgblt 12674 1 hyperv_fb
sysfillrect 12701 1 hyperv_fb
syscopyarea 12529 1 hyperv_fb
hid_hyperv 13059 0
hv_vmbus 51328 5 hyperv_fb,hv_utils,hv_netvsc,hv_storvsc,hid_hyperv
==

No
hv_balloon
:-(
( May be only in LiveCD enviroment? )

dmesg
==
[ 0.000000] Linux version 3.9.0-1-desktop (geeko@buildhost) (gcc version 4.7.3 (SUSE Linux) ) #1 SMP PREEMPT Tue May 7 08:14:56 UTC 2013 (d6e99fd)

[ 2.082841] Disabled vesafb on Hyper-V.

[ 14.779219] hv_vmbus: registering driver hyperv_fb
[ 14.794243] hyperv_fb: Screen resolution: 1152×864, Color depth: 16
==

==
[ 2.492437] ata_piix 0000:00:07.1: Hyper-V Virtual Machine detected, ATA device ignore set
==

==
[ 7.530438] input: Microsoft Vmbus HID-compliant Mouse as /devices/virtual/input/input3
[ 7.530519] hid-generic 0006:045E:0621.0001: input: HID v0.01 Mouse [Microsoft Vmbus HID-compliant Mouse] on
==

From source code:

==
> +#if IS_ENABLED(CONFIG_HYPERV_FB)
> + /*
> + * On Hyper-V both the emulated and synthetic video devices are
> + * available. To avoid conflicts, we disable vesafb for the emulated
> + * video if hyperv_fb is configured.
> + */
> + if (is_hyperv()) {
> + pr_info(«Disabled vesafb on Hyper-V.\n»);
> + return -ENODEV;
> + }
> +#endif
==

===
+ * Hyper-V Synthetic Video Frame Buffer Driver
+ *
+ * This is the driver for the Hyper-V Synthetic Video, which supports
+ * screen resolution up to Full HD 1920×1080 with 32 bit color on Windows
+ * Server 2012, and 1600×1200 with 16 bit color on Windows Server 2008 R2
+ * or earlier.
+ *
+ * It also solves the double mouse cursor issue of the emulated video mode.
+ *
+ * The default screen resolution is 1152×864, which may be changed by a
+ * kernel parameter:
+ * video=hyperv_fb:x
+ * For example: video=hyperv_fb:1280×1024
+ *
+ * Portrait orientation is also supported:
+ * For example: video=hyperv_fb:864×1152
===

«solves the double mouse cursor» — yes, solved

back up Linux Hyper-V guest virtual machines (VMs) through Volume Shadow Copy Service (VSS)

Look like, VSS implemented in Linux on Hyper-V since Linux Kernel Linux Kernel v3.10-rc1 2013-05-12

See
hv_vss_daemon.c
==
An implementation of the host initiated guest snapshot for Hyper-V.
==

http://www.altaro.com/hyper-v/linux-on-hyper-v/

==
Backup

Hyper-V’s built-in method of enabling back up of Windows virtual machines while they’re powered on involves the tried-and-true Volume Shadow Copy Service (VSS) that Microsoft has employed since Windows 2000. VSS is triggered at the hypervisor level and it communicates through the integration components with VSS inside the virtual machine. If you’re interested, we provided an earlier series that covered this in some detail. Since VSS is a proprietary Microsoft technology, your Linux virtual machines won’t have it. As a general rule, Hyper-V backups will not be able to take a live backup of Linux guests. That’s because if VSS in the hypervisor is unable to communicate with VSS through integration components, its default behavior is to save the virtual machine, take a VSS snapshot, and then bring the virtual machine back online. Some backup applications, notably Altaro Hyper-V Backup(Disclaimer: this blog is run by Altaro), can override this behavior and back up a Linux guest without interruption. Even with this capability, nothing can escape the fact that Linux does not have VSS. These backups will be taken live, but the backed up image will be crash-consistent, not application-consistent. If you’re not sure what that means, please reference the VSS article linked earlier.
==

Home > Virtualization > Q. Can I back up Linux Hyper-V guest virtual machines (VMs) through Volume Shadow Copy Service (VSS), avoiding the need to stop the VMs?

http://windowsitpro.com/virtualization/q-can-i-back-linux-hyper-v-guest-virtual-machines-vms-through-volume-shadow-copy-serv

==

Q. Can I back up Linux Hyper-V guest virtual machines (VMs) through Volume Shadow Copy Service (VSS), avoiding the need to stop the VMs?

A. VSS consists of several components, including VSS writers that are provided by application authors to enable a consistent backup to be taken of application and OS data without stopping the application or OS. These backups work by making a VSS request. The VSS writers are notified of an imminent backup, so they make sure data is flushed to disk and further activity is cached, ensuring the data on disk that’s being backed up is in a consistent state and is restorable.

Hyper-V extends this backup functionality by allowing a VSS backup to be taken at the Hyper-V host level. The VSS request is actually passed through the integration services to the OS of Windows VMs, which then notifies the registered VSS writers in the VM of the backup. So backups can be initiated at the Hyper-V host level and VM backups will still be consistent and usable, without actually doing anything in the guest OS.

Certain versions of Linux are also supported on Hyper-V, but Linux OSs don’t support VSS. So a backup taken on the Hyper-V host can’t tell the Linux OS in a guest VM to put itself in a backup-consistent state. To back up a Linux OS, either stop the VM while you take the backup or, if you can’t have downtime, perform the backup from within the Linux VM instead of at the Hyper-V host level.
==

RHEL 6.4 on Hyper-V

RHEL 6.4 / CentOS 6.4 include support for Hyper-V drivers

https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html-single/6.4_Release_Notes/index.html

==

8.2. Hyper-V

. . .

Inclusion of, and Guest Installation Support for, Microsoft Hyper-V Drivers

Integrated Red Hat Enterprise Linux guest installation, and Hyper-V para-virtualized device support in Red Hat Enterprise Linux 6.4 on Microsoft Hyper-V allows users to run Red Hat Enterprise Linux 6.4 as a guest on top of Microsoft Hyper-V hypervisors. The following Hyper-V drivers and a clock source have been added to the kernel shipped with Red Hat Enterprise Linux 6.4:
  • a network driver (hv_netvsc)
  • a storage driver (hv_storvsc)
  • an HID-compliant mouse driver (hid_hyperv)
  • a VMbus driver (hv_vmbus)
  • a util driver (hv_util)
  • an IDE disk driver (ata_piix)
  • a balloon driver (hv_balloon)
  • a clock source (i386, AMD64/Intel 64: hyperv_clocksource)
Red Hat Enterprise Linux 6.4 also includes support for Hyper-V as a clock source and a guest Hyper-V Key-Value Pair (KVP) daemon (hypervkvpd) that passes basic information, such as the guest IP, the FQDN, OS name, and OS release number, to the host through VMbus. An IP injection functionality is also provided which allows you to change the IP address of a guest from the host via the hypervkvpd daemon.

. . .

Hyper-V balloon Driver

On Red Hat Enterprise Linux 6.4 guests, the balloon driver, a basic driver for the dynamic memory management functionality supported on Hyper-V hosts, was added. The balloon driver is used to dynamically remove memory from a virtual machine. Windows guests support Dynamic Memory with a combination of ballooning and hot adding. In the current implementation of the balloon driver for Linux, only the ballooning functionality is implemented, not the hot-add functionality.

==

==

RHEL 6.4 -- lsmod with hv_balloon

==

http://social.technet.microsoft.com/Forums/en-US/linuxintegrationservices/thread/c0df70a8-b65c-4400-bc16-2b2985c941ef

==

Andy Schmidt

Wednesday, January 23, 2013 7:45 PM

I’m new to the Unix World. Was able to install two virtual machiens, one hosting an Apache Web Server and one a MySQL server. Problem is that the Integration Services are flawed:

a) They disable the ability to mount CDROMs to that virtual machine:
http://support.microsoft.com/kb/2600152
I’m not sure if the INSMOD work-around will disable the faster disk driver? The command doesn’t seem to be specific to the CDROM devices…

b) Worse, I’m unable to install any security fixes to the kernel, because of:
http://support.microsoft.com/kb/2387594
Unfortunately, the DKMS work-around is based on IC 2.1 – when the ISO still contained the source. The 3.4 (and prior) are RPMs.

There is also a work-around floating which patches the uname string to the hardcoded new kernel name, before calling "MAKE". It claims to work with IC 3.2, but when I checked THAT ISO, it too had NO source – so I can’t imagine that working.
http://www.acumen-corp.com/Blog/tabid/298/entryid/19/HOWTO-Upgrading-the-CentOS-kernel-for-a-Hyper-V-virtual-machine-with-Linux-Integration-Components.aspx

I wonder if there is a way to "uninstall" the integration services, "re-enable" the necessary native drivers, then run the kernel updates, and after rebooting, re-install the 3.4 integration services?

In general, I’m a bit surprised that the lack of CD/DVD support and the inability to run kernel updates hasn’t bubbled to the top of he priority list after so many months/years – as I would have expected every single user to encounter that?


==

==

{{{

a) They disable the ability to mount CDROMs to that virtual machine:
http://support.microsoft.com/kb/2600152

=={{

CAUSE:

This issue occurs because the Hyper-V Linux Integration Services unloads the ata_piix driver

[ VVM: "unloads" look like "prevent load" :

=={

install ata_piix { /sbin/modprobe hv_storvsc 2>&1 || /sbin/modprobe --ignore-install ata_piix; }

==}

]

in order to provide an optimized IDE driver (hv_blkvsc [ VVM: hv_blkvsc is RIP ; hv_storvsc for _both_ IDE and SCSI disks after kernel v3.2 or for LIC/LIS v3.4 ] ) for the root [ VVM to All sysadmins: on IDE _need_ be place only boot loader ( GRUB or syslinux) and /boot , _other_ ( include / ) _best_ place on SCSI. But because current RHEL not contain hv_storvsc in install CD-ROM, we are need use "Mondo Rescue" after Mondo backup ] file system.

WORKAROUND:

To mount an ISO file in the virtual machine, the following command must be run before executing the mount command:

# insmod /lib/modules/$(uname -r)/kernel/drivers/ata/ata_piix.ko

WORKAROUND N2:

Alternatively, copy the ISO file into the virtual machine and mount it using the -o loop option.

[ VVM: Bingo! 8-/ But . . .

How about kernel for LiveCD? In any case need patched ata_piix ]

==}}

I’m not sure if the INSMOD work-around will disable the faster disk driver? The command doesn’t seem to be specific to the CDROM devices…


~

Yes: not disable "faster disk driver", because it is hv_storvsc

Yes #2 : this command not "specific to the CDROM devices" , and after

load both unpatched ata_piix and hv_storvsc

You can see results: by run blkid and look in output of this command ( and in _fact_) duplicates(!) of IDE disks

~

~

Again: _true_ solutions is "backport patches related ata_piix on Hyper-V"

==

==

Solutions ( in order from low problematic to hi):

— use RHEL 6.4

==

Shortly:

Debian Wheezy (7.0) contain a backport Hyper-V drivers from Kernel 3.4
But the Hyper-V kernel modules ( as minimum,

hv_vmbus
hv_utils

hv_storvsc
hv_netvsc

) are missing in the installer image of Debian Wheezy created before 2012-11-13

Solution:
You need use .iso created after 2012-11-14
( or .iso by Arnaud Patard )

you’ll be able to use paravirt NIC, SCSI disks,
additionally you’ll get mouse integration and support for more than 1 vCPU.

Debian v7.0 on Hyper-V
или прощай Legacy LANCard


Или как добавление одной строчки
==
hyperv-modules
==

в нужный файл решает множество проблем при установке Debian v7.0 на Hyper-V


Используйте для инсталяции .iso от Arnaud Patard :

http://www.hupstream.com/~rtp/azure/monolithic/mini.iso

и забудьте о
— смене сетевой карты на Legacy и обратно
— про параметр загрузки ata_piix.prefer_ms_hyperv=0
— переподключении HDD на IDE
— про потолок в 3 шт. HDD


Как результат:

==
SCSI , 10Gb LanCard hupstream.com-monolithic-mini.iso-2012-10-16-.iso _
==

==
hupstream.com-monolithic-mini.iso-2012-10-16-_.iso-Image-2[1]
==


International part:

——————–

From: "Victor Miasnikov" <vvm (at) tut (dot) by>
To: "Arnaud Patard"
Cc: "Mathieu Simon"; "Bernhard Schmidt" ; <690978@bugs.debian.org>; <684283@bugs.debian.org>
Sent: Wednesday, October 31, 2012 5:59 PM
Subject: All work as need with 0001-Add-Hyper-V-modules-to-netboot-and-cdrom.patch Fw: debian-installer: d-i unable to find disk storage on Hyper-V Fw: the Hyper-V kernel modules ( as minimum, hv_vmbus hv_utils hv_storvsc hv_netvsc )


Hi!


==
From: Arnaud Patard apatard (at) hupstream (dot) com
To: Debian Bug Tracking System
Subject: debian-installer: d-i unable to find disk storage on Hyper-V
Date: Fri, 19 Oct 2012 20:35:01 +0200

install testing on a Hyper-V VM through CD . . . Hyper-V drivers

An installation has succeeded with the attached patch and a d-i monolithic
iso.


0001-Add-Hyper-V-modules-to-netboot-and-cdrom.patch
==
Commit cd006086fa5d91414d8ff9ff2b78fbb593878e3c:

. . .

build/pkg-lists/cdrom/isolinux/amd64.cfg | 2 ++
build/pkg-lists/cdrom/isolinux/i386.cfg | 1 +
build/pkg-lists/netboot/amd64.cfg | 1 +
build/pkg-lists/netboot/i386.cfg | 1 +

. . .

— a/build/pkg-lists/ <All> / <All> .cfg
+++ b/build/pkg-lists/ <All> / <All> .cfg

. . .

+hyperv-modules-${kernel:Version}


==

==



Good job!

.patch implement this


==
But _true_ solution is

add the Hyper-V kernel modules ( as minimum,

hv_vmbus
hv_utils

hv_storvsc
hv_netvsc

to initramfs of installer .ISO
==


When boot use
http://www.hupstream.com/~rtp/azure/monolithic/mini.iso


All work as need:

SCSI , 10Gb LanCard:

Image 1
==

==

Image 2
==

==


Best regards, Victor Miasnikov
Blog: http://vvm.blog.tut.by/



P.S.

==
Why would you use a workaround on command line
while we have a udeb containing the right module, which means that one
can install in Hyper-V out of the box ?
==

As _temporary_ solution ( example see later)



P.P.S.

But this .iso
{
Debian v7.X _x64 Daily build 2012-10-31
http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/

debian-testing-amd64-netinst.iso

}

not contain in file "initrd" from
install.amd’initrd.gz

kernel/drivers/hv/hv_vmbus.ko
kernel/drivers/hv/hv_utils.ko
kernel/drivers/net/hyperv/hv_netvsc.ko
kernel/drivers/scsi/hv_storvsc.ko

This is very bad for Hyper-V admins :-(


P.P.S.

(

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684283
Date: Wed, 8 Aug 2012 12:51:01 UTC

+
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690978
Date: Fri, 19 Oct 2012 18:54:04 UTC

)

=>

MS Excell think
2012-10-31 – 2012-08-08 = 24.03.1900

:-)

2012-11-02 :

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690978

—————-
From: Cyril Brulebois
To: Arnaud Patard , 690978@bugs.debian.org
Subject: Re: Bug#690978: debian-installer: d-i unable to find disk storage on Hyper-VDate: Fri, 2 Nov 2012 11:54:25 +0100

> . . . with the attached patch . . .

Thanks, I’ve just applied your patch, it should be part of beta 4.

Mraw,
KiBi.


2012-11-30:

– — –
From: Cyril Brulebois
To: 690978-close@bugs.debian.org
Subject: Bug#690978: fixed in debian-installer 20121114
Date: Wed, 14 Nov 2012 16:32:45 +0000

. . .

Changes:
debian-installer (20121114)

. . .

[ Cyril Brulebois ]
* Apply patch from Arnaud Patard to include Hyper-V linux kernel udebs
on cdrom and netboot images for am64 and i386 (Closes: #690978). This
is needed after a kernel change on the ata_piix side (cd006086fa in
mainline).

FIXed

Tested with

2012-11-30
debian-testing-amd64-netinst.iso
SHA1 b544066bbdd40c4a561007064dafc359a750e4e4

"Open/Public letter":
Erik Scholten ( in http://www.vmguru.nl/wordpress/2012/09/new-enterprise-hypervisor-comparison-2/#disqus_thread ):
If you have improvements, please mention it in the comments or write me an e-mail specifying which value needs to be altered and some proof of you statement, a MS website, video, etc.

{
www.vmguru.nl — Enterprise Hypervisor comparison v4.2 2012-10-01
==
Hypervisor comparison
Version 4.2
A feature comparison of the three main competitors in the hypervisor space, Citrix, Microsoft and VMware.
Updated to the latest two versions, Citrix XenServer 5.6 & 6.0, Microsoft Hyper-V 2008 R2 SP1 & 2012 and VMware vSphere 5.0 & 5.1.
©2012, VMGuru.nl
Erik Scholten
1 October 2012

At manufacturer’s websites and in the blogosphere there are many hypervisor comparisons which only compare hypervisors based on a single driver (performance, features or cost). In my opinion it’s a bit more complicated than that. After the everlasting discussion on make-believe cheaper Microsoft Hyper-V and Citrix XenServer implementations, I spend a fair deal of my time explaining to colleagues and clients that this is a hoax and that cost is not the only reason to base their decision on. Especially in the case of XenServer the choice and the long term effects make it a little bit more complicated.

Now you probably think ‘These VMGuru.nl guys are VMware fans so here we go again‘ but the opposite is true. Like Chris I think every situation has its own ideal solution and you should select the hypervisor based on well-considered selection criteria and because my employer, Imtech ICT, focuses on clients with 500+ workstations/employees these criteria are Enterprise-class hypervisor selection criteria.

==

}

{

I’m not found word "dynamic" ( and info about Dynamic Memory in MS Hyper-V) in Enterprise Hypervisor comparison v4.2 2012-10-01 ( 2012/09/Hypervisor-comparison.pdf 01 Oct 2012 17:55:04 GMT )

==

Victor Miasnikov:

Hyper-V 2008 R2 _support_ "Hot-add memory"

Erik Scholten:
With SP1 for Hyper-V R2 Microsoft added a feature that is called Dynamic Memory, which adjusts the amount of memory
available to virtual machines depending on the needs of each virtual machine. Which is much like but not entirely
similar to hot-add/remove.
Victor Miasnikov:
Dynamic Memory can increase/decrese _without_ reboot etc. , in real time

<=>
on _practic_ similar ( _very_ simular) to hot-add/remove
==

Erik Scholten ( in Enterprise Hypervisor comparison v4.2 2012-10-01 ( 2012/09/Hypervisor-comparison.pdf 01 Oct 2012 17:55:04 GMT ) :
==
Now you probably think ‘These VMGuru.nl guys are VMware fans so here we go again‘ but the opposite is true.

==
In fact: true i.e. VMGuru.nl guys are VMware fans
}

IMHO, need more comments:

{
Solaris ( and _all_ OS _without_ IC , for example see later Win NT 4.0 )
==
. . .
Quite some OS lacking Hyper-V drivers (like BSD) do run on Hyper-V but with quite of a performance penalty if at all:

  • Only legacy (emulated) 100Mbit Ethernet
  • Only 4 emulated IDE disks which are then quite slow, no paravirt SCSI controller
  • 1 vCPU and no dynamic memory (Linux doesn’t support the later one today, only Windows guests) . . .

. . .

==

}
{
Windows Server 2000
==
Friday, 6 March, 2009

We have need for a temporary legacy setup here at the shop.

We used a Windows Server 2000 Standard SP2 CD ISO to install the base OS.

We have an ISO based DVD with every conceivable Microsoft service pack and needed critical update on it that we use to service our VMs. We needed to mount that ISO and update to Service Pack 4 before we could get the Hyper-V Integration Services installed.

==

but only 1 CPU :
==
Configure virtual machines running Windows 2000 Server with 1 virtual processor.
==

}
again, IMHO, need more comments:
{
Windows NT 4.0
==

. . .

Legacy operating system support

Q. The virtual machine settings include a processor option which limits processor functionality to run an older operating system such as Windows NT on the virtual machine. What does this feature actually do?
A. This feature is designed to allow backwards compatibility for older operating systems such as Windows NT 4.0 (which performs a CPUID check and, if CPUID returns more than three leaves, it will fail). By selecting the processor functionality check box Hyper-V will limit CPUID to only return three leaves and therefore allow Windows NT 4.0 to successfully install. It is possible that other legacy operating systems could have a similar issue.

Q. Does this mean that Windows NT 4.0 is supported on Hyper-V?
A. Absolutely not. Windows NT 4.0 is outside its mainstream and extended support lifecycle and is not supported on Hyper-V and no integration components will be released for Windows NT 4.0.

Q. But one of the stated advantages for virtualisation is running legacy operating systems where hardware support is becoming problematic. Does this mean I can’t virtualise my remaining Windows NT computers?
A. The difference here is between “possible” and “supported”. Many legacy (and current) operating systems will run on Hyper-V (with emulated drivers) but are not supported.

. . .

==
}
{
Novel NetWare
==
Ben Armstrong ( Microsoft)
NetWare 5.0 worked, but 6.0 / 6.5 did not.
==
}
{

Ubuntu 12.04 has backported from kernel v3.4.3 *.ko/drivers for Hyper-V , work fine, has support
Debian v7.X has backported from kernel v3.4.3 *.ko/drivers for Hyper-V
}
{
RHEL 6.X , 5.X ( and CenOs, SL, OEL , etc. ) :
the Linux Integration Services 3.4 Release for Hyper-V adds support for the following guest operating systems:

  • RHEL 5.7 (x86 and x64)
  • RHEL 5.8 (x86 and x64)
  • RHEL 6.3 (x86 and x64)
  • CentOS 5.7 (x86 and x64)
  • CentOS 5.8 (x86 and x64)
  • CentOS 6.3 (x86 and x64)
==
}
{
RHEL 5.9 Beta:
http://www.microsoftnow.com/2012/09/red-hat-includes-built-in-integration-services-for-hyper-v-in-rhel-5-9.html
==
Microsoft have made strategic investments in interoperability that continues to reap rewards and here’s another big one TODAY with Red Hat. Today, Red Hat has announced the beta of RHEL 5.9 which includes the Linux Integration Services for Hyper-V built-in.
==

==
This means that RHEL will include the following Linux Integration Components for Hyper-V “inbox”:

1. Driver support: Linux Integration Services supports the network controller and the IDE and SCSI storage controllers that were developed specifically for Hyper-V.

2. Fastpath Boot Support for Hyper-V: Boot devices now take advantage of the block Virtualization Service Client (VSC) to provide enhanced performance.

3. Timesync: The clock inside the virtual machine will remain accurate by synchronizing to the clock on the virtualization server via Timesync service, and with the help of the pluggable time source device.

4. Integrated Shutdown: Virtual machines running Linux can be shut down from either Hyper-V Manager or System Center Virtual Machine Manager by using the “Shut down” command.

5. Heartbeat: This feature allows the Hyper-V to detect whether the virtual machine is running and responsive.

6. Key Value Pair (KVP) Exchange: Information about the running Linux virtual machine can be obtained by using the Key Value Pair exchange functionality on the Hyper-V host.

7. Integrated Mouse Support: Linux Integration Services provides full mouse support for Linux guest virtual machines.
==

The Microsoft press release
http://blogs.technet.com/b/openness/archive/2012/09/21/windows-server-hyper-v-drivers-supported-in-red-hat-enterprise-linux.aspx

https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5-Beta/html/5.9_Release_Notes/virtualization.html
==
Chapter 9. Virtualization

Inclusion of, and Guest Installation Support for, Microsoft Hyper-V Drivers
Integrated Red Hat Enterprise Linux guest installation, and Hyper-V para-virtualized device support in Red Hat Enterprise Linux 5.9 on Microsoft Hyper-V allows users to run Red Hat Enterprise Linux 5.9 as a guest on top of Microsoft Hyper-V hypervisors. The following Hyper-V drivers and a clock source have been added to the kernel shipped with Red Hat Enterprise Linux 5.9:

a network driver ( hv_netvsc)

a storage driver ( hv_storvsc)

an HID-compliant mouse driver ( hid_hyperv)

a VMbus driver ( hv_vmbus)

a util driver ( hv_util)

a clock source (i386: hyperv_clocksource, AMD64/Intel 64: HYPER-V timer)

Red Hat Enterprise Linux 5.9 also includes a guest Hyper-V Key-Value Pair (KVP) daemon ( hypervkvpd) that passes basic information, such as the guest IP, the FQDN, OS name, and OS release number, to the host through VMbus.

==

}
{
FreeBSD v9.X , v8.3 – v8.2

http://blogs.technet.com/b/port25/archive/2012/08/09/windows-server-hyper-v-is-now-a-hypervisor-for-freebsd.aspx
==
Microsoft and partners NetApp and Citrix are excited to announce the availability of FreeBSD support for Windows Server Hyper-V

8,500 lines of code released under the BSD license, is the result of collaboration between Microsoft, NetApp, and Citrix to enable FreeBSD to run as a first-class guest on Windows Server Hyper-V.
==

http://blogs.technet.com/b/openness/archive/2012/08/09/available-today-freebsd-support-for-windows-server-hyper-v.aspx
==
enable FreeBSD to run on Hyper-V with high performance. This release includes 8,500 lines of code submitted under the BSD license, supporting FreeBSD 8.2 on Windows Server 2008 R2.
. . .

Analysis is currently underway to assess customer demand and partner capacity to extend support to FreeBSD 9.0 on Windows Server 2012.

==

FreeBSD enlightened device drivers for Hyper-V/Azure with FreeBSD source tree

http://freebsdonhyper-v.github.com/

https://lists.launchpad.net/freeonhyper-v/msg00000.html
==
From: Chris Knight stryqx (at) DOMAIN.HIDDEN
Date: Mon, 13 Aug 2012 20:34:57 +1000

I’ve pulled down a git clone and created patchsets for FreeBSD 8.2,
8.3, 9.0 and 9.1-BETA1. They can be found here:
==

http://blog.chrisara.com.au/2012/08/hyper-v-integration-components-for_13.html
==
Monday, August 13, 2012

Hyper-V Integration Components for FreeBSD – Patchfiles

Call me old fashioned, but I’d much prefer a patchset than having to install a version control package and suck down a source code check out. So please find a patchset for the Hyper-V integration components for the following versions of FreeBSD:

FreeBSD 8.2 Hyper-V Integration Components Patchset

FreeBSD 8.3 Hyper-V Integration Components Patchset

FreeBSD 9.0 Hyper-V Integration Components Patchset

FreeBSD 9.1-BETA1 Hyper-V Integration Components Patchset

Download the patchset, then issue:

patch –p –d /usr/src <

to patch the source tree, followed by:

cd /usr/src; make kernel KERNCONF=HYPERV_VM INSTKERNNAME=kernel.HYPERV

to install the Hyper-V enabled kernel to /boot/kernel.HYPERV.

Before booting to the Hyper-V enabled kernel it’s best to use GEOM labels to mount the partitions. Follow the instructions here to do this. This makes it easy for you to quickly swap between a Hyper-V enabled kernel and a non-Hyper-V enabled kernel – the reason being the Fast IDE storage driver presents itself as a SCSI driver, changing the device node path which prevents /etc/fstab from working correctly.

. . .
==

}

Zentyal on Hyper-V

http://forum.zentyal.org/index.php/topic,11720.0.html
==


ни где не нашел информацию как ведет себя Zentyal под Hyper-V

==
{=}
found no information as Zentyal behaves under Hyper-V

Ok, needed info:

Zentyal 3.0 ( and Zentyal 2.3) based on Ubuntu 12.04 =}

Syntetic LANCard ( hv_netvsc.ko ) , SCSI disks ( hv_storvsc.ko) – all Ok

Tested on:
— Zentyal v3.0 RC1 ( zentyal-3.0-rc1-amd64.iso )
— Zentyal v2.3 2012-03-08 Beta x64 ( zentyal-2.3-amd64.iso )

P.S.

See example optimization for Google :-) :

http://serversetting.com/zentyal-cloud-report-january-2010-october-2010.html
==


. . .
Incoming search terms:
install zentyal in hyper-v
. . .
zentyal install on hyper-v server
zentyal on hyper-v host
. . .
ubuntu cloud zentyal
. . .
running zentyal hyper-v
Install zentyal pdf
install zentyal on hyper v
. . .

==

Fedora 18 on Hyper-V

2013-01-13:

IMHO, Bug 883005 is minor issue related *-netinstall.iso ( in *LiveCD*.iso mouse work as need )

See later *.png [ related non-netinstal, but LiveCD ] with example _good_ work mouse driver , look on hid_hyperv in lsmod output

How exactly Fedora Team fixed this issue , not principial for me

2013-01-10 13-15 ( GMT +03 ):

see later:
==
adamwill.fedorapeople.org 20130109-prerc3-x86_64.iso on Hyper-V the fprintd bug fixed
==

2013-01-09 16-02 ( GMT +03 ):

To All : please help me with communication with Fedora Development team

==
— Comment #62 from Giovanni Tirloni <FFFFFFFF@FFFFFFF.ibm.com> —
+1 blocker – F18 does not work on Hyper-V and from what I can tell from other
comments, it has issues on Vmware and Xen too. It would not consider that a
corner case.
==
Thanks for help!
.
.
—– Original Message —–
From: { May be, public in future } WWWWWWWWW@redhat.com
To: "Victor Miasnikov"
Sent: Wednesday, January 09, 2013 5:06 PM
Subject: Re: Fw: Problem is solved? or not? FW: Bug 810040 https://bugzilla.redhat.com/show_bug.cgi?id=810040

> On 01/09/2013 09:01 AM, Victor Miasnikov wrote:
>>
>> Hi!
>> Problem exist? Or not?
Yes, the problem exists, but there is a fix.
The fprintd maintainer has told me [ WWWWWWWWW@redhat.com] he will do a release this week, . . .
—– Original Message —–
From: "Victor Miasnikov" <vvm ( at )tut (dot) by>
. . . To ZZZZZ , YYYYYYYYYYYYY . . .
Cc: <CCCCCCCC@redhat.com>; <DDDDDDDDD@redhat.com>
Sent: Wednesday, January 09, 2013 4:53 PM

Hi!
Problem is solved? or not?
==

5) yum update *.rpm
6) telinit 3; telinit 5; No gnome-shell error
7) Reboot VM and verify no gnome-shell error

Now for KVM guests via libvirt, disabling USB is not something most people will do. However xen and other virt platforms don’t seem to add a USB bus by default so this bug makes fedora and gnome look pretty bad.

halfline, hadess, can someone spin up F17 and F18 updates?

 . . .

Tested with Success on Hyper-V Server 2012 x86_64 (Fedora-18 x86_64 Guest)
I was able to login with gnome3.
Why this was not added into the repo more early?

This bug should have been considered as a blocker IMHO. (or NTH at least). This affect the ability to have a usable system at the end of a graphical install in order to later make updates.

. . .
. . .
2013-01-09 08:25:16 EST
-1 blocker, this seems to be enough of a corner case to not warrant a release blocker.

==



2013-01-10 13-15 ( GMT +03 ):

adamwill.fedorapeople.org 20130109-prerc3-x86_64.iso on Hyper-V the fprintd bug fixed :

==

adamwill.fedorapeople.org 20130109-prerc3-x86_64.iso on Hyper-V the fprintd bug fixed

==

2013-01-09 16-02 ( GMT +03 ): another , may be minor, bug:

To All : please help me with communication with Fedora Development team

De-facto Bug 883005 is well-known problem Mouse Integration in Linux guest

-- Sub-problem N1

Fedora-18-development-x86_64-2013-01-08 problem Mouse Integration in Linux guest

Ok, as temporary solution do this:

mouse work in Linux Guest without "MS Vmbus HID-compliant Mouse", if connect to it from Windows _directly_

http://vvm.blog.tut.by/2011/02/22/hyper-v_mouse_in_linux/
==
. . .
Without "Microsoft Vmbus HID-compliant Mouse" ,
mouse work in {Linux Guest without hid_hyperv} if connect to it from {Windows physical workstation} _directly_
. . .
==

-- and imm. after solve N1, we look Sub-problem N2 i.e.
CTRL + ALT + Left Arrow to release the mouse

http://blog.allanglesit.com/2010/05/ubuntu-and-hyper-v-the-paths-to-enlightenment/
==
Mouse Integration

When a user uses Hyper-V Management Console or System Center Virtual Machine Manager to connect to a VM [ with Linux without "MS Vmbus HID-compliant Mouse" ]
and they begin to interact with the desktop via the mouse, they find themselves in an interesting situation where they are unable to reclaim their mouse pointer from the VM without entering a somewhat cryptic keystroke ctrl + alt + left arrow.
==


Fedora-18-development-x86_64-2013-01-08 problem CTRL + ALT + Left Arrow to release the mouse


>(In reply to comment #5)
>> (In reply to comment #4)

JB>>> The Fedora kernel builds and provides those modules,
JB>>> but they aren’t included in the initramfs.
VVM>> Yes


JB>>> If they should be (and I have no idea),
JB>>>then dracut probably needs to include them.
VVM>> Do not worry :-) , they should be include

N.Ch.> Why ?
N.Ch.> I’m using Server2012 Eval x86_64 and at the end of the install, I have:

==
# lsmod | grep hyperv
hid_hyperv 13059 0
hv_vmbus 33752 4 hv_netvsc,hid_hyperv,hv_utils,hv_storvsc
==

N.Ch.> Despite thoses are not included in the initramfs,
N.Ch.>they are probably not useful during the boot phase?
N.Ch.>(maybe hv_storvsc should be made available thought).

!) Mouse ( as phisical/material device) is used, primary, by end-user/sysadmin for work with user interface of Fedora installer

Of course, if You use fully automated install mode ( for example, by script) worked state of mouse kernel module not important

But in _interactive_ mode -- "worked state of mouse kernel module" is welcom!


1) Of course,
driver ( ok, "kernel module" ) for SCSI and IDE disks ( hv_storvsc) is more important, what driver for mouse ( hid_hyperv)

2)"at end of the install" -- is to late, need "at begin of the install"

2b)

How exactly method:
by
-- "dracut needs to include hid_hyperv"
Or by
-- "hid_hyperv need be include in the initramfs"

will be choice by Fedora Development team

2012/08/22:

==
2012-04-11 - Justin M. Forbes jforbes (at) redhat.com - enable HyperV drivers
==

Fedora 18 install disk contain Hyper-V drivers

hv_storvsc.ko
hv_netvsc.ko

Syntetic LANCard , SCSI disks -- all Ok

Tested on
Fedora-18-Alpha-TC3-x86_64-netinst.iso

2013-01-09:

Some-Fedora-Mirror/pub/.6/fedora.redhat.com/linux/development/18/x86_64/os/images/boot.iso

Slackware on Hyper-V — current status

2013-04-24: See later
Slackware 14.01 «Current» has _full_ support Hyper-V
i.e. Problem «1b) db63a4c8115a libata 1) cd006086fa5d ata_piix IDE» — FIXed

—– Original Message —–
From: "Victor Miasnikov"
To: "Pat Volkerding"
Sent: Friday, August 10, 2012 4:21 PM
Subject: Bug Reports: a) udevd: could not find module by name=’rtc_cmos’ b) Support Hyper-V Or Slackware 14.0 RC1 in virtual computer ( guest ) on Hyper-V Re: Slackware 14.0 RC1 Arrived: Send Your Bug Reports

Hi!

. . .

Bug Reports:

b)

Slackware 14.0 RC1 in virtual computer ( guest ) on Hyper-V
Or
Support Hyper-V

the Hyper-V kernel modules ( as minimum,

hv_storvsc
hv_netvsc

) are missing in the current installer image

( This modules exist
kernel/drivers/hv/hv_vmbus.ko
kernel/drivers/hv/hv_utils.ko.gz

but work with errors

. . .


Errors:
hv_utils: Unknown symbol cn_XXXXXXXXX



)

. . .


Best regards, Victor Miasnikov
Blog:
http://vvm.blog.tut.by/

—– Original Message —–
From: "Victor Miasnikov"
To: "Pat Volkerding"
Sent: Thursday, August 16, 2012 5:53 PM

Subject: b3) Please: backport to Slackware 14.0 patches 1b) db63a4c8115a libata 1) cd006086fa5d ata_piix IDE dis Thanks! LAN & SCSI *.ko related Hyper-V work as need Fw: Bug Reports: b) Support Hyper-V Or Slackware 14.0 RC2 in virtual computer ( guest ) on Hyper-V


Hi!
b2)

==

Thu Aug 16 04:01:31 UTC 2012
We’ll call this release candidate 2.
. . .

isolinux/initrd.img: Rebuilt.
Upgraded to Linux kernel 3.2.27.
Include the staging/hv modules. Thanks to Victor Miasnikov.
==
Thanks!
*.ko related Hyper-V work as need:
– LAN
– SCSI disk
Tested on:
{
slackware*-current (slackware*-14.0 RC2). 2012-08-16. http://ponce.cc/slackware/iso/
[
]
}

b3)

Please: backport to Slackware 14.0 patches 1b) db63a4c8115a libata 1) cd006086fa5d ata_piix

i.e. in Slackware 14.0 RC2 exist well-known problem "ata_piix and hv_storvsc both claim the (virtual) hard disk":

( but ata_piix need for handle the CD-ROM drive[s]:
Note that the Hyper-V paravirtualised drivers only expose the virtual hard disk devices,
the CDROM/DVD devices must still be enumerated.
==
SlackWare v14.0 RC2 _2012-08-16_ mini.iso -- double IDE HDD Error
==
Solution:
"use hv_storvsc instead of ata_piix to handle the IDE disks devices ( but not for the CD-ROM)"
=> Please: backport to Slackware 14.0 this patches
( _already_ do in Debian 7.X RC , first implement in OpenSUSE, re-created for Ubuntu v12.04 LTS , include in vanila kernel >v3.4.3 ) :

==

cd006086fa5d ata_piix: defer disks to the Hyper-V drivers by default

and its prerequisite

db63a4c8115a libata: add a host flag to ignore detected ATA devices

==

VVM:
All source code files ( and diff and URLs ) usefull for re-implement patches see in attached file "cd006086fa5d ata_piix and db63a4c8115a libata.zip"

Info about problem:
{{
Mike Sterling <mike.sterling (at) microsoft.com> :
==
The virtual motherboard that is used by Hyper-V has a dual port, dual channel IDE controller based on the 440BX chipset.
This motherboard was chosen as the baseline platform for emulation due to the extensive driver support present across a
wide variety of operating systems.
When a virtual machine boots on Hyper-V, it is required to boot off the IDE disk (as the paravirtualized SCSI controller
isn’t recognized by the virtualized BIOS).
Therefore, when the ata_piix module gets loaded in Linux, it recognizes the hard disk connected to it.
When the Hyper-V guest-side drivers are loaded (specifically hv_storvsc),
it enumerates both the IDE as well as SCSI busses that are present in the system and provides faster access to those
disks using the paravirtualized device model.
==
VVM:
{
Linux v3.1 Era:

==
The virtual motherboard that is used by Hyper-V has a dual port, dual channel IDE controller based on the 440BX chipset.
This motherboard was chosen as the baseline platform for emulation due to the extensive driver support present across a
wide variety of operating systems.
When a virtual machine boots on Hyper-V, it is required to boot off the IDE disk (as the paravirtualized SCSI controller
isn’t recognized by the virtualized BIOS).
Therefore, when the ata_piix module gets loaded in Linux, it recognizes the hard disk connected to it.
When the Hyper-V guest-side drivers ( hv_storvsc, about hv_blkvsc see later) are loaded ,
it enumerates [VVM: only] SCSI buss[es] that are present in the system and provides faster access to those disks using
the
paravirtualized device model.
In this case, all the drivers are working as intended – there is [ VVM: _really_ ] no bug here.

But if the Hyper-V guest-side _run_ driver hv_blkvsc
it enumerates ATA(IDE) buss[es] that are present in the system and provides faster access to those disks using the
paravirtualized device model.

In this case, we are get the problem is that ata_piix and hv_blkvsc both claim the (virtual) hard disk. i.e. bug ( i.e.
variant "issue described by Maksim Kramarenko" see later).
==

}


{
Linux v3.2 . . v3.4.2 Era
( except OpenSUSE , Ubuntu 12.04 , etc. with 1b) db63a4c8115a libata 1) cd006086fa5d ata_piix ):

==
The virtual motherboard that is used by Hyper-V has a dual port, dual channel IDE controller based on the 440BX chipset.
This motherboard was chosen as the baseline platform for emulation due to the extensive driver support present across a
wide variety of operating systems.
When a virtual machine boots on Hyper-V, it is required to boot off the IDE disk (as the paravirtualized SCSI controller
isn’t recognized by the virtualized BIOS).
Therefore, when the ata_piix module gets loaded in Linux, it recognizes the hard disk connected to it.
When the Hyper-V guest-side drivers are loaded (specifically hv_storvsc),
it enumerates both the IDE as well as SCSI busses that are present in the system and provides faster access to those
disks using the paravirtualized device model.

No "In this case, all the drivers are working as intended – there is no bug here."
but we are has problem:

—– Original Message —–
From: "Jonathan Nieder"
To: . . . Cc: . . .
Sent: Tuesday, June 05, 2012 7:59 AM
Subject: Re: [PATCH 2/2] ata_piix: defer disks to the Hyper-V drivers by default

. . .

If I understand correctly,
the problem is that ata_piix and hv_storvsc both claim the (virtual) hard disk.
==

and
==
+ see tranlate from Russian language issue described by Maksim Kramarenko:
http://lists.debian.org/debian-russian/2012/01/msg00324.html
. . .

>> Errors do not interfere with work, but sneaking suspicion about
>> future problems with the hard drive …
[...]
>> in general, the source of the problem as follows:
>> After [VVM: turn On in kernel source] Hyper-V modules [compile and
>> start use], a hard disk was determined as 2 with the same UUID.
[...]
>> connected to a drive:
>> http://www.k-max.name/wp-content/uploads/2012/01/hdd-e1327750214479.png
>> it is defined as a 2:
>> http://www.k-max.name/wp-content/uploads/2012/01/2hdd.png
>> Naturally, the same UUID:
>> http://www.k-max.name/wp-content/uploads/2012/01/blkid.png
>> That’s what tells us the directory / dev:
>> http://www.k-max.name/wp-content/uploads/2012/01/uuid.png

==



==
}


{
Linux v3.5 Era + v3.4.3 – v3.4.X and OpenSUSE , Ubuntu 12.04 :

==
The virtual motherboard that is used by Hyper-V has a dual port, dual channel IDE controller based on the 440BX chipset.
This motherboard was chosen as the baseline platform for emulation due to the extensive driver support present across a
wide variety of operating systems.
When a virtual machine boots on Hyper-V, it is required to boot off the IDE disk (as the paravirtualized SCSI controller
isn’t recognized by the virtualized BIOS).
Therefore, when the ata_piix module [ VVM: _with_ 1b) db63a4c8115a libata 1) cd006086fa5d ata_piix] gets loaded in
Linux, it recognizes what the hard disk [VVM: handled by hv_storvsc].

The patch [ VVM: patches 1b) db63a4c8115a libata 1) cd006086fa5d ata_piix] that Andy has submitted is an enhancement to
the ata_piix module
that will detect if the OS is running on top of a Hyper-V hypervisor
and defer the block device handling in favor of letting hv_storvsc enumerate and handle the disks attached to the IDE
ports.


When the Hyper-V guest-side drivers are loaded (specifically hv_storvsc),
it enumerates both the IDE as well as SCSI busses that are present in the system and provides faster access to those
disks using the paravirtualized device model.
In this case, all the drivers are working as intended – there is [ VVM: _really_ ] no bug here.

==

}


}}

[ 41/42] libata + [ 42/42] ata_piix: defer disks to the Hyper-V drivers by defaul

. . .

Thanks!
Best regards, Victor Miasnikov
Blog:
http://vvm.blog.tut.by/

—– Original Message —–
From: "Patrick J. Volkerding"
To: "Victor Miasnikov"

Sent: Thursday, August 16, 2012 7:00 PM
Subject: Re: b3) Please: backport to Slackware 14.0 patches 1b) db63a4c8115a libata 1) cd006086fa5d ata_piix IDE dis Thanks! LAN & SCSI *.ko related Hyper-V work as need Fw: Bug Reports: b) Support Hyper-V Or Slackware 14.0 RC2 in virtual computer ( guest ) on Hyper-V

On 08/16/2012 09:53 AM, Victor Miasnikov wrote:
> Please: backport to Slackware 14.0 patches 1b) db63a4c8115a libata 1) cd006086fa5d ata_piix

Sorry, we don’t patch the kernel. I’d suggest talking to the people
maintaining the 3.2.x branch and see if they will do it. If they do,
and there’s time, I’ll upgrade.

Take care,

Pat

—– Original Message —–
From: "Victor Miasnikov"
To: "Patrick J. Volkerding"
Sent: Thursday, August 16, 2012 7:39 PM

Subject: Re: b3) Please: backport to Slackware 14.0 patches 1b) db63a4c8115a libata 1) cd006086fa5d ata_piix IDE Fw: Bug Reports: b) Support Hyper-V Or Slackware 14.0 RC2


Hi!

> Sorry, we don’t patch the kernel.

No problem

> I’d suggest talking to the people maintaining the 3.2.x branch and see if they will do it.

Thanks


> If they do, and there’s time, I’ll upgrade.

In June 08, 2012 13:36 I ask for backport to v3.4.X – v3.2.X
in >v3.4.3 — done, all Ok
but in v3.2.X — no ;-0 , very strange: if error exist — why not repair it :-(

==

{
> > > Hyper-V admins need _worked_ Linux v3.4.X / v3.3.X / v3.2.X
> > > Please, _fix_ errors related "use hv_storvsc instead of ata_piix to
> > > handle the IDE disks devices ( but not for the CD-ROM)"

i.e. need backport to all actual version after 3.1

cd006086fa5d ata_piix: defer disks to the Hyper-V drivers by default

and its prerequisite

db63a4c8115a libata: add a host flag to ignore detected ATA devices
}

==

2013-04-24:
Slackware 14.01 «Current» has _full_ support Hyper-V
i.e. Problem «1b) db63a4c8115a libata 1) cd006086fa5d ata_piix IDE» — FIXed

support-for-ubuntu-and-freebsd — Answers

http://blogs.technet.com/b/vm/archive/2012/05/13/support-for-ubuntu-and-freebsd.aspx
{
VVM 28 Jun 2012 5:43 AM

==
>> Например, экзотический { Linux дистрибутив }
>> уже поставляется с новым ядром и готовыми модулями Hyper-V.
==

Менее экзотический Arch Linux ( и, почти все дистрибутивы, кроме некоторых)
достаточно давно идут с «готовыми модулями Hyper-V»

Но проблема
«use hv_storvsc instead of ata_piix to handle the IDE disks devices ( but not for the CD-ROM)»
требует патчей:
==
cd006086fa5d ata_piix: defer disks to the Hyper-V drivers by default

and its prerequisite

db63a4c8115a libata: add a host flag to ignore detected ATA devices
==

поэтому призываю всех Hyper-V админов «требовать у поставщика»
kernel v3.4.3 ( и выше)
или backport-а вышеупомянутых патчей

}

vy-vse-eshhe-sravnivaete-gipervizory — Answers

http://vmind.ru/2012/05/28/vy-vse-eshhe-sravnivaete-gipervizory/


Практические советы:

Stanislav Buldakov пишет:

==
В Hyper-V со снимками действительно пичалька. Чтобы после удаления снимка произошло объединение дисков необходимо виртуалку выключать (на лету этот процесс не запускается). Если забыл это сделать, а затем, например, удалил ещё несколько снимков, то чтобы объединить диски необходимо сильно танцевать с бубном. Процесс в принципе несложный, но простой виртуальной машины адский получается. То есть она вылетает из работы на несколько часов как минимум.
==

Крайне не советую использовать "снимки" в production, т.е. _не_ для тестирования: дифференциальный диск ( .avhd ) растет какими-то неадекватными темпами

==
Но, судя по бэте Windows 2012, в новом Hyper-V эту проблему таки решат.
==

Решат -- хорошо, не решат -- см. выше

navion пишет:
28 мая 2012 в 14:17

==
Для себя вижу всего два плюса у vShere:
1) Нормальная поддержка Linux и Solaris
==

Скажем так:
в Linux Kernel v3.4.3 и выше поддержка Hyper-V близка к идеалу

для RHEL/CentOS/SL ( Scientific Linux)/OracleEL v6.X -- есть фактический аналог по функционалу: Linux Integration Services
Они же: Linux Integration Components ( Linux IC)
( для v5.X -- ранние версии Linux Integration Components ( Linux IC) )
плюс оффициальная поддержка от MS

OpenSUSE / SLES -- поддержка с самого начала + оффициальная от MS

Ubuntu начиная с v12.04 -- оффициальная поддержка от MS , заключен договор
Причем для "Hyper-V drivers" backport from v3.4-rc1

в Debian v7.X -- аналогично: backport from v3.4-rc1

Для FreeBSD пишут аналог Linux IC:

http://blogs.technet.com/b/vm/archive/2012/05/13/support-for-ubuntu-and-freebsd.aspx

==
Вчера на конференции BSDCan 2012 было заявлено, что NetApp совместно с Citrix разрабатывает компоненты интеграции Hyper-V для FreeBSD,
которые в скором времени станут доступны для FreeBSD 8.2 и 8.3. Исходные коды компонентов интеграции будут доступны по BSD лицензии для всех желающих.
Это первый пример разработки некоммерческого кода для Hyper-V сторонними коммерческими компаниями.
Microsoft будет осуществлять поддержку пользователей FreeBSD в среде Hyper-V.
==

( де-факто этот код у фирмы Citrix уже есть и применяется в ее продуктах базирующихся на FreeBSD)

Там же про Solaris на VMWare:

==
Oracle has not certified any of its products on VMware virtualized environments
==

navion пишет: 20 июня 2012 в 22:14

==
Про Оракел они слукавили – VMware сами занимаются его поддержкой (http://www.vmware.com/solutions/partners/alliances/oracle-vmware-support.html)
==

Если так -- хорошо

Стоп машина:
Речь про Oracke СУБД ? Или про ОС Solaris ?

Просто хотел отметить следующее:
MS понимает под поддержкой то, что работники MS будут решать проблемы клиента сами -- соответственно, ожидают этого же от конкурента,
когда видят слово "поддержка"

navion пишет: 20 июня 2012 в 22:14

==
а в остальном круто, надеюсь инициативы не заглохнут.
==

Зачастую, приходится _заставлять_ разработчиков и от MS, и от Linux Kernel Team
решать проблемы см. например эпопею с

==
> > > Please, _fix_ errors related
> > > "use hv_storvsc instead of ata_piix to handle the IDE disks devices ( but not for the CD-ROM)"

. . .

cd006086fa5d ata_piix: defer disks to the Hyper-V drivers by default

and its prerequisite

db63a4c8115a libata: add a host flag to ignore detected ATA devices
==

Dim-soft пишет: 28 мая 2012 в 16:26

==
про изменение размеров дисков “на горячую” соглашусь,
надо было срочно увеличить размер системного диска (exchange встал) на esxi 5 мин и все,
на hyper-v пришлось перезагружать.
==

На практике: создавайте динамический .vhd максимального размера,
NTFS раздел можно увеличивать, уменьшать на ходу внутри гостя в .MMC остнастке Windows,
начиная с Win 2008 -- даже системный диск ( он же диск C: )

Если устанавливать Exchange, как положено, на более быстрые диски т.е SCSI, то:
в Hyper-V SCSI-диски можно отключать, подключать на ходу

Итого ( это на случай, если .vhd без запаса по размеру):
-- останаливаем сервисы Exchange
-- отключаем диск
-- увеличиваем размер .vhd
-- подключаем диск
-- увеличиваем NTFS раздел
-- запускаем сервисы Exchange

Т.е. _перезагружать_ не пришлось

dim-soft пишет: 20 июня 2012 в 22:09
==
Проблема была не в диске D с базой exchange, а в системном диске, а он только IDE, т.к. hyper-v не умеет загружаться с scsi
или надо было творить костыль разделяя системный и загрузочный диски ?
==

dim-soft пишет: 20 июня 2012 в 22:09

==
разделяя системный и загрузочный диски ?
==

В Linux такое проходит: Grub + /boot/* на IDE , остальное на SCSI

Сам не пробовал, но и
Не удивлюсь, если и с MS Win v6.0 / v6.1 / v6.2 ( Win 2008 / R2 / Win 2012 )
пройдет нечто похожее

dim-soft пишет: 20 июня 2012 в 22:09

==
Проблема была . . . в системном диске, а он только IDE
==

Расшифрую свои слова:

==
На практике: создавайте динамический .vhd максимального размера
==

.vhd _сразу_ делаем с большим запасом по размеру, но оставляем почти пустым:

+------------------------------- . . .
|
| .vhd присоедененный к IDE 300 - 500Gb
| ( кстати, потолок Virtual PС в 127Gb в IDE дисках преодолен в Hyper-V)
| +------------------------++------------------------------- . . .
| | Disk С: NTFS 40Gb_*****|| Free space
| +------------------------++-------------------------------- . . .
|
+------------------------------- . . .

а когда потребуется место для раздела / partition

--- NTFS раздел можно увеличивать на ходу внутри гостя в .MMC остнастке Windows --}

+------------------------------- . . .
|
| .vhd присоедененный к IDE 300 - 500Gb
| +------------------------------------------++-------------+
| | Disk С: NTFS 83Gb__**********************|| Free space
| +------------------------------------------++-------------+
|
+------------------------------- . . .

вот и не нужен особо динамически расширяемый на ходу .vhd ,
но если будет -- не откажусь

Андрей Вахитов пишет: 21 июня 2012 в 13:55

Насколько я понял из

http://blogs.technet.com/b/vm/archive/2012/05/13/support-for-ubuntu-and-freebsd.aspx

===
Microsoft заключил соглашение о поддержке пользователей Ubuntu, запущенных в виртуальной среде Hyper-V.
Теперь, как и в случае с RedHat, SUSE и CentOS,
при возникновении проблем с виртуализованным Ubuntu можно обращаться на линию технической поддержки Microsoft,
которая будет сама эскалировать инциденты в Ubuntu и являться единой точкой входа.
===

==
беру железку, ставлю туда бесплатный Hyper-V сервер
Имею проблемы, после чего звоню в техподдержку MS и что?..
==
+
==
внедряю внутрь ВМ OpenSuse/FreeBSD, CentOS
==
+
===
я купил Win2k8R2, опять же поднял Hyper-V и установил внутрь гостей бесплатных никсовых операционок.
Вы хотите сказать, что в рамках техподдержки MS начнет решать мои проблемы с никсами?
===

да будет
SUSE ( скорее SLES)
RedHat
CentOS
Ubuntu

( список -- в порядке времени начала дружбы с MS т.е. заключения спец.договора )

Насколько понял, "фуршет" оплачивают производители Linux, скорее всего, встречными услугами от них фирме MicroSoft

Про остальные Free OS: "Debian? А с кем там можно заключить договор?"

FreeBSD -- IMHO, аналогично,
но есть _корпоративные_ profy-любители
==
NetApp совместно с Citrix разрабатывает компоненты интеграции Hyper-V для FreeBSD
==
так что, ничего не исключаю Ж-)

Факт ( эпопея с
"use hv_storvsc instead of ata_piix to handle the IDE disks devices ( but not for the CD-ROM)"
и не только) : Разработчики SUSE и, в последнее время, Ubuntu
вовсю учавствуют в "Hyper-V for Linux" и вообще, в широком смысле,
работоспособности [ своих ] Linux-ов в ПО виртуализации от MS.

Правильный ответ на "кроссворд" :-) :

From: Alex A. Kibkalo
Sent: Thursday, June 21, 2012 6:29 PM

===

Поддержка гостевых ОС осуществляется так же, как и физических ОС.

Если у вас куплены лицензии на Windows Server – то с каждой лицензией идёт 5 инцидентов (больше для Datacenter, с ходу не скажу сколько, ибо я никогда в поддержке не работал).

Итак, если у вас есть лицензии на Windows Server, вы можете открывать инциденты. В том числе по non-MS ОС в гостевых системах, - даже если они запущены на бесплатном гипервизоре (нам не важно на что вы расходуете свои инциденты).

Таким образом вы нам уже заплатили за открытие инцидента.

Если же вы взяли просто Hyper-V Server, не купив ничего у Microsoft, то далее второй линии поддержки не уйти (запросы к сторонним вендорам делает третья линия).

Если вы купили один контроллер домена, и поставили два бесплатных Hyper-V в кластер, сделали десяток юниксов в ВМ – пять инцидентов мы отработаем.

Далее за деньги – также как и в случае простых инцидентов по самому физическому Windows серверу. Пять даром, далее платите по инцидентно, или покупайте Премьер контракт.

==

(

http://blogs.technet.com/b/vm/archive/2012/05/13/support-for-ubuntu-and-freebsd.aspx

VVM Thu, Jun 28 2012 11:35 AM

==
Alex A. Kibkalo >> Я вроде бы уже в почте отвечал на этот вопрос для вашего сайта через читателей :)
==

Было дело . . .

==
VVM:> Чудес не бывает Ж-)
VVM:> будет время, опубликую
==

не успел . . .

Подробнее здесь

http://vvm.blog.tut.by/2012/06/20/vy-vse-eshhe-sravnivaete-gipervizory-answers/

там же ссылка на "сайт Templier-а"

==
Templier:> если вы запустите Netware в MS VirtualPC, получите утилизацию процессора в 100%.
==

Используйте "NetWare CPU Idle NLM"

Nw5-idle.nlm
или
Nw4-idle.nlm

==
Novell NetWare does not implement a processor idle loop by default.
While this is not detrimental on native hardware,
as Novell NetWare is fully in control of the processor,
in Virtual PC this causes the virtual environment to use all available processing power.
This excessive processor usage can be avoided
by loading an idle module such as 'NW5-IDLE.NLM'
. . .

Please note that while this module is called 'NW5-IDLE.NLM'
it works perfectly on Novel NetWare 6.0 as well.
==

)

Забавно: вообще-то, IDLE.NLM "из мира VMWare" , см. например:

http://novell.org.ru/forum/viewtopic.php?f=1&t=11680

==
NW5-IDLE.NLM . . . для тех . . . [ кому ] надо "разгрузить" реальный процессор.
. . .

Без него nw сервер в виртуалке будет честно жрать 100% выданных ему CPU в режиме Utilization 0%.
. . .

грузить в AUTOEXEC.NCF для NetWare 5.x - 6.0, поскольку без него виртуалка отжирала слишком много CPU от хост-машины.

. . .
==

Если не найдете -- пишите прямо здесь в комментарий, комплект сохранился . . .

Linux on Hyper-V — use hv_storvsc instead of ata_piix to handle the IDE disks devices ( but not for the DVD-ROM CD-ROM device handling)

2012-03-29 17:28:50 :

See later:
==
List: linux-kernel
Subject: [PATCH 1/1] ata_piix: defer disks to the Hyper-V paravirtualised drivers by default
From: Andy Whitcroft
Date: 2012-03-29 17:28:50
==

http://marc.info/?l=linux-kernel&w=2&r=1&s=hyper-v&q=b

=>

http://marc.info/?l=linux-kernel&m=133302969709312&w=2


==
List: linux-kernel
Subject: Linux on Hyper-V -- use hv_storvsc instead of ata_piix to handle the IDE disks devices ( but not for the DVD-ROM / CD-ROM device handling) Fw: [PATCH RFC] ata_piix: ignore disks in a hyper-v guest
From: "Victor Miasnikov"
Date: 2012-03-29 14:00:05

Hi!

Shortly:

IMHO, need apply 1/2 ( or combined ) solution problem related "ata_piix.c" in Hyper-V enviroment:

"UBUNTU Way" Solution -- tested with
Ubuntu 12.04 LTS (Precise Pangolin) Daily Build 2012-03-13
precise-desktop-amd64.iso
, work Ok

"OpenSUSE Way" Solution -- tested with
{
OpenSUSE v12.2-Milestone1 09-Feb-2012 16:01 741M

http://download.opensuse.org/distribution/12.2-Milestone1/iso/

[

http://ftp.byfly.by/pub/opensuse/distribution/12.2-Milestone1/iso/openSUSE-KDE-LiveCD-Build0151-x86_64.iso

]
•Last modified: Thu, 09 Feb 2012 15:01:45 GMT (Unix time: 1328799705)
•SHA-1 Hash: 2d9063b7a3ae0c0e43cd91c1ad97ad62b712db18
•MD5 Hash: 220687642130915637357791fe4b5fd1
}
, work Ok

---

1 Problem , 2 solution:

Problem:

http://marc.info/?l=linux-ide&m=131489185106149&w=2

==
From: Olaf Hering
Date: 2011-09-01 15:43:40
Subject: [PATCH RFC] ata_piix: ignore disks in a hyper-v guest

> both ata_piix and hv_blkvsc ( VVM: on 2012-03-XX hv_storvsc) will bind to the same drive

. . .

Here is an attempt ( VVM: on 2012-03-XX worked solution see "OpenSUSE Way") to
ignore disks in a hyper-v disks, and let ata_piix handle only the configured cdrom devices (iso of physical).
If the disks are not ignored, they will appear twice,
once through ata_piix and once through hv_storvsc.
. . .
==

http://vvm.blog.tut.by/2012/02/16/state-of-linux-on-hyper-v/

==

. . .

Kernel v3.2: With Arch fork Сhakra: . . . , but
\dev\sdb is IDE Drive Master Primary ( and not work as need)
and
\dev\sda is IDE Drive Master Primary

i.e.
— \dev\sda = = \dev\sdb

and SCSI not \dev\sdb , but \dev\sdc — IMHO, it is may be not very well ( VVM: on 2012-03-XX -- de-facto, big problem
:-( )

see Linux on Hyper-V Image:

[ Image => see blog ]
. . .

--------------------------------------------------------------------------------
From: KY Srinivasan
Sent: Tuesday, February 21, 2012 7:37 PM
To: Miasnikov Victor
Subject: RE: . . . b) patches to ata_piix need in _official_ kernel RE: Ubuntu: ata_piix.prefer_ms_hyperv=0 Fw: Problem:
\dev\sda == \dev\sdb Fw: IDE drives to hv_storvsc and drops hv_blkvsc Fw: State of Linux on Hyper-V
. . .
With regards to the ata_piix changes, we will try to push that upstream shortly. ( VVM: on 2012-03-29 -- IMHO, need
start work :-( )

K. Y

==

http://kernel.opensuse.org/cgit/kernel-source/commit/?id=d0bebdb606bad2545622f61225707f061bd6eba5

==
If the disks are not ignored, they will appear twice: once through piix and once through hv_storvsc.
hv_storvsc can not handle ATAPI devices because they can only be accessed
through the emulated code path (not through the vm_bus channel),
the piix driver is still required.
==

http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-precise.git;a=commit;h=a896e46ae52619bf4f34cdb342c2862071f5c25c

===
UBUNTU: SAUCE: ata_piix: defer disks to the Hyper-V drivers by default
author Andy Whitcroft
. . .
Mon, 19 Mar 2012 17:30:08 +0000 (11:30 -0600)
. . .

UBUNTU: SAUCE: ata_piix: defer disks to the Hyper-V drivers by default

When we are hosted on a Microsoft Hyper-V hypervisor
the guest disks are exposed both via the Hyper-V paravirtualised drivers and via an emulated SATA disk drive.
In this case we want to use the paravirtualised drivers if we can as they are much more efficient.
Note that the Hyper-V paravirtualised drivers only expose the virtual hard disk devices,
the CDROM/DVD devices must still be enumerated.
Check the disk type when picking up its ID and if it appears to be a disk just report it disconnected.

BugLink: http://bugs.launchpad.net/bugs/929545
BugLink: http://bugs.launchpad.net/bugs/942316
Signed-off-by: Andy Whitcroft

===

Solutions:

use hv_storvsc instead of ata_piix to handle the IDE disks devices ( but not for the DVD-ROM CD-ROM device handling)
Or
ata_piix should not control the disks when hosted on Hyper-V
Or
Modify the ata_piix driver to recognize that when hosted on Hyper-V, it should not control the disks.

"UBUNTU Way" Solution:

(

{
Ubuntu 12.04 (PP) development kernel tree -- Ubuntu-3.2.0-20.33

http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-precise.git;a=summary

[

http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-precise.git;a=snapshot;h=870f3e33f86692a751ca7b94a7ad96e114674489;sf=tgz

]
}
)

See variant ( i.e. patch only with soruce code related Hyper-V ):

==
--- ..00\ata_piix.c Thu Jan 05 02:55:44 2012
+++ ata_piix.c Thu Mar 29 13:41:04 2012
@@ -91,12 +91,15 @@
#include
#include
#include
#include
#include
#include
+#ifdef CONFIG_X86
+#include
+#endif

#define DRV_NAME "ata_piix"
#define DRV_VERSION "2.13"

enum {
PIIX_IOCFG = 0x54, /* IDE I/O configuration register */
@@ -185,12 +188,35 @@
static int piix_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg);
static int piix_pci_device_resume(struct pci_dev *pdev);
#endif

static unsigned int in_module_init = 1;

+static int prefer_ms_hyperv = 1;
+
+unsigned int ata_piix_read_id(struct ata_device *dev,
+ struct ata_taskfile *tf, u16 *id)
+{
+ int ret = ata_do_dev_read_id(dev, tf, id);
+
+#ifdef CONFIG_X86
+ /* XXX: note that the device id is in little-endian order, the caller
+ * will shift it to host order, but we are working with little-endian.
+ * As this is _only_ used on x86 we can actually directly access it
+ * as host is also little-endian.
+ */
+ if (!ret && prefer_ms_hyperv && x86_hyper == &x86_hyper_ms_hyperv &&
+ ata_id_is_ata(id)) {
+ ata_dev_printk(dev, KERN_WARNING, "ATA disk ignored deferring to Hyper-V paravirt driver\n");
+
+ return AC_ERR_DEV|AC_ERR_NODEV_HINT;
+ }
+#endif
+ return ret;
+}
+
static const struct pci_device_id piix_pci_tbl[] = {
/* Intel PIIX3 for the 430HX etc */
{ 0x8086, 0x7010, PCI_ANY_ID, PCI_ANY_ID, 0, 0, piix_pata_mwdma },
/* VMware ICH4 */
{ 0x8086, 0x7111, 0x15ad, 0x1976, 0, 0, piix_pata_vmw },
/* Intel PIIX4 for the 430TX/440BX/MX chipset: UDMA 33 */
@@ -348,12 +374,13 @@
static struct ata_port_operations piix_pata_ops = {
.inherits = &piix_sata_ops,
.cable_detect = ata_cable_40wire,
.set_piomode = piix_set_piomode,
.set_dmamode = piix_set_dmamode,
.prereset = piix_pata_prereset,
+ .read_id = ata_piix_read_id,
};

static struct ata_port_operations piix_vmw_ops = {
.inherits = &piix_pata_ops,
.bmdma_status = piix_vmw_bmdma_status,
};
@@ -1685,6 +1712,8 @@
{
pci_unregister_driver(&piix_pci_driver);
}

module_init(piix_init);
module_exit(piix_exit);
+
+module_param(prefer_ms_hyperv, int, 0);
==

"OpenSUSE Way" Solution:

http://kernel.opensuse.org/cgit/kernel/commit/?id=aeff3a8fcde6df6e7f26618c5e3bc716a6aa9e85

http://kernel.opensuse.org/cgit/kernel/tree/drivers/ata/ata_piix.c?id=aeff3a8fcde6df6e7f26618c5e3bc716a6aa9e85

[

http://kernel.opensuse.org/cgit/kernel/plain/drivers/ata/ata_piix.c?id=aeff3a8fcde6df6e7f26618c5e3bc716a6aa9e85

]

See variant ( i.e. patch only with soruce code related Hyper-V ):

==
--- ..00\ata_piix.c Tue Mar 27 14:39:53 2012
+++ ata_piix.c Tue Mar 27 14:40:31 2012
@@ -162,16 +162,17 @@
const int *map;
u32 saved_iocfg;
void __iomem *sidpr;
};

static int piix_init_one(struct pci_dev *pdev,
const struct pci_device_id *ent);
static void piix_remove_one(struct pci_dev *pdev);
+static unsigned int piix_pata_read_id(struct ata_device *adev, struct ata_taskfile *tf, u16 *id);
static int piix_pata_prereset(struct ata_link *link, unsigned long deadline);
static void piix_set_piomode(struct ata_port *ap, struct ata_device *adev);
static void piix_set_dmamode(struct ata_port *ap, struct ata_device *adev);
static void ich_set_dmamode(struct ata_port *ap, struct ata_device *adev);
static int ich_pata_cable_detect(struct ata_port *ap);
static u8 piix_vmw_bmdma_status(struct ata_port *ap);
static int piix_sidpr_scr_read(struct ata_link *link,
unsigned int reg, u32 *val);
@@ -346,16 +347,17 @@
};

static struct ata_port_operations piix_pata_ops = {
.inherits = &piix_sata_ops,
.cable_detect = ata_cable_40wire,
.set_piomode = piix_set_piomode,
.set_dmamode = piix_set_dmamode,
.prereset = piix_pata_prereset,
+ .read_id = piix_pata_read_id,
};

static struct ata_port_operations piix_vmw_ops = {
.inherits = &piix_pata_ops,
.bmdma_status = piix_vmw_bmdma_status,
};

static struct ata_port_operations ich_pata_ops = {
@@ -633,16 +635,36 @@
};

MODULE_AUTHOR("Andre Hedrick, Alan Cox, Andrzej Krzysztofowicz, Jeff Garzik");
MODULE_DESCRIPTION("SCSI low-level driver for Intel PIIX/ICH ATA controllers");
MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, piix_pci_tbl);
MODULE_VERSION(DRV_VERSION);

+static int piix_msft_hyperv(void)
+{
+ int hv = 0;
+#if defined(CONFIG_HYPERV_STORAGE) || defined(CONFIG_HYPERV_STORAGE_MODULE)
+ static const struct dmi_system_id hv_dmi_ident[] = {
+ {
+ .ident = "Hyper-V",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "Virtual Machine"),
+ DMI_MATCH(DMI_BOARD_NAME, "Virtual Machine"),
+ },
+ },
+ { } /* terminate list */
+ };
+ hv = !!dmi_check_system(hv_dmi_ident);
+#endif
+ return hv;
+}
+
struct ich_laptop {
u16 device;
u16 subvendor;
u16 subdevice;
};

/*
* List of laptops that use short cables rather than 80 wire
@@ -722,16 +744,36 @@
static int piix_pata_prereset(struct ata_link *link, unsigned long deadline)
{
struct ata_port *ap = link->ap;
struct pci_dev *pdev = to_pci_dev(ap->host->dev);

if (!pci_test_config_bits(pdev, &piix_enable_bits[ap->port_no]))
return -ENOENT;
return ata_sff_prereset(link, deadline);
+}
+
+static unsigned int piix_pata_read_id(struct ata_device *adev, struct ata_taskfile *tf, u16 *id)
+{
+ unsigned int err_mask = ata_do_dev_read_id(adev, tf, id);
+ /*
+ * Ignore disks in a hyper-v guest.
+ * There is no unplug protocol like it is done with xen_emul_unplug= option.
+ * Emulate the unplug by ignoring disks when the hv_storvsc driver is enabled.
+ * If the disks are not ignored, they will appear twice: once through
+ * piix and once through hv_storvsc.
+ * hv_storvsc can not handle ATAPI devices because they can only be
+ * accessed through the emulated code path (not through the vm_bus
+ * channel), the piix driver is still required.
+ */
+ if (ata_id_is_ata(id) && piix_msft_hyperv()) {
+ ata_dev_printk(adev, KERN_WARNING, "ATA device ignored in Hyper-V guest\n");
+ id[ATA_ID_CONFIG] |= (1 <host->dev);
==

Best regards, Victor Miasnikov
Blog: http://vvm.blog.tut.by/

--

----- Original Message -----
From: "Olaf Hering" ohering
To: "Victor Miasnikov" vvm
Cc: "Andy Whitcroft" apw ( at )canonical; "Mathieu Simon"
Sent: Thursday, March 29, 2012 4:58 PM
Subject: Re: Are You see "UBUNTU Way" Variant? Fw: Are You see "OpenSUSE Way" Variant? Fw: UBUNTU: SAUCE: ata_piix: defer disks to the Hyper-V drivers by default

On Thu, Mar 29, Victor Miasnikov wrote:

>
> Hi!
> Are You see "UBUNTU Way" Variant?

Victor,

thanks for sharing their approach. Either way is fine for the time
being, disks are ignored by ata_piix if it runs in hyper-v guest.

Now someone has to step up and submit a change suitable for upstream.
Both approaches have the issue that ATA probing is slightly delayed, at
least that happens with our change.

Olaf
--

----- Original Message -----
From: "Victor Miasnikov" vvm
To: "Olaf Hering" ohering
Cc: "Andy Whitcroft" apw ( at ) canonical.com; "Mathieu Simon" ; "KY Srinivasan" kys (at) microsoft
Sent: Thursday, March 29, 2012 5:10 PM
Subject: Re: Are You see "UBUNTU Way" Variant? Fw: Are You see "OpenSUSE Way" Variant? Fw: UBUNTU: SAUCE: ata_piix: defer disks to the Hyper-V drivers by default

Hi!

> thanks for sharing their approach.

No problem :-)

> Either way is fine for the time being,
> disks are ignored by ata_piix if it runs in hyper-v guest.
>
> Now someone has to step up and submit a change suitable for upstream.
> Both approaches have the issue that ATA probing is slightly delayed, at
> least that happens with our change.

"issue . . .is slightly delayed" -- but Linux work as need :-)

And see in P.P.S. :

[ this blog entry ]

Best regards, Victor Miasnikov

--

https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/942316

==

Mike Sterling (mike-sterling) wrote on 2012-03-05:
==
After reviewing this - I suspect the issue is the modifications to ata_piix to prevent it from loading on a Hyper-V platform. Since ata_piix now detects a Hyper-V platform and unloads if it's found, this would prevent the OS from installing. We need a modification to the patch here ( VVM: only for history :-) . . ./lp929545-precise/0001-ata_piix-defer-to-the-Hyper-V-drivers-by-default.patch ) that will only unload the block device handling, not the CD/DVD device handling.
==

Done: 1) in Ubuntu kernel already 2) for "vanila kernel" send patch ( Big thanks Andy Whitcroft (apw)! ) see

http://marc.info/?l=linux-kernel&m=133304222215301&w=2

==
List: linux-kernel
Subject: [PATCH 1/1] ata_piix: defer disks to the Hyper-V paravirtualised drivers by default
From: Andy Whitcroft
Date: 2012-03-29 17:28:50

When we are hosted on a Hyper-V hypervisor the guest disks are exposed
both via the Hyper-V paravirtualised drivers and via an emulated SATA disk
controller. We want to use the paravirtualised drivers where possible as
they are much more performant. The Hyper-V paravirtualised drivers only
expose the virtual hard disk devices, the CDROM/DVD devices must still
be enumerated on the virtualised SATA controller. As we have no control
over kernel probe order for these two drivers especially when one driver
is builtin to the kernel and the other a module, we need to prevent the
ata_piix driver from claiming the disks devices by default when running
on a Hyper-V hypervisor.

When enumerating the drives look at the aquired device ID and if it
appears to be a disk device then report it as disconnected. Limit this
behaviour to when we have detected a Hyper-V hypervisor. Finally allow
this behaviour to be overriden via a new module parameter.

==

==

==

Copyright © 2013 Виктор Мясников ( Victor Miasnikov). Search Engine Optimization by Star Nine. Distributed by Wordpress Themes
Хостинг hoster.by   Сервис белорусских блогов: BLOGS.TUT.BY