WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Hyper-V Support - HDD not found?  (Read 10073 times)

Offline Driiper

  • Newbie
  • *
  • Posts: 9
Hyper-V Support - HDD not found?
« on: November 28, 2015, 09:48:28 PM »
Hello, ive customized the tinycore iso and ive got it to work in both Virtualbox and VMWARE, attaching it as an IDE disk (VHD file)
But i cannot seem to be able to get tinycore to recognize the hard drive in Hyper-V

ive tried 6.4.1 and 5.3. None of them are working.


Anyone know what i can do to solve this?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Hyper-V Support - HDD not found?
« Reply #1 on: November 28, 2015, 10:00:50 PM »
As per a forum search on "hyper", others seem to have managed it?

Offline Driiper

  • Newbie
  • *
  • Posts: 9
Re: Hyper-V Support - HDD not found?
« Reply #2 on: November 28, 2015, 10:36:27 PM »
http://forum.tinycorelinux.net/index.php/topic,18039.msg109262.html#msg109262
Quote
v6.1rc reissued with hv_storvsc in the base - please test and let us know if it works

I've searched the forums already and can't really seem to find any thread related to getting 6.x to work.

I howeer found the above which should indicate that it "should" work?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Hyper-V Support - HDD not found?
« Reply #3 on: November 28, 2015, 10:40:02 PM »
The very next post by user Hadlock says:
Quote
This is resolved in the latest RC of 6.1 please close thanks

Offline Driiper

  • Newbie
  • *
  • Posts: 9
Re: Hyper-V Support - HDD not found?
« Reply #4 on: November 28, 2015, 10:47:28 PM »
Okay, so i tested all following versions:
6.0
6.1
6.2
6.3
6.4
6.4.1 (Which is started out with)

All of the above worked except the most recent (6.4.1)
Guess thats called being unlucky ..

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Hyper-V Support - HDD not found?
« Reply #5 on: November 28, 2015, 10:51:19 PM »
Did you get an error message from 6.4.1?

What command are you using to attach the hd?

Offline Driiper

  • Newbie
  • *
  • Posts: 9
Re: Hyper-V Support - HDD not found?
« Reply #6 on: November 28, 2015, 10:53:39 PM »
I'm simply checking if the disks are listed with fdisk -l.

All disks (both IDE and SCSI) were listed in the working versions. The list was however empty in 6.4.1

Offline Driiper

  • Newbie
  • *
  • Posts: 9
Re: Hyper-V Support - HDD not found?
« Reply #7 on: November 28, 2015, 11:01:32 PM »
When attempting to bind home and opt directory to sda1 it does not seem to work as intented.

The disks are "identified" by the OS before after the bootup.

You have probably already noticed that i'm clueless of what is happening here. I'm trying though..

« Last Edit: November 28, 2015, 11:06:53 PM by Driiper »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Hyper-V Support - HDD not found?
« Reply #8 on: November 28, 2015, 11:30:34 PM »
I'm guessing you're attaching the hd with a command in bootlocal.sh, but this has not been processed before the boot sequence attempts to mount the persistant home?

Offline Driiper

  • Newbie
  • *
  • Posts: 9
Re: Hyper-V Support - HDD not found?
« Reply #9 on: November 28, 2015, 11:48:50 PM »
In my virtualbox, the mounts happened out of the box without any entries.
I'm not sure how tinycore handles mounting the hard drives by default as it worked without any configurations.


What i know: i must have some kinda access to the drive at all times since it loads the kernel from /boot which are located on sda1
Where would you suggest i configure the drive to be mounted "pre-boot" ?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: Hyper-V Support - HDD not found?
« Reply #10 on: November 29, 2015, 02:35:31 AM »
Oh, the module indeed disappeared from 6.4.1. I guess that was around the server break. No other files missing, checked.

Regarding the error in your screenshot: the driver was loaded, but was waiting for something, and so the HD was not detected in time. This could mean a bug in either the driver or in the host HyperV.
The only barriers that can stop you are the ones you create yourself.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Hyper-V Support - HDD not found?
« Reply #11 on: November 29, 2015, 05:16:19 AM »
hv_storvsc module added back into base and 6.4.1 iso's/distribution files reposted

Offline Driiper

  • Newbie
  • *
  • Posts: 9
Re: Hyper-V Support - HDD not found?
« Reply #12 on: November 29, 2015, 06:54:11 AM »
Oh, the module indeed disappeared from 6.4.1. I guess that was around the server break. No other files missing, checked.

Regarding the error in your screenshot: the driver was loaded, but was waiting for something, and so the HD was not detected in time. This could mean a bug in either the driver or in the host HyperV.

Is there any way of "forcing" a wait for the drives to be mounted?
After boot i get the following message aswell:

Code: [Select]
udevadm settle - timeout of 5 seconds reached, the event queue contains:
    /sys/devices/LNXSYSTM:00/LNXSYSBUS:00/PNP0A03:00/device:07/VMBUS:01/vmbus_0_1/host2/target2:0:0/2:0:0:0/block/sda/sda1 (1344)

by the way, if it helps: my boot options are:

Code: [Select]
kernel /boot/vmlinuz loglevel=3 opt=sda1 home=sda1 tce=sda1


Offline Driiper

  • Newbie
  • *
  • Posts: 9
Re: Hyper-V Support - HDD not found?
« Reply #13 on: November 29, 2015, 07:58:22 AM »
I added the waitusb bootflag to grub and was successfully able to boot with mounted drives.
This works but are not optimal for the boot time. Is there any way for specifically waiting for a device?

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Hyper-V Support - HDD not found?
« Reply #14 on: November 29, 2015, 08:04:08 AM »
waitusb=5:UUID="01234567-89ab-cdef-0123-456789abcdef"
Or
waitusb=5:LABEL="*YOUR*DISK*LABEL*"
Download a copy and keep it handy: Core book ;)