Hi! Im looking for someone who can help me with my problem. I am using ESXI and PowerCLI to automate a Windows 10 creation and installation. I made a unatended ISO so that all the setup questions ...
See more...
Hi! Im looking for someone who can help me with my problem. I am using ESXI and PowerCLI to automate a Windows 10 creation and installation. I made a unatended ISO so that all the setup questions are ingored. But my ISO wants to look for a NTFS hard disk to install on. So now in my script im trying to setup a new partition before it loads the ISO into the new VM. But I cant seem to get it right. It says: Error: A positional parameter cannot be found that accepts argument 'New-Partition'. Im doing this for a school project and i have little experience with Powershell but so far it has been very interesting. My code: (ive used the main part that was created by David Rodrigeuz and added the commands i needed to it) <# =========================================================================== Script Created by: David Rodriguez Blog: www.sysadmintutorials.com Twitter: @systutorials Youtube: https://www.youtube.com/user/sysadmintutorials =========================================================================== .DESCRIPTION This script will automate the creation of virtual machine within ESXi #> $vmhostipaddress = Read-Host "Enter the IP of your VMware ESXi Host" $vmhostcreds = Get-Credential -Message "Please enter the root username and password" Write-Host -ForegroundColor Yellow "`n---- Connecting to VMware ESXi Host ----" try{ Connect-VIServer $vmhostipaddress -User "$($vmhostcreds.UserName)" -Password ([System.Runtime.InteropServices.Marshal]::PtrToStringAuto([System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($vmhostcreds.Password))) -ErrorAction Stop | Out-Null Write-Host -ForegroundColor Green "Successfully connected to VMware ESXi Host" } catch { Write-Warning -Message $("Something went wrong connecting to the ESXi host. Please read the error message and re-run the script. Error: "+ $_.Exception.Message) Break; } Write-Host "Operating system options" -ForegroundColor Yellow Write-Host "1. Windows10" Write-Host "2. Linux" $operatingsystem = Read-Host "Select the Operating System you wish to install by typing in either 1 or 2?" IF ($operatingsystem -eq 1) { $guestid = "windows9_64Guest" } IF ($operatingsystem -eq 2) { $guestid = "ubuntu64Guest" } $vmname = Read-Host "Please enter the name of the virtual machine?" $cpuamount = Read-Host "How many CPU's would you like to provision?" $ramamount = Read-Host "How much RAM do you wish to provision in GB's?" $hddamount = Read-Host "How much Disk storage do you wish to provision in GB's?" try { New-VM -Name $vmname -Datastore datastore1 -NumCpu $cpuamount -MemoryGB $ramamount -DiskGB $hddamount -DiskStorageFormat Thin -NetworkName "VM Network" -CD -GuestId $guestid -ErrorAction Stop | Out-Null Get-VM $vmname New-Partition -DiskNumber 0 -size $hddamount Get-VM $vmname | Get-NetworkAdapter | Set-NetworkAdapter -Type VMXNet3 -Confirm:$False -ErrorAction Stop | Out-Null Start-VM $vmname -confirm get-vm -name $vmname | get-cddrive| Set-CDDrive -Connected $true -IsoPath '[datastore1] ISO2\en_windows_10_multiple_editions_x64_dvd_6846432.iso' -startconnected $true Write-Host "Successfully created $($vmname)" -ForegroundColor Green } catch { Write-Warning -Message $("Something went wrong in creating the virtual machine: $($vmname). Please read the error message and re-run the script. Error: "+ $_.Exception.Message) Break; }
Im having issues getting the VMware.VimAutomation.core module to work while trying to use a script to reboot some servers once a week in the night. Whenever trying to run the script it will return th...
See more...
Im having issues getting the VMware.VimAutomation.core module to work while trying to use a script to reboot some servers once a week in the night. Whenever trying to run the script it will return the error: Connect-VIServer : Could not load file or assembly 'VMware.VimAutomation.Cis.Core.Interop, Version=12.5.0.4296, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. I have verified that the file exists and is not blocked. If anybody has any ideas it'd be greatly appreciated. PS C:\Windows\system32> $PSVersionTable Name Value ---- ----- PSVersion 5.1.14393 PSEdition Desktop PSCompatibleVersions {1.0, 2.0 BuildVersion 10.0.1439 CLRVersion 4.0.30319 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1
Hy, I have a old and very importent physical machine to keep running with windows XP. I'm looking for the vmware standalone converter 5.5.3 can anybody help me? King reards,
Hello Guys, i just build the stretch Vxrail Stretch cluster 13+13 nodes, I able to create fault domain , added host group. But the issue i am facing is incompatible data store, it does not allow...
See more...
Hello Guys, i just build the stretch Vxrail Stretch cluster 13+13 nodes, I able to create fault domain , added host group. But the issue i am facing is incompatible data store, it does not allow me to deploy vms on vsan cluster.. when i go to vsan skyline health, it gives me this error "vSAN cluster alarm 'vSAN Cluster Configuration Consistency'" the remediate inconsistance option is disable. I tried putting host 5 in maintainence mode and reboot but no luck. during the host reboot, in Vsan skyline health another host comes (host 6) when i do the same with host 6 and then another host presents host 9. anything i can do to resolve this error.
For example it is now ESXMPF4.time.org this I want to be ESXMPF4.notime.org. So how do I do it? And what is the procedure of doing it? It has 7 host and 20 VMs. So what is going to happen to them?
Hi Scott28tt! I am working on a project BIG-IP TLM emulated on vmware. I am working with F5 team as well. thanks for your prompt response have a good one
Issue: - SRM Failover slowness for test/cleanup/Recovery. # If we reattempt, sometimes works and sometimes does not. # “Pre-Synchronization Storage” Step took around 2 hours while executing recove...
See more...
Issue: - SRM Failover slowness for test/cleanup/Recovery. # If we reattempt, sometimes works and sometimes does not. # “Pre-Synchronization Storage” Step took around 2 hours while executing recovery and failed with error “Failed to sync data on replica devices. A specified parameter was not correct: device group” though the replicated storage LUNs are replicating as expected. Configuration:- SRM 8.3.1 with IBM SRA 3.6.0. (Recently updated from Widows based SRM to SRM appliance) Test failover group works well The case opened with VMware and IBM but they couldn't figure it out so far till now. Looking for some hint/guidance from the community.
Dear Support we have an issue with VM in VMware our version 7.6 this first time happened I already did clone for one VM and restore other VM from backup after as well, after completed I start the VM...
See more...
Dear Support we have an issue with VM in VMware our version 7.6 this first time happened I already did clone for one VM and restore other VM from backup after as well, after completed I start the VM booting but get error unable to find file and controller not Enable. This critical issue please we need urgent support to resolve. Regards
Dear concern, after up-gradation vCenter 6.7 to 7.0U2c successfully. hence, doesn't show a resource pool and also cannot create a new resource pool. please help me anyone