Posts Tagged ‘Hyper-V’
RHEL 6.4 on Hyper-V
RHEL 6.4 / CentOS 6.4 include support for Hyper-V drivers
==
8.2. Hyper-V
. . .
Inclusion of, and Guest Installation Support for, Microsoft Hyper-V Drivers
-
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)
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.
==
==

==
==
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.koWORKAROUND 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
Как результат:
==
==
==![hupstream.com-monolithic-mini.iso-2012-10-16-_.iso-Image-2[1]](http://attachments-blog.tut.by/58190/files/2012/11/hupstream.com-monolithic-mini.iso-2012-10-16-_.iso-Image-2.png)
==
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
–
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
https://bugzilla.redhat.com/show_bug.cgi?id=810040
+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.
Sent: Wednesday, January 09, 2013 5:06 PM
>>
>> Hi!
>> Problem exist? Or not?
Hi!
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.
-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 :

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

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.
==

>(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

