View Issue Details

IDProjectCategoryView StatusLast Update
0000223Kali LinuxGeneral Bugpublic2013-07-04 14:12
Reporterkamtec1 Assigned Todookie  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionnot fixable 
PlatformWindowsOSWindows 8 ProOS Version9200
Summary0000223: Windows 8 With Hyper-V support - Not supporting Kali Linux
Description

Hello,

Try to install the Kali linux on the hyper v on windows 8 and its dont work .

Installed the kali linux on 2008 + 2012 and it worked great .

I think it going to some loop of files in the installing .

Steps To Reproduce

Laptop or PC with windows 8 that have hyper V installed .

Install kali linux on hyper v machine .

Additional Information

The steps are going fine but when it start to install it goes to stuck at 1% .

Activities

kamtec1

kamtec1

2013-03-31 13:59

reporter   ~0000286

Its on Kali Linux 1.0

kamtec1

kamtec1

2013-03-31 15:26

reporter   ~0000290

checked with couple of tests , Network card dont do that problem .
Try without Net install and same result .

neopunk

neopunk

2013-04-28 10:17

reporter   ~0000417

WRITE_SAME not supported on Hyper-V, when the ext4 filesystem is configured the WRITE_SAME command is used and it gets in an endless loop.

Found the following information. storvsc needs to be fixed on the latest kernel.

Set scsi_device->no_write_same because the host does not support it.
Also blacklist WRITE_SAME to avoid (and log) accident usage.

If the guest uses the ext4 filesystem, storvsc hangs while it prints
these messages in an endless loop:
...
[ 161.459523] hv_storvsc vmbus_0_1: cmd 0x41 scsi status 0x2 srb status 0x6
[ 161.462157] sd 2:0:0:0: [sda]
[ 161.463135] Sense Key : No Sense [current]
[ 161.464983] sd 2:0:0:0: [sda]
[ 161.465899] Add. Sense: No additional sense information
[ 161.468211] hv_storvsc vmbus_0_1: cmd 0x41 scsi status 0x2 srb status 0x6
[ 161.475766] sd 2:0:0:0: [sda]
[ 161.476728] Sense Key : No Sense [current]
[ 161.478284] sd 2:0:0:0: [sda]
[ 161.479441] Add. Sense: No additional sense information
...

This happens with a guest running on Windows Server 2012, but happens to
work while running on Windows Server 2008. WRITE_SAME isnt really
supported by both versions, so disable the command usage globally.

Signed-off-by: Olaf Hering <[email protected]>
Cc: KY Srinivasan <[email protected]>

drivers/scsi/storvsc_drv.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
index 0144078..314586c 100644
--- a/drivers/scsi/storvsc_drv.c
+++ b/drivers/scsi/storvsc_drv.c
@@ -1155,6 +1155,8 @@ static int storvsc_device_configure(struct scsi_device
*sdevice)

    blk_queue_bounce_limit(sdevice->request_queue, BLK_BOUNCE_ANY);
  • sdevice->no_write_same = 1;
  • return 0;

    }

@@ -1237,6 +1239,8 @@ static bool storvsc_scsi_cmd_ok(struct scsi_cmnd *scmnd)
u8 scsi_op = scmnd->cmnd[0];

    switch (scsi_op) {
  • / the host does not handle WRITE_SAME, log accident usage /
  • case WRITE_SAME:
    /*
    • smartd sends this command and the host does not handle
    • this. So, don't send it.
      --
      1.8.1.1

--

kamtec1

kamtec1

2013-06-21 18:26

reporter   ~0000585

Hi .
Yeap .

The kernel is not working on 2012 and win 8 but work in 2008 ...

Now tasted on 1.0.3

dookie

dookie

2013-06-27 12:34

reporter   ~0000598

This is a MS/Hyper-V issue, not a Kali Linux issue.

Issue History

Date Modified Username Field Change
2013-03-31 13:55 kamtec1 New Issue
2013-03-31 13:59 kamtec1 Note Added: 0000286
2013-03-31 15:26 kamtec1 Note Added: 0000290
2013-04-28 10:17 neopunk Note Added: 0000417
2013-06-21 18:26 kamtec1 Note Added: 0000585
2013-06-27 12:34 dookie Note Added: 0000598
2013-06-27 12:34 dookie Status new => closed
2013-06-27 12:34 dookie Assigned To => dookie
2013-06-27 12:34 dookie Resolution open => not fixable