Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Creating Parent Disks #7

Closed
aadebajo opened this issue Aug 19, 2016 · 19 comments
Closed

Error Creating Parent Disks #7

aadebajo opened this issue Aug 19, 2016 · 19 comments

Comments

@aadebajo
Copy link

aadebajo commented Aug 19, 2016

I encountered so many errors during creating parent disks, kindly assist.
Find attached.

Create Parent Disks.docx

@jaromirk
Copy link
Collaborator

Hmm, looks like convert-windowsimage (script that's called during creation of parent disks) has issues creating vhd. Can you check permissions on file system? You will also need to manually disable secure boot on VMs (switch to Microsoft UEFI CA and then disable), or machines will fail to boot.

@aadebajo
Copy link
Author

Hi Jaromirk,

How do i check the permission on file system? I do not have any VMs created yet but i have disable secure boot on the PC i am using.
find attached.
vhd error

@aadebajo
Copy link
Author

Hi Jaromirk,

Thanks for your assistance.....i have seen what the problem was. I was running the whole thing from an external disk, as soon as i copied it to the internal drive. The script executed perfectly.

@jaromirk
Copy link
Collaborator

Glad to hear that it worked well! :) Just curious - it was fat32 filesystem, wasn't it? Also give a try to dev branch - I added some cool stuff such as vTPM, nested virtualization, little bit different config (new file, just one variable). And let me know how it works and what can I make better. THX!

@aadebajo
Copy link
Author

It was.....will try dev branch when i am done deploying. Meanwhile i ran into another problem

Error: 145

The directory is not empty.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

Deployment Image Servicing and Management tool
Version: 10.0.14300.1000

What am i suppose to do here?

@jaromirk
Copy link
Collaborator

Can you attach log?

@aadebajo
Copy link
Author

Logs.docx

@jaromirk
Copy link
Collaborator

When does it happen (I mean which task - cleanup, 2_createparentdisks,3_deploy)? Can you also please add deploy.log/createparentdisks.log?

@aadebajo
Copy link
Author

It happens during createparentdisks

CreateParentDisks.docx

@jaromirk
Copy link
Collaborator

It looks like that mountdir in temp folder still contains mounted VHD from last run. Check disk management and unmount vhd. Also delete temp folder and start again. Or just hydrate all from scratch in new folder (1_prereq -> 2_createparentdisks ...)

@aadebajo
Copy link
Author

Hello, Thanks again......i was able to go a bit further than before. Createparentdisks was almost completing this time
CreateParentDisks.docx

@jaromirk
Copy link
Collaborator

And now you need to disable that Secure Boot I mentioned. In hyperv manager you should see DC that does not start. Go to settings of this Vm, switch Secure Boot to Microsoft UEFI CA, and then disable Secure Boot. The script then finishes. This is working well in RTM bits, so Ill not be fixing it as RTM will be announced at Ignite.

@jaromirk
Copy link
Collaborator

Btw if you follow the steps in readme, you should see this in step 5

Step 5 Right-click and run with PowerShell 2_CreateParentDisks.ps1
2_CreateParentDisks.ps1 will check if you have Hyper-V installed, it will prompt you for Windows Server 2016 TP5 ISO file, hydrate parent disks and hydrate Domain Controller.
note: if you have Windows 10 Anniversary Update, DC will fail to start. You need to switch Secure Boot to Microsoft UEFI CA and then disable Secure Boot. This problem is only in TP5 guests. RTM is OK.

@jaromirk
Copy link
Collaborator

I'm closing this issue. Takeaway is to create better documentation. I would be happy if you want to contribute. THX, Jaromir

@aadebajo
Copy link
Author

I have finally been able to go through all the steps and my LAB is now up and running.....thanks a lot for your assistance.

@jaromirk
Copy link
Collaborator

@aadebajo
Copy link
Author

Saw the link and I wanted to try, will like this o know if the variables.ps1 without nested virtualization will be ran within the script area we used in deploying the Lab. Then do I need to run all the configuration script on my main DC while others are still powered off?

@jaromirk
Copy link
Collaborator

I don't get it. Just look on that gif. It explains it....

@MS-MatthewWalker
Copy link

When you run the deploy script it will handle the tasks on the DC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants