Error creating VPS ...
 
Notifications
Clear all

Error creating VPS on a remote hyperv core server

4 Posts
2 Users
0 Reactions
879 Views
Posts: 237
Topic starter
(@hxkd)
Reputable Member
Joined: 7 years ago

Hi,

I am having issues when creating remote hyperv servers on hyperv core. If the system creates the vps on the proxy hyperv server which is running std it creates the vps everything all fine. however if you create a vps and it selects a remote hyperv core server, ie which uses the proxy server, it fails when creating the hard disk. The error is seen as below. The hyperv server is configured correct, the scp folder does have the scpservice user with full rights, the file does exist, the templates I have recreated the server with default entries, etc still no luck, across all the remote hyperv core servers. however there is different errors in the proxy servers error logs as per the below errors beneath his log entry here.

Setup external network
00:00:00
Assigning external IP addresses
00:00:00
Setting external primary IP address
00:00:00
Setup management network
00:00:00
Management network setup - Skipped
00:00:00
Setup private network
00:00:00
Private network setup - Skipped
00:00:00
OS Template Generation: 1
00:00:00
OS Template: Centos7
00:00:00
Start Converting template VHD
00:00:00
Template VHD path: c:\SCP73\templates\Centos7.vhdx
00:00:00
Converting to 'd:\Hyper-V\hotbinte\hotB1509.Interdaqu.us\Virtual Hard Disks\hotB1509.Interdaqu.us.vhdx'
00:00:01
Error while converting VHD: Server was unable to process request. ---> Object reference not set to an instance of an object.
Server was unable to process request. ---> Object reference not set to an instance of an object.
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.Providers.Virtualization2012.VirtualizationServer2012.GetJob(String jobId)
at SolidCP.EnterpriseServer.VirtualizationServerController2012.JobCompleted(VirtualizationServer2012 vs, ConcreteJob job)
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:01
VPS was not created
 
 
 
This is seen on the proxy server error logs always the 4 of them
[6/21/2021 8:41:35 PM] ERROR: HostedSolution GetJob
System.NullReferenceException: Object reference not set to an instance of an object.
   at SolidCP.Providers.Virtualization.JobHelper.CreateFromPSObject(Collection`1 objJob)
   at SolidCP.Providers.Virtualization.HyperV2012R2.GetJob(String jobId)

 
[6/21/2021 8:41:35 PM] ERROR: 'Microsoft Hyper-V 2016' GetJob
System.NullReferenceException: Object reference not set to an instance of an object.
   at SolidCP.Providers.Virtualization.JobHelper.CreateFromPSObject(Collection`1 objJob)
   at SolidCP.Providers.Virtualization.HyperV2012R2.GetJob(String jobId)
   at SolidCP.Server.VirtualizationServer2012.GetJob(String jobId)
 
 
[6/21/2021 8:49:56 PM] ERROR: HostedSolution Error deleting Virtual Machine 'hotB1509.Interdaqu.us'
System.Management.Automation.ParameterBindingException: Cannot bind parameter 'Id'. Cannot convert value "" to type "System.Guid". Error: "Unrecognized Guid format." ---> System.Management.Automation.PSInvalidCastException: Cannot convert value "" to type "System.Guid". Error: "Unrecognized Guid format." ---> System.FormatException: Unrecognized Guid format.
   at System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException)
   at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result)
   at System.Guid.Parse(String input)
   --- End of inner exception stack trace ---
   at System.Management.Automation.LanguagePrimitives.ConvertViaParseMethod.ConvertWithoutCulture(Object valueToConvert, Type resultType, Boolean recursion, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable)
   at System.Management.Automation.LanguagePrimitives.ConversionData`1.Invoke(Object valueToConvert, Type resultType, Boolean recurse, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable)
   at System.Management.Automation.LanguagePrimitives.ConvertTo(Object valueToConvert, Type resultType, Boolean recursion, IFormatProvider formatProvider, TypeTable backupTypeTable)
   at System.Management.Automation.LanguagePrimitives.ConversionData`1.Invoke(Object valueToConvert, Type resultType, Boolean recurse, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable)
   at System.Management.Automation.LanguagePrimitives.ConvertTo(Object valueToConvert, Type resultType, Boolean recursion, IFormatProvider formatProvider, TypeTable backupTypeTable)
   at System.Management.Automation.ParameterBinderBase.CoerceTypeAsNeeded(CommandParameterInternal argument, String parameterName, Type toType, ParameterCollectionTypeInformation collectionTypeInfo, Object currentValue)
   --- End of inner exception stack trace ---
   at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
   at SolidCP.Providers.Virtualization.PowerShellManager.ExecuteInternal(Command cmd, Boolean addComputerNameParameter, Boolean withExceptions)
   at SolidCP.Providers.Virtualization.HyperV2012R2.GetVirtualMachineInternal(String vmId, Boolean extendedInfo)
   at SolidCP.Providers.Virtualization.HyperV2012R2.DeleteVirtualMachineServiceItem(VirtualMachine vm)
3 Replies
Posts: 110
(@berkut)
Estimable Member
Joined: 7 years ago

A remove HyperV can't create a vhd at all? Was this file d:\Hyper-V\hotbinte\hotB1509.Interdaqu.us\Virtual Hard Disks\hotB1509.Interdaqu.us.vhdx created ?

Reply
Posts: 237
Topic starter
(@hxkd)
Reputable Member
Joined: 7 years ago

no the file is not created, if I do it on the proxy server, it works 100% fine, on the remotes, it seems as if it cant find or access the image, if I remove the image it moans it cant fine the image, but if I point it to the proxy server using a unc ie \\xx.xx.xx.xx\c$\scp the same error happens, I thought it was due to permissions, I made sure all the remotes had the correct permissions on the scp folder and files, but still no go, the weird part is it used to work on the 1.4.6 version, so not sure what has changed.

Reply
Posts: 110
(@berkut)
Estimable Member
Joined: 7 years ago

in 1.4.7 there were no changes that could affect this, but in 1.4.8 there was (it is now possible to create multiple vhd's).

If you are using 1.4.8 make sure all components are updated to 1.4.8.

Reply
Share: