Hyper-V machine version - hyper-v

I have a cluster with Hyper-V machines version 5.0 and 8.0. I want to replicate these to another server. This server was a Windows 2012R2, but to receive the 8.0 machine, i did an in-place upgrade to Windows 2016.
I have been fighting with replicating. I received an error "Hyper-V failed to enable replication for virtual machine - The request is not supported" with an errorcode of 0x80070032.
After a lot of investigation, i have found out, that i am missing the 8.0 machine configuration:
PS C:\Users\administrator.CBIT> Get-VMHostSupportedVersion
Name Version IsDefault
---- ------- ---------
Microsoft Windows 8.1/Server 2012 R2 5.0 True
Prerelease 254.0 False
Experimental 255.0 False
C:\Users\administrator.CBIT>ver
Microsoft Windows [Version 10.0.14393]
If I create a new machine I get the wizard with the 2. generation question. Some how the Hyper-V manager is the new version. But it will still store an version 5.0 configuration file.
How do i get the Hyper-V running version 8.0?
Thanks
Thomas

The solution was to raise the Cluster Functional Level from 8 to 9. After this version 8.0 was accepted.
'''
Get-Cluster -Name localdemo.demo.local | Update-ClusterFunctionalLevel
'''

Related

My VS 2022 Windows Form app will not run on Windows Server 2012 R2

I'm not sure what's going on here, the app runs on my laptop outside the development environment but will not run on Windows Server 2012 R2, absolutely no errors are generated, just doesn't load the form. I used the latest version of Visual Studio 2022 to create the application, application settings are:
Output Type: Windows Application
Target Framework: .NET 6.0
Target OS: Windows
Target OS Version: 8.0
Supported OS Version: 7.0 (tried 8.0 as well)
Target CPU: x64
The are a lot of other settings I believe are not applicable so I don't list them here. The permissions on the server are set properly. When I delete the app.dll file, the exe complains it can't find it so I know at least the exe "should" run. I get no error messages, nothing in the logs. Any suggestions?

Migrate linode to google cloud platform

I currently have an application running on a ubuntu server on linode. I wonder if I can move the settings and files to the google cloud platform without having to reconfigure and install everything again.
You can migrate VM with Cloudendure[1] service to Google Cloud Platform free of charge [2]. Keep in mind that is limited to the following operating systems [3]:
Windows:
Microsoft Windows Server 2008 R2 64 bit
Microsoft Windows Server 2012 R2 64 bit
Microsoft Windows Server 2016 64 bit
Windows desktop operating systems are not supported.
Linux:
SUSE Linux (SLES) 11 or above
Debian Linux 8
Kali Linux 2.0
Ubuntu 12.04 or above
Red Hat Enterprise Linux (RHEL) 5.0 or above
CentOS 6.0 or above
Oracle Linux 6.0 or above
[1] https://www.cloudendure.com/
[2] https://cloud.google.com/compute/docs/tutorials/migrating-vms-compute-engine#costs
[3] https://cloud.google.com/compute/docs/tutorials/migrating-vms-compute-engine#limitations

PHP 5.5 and MSSQL driver: Installing ODBC Driver 11 in Windows Server 2012 R2

I have a Windows Server 2012 R2 with IIS 8.5, and another server with MSSQL 2012. I must install PHP in IIS and connect to MSSQL, and I don't have Internet available for Web PI.
I managed to install PHP 5.5 and I'm able to run phpinfo(), and I also assured that php.ini is being loaded from C:\php\php.ini.
I was also able to load sqlsrv driver, it reports in example sqlsrv.ClientBufferMaxKBSize 10240 10240.
But when I execute a php file that connects to DB, I get a message
This extension requires the ODBC Driver 11 for SQL Server. Access the following URL to download the ODBC Driver 11 for SQL Server for x86: http://go.microsoft.com/fwlink/?LinkId=163712
I went to that site and it says
Supported operating systems for version 3.1 of the driver include Windows Server 2012 R2`.
It says
Version 3.1 requires Microsoft ODBC Driver 11 (or higher) for SQL Serverand points tohttp://www.microsoft.com/en-us/download/details.aspx?id=36434`.
In that page, in System Requirements, WinServer 2012 R2 is not listed. When I try to install msodbcsql.msi I get message
Installation of this product failed because it is not supported on this operation system. For information on supported configurations, see the product documentation.`
Well I'm now stuck. I need PHP in WinServer 2012 R2 and IIS 8.5 connecting to MSSQL 2012. But its driver requires ODBC 11, which seems to not support latest WinServer.
Is there any hope, or will I need to wait for Microsoft to support its own OS in its own drivers?
Be sure to download the 1033\x64\msodbcsql.msi (4.4 MB) installer. Even though you are using PHP x86, you need the x64 installer since the OS is x64. I had the same issue and my app now works with PHP x86 after installing the x64 installer.

Install Worklight server 6.1 fails

Windows 7 64 bit
Worklight 6.1 server installation image (IM Repository)
Attempted with 2 different versions of IM 1.5.2, and 1.7
WAS 8.0 (Already Installed)
Selected derby database option (No production env)
See full log here: http://pastebin.com/7GeYvL5e
We were successful in installing WL6.1 server with app-store using Liberty 8.5 as the hosting application server. It appears our issue was in trying to use an existing WAS 8.0 installation

Why does IIS 8.0 identify itself as 7.5 via WMI?

My web application's installer does some configuration via WMI, and in order to handle different versions will ask IIS for its version with code like:
DirectoryEntry folderRoot = new DirectoryEntry("IIS://localhost/W3SVC/Info");
Version iisVersion = new Version((int)folderRoot.InvokeGet("MajorIIsVersionNumber"), (int)folderRoot.InvokeGet("MinorIIsVersionNumber"));
Server 2012 and Windows 8 both return 7.5 for this, even though the official version is 8.0. This wouldn't be so much of a problem, except that this is the same version that windows 2008 reports. Why is this, and is there a better resolution than checking the OS version?