Is there any guide on how to make windows 10 template for Hyper-V ?
Hello,
You should be able to follow the guide for Server 2012r2 as this has not changed alot between the desktop and server versions.
You can find the guide at: https://solidcp.com/kb/configuration/hyperv2012r2-os-template/
Hey,
The error shows a problem in sysprep. I would check your sysprep file path and index to expand is set correctly.
Regards,
Trevor
Hi,
I changed the index to expand 0 and 1 but still getting error
00:00:00
Setup external network00:00:00
Assigning external IP addresses00:00:00
Setting external primary IP address00:00:00
Setup management network00:00:00
Management network setup - Skipped00:00:00
Setup private network00:00:00
Private network setup - Skipped00:00:00
OS Template Generation: 200:00:00
SecureBoot: Enabled00:00:00
OS Template: Windows 1000:00:00
Start Converting template VHD00:00:00
Template VHD path: D:Hyper-VSCPTemplatesWindows10.vhdx00:00:00
Converting to 'D:Hyper-VSCPCustomersadminadmin-2Virtual Hard Disksadmin-2.vhdx'00:00:46
Template VHD size: 20 GB00:00:46
Expanding to 40 GB00:00:46
Start Expanding VHD00:00:55
Error running DiskPart utility: Server was unable to process request. ---> The call to IVdsVolume::Extend(...) failed. ---> Exception from HRESULT: 0x8004240F
Server was unable to process request. ---> The call to IVdsVolume::Extend(...) failed. ---> Exception from HRESULT: 0x8004240F
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at SolidCP.EnterpriseServer.VirtualizationServerController2012.CreateVirtualMachineInternal(String taskId, VirtualMachine vm, LibraryItem osTemplate, Int32 externalAddressesNumber, Boolean randomExternalAddresses, Int32[] externalAddresses, Int32 privateAddressesNumber, Boolean randomPrivateAddresses, String[] privateAddresses, String summaryLetterEmail)00:00:55
Sysprep file: WindowsSystem32sysprepunattend.xml00:00:56
OS Time Zone:00:00:57
CPU cores: 400:00:57
RAM: 4096 MB00:00:57
Minimum VHD IOPS: 000:00:57
Maximum VHD IOPS: 000:00:57
Creating Virtual Machine object00:01:02
Virtual Machine object created00:01:02
Setting "computer name" provisioning task parameters00:01:03
Trying to add the Task00:01:03
The task has been sent to the VPS00:01:03
Setting "administrator password" provisioning task parameters00:01:04
Trying to add the Task00:01:04
The task has been sent to the VPS00:01:04
Setting "external NIC" provisioning task parameters00:01:05
Trying to add the Task00:01:05
The task has been sent to the VPS00:01:05
Setting "management NIC" provisioning task parameters00:01:05
Setting "private NIC" provisioning task parameters00:01:05
Starting VPS...00:01:08
VPS started00:01:08
VPS successfully created