ESX to ESXi using host profiles
I was wondering if anyone has tried to use the host profiles to facilitate the migration?
That is to say take a profile of a host ESX and then install ESXi and then apply the profile of the host that you just do to this host?
I think it should work.
Stephen
Note also that Host profile does not apply tweaks, like frames.
And that vSphere 5 you can upgrade an ESX 4.x (but it have a previous update to 3.x) to ESXi 5 with most of its parameters
André
Tags: VMware
Similar Questions
-
Auto Deploy, host profile and answer files
Hello
I'm busy trying to learn a little more about Auto deploy. I'm trying to figure out what is the best practice when it comes to the part host profiles of the automatic process of deploy. The way I see there are two ways to use host profiles.
(1) for each host, I create a separate host profile and create necessary deployment rules, one rule per host.
(2) I create a host profile and only one rule of deployment and then use the response file option to create the unique settings of the host.
I've set up two option, option 2 seems less reliable while option 1 works every time. So my main question is what is the recommended method to use profiles to host with Auto deploy.
Thank you
Hello
It is usually done through your supplied option 2.
Create a profile from a host of reference and apply this profile to a host or a cluster. Usually a cluster or however you define your deployment rules. Update of the personalization of the host, then remove it from maintenance mode.
Documentation on the profiles of the host.
Here a documentation to Auto deploy
I am a big fan or Pluralsight and Nash did a great job in this series.
Course: VMware vSphere Optimize & scale series
Part 3: Monitoring & Automation
Section: Self help to deploy for the deployment of ESXi
So, that is the 'best practice' or ' recommended? Good question. Which is usually answered by - what is best for you!
I hope this helps a little.
-
Script - missing and hotfixes installed for ESX and ESXi
Can I have the script i.e. missing and hotfixes installed for ESX and ESXi using the CLI power only? out put should be csv format
You reset the content of the table $Results on each iteration of the baseline.
Try like this
$Results = @() foreach($esx in Get-VMHost) { foreach($baseline in (Get-Compliance -Entity $esx -Detailed | where {$_.Status -eq "NotCompliant"})){ $Results += $baseline.CompliantPatches | Select @{N="Host";E={$esx.Name}}, @{N="Status";E={"Compliant"}}, @{N="Baseline";E={$baseline.Baseline.Name}},Name,ReleaseDate,IdByVendor, @{N="KB";E={(Select-String "(?
http://[\w|\.|/]*\w{1})" -InputObject $_.Description).Matches[0].Groups['url'].Value}} $Results += $baseline.NotCompliantPatches | Select @{N="Host";E={$esx.Name}}, @{N="Status";E={"NotCompliant"}}, @{N="Baseline";E={$baseline.Baseline.Name}},Name,ReleaseDate,IdByVendor, @{N="KB";E={(Select-String "(? http://[\w|\.|/]*\w{1})" -InputObject $_.Description).Matches[0].Groups['url'].Value}} } } $Results It will give the installed and lack of patches which are defined in the non-compliant baslines related to the ESXi host.
If you want to see all the lines, also the most consistent, omit the Where clause on the base line (foreach) loop.
-
We have a license GPFS and SAN storage. I am trying to create a storage shared for multiple ESX and ESXi hosts share existing virtual machines. We tried once NFS, it of a little slow and consume too much bandwidth LAN.
Anyone can help answer? Thank you very much in advance!
It depends on your storage space.
You must connect all hosts to the same San, then follow the configuration guide of ESXi and specific documentation for your storage space (for sharing LUNS on multiple hosts).
André
-
Greetings,
I'm currently upgrading my 5.1 to 5.5 however ESXi hosts, it is not a rhythm in upgrade more as a new installation since I'm changing some resources on my servers. I create a profile of the host of one of my hosts, but my question is, can I still use the host profile Version 5.1 on version 5.5 hosts?
Thank you!
Yes, you can and it works perfectly. However, if you have any questions you should carefully test this.
-
The IP of the host ESX and ESXi console information
Hi guys,.
I have a little problem here, we have a script that collects the host Console IP, host name, field info... etc.
My problem is with the period of INVESTIGATION, because we have a mixed environment of esx3.5, esx4.0, esx4.1 and ESXi4 get the IP of the Console is a bit of a problem.
If I use the
$NicInfo = get-VMHostNetwork - VMHost $esxhost. Name
$newesxhost. VmHostName = $NicInfo.HostName
$newesxhost. Domain = $NicInfo.DomainName
{foreach ($cs in $NicInfo.ConsoleNic)}
$newesxhost. IPAddress = [string] $cs. INTELLECTUAL PROPERTY
}I covers the ESX Console hosts IP info, but all the info of ESXi IP gets missed.
If I add to the:
$NicInfo = get-VMHostNetwork - VMHost $esxhost. Name
$newesxhost. VmHostName = $NicInfo.HostName
$newesxhost. Domain = $NicInfo.DomainName
foreach ($cs in $NicInfo. ) VirtualNic | where {$_.name - eq "vmk0"}){}
$newesxhost. IPAddress = [string] $cs. INTELLECTUAL PROPERTY
}I get the ESXi IP Management IP network, but the ESX hosts to report the vmk0 which is the IP address of vmotion.
So if anyone can help I'd be very happy.
Include the HOST party so that you can see what I mean:
#[int] $Loopctr = 0
$newesxhost = (@($xml.) (ESXInventory.HOST) [0])
$newVMPortGroup = (@($xml.) (ESXInventory.VMPortGroup) [0])Get-VMHost-location (Get-Cluster-name $cluster. Name) | Sort-Object-unique | % {
$esxhost = get-view $_.ID
Write-Host $esxhost. Name
#if ($Loopctr - gt 0) {$newesxhost = $newesxhost.clone ()}
$newesxhost = $newesxhost.clone)
$newesxhost. MemberOfCluster = $cluster. Name
$newesxhost. Name of the vendor = $esxhost. Summary.Hardware.Vendor
$newesxhost. Model = $esxhost. Summary.Hardware.Model
$newesxhost.os_version = [string] $esxhost. Config.Product.Version
$newesxhost.os_build = [string] $esxhost. Config.Product.Build
$newesxhost.os_caption = [string] $esxhost. Config.Product.FullName
$newesxhost. MemorySize = [string] $esxhost. Summary.Hardware.MemorySize
$newesxhost. CpuModel = $esxhost. Summary.Hardware.CpuModel
$newesxhost. CpuMhz = [string] $esxhost. Summary.Hardware.CpuMhz
$newesxhost. NumCpuPkgs = [string] $esxhost. Summary.Hardware.NumCpuPkgs
$newesxhost. NumCpuCores = [string] $esxhost. Summary.Hardware.NumCpuCores
$newesxhost. NumCpuThreads = [string] $esxhost. Summary.Hardware.NumCpuThreads
$newesxhost. NumNics = [string] $esxhost. Summary.Hardware.NumNics
$newesxhost. NumHBAs = [string] $esxhost. Summary.Hardware.NumHBAs$NicInfo = get-VMHostNetwork - VMHost $esxhost. Name
$newesxhost. VmHostName = $NicInfo.HostName
$newesxhost. Domain = $NicInfo.DomainName
foreach ($cs in $NicInfo.VirtualNic | where {$_.name - eq "vmk0"}) {}
$newesxhost. IPAddress = [string] $cs. INTELLECTUAL PROPERTY
}$VMPortGroup = get-VirtualPortGroup - VMHost $esxhost. Name
{foreach ($vpg to $VMPortGroup)
Write-Host $vpg. Name
$newVMPortGroup = $newVMPortGroup.clone)
$newVMPortGroup.Name = $vpg. Name
$xml. ESXInventory.AppendChild ($newVMPortGroup) > $null
}$xml. ESXInventory.AppendChild ($newesxhost) > $null
#$Loopctr += 1/regards
Why you do not include a test that check if the host's ESX or ESXi?
Something like that
$esx = Get-VMHost MyESX $NicInfo = Get-VMHostNetwork -VMHost $esx $newesxhost.VmHostName = $NicInfo.HostName$newesxhost.Domain = $NicInfo.DomainName if($esx.Extensiondata.Config.Product.ProductLineId -eq "esx"){ foreach ($cs in $NicInfo.ConsoleNic ){ $newesxhost.IPAddress = [string] $cs.IP }}else{ foreach ($cs in $NicInfo.VirtualNic |where {$_.name -eq "vmk0"} ){ $newesxhost.IPAddress = [string] $cs.IP }} $newesxhost
-
I have 3 ESX hosts and vcenter 1 host (running in a VM). My plan for the upgrade to ESXi is to:
1. the active 4 vm Vmotion and vcenter for an ESX host.
2. install ESXi host with no VM
3. Add the new vCenter Cluster ESXi host (so now the cluster would be 2 ESX and ESXi 1)
4 repeat the steps above until all of the hosts are the ESXi
The guys you see no problem with that?
Can I mix and match ESX and ESXi in the same cluster?
Can I vMotion between ESX and ESXi?
Thank you guys!
You can do a VMotion between ESX and ESXi (and vice versa) as long as all of the hosts are all the amendments or Intels processors only. In addition, each host must be able to have access to the shared too much storage.
Finally if you cpu are too much difference, you need to enable Enhanced vMotion. http://KB.VMware.com/kb/1003212
iDLE-jAM | SC 2, SC 3 & VCP 4
If you have found this device or any other answer useful please consider useful or correct buttons using attribute points.
-
Help, please
Hello
Local and remote syslog feature can be configured for a cluster of similar hosts using the host profiles.
For more information, see guide installation and Set Up Syslog of the section of the Interface of host profiles in vSphere Installation.
Connect the Server vCenter by using the vSphere Client.
Click home.
Under the administration section, click host profiles.
Create a new profile or modify an existing profile.
In the Edit Profile dialog box, set one or more of the five configuration options.
If you configured using esxcli or advanced syslog configuration options and this has captured a host of reference, 5 configuration options are already visible in the Advanced Configuration option section.
If syslog has not been previously configured, right-click the section of Advanced Configuration options and add a profile for each of the five configuration options.
Save the profile and assign it to the hosts.
For more information please see the documentation Center: (Documentation Centre of vSphere 5.5 )
-
Hi all
If someone can help me with a powercli script to create a new account a local administrator on all ESX and ESXi hosts in the vcenter, create a role called admin and give all access except the root. This shoulb be past by a virtual centre.
Very much appreciated to help him.
Kind regards
MelLvin
I suspect that you posted your question to the wrong thread
This requires only a minor change to the script above actually.
Something like that
$groupName = "group"$accountName = "user"$accountPswd = "password"$accountDescription = "A user" $esxlist = Get-VMHostforeach($esx in $esxlist){ Connect-VIServer -Server $esx -User root -Password "password" Try { Get-VMHostAccount -Id $groupName -Group -ErrorAction Stop | Out-Null } Catch { New-VMHostAccount -Id $groupName -GroupAccount | Out-Null } $rootFolder = Get-Folder -Name ha-folder-root Try{ $account = Get-VMHostAccount -Id $accountName -ErrorAction Stop | Set-VMHostAccount -Password $accountPswd -Description $accountDescription -AssignGroups $groupName } Catch{ $account = New-VMHostAccount -Id $accountName -Password $accountPswd -Description $accountDescription -UserAccount -GrantShellAccess -AssignGroups $groupName } $rootFolder = Get-Folder -Name ha-folder-root New-VIPermission -Entity $rootFolder -Principal $account -Role admin Disconnect-VIServer -Confirm:$false}
-
Add a new user through Host profiles
Hi guys,.
I was wondering if anyone knows if I create a new user on a single ESXi host and use this host as my host of reference for a profile of the host. If the new user is contained in the profile of the host, and every time the profile is applied it will be applied to all other ESX host?
Thank you
D
Not with a profile of the host, read the doc tech following, which explains what is included in Host Proflies.
http://www.VMware.com/files/PDF/Techpaper/VMW-host-profiles-tech-overview.PDF
If you want to manage the creation of users who will have to do with a script.
-
"General system error" when you try to create a host profile
I have a cluster including 3 ESXi 5.5 knots. I'm trying to implement the compliance of the profile on this cluster, but I am not able to generate the host profile, use one of the nodes in the reference host.
The error on nodes 1 and 2 is:
A general error occurred:
Call "HostProfileManager.CreateProfile" to "HostProfileManager" object on the server vCenter Server '< vcenter server >' failed.
The error on node 3 is slightly different:
A general error occurred:
Call "HostProfileManager.CreateProfile" to "HostProfileManager" object on the server vCenter Server '< vcenter server >' failed.
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 1 to 256
Specified value is out of range. Range: 0 to 16
Anyone has an idea why I am unable to generate these profiles? I added the other stand-alone hosts (in other data centers) to test and I am able to generate profiles of those without problem. I tried to take one of the above 3 nodes in the cluster to generate the profile, but I got the same errors as above.
I was getting exactly the same problem in my environment who you are. Here's a knockout that help me solve the problem.
-
DefaultPSP change by PowerCLI/Host profile does not stick...
5.0u2 ESXi
$vH = get-Cluster 'Test ' | Get-VMHost 'Test1 '.
$vHcli = get-EsxCli - VMHost $vH
$vHcli.storage.nmp.satp.list)
$vHcli.storage.nmp.satp.set ($true, "VMW_PSP_RR", "VMW_SATP_DEFAULT_AA")
$vHcli.storage.nmp.satp.set ($true, "VMW_PSP_RR", "VMW_SATP_ALUA")
$vHcli.storage.nmp.satp.list)
Shows that the DefaultPSP is changed correctly.
However, after a reboot of the host, reset! If I SSH as ROOT and change the parameter it takes and rest!
On a side note, the host NMP profile settings have the same behavior applies, it does not stick after reboot.
Anyone know why this problem occurs, or how to fix so I can perform PSP checks and rehabilitation through PowerCLI instead of going to each host as Root to set adequate configs?
-vFantastic
Well, I found the default Round Robin ESXi 5.0U1 PSP, and it solved my problem. with the following...
$vHs = get-VMHost
{ForEach ($vH to $vHs)
#Getting ESX CLI for each host
$vHcli = get-EsxCli - VMHost $vH
#Does it have the correct PSP for IBM SVC
$SVC = $vHcli.storage.nmp.satp.list () | Where {$_.} Name - eq "VMW_SATP_SVC" - and $_. DefaultPSP - don't 'VMW_PSP_RR"} | Select @{N = 'Cluster'; E={$VH.parent.name}},@{N="vmhost '; E = {$VH. Name}}, DefaultPSP, Name
If ($SVC. Name - eq "VMW_SATP_SVC" - and $SVC. DefaultPSP - don't 'VMW_PSP_RR') {}
#Create a low-level object that points to the ATAS namespace:
$LowLevel = $vHcli.TypeManager.CreateDynamicManagedObject ($vHcli.storage.nmp.satp.id)
#Create a hashtable containing parameter values. Note that here we do not specify a value for the boot parameter:
$Params = @{'DefaultPSP' = "VMW_PSP_RR"; ATAS = "VMW_SATP_SVC"}
#Invoke set operation on the $LowLevel object:
$LowLevel.InvokeOperation ("set", $Params)
}
#Does it have the correct PSP to default values
$DAA = $vHcli.storage.nmp.satp.list () | Where {$_.} Name - eq "VMW_SATP_DEFAULT_AA" - and $_. DefaultPSP - don't 'VMW_PSP_RR"} | Select @{N = 'Cluster'; E={$VH.parent.name}},@{N="vmhost '; E = {$VH. Name}}, DefaultPSP, Name
If ($DAA. Name - eq 'VMW_SATP_DEFAULT_AA' - and $DAA. DefaultPSP - don't 'VMW_PSP_RR') {}
#Create a low-level object that points to the ATAS namespace:
$LowLevel = $vHcli.TypeManager.CreateDynamicManagedObject ($vHcli.storage.nmp.satp.id)
#Create a hashtable containing parameter values. Note that here we do not specify a value for the boot parameter:
$Params = @{'DefaultPSP' = "VMW_PSP_RR"; ATAS = "VMW_SATP_DEFAULT_AA"}
#Invoke set operation on the $LowLevel object:
$LowLevel.InvokeOperation ("set", $Params)
}
}
-
Difference between ESX and ESXi in production?
Hello
I was asked to meet my client from my manager what difference does it make if I used ESX or ESXi in our world of production.
Except I can't think of a logical reason to use on ESX ESXi... Any ideas please?
Thanks in advance!
PS - I know the basic difference between these two have read a few articles, but nothing gives me a practical reason to choose ESXi.
Since reliese the Service Console on ESX - which is based on RHEL - the reason that VMware moves to only ESXi is it eliminates the need to patch the Service Console and makes it more secure host.
-
Do we need to backup Log / config files for ESXi 5 host?
Hello
We just upgraded a 4.1 ESX ESXi 5 host host.
In ESX 4.1, we receive BackupExec Agent installed and regularly backup/etc and the log files. Wonder if we still have these backups? If so, how the server BackupExec speaks to the ESXi 5 host?
Thank you
Post edited by: TonyJK
collection of newspapers is most important in that ESX ESXi, because if no SCRATCH partition configured newspapers will be emptied after a reboot.
For the collection of newspapers
1. as indicated in the commentary after use Syslog collector to collect newspapers of ESXi.
2 redirect syslog to a folder in volme VMFS.
For the collection of backup/etc, you can use the command of vCLI vicfg-cfgbackup
http://pubs.VMware.com/vSphere-50/topic/com.VMware.VCLI.ref.doc_50/vicfg-cfgbackup.html
-
Active Directory authentication via host profile
I am trying to use apply a profile host through powershell script that will add an esxi host to my domain active directory.
$vCenter = Read-Host "Enter vCenter.
$esxhost = Read-Host "enter the domain the ESXi host's FULL name.
$ADdomaincreds = $host.ui.PromptForCredential ("Enter Credentials", "Please enter your user name Active Directory and password.", "", "")
$hostprofile = Read-Host "Enter HostProfile to apply"
SECURESTRING #CONVERT
$CONVERT_AD_PASSWORD = http://System.Runtime.InteropServices.Marshal: SecureStringToBSTR($ADdomaincreds.Password)
$AD_PASSWORD = http://System.Runtime.InteropServices.Marshal: name ($CONVERT_AD_PASSWORD)
SE connect-VIServer $vCenter
$hostprof = get-VMHostprofile-name $hostprofile
$applyhost = get-VMHost $esxhost
Game-VMHost - VMHost $applyhost - State "maintenance".
$additionalConfiguration = apply-VMHostProfile - ApplyOnly - $hostprof profile-entity $applyhost - confirm: $false
$additionalConfiguration = $ADdomaincreds.username
$additionalConfiguration = $AD_PASSWORD
$additionalConfiguration = apply VMHostProfile - $hostprof profile-entity $applyhost - Variable $additionalConfiguration - confirm: $false
It runs without error, but when I look at the esxi host he always says that he uses local authentication. If I apply the host through the VI Client profile, it works without problem. Is this what I need to put in the variable?
I also tried using the Set-VMHostADDomain of LucD function. This works, however, if I then apply the profile of my host to complete the configuration of the other components such as syslog, ntp, etc., authentication gets restore local authentication after a reboot.
Hello
There is a bug in the Apply-VMHostProfile cmdlet that is already filed in our bugtracking system. The fix will be available in a future release.
The problem is caused by using an incorrect version of the API (4.0) which is not taken in charge of operations active directory.
Here are possible solutions:
1. join the domain without using the host profile feature. Here's a simple script that can do for you:
function JoinDomainWithAD ($vmhost, $domainName, $domainUser, $domainPassword) { $vmhostView = Get-View -id $vmhost.ID $authenticationManagerView = Get-View $vmhostView.ConfigManager.AuthenticationManager $hostActiveDirectoryAuthenticationMoRef = $authenticationManagerView.SupportedStore | where { $_.Type -eq 'HostActiveDirectoryAuthentication' } $hostActiveDirectoryAuthentication = Get-View $hostActiveDirectoryAuthenticationMoRef $hostActiveDirectoryAuthentication.JoinDomain($domainName, $domainUser, $domainPassword) }
2. apply the solution profiles host with direct API calls (Get-View)
Let me know if you need anything that anyone else.
Kind regards
Nedko Nedev
PowerCLI development team
Maybe you are looking for
-
"because of related problems or Internet Explore not able to download your automatic proxy script click ok to continue with standard proxy settings"-this window always appears, then I open the Internet Explorer browser. Also I have to reboot the comp
-
two vista installed, first of all, a damaged and not formatted, how to remove it
My first vista got corrupted everthing I tried to fix it but he was never able to load. so finally reinstalled vista again and he could not formatted the damaged so it installed next to him and now I have no more free space. How can I remove the dama
-
Best practices for the firmware update 40 + switches
Hello. I need for firmware (and boot code) updated over 40 switches PowerConnect (mainly 5324). What is the best practice on that? I tried to download and install Dell OpenManage Network Manager, but it seems like an application of 'disorder' for som
-
I am trying to load an image from the bb as follows: displayImage = Bitmap.getBitmapResource (imageName); Nothing was happening, and I was able to determine that "CAFETERIA: file:///store/samples/pictures/Accelerate.png is not found. The file has bee
-
Any help is appreciated!Thank you!