From nobody@FreeBSD.org  Tue Apr 29 05:56:49 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 6F5B7C13
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Apr 2014 05:56:49 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id 412281533
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Apr 2014 05:56:49 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3T5umKf029314
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Apr 2014 05:56:48 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3T5umNG029305;
	Tue, 29 Apr 2014 05:56:48 GMT
	(envelope-from nobody)
Message-Id: <201404290556.s3T5umNG029305@cgiserv.freebsd.org>
Date: Tue, 29 Apr 2014 05:56:48 GMT
From: Barry Boone <barry@tulsa.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 10-STABLE breaks Windows Azure compatibility
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         189097
>Category:       kern
>Synopsis:       [hyper-v] [patch] 10-STABLE breaks Windows Azure compatibility [regression]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gjb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 29 06:00:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Sun May 04 02:59:50 UTC 2014
>Originator:     Barry Boone
>Release:        10-STABLE
>Organization:
Tulsa Network Solutions
>Environment:
FreeBSD freebsdazure 10.0-STABLE FreeBSD 10.0-STABLE #1 r265074M: Tue Apr 29 00:09:57 CDT 2014     boone@freebsdazure:/usr/obj/usr/src2/sys/GENERIC  amd64
>Description:
I've been testing FreeBSD 10 on the Windows Azure cloud platform, which
is naturally very similar to a Hyper-V environment.

FreeBSD 10.0-Release, and 10.0p1 both work fine under Azure.  I've been
able to get a modified version of the WALinuxAgent script working, and
can provision the OS from the Azure interface and all seems stable and good.

During testing, I created an image with the 10-STABLE kernel.  An MFC to
the stable branch, I believe revision r263065, changed the way that the
driver scans for virtual IDE/SCSI devices.  The effect, is that while the
main OS disk is found and mounted, the Microsoft "temporary" disk that is
allocated for use as temp space and/or swap, does not get detected on bootup.

Example:

Under 10.0-RELEASE...

da0 at blkvsc0 bus 0 scbus1 target 0 lun 0
da0: <Msft Virtual Disk 1.0> Fixed Direct Access SCSI-4 device
da0: 300.000MB/s transfers
da0: Command Queueing enabled
da0: 30720MB (62914560 512 byte sectors: 255H 63S/T 3916C)
da1 at blkvsc1 bus 0 scbus2 target 1 lun 0
da1: <Msft Virtual Disk 1.0> Fixed Direct Access SCSI-4 device
da1: 300.000MB/s transfers
da1: Command Queueing enabled
da1: 61440MB (125829120 512 byte sectors: 255H 63S/T 7832C)

Under 10-STABLE, da1 (blkvsc1) is not detected at all.


>How-To-Repeat:
Compile 10-STABLE's generic kernel, make installkernel.  To get back to
normal, boot the 10.0p1 release kernel.
>Fix:
In the file sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c

change the STORVSC_MAX_TARGETS value to 2.

i.e. 

#define STORVSC_MAX_TARGETS (2)

This fixed the issue for me, with this one line patch, I have 10-STABLE
working perfectly on Azure again.



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-emulation 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun May 4 02:42:58 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=189097 
Responsible-Changed-From-To: freebsd-emulation->gjb 
Responsible-Changed-By: gjb 
Responsible-Changed-When: Sun May 4 02:58:29 UTC 2014 
Responsible-Changed-Why:  
I'm fighting with similar problems. 

In addition, can you send me your WALinuxAgent changes?  I'm 
fighting other issues there, which you may have fixed already. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=189097 
>Unformatted:
