Creating an isolated network between two virtual machines and facing issue while assigning static IP

This post was originally published on this site

Issue- I was following the KB https://kb.vmware.com/s/article/2043160 and facing issues while assigning static IP to a VM with two network adapters

 

Script that I was using –

 

$vmNameTemplate = “VM-{0:D3}”

 

$cluster = Get-Cluster -Name “Test Cluster”

$template = Get-Template “New_Template”

$vmList = @()

 

New-VirtualSwitch -VMHost ‘esxi3.gsslabs.org’ -Name vSwitch8

New-VirtualPortGroup -Name “Private” -VirtualSwitch vSwitch8 -VLanId 0

 

$vmhost = Get-Cluster ‘Test Cluster’ | Get-VMHost -Name ‘esxi3.gsslabs.org’

 

$myDatastoreCluster = ‘Datastore’

 

for ($i = 1; $i –le 2; $i++) {

    $vmName = $vmNameTemplate –f $i

    $vmList += New-VM –Name $vmName -Datastore $myDatastoreCluster -VMHost $vmhost –Template $template

    |Start-VM   

}

 

#Create a custom spec 

$staticIpList = Import-CSV C:deploy.csv

      $sCust = @{

         Name = “Win2008r”

         OSType = ‘Windows’

         Type = ‘Persistent’

         FullName = “Test”

         OrgName = “VMware1”

         NamingScheme = ‘VM’

         AutoLogonCount = 1

         ChangeSID = $true

         Confirm = $false

         Workgroup = “VMware”

    }

 

New-OSCustomizationSpec @sCust

$nicMappings = Get-OSCustomizationNicMapping –OSCustomizationSpec Win2008r

Remove-OSCustomizationNicMapping –OSCustomizationNicMapping $nicMappings

$specClone = New-OSCustomizationSpec –Spec Win2008r –Type NonPersistent

 

for ($i = 0; $i –lt $vmList.Count; $i++) {

$vm=Get-VM -Name $vmList[$i]

$ip = $staticIpList[$i].ip

New-Networkadapter -vm $vmList[$i] -NetworkName “Private” -Type “E1000” -startconnected

$publicNIC = $vmList[$i] | Get-NetworkAdapter| where {$_.NetworkName -eq “VM Network”}

$privateNIC = $vmList[$i] | Get-NetworkAdapter| where {$_.NetworkName -eq “Private”}

 

 

New-OSCustomizationNicMapping -OSCustomizationSpec $specClone –IpMode UseDhcp –NetworkAdapterMac $publicNIC.MacAddress

New-OSCustomizationNicMapping -OSCustomizationSpec $specClone –IpMode UseStaticIP –IpAddress $ip –SubnetMask “255.255.255.0” –DefaultGateway “192.168.0.1” -Dns “192.168.0.10” -NetworkAdapterMac $privateNIC.MacAddress

 

$nicMappings = Get-OSCustomizationNicMapping –OSCustomizationSpec $specClone | where {$_.Position –eq 1}

$nicMappings | Set-OSCustomizationNicMapping –IpMode UseDhcp –NetworkAdapterMac $publicNIC.MacAddress

 

$nicMapping = Get-OSCustomizationNicMapping –OSCustomizationSpec $specClone | where {$_.Position –eq 2}

$nicMapping | Set-OSCustomizationNicMapping –IpMode UseStaticIP –IpAddress $ip –SubnetMask “255.255.255.0” –DefaultGateway “192.168.0.1” -Dns “192.168.0.10” -NetworkAdapterMac $privateNIC.MacAddress

  

$vmCust = Get-OSCustomizationSpec -Name $specClone

#New-NetFirewallRule -DisplayName “Allow inbound ICMPv4” -Direction Inbound -Protocol ICMPv4 -IcmpType 8 -Action Allow

Set-VM –VM $vmList[$i] –OSCustomizationSpec $vmCust –Confirm:$false

   }

 

Any assistance that I can get would be much appreciated.

Thank you

vSphere client could not connect to VC

This post was originally published on this site

I was trying to upgrade the vcenter version from 5.5 U3E to 6.5 U3. Upgrade process failed and we restored the changes from snapshots and SQL Server database restored from backup. Post restoration, Inventory is empty and unable to connect through domain ID. In SQL Database, found two schema using. One is dbo and other one is VMW. While trying SQL query, vCenter Data’s are available in VMW Schema, but vcenter can’t read the data from VMW. Can we move/alter/copy data from VMW Schema to default schema i.e. dbo? Does it will resolve the issue?

I have created a new Windows 2012 R2 server and installed fresh copy of vcenter 5.5 U3E. Also pointed to the existing external SQL database from ODBC, test connection is successful however vcenter can’t read data from Database.

Configuration are as below:

  1. VCenter Server – VC Version 5.5 U3E, Installed on Windows 2008 R2 server
  2. SQL Server version is MS SQL 2008 R2 Ent Service Pack 2.

 

Is there a specific setting to disable/manage the “Prevent cross site tracking” for iOS Safari in WS1

This post was originally published on this site

Our app development team is trying to test some security features in certain Betas that they are developing. They are looking to temporarily bypass the “Prevent Cross Site Tracking” setting. Which is currently greyed out for the Safari settings.

Is this a default setting that is applied, once a device is enrolled, and supervized?

 

Thank you

Low Read Latency, High Write Latency in SQL DB

This post was originally published on this site

I’ve been struggling with this one for a while. We have several VMs running SQL 2017 Enterprise (on Win 2012 R2) that experience high write latency (ranging from 15-45ms) but have great read latency (2-4ms). I’ve looked at all of the real-time stats from the OS (perfmon) to the hypervisor (ESXTOP) back to the storage itself and never see write latency higher than 5ms – the ESXTOP GAVG is a great stat for this. In general, read latency would be higher in most systems due to having to search for random data, whereas writes are typically asynchronous and simply handed off to be written to disk. There are no queueing issues with the SCSI controllers either – the data files, tempdb and log files are separated on different virtual controllers and have separate datastores .. plus, any queuing would also affect read latency. SQL is running on the latest compatibility level and I don’t see any write latency for the tempdb or the write log .. only the data files!

 

Anyone else have this issue where SQL reports high latency but you can’t actually see any from the OS back to the Storage? Surely the latency must be somewhere within SQL, but I can’t find it. Thanks in advance!

 

Configuration:

Compute – Cisco UCS, M5 blades

VMware – vSphere 6.0 U2 (upgrading soon)

VM SCSI Controllers – LSI for OS disk, Paravirtual for all others (data files, log, tempdb) with separate datastores

VMDKs – Thick Prov Eager Zero (Data drives)

Storage – All Flash via iSCSI (dedicated storage vlans)

Network – All Cisco Nexus 10GB+

SQL – 2017 CU19

Cannot access Sandisk SSD in Windows10 on VMWare Fusion

This post was originally published on this site

I am using an iMac2017 and VMWare Fusion to host a virtual Windows10 OS.

My goal is to install Windows OS onto a SSD so I can boot directly from the external on my iMac.

 

Im following this method: How to install Windows 10 “Boot Camp” on a Mac External Drive the EASY way! (2020 edition) – YouTube

 

I run into problems when I connect my Sandisk Extreme Portable 500G into the iMac.

The windows chime indicates it recognises the disk being connected, however I cannot access it in anyway.

Im not too familiar with windows but after hunting in “This PC” and “Computer Management” I can’t see the drive anywhere.

 

If I change the USB settings on VMWare to 1 or 2, it gives me an error the moment I start the VM.

If I use 3.1 I get no error and a chime telling me it is recognised but still invisible…

 

Any thoughts are greatly appreciated. Ive been trying several things on this and other forums but no success.

Run Docker for Windows and corresponding containers within VMWare Windows 10 session using the facilities provided by Visual Studio/Visual Studio Code

This post was originally published on this site

I want to run Docker For Windows within a VMWare Windows 10 Pro session. Right now, attempting to even start Docker for Windows in a virtual session results in an error message.

“Invalid Operation Exception:

Failed to deploy distro docker-desktop to …AppDataLocalDockerwsldistro: exit code: -1

stdout: Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS”

 

I checked, the Virtual Machine Platform feature is turned on both in the host and the VM and virtualization is enabled in the BIOS.

 

Below is the TLDR description of what I’m trying to accomplish and why.

 

I have searched for that scenario and come up either empty, with very outdated (as in years too old) methodologies or with respondents who wish to change the OP’s world view by telling them “You’re doing it wrong, change your methodology to this…” whatever “this” might happen to be. Or worse, asking “why do you want to do it that way? Do it this way instead…”. In all cases the respondents failed to fully understand the OP’s original question, which amounts to: “Can I run Docker for Windows within a Windows 10 Pro VMWare virtual session and, if so, how?”.

 

I understand the difference between Docker and VMWare, that’s not the issue. I’ve been a VMWare user since their version 3 so I get how it works and what it provides. Am I a VMWare guru? Nope, that’s part of the charm of VMWare – usually it “just works” and I don’t have to care about the machinery beneath. In the course of my learning, I see that, properly configured, Docker is exactly the same – it “just works” – awesome!

 

I am a developer, I use Visual Studio (VS) as my dev environment. Microsoft has gone to great lengths to make VS work with Docker. Marvelous! Love it! BUT, the presumption by Microsoft is that VS is running on the host machine or, and I haven’t tried this yet, running under their hypervisor. Never used hypervisor. When it first came out there were *way* too many problems with it and again, VMWare just worked. Never saw a reason to move off the VMWare platform and doing so now would be a major change for me, one I would very much like to avoid.

 

(update): I *have* tried running Docker for Windows within Microsoft’s Hyper-V environment. With a little fiddling (as in a few PowerShell commands) it WORKS JUST FINE! The concept is billed as “nested virtualization” but turning on a few Windows features and executing a PowerShell command or two and Docker for Windows starts just fine within the Hyper-V virtual session and I can execute both Windows and Linux containers.

 

My situation is this. Because I travel a great deal I rotate between my own personal machine at home, a company desktop machine and a laptop when traveling, usually issued by DevOps whenever I have to go offsite so the laptop isn’t “mine” it’s whatever happens to be available at the time. Changing that scenario is way above my pay-grade, company policy is something I cannot affect.

 

My solution up to this point has been to use VMWare to create a session, keep the session on a portable SSD drive and simply ensure that I have either VMWare Player or Workstation available to me, company DevOps has yielded that much as I’m not affecting their “host” machine configuration. It then becomes a simple matter to tune my development environment to suit me with all the additional bells and whistles and custom configurations and other goodies I might desire. Since its my environment with strictly controlled access to the corporate network as designated and configured by company DevOps, they don’t care what’s on my session so I avoid all sorts of political red tape if I wish to try a new version of Windows (yep, even Windows updates come through them, we had to fight a major battle to get them to allow us Windows 10, 2004 and wsl 2!), try a new tool, install a new version of VS (updates to which come out now about every two weeks!), etc.

In short, by using VMWare sessions, my dev environment is exactly what I want it to be, totally under my control as I am the admin on the session and thus able to control group policy, etc. and…it’s PORTABLE! *Easily* portable! I plug in the drive and viola! back to work and it matters not one whit which machine I might be working on!

 

Here is the kicker: We finally get to move to .NET Core and all the goodies associated with it and our C-level management has finally acknowledged the existence of Docker so now we get to play. Trouble is, when I went to install Docker for Windows into my Windows 10 Pro, 2004 with all updates, WSL2 enabled with both Debian and Alpine session running on the latest version of VMWare for Windows with full VMWare Tools installed, I receive the following error message:

“System.InvalidOperationException: Failed to deploy distro docker-desktop to …AppDataLocalDockerwsldistro: exit code: -1 stdout: Please enable Virtual Machine Platform WIndows feature and ensure virtualization is enabled in the BIOS.”

 

I checked and both “Virtual Machine Platform” and “Containers” are enabled in “Windows Features” for both the session and the host machine and virtualization is turned on for the host machine and that’s about as far as I can go – there is no “virtualization” setting in the VMWare BIOS for the session. I even took the risk and turned on hyper-v for the session (haven’t tried that for the host yet, am waiting for a response here before I take that plunge despite the articles on MS and VMWare working together to make that “just work”.

 

So, finally, the question is this: Is there a method of making Docker for Windows Desktop work within a VMWare session running Windows 10, 2004 with wsl 2 such that I might take advantage of all the goodies provided by Visual Studio and Visual Studio Code for Docker and, if so, will someone please provide the link to the instructions for configuring my environment, virtual or otherwise?

Conditions in Blueprint Code

This post was originally published on this site

New to vRA8 and still learning the syntax for blueprint as code.  The code below takes the input of the OS from the users and changes the customization spec to be used based on that input.  That works great when you only have two OS’ to pick from.  But how do I modify something like that to work with more than two OS?  It seems like conditions can only be A or B based on match.  Is there a way to rework that to work for multiple OS choices?

customizationSpec: ${input.OS,”Windows 2016″)? “Win2016” : “Win2019”}

App Volumes 4.1 2006 Template does not have AppCapture.exe

This post was originally published on this site

I have updated to 4.1 2006 and deployed the new template. When I try to capture an application the process does not start…. I see the following in the logs:

 

[2020-07-29 19:31:37.937 UTC] [svservice:P1832:T2188] HttpQueryVolumeUpdate: succeeded

[2020-07-29 19:31:37.942 UTC] [svservice:P1832:T2188] Creating mount point at “SnapVolumesTempMountPoints{7078ee87-0000-0000-0000-100000000000}”

[2020-07-29 19:31:37.949 UTC] [svservice:P1832:T2188] “?Volume{7078ee87-0000-0000-0000-100000000000}” mounted at “SnapVolumesTempMountPoints{7078ee87-0000-0000-0000-100000000000}”

[2020-07-29 19:31:37.950 UTC] [svservice:P1832:T2188] MountSnapVolumeByPath: Checking for the presence of [?Volume{7078ee87-0000-0000-0000-100000000000}appcapture.exe]

[2020-07-29 19:31:37.950 UTC] [svservice:P1832:T2188] CVolumeResourceHandler::OnNewVolumePost: [{00000000-0000-0000-0000-000000000001}]-[{7078EE87-0000-0000-0000-100000000000}]-[DeviceHarddiskVolume5].

[2020-07-29 19:31:37.951 UTC] [svservice:P1832:T2188] MountSnapVolumeByPath: Checking for the presence of [?Volume{7078ee87-0000-0000-0000-100000000000}appcapture.exe]

[2020-07-29 19:31:37.951 UTC] [svservice:P1832:T2188] CAppManager::EnableAppsInVolume: Enable Apps in Volume ({00000000-0000-0000-0000-000000000001}).

[2020-07-29 19:31:37.952 UTC] [svservice:P1832:T2188] Creating mount point at “SnapVolumesTempMountPoints{7078EE87-0000-0000-0000-100000000000}”

[2020-07-29 19:31:37.953 UTC] [svservice:P1832:T2188] Checking for appcapture on “DeviceHarddiskVolume5” (event appcapture)

[2020-07-29 19:31:37.953 UTC] [svservice:P1832:T2188] RunScript_AppCaptureProgram: creating thread to check provisioning state (Event appcapture) on “SnapVolumesTempMountPoints{7078EE87-0000-0000-0000-100000000000}” Go Process.

[2020-07-29 19:31:37.953 UTC] [svservice:P1832:T2188] CVolumeResourceHandler::SignalBaseDiskReady: Couldn’t open wemcapture_basediskready event. The system cannot find the file specified (2/00000002)

[2020-07-29 19:31:37.954 UTC] [svservice:P1832:T8484] MountSnapVolumeByPath: Checking for the presence of [?Volume{7078ee87-0000-0000-0000-100000000000}appcapture.exe]

[2020-07-29 19:31:37.954 UTC] [svservice:P1832:T8484] ProvisioningInProgress was deleted.

[2020-07-29 19:31:37.956 UTC] [svservice:P1832:T8484] RegistryPath was deleted.

[2020-07-29 19:31:37.956 UTC] [svservice:P1832:T8484] AppID was deleted.

[2020-07-29 19:31:37.956 UTC] [svservice:P1832:T8484] NewVolumeUUID was deleted.

[2020-07-29 19:33:59.649 UTC] [svservice:P1832:T2316] CPU USAGE -> AVG  10 | MAX  54 |

[2020-07-29 19:34:24.190 UTC] [svservice:P1832:T2316] CPUMonitoringThreadProc: CPU monitoring thread exited

 

The Image shows the files that exist on the new Template from 4.1

How much ram for best performances

This post was originally published on this site

Hi there,

 

I’ve just bought a new computer Dell Inspiron where I can install as much ram as I want.

 

I have 8 Gb so far and I was wondering what would be the right amount of ram to have the best performance.

 

I want to use ubuntu, mainly to do some programming with Visual Studio.

 

Would an extra 8 Gb be enough or should I go to a total of 24 Gb or 32 Gb to run it confortably ?

 

Thanks for your help.