Activation of VMotion on a vmk dvSwitch with PowerCLI problems

Hello

I'm trying to enable vmotion and a dvswitch via powercli on a host with the following command:

game-vmhostnetworkadapter - VMHost xxx.xxx.xxx.xxx - VirtualNic "vmk1" - VMotionEnabled $true

I get the following error:

Game-VMHostNetworkAdapter: cannot bind parameter 'VirtualNic '. Cannot convert t
He value "vmk1' to type 'System.String' to type 'VMware.VimAutomation.ViCore.Ty '.
pes.V1.Host.Networking.Nic.HostVirtualNic ".
On line: 1 char: 56
+ set-vmhostnetworkadapter - vmhost xxx.xxx.xxx.xxx - virtualnic < < < < "vmk1" - vmotion
$true enabled
+ CategoryInfo: InvalidArgument: (:)) [game-VMHostNetworkAdapter])
ParameterBindingException
+ FullyQualifiedErrorId: CannotConvertArgumentNoMessage, VMware.VimAutomat
ion.ViCore.Cmdlets.Commands.Host.SetVMHostNetworkAdapter

I also tried to perform functions of LucD:

Get-DistributedSwitchNetworkAdapter - VMHost xxxx.xxx.xxx.xxx - PortGroup "vMotion" - DistributedSwitch "dv1.

I get the following error:

Get-DistributedSwitchNetworkAdapter: cannot process the transformation of the argument on
parameter "$vmhost". Cannot convert value "xxx.xxx.xxx.xxx" to type "System.Stri".
NG' type 'VMware.VimAutomation.ViCore.Types.V1.Inventory.VMHost '.
On line: 1 char: 44
+ Get-DistributedSwitchNetworkAdapter - VMHost < < < < xxx.xxx.xxx.xxx - PortGroup ' vMot
ion'-DistributedSwitch 'dv1.
+ CategoryInfo: InvalidData: (:)) [Get-DistributedSwitchNetworkAd)
Apter], ParameterBindin... mationException
+ FullyQualifiedErrorId: ParameterArgumentTransformationError, Get-Distrib
utedSwitchNetworkAdapter


Someone at - it ideas?

I guess you took the function of the DistributedSwitch module included with the book?

The VMHost parameter must be an object of VMHost.

Try it as

$esx = get-VMHost xxxx.xxx.xxx.xxx

Get-DistributedSwitchNetworkAdapter - VMHost $esx - PortGroup "vMotion" - DistributedSwitch "dv1.

Tags: VMware

Similar Questions

  • Activation of vMotion on ESX4.1

    Every morning.

    I am looking for some advise and help on activation of vMotion on our ESX4.1 of 2 nodes cluster. We have recently upgraded to the Enterprise version of vSphere until now have capabilities of vMotion. I try to configure things but because of my lack of experience with this am a bit stuck.

    I activated the license that allows me to configure now vMotion.

    I created a new VMkernel, assigned an unused vmnic, left the VLAN ID empty and selected 'use this port for VMotion group', put in the IP address and subnet mask but the DG was left blank. Everything seems to proceed without problem, but I see that the NIC does not appear "observed IP varies. Also, I cannot ping by IP VMkernel new are assigned. This course is not allowing me to use vMotion.

    My question is, what do I need to enable the NETWORK card somehow? If so some can help me to do so.

    Should the ESX restart? is there anything else I should do to complete the configuration of vMotion to allow me to use it.

    Help much appreciated.

    Thank you.

    > My question is, what do I need to enable the NETWORK card somehow? If so some can help me to do so.

    Check the other side - switch. Port is enabled on the switch? Is port right VLAN?

    > The ESX needs to restart? is there anything else I should do to complete the configuration of vMotion to allow me to use it.

    No, the restart is unnecessary here.

    You can check network connectivity VMkernel interface with the vmkping service console command.

    ---

    MCSA, MCTS Hyper-V, VCP 3/4, VMware vExpert

    http://blog.vadmin.ru

  • When he puts an end to Firefox 3.6.6 firefox.exe continues to turn, visible in the Manager of tasks (XP) and stimulates the activity of the CPU up to 60% with the danger of overheating. Have not found an appropriate response with the search term "abnormal

    When he puts an end to Firefox 3.6.6 firefox.exe continues to turn, visible in the Manager of tasks (XP) and stimulates the activity of the CPU up to 60% with the danger of overheating. Have not found an appropriate response with the search term "abnormal termination of the program."

    This has happened

    A few times a week

    is after update of Firefox 3.6.4

    I have the same problem with Firefox 3.6.6 except that it also consumes massive amounts of CPU during the race. This version also adds a new process on your system. I am running XP and in the beginning I tried to disable some plug-ins. Always consumed too much memory. I went back to version 3.6 and the new process went, and the CPU consumption is way down. Something is wrong with the latest version of Firefox, I never saw behave this way. Revert to a previous version (Filehippo) and you will see the difference.

  • I have a frozen screen of Active recovery of white desk with a mouse. I think that the computer is frozen upward with a problem of recovery? Right?

    I have a frozen screen of Active recovery of white desk with a mouse.  I think that the computer is frozen upward with a problem of recovery? Right?

    How can I fix?

    Hello
    • What were the changes made before the problem occurred?

    You can try to restart the computer and check if it helps.

    If above does not help, you can read the following steps to disable the active desktop on the computer and check:

    a. to disable Active Desktop.
    b. right click on an area empty office, point to Active Desktop, and then click view as Web Page to clear the check box.
  • Windows Firewall: get the message that the firewall cannot be activated because a "service is not associated with running.

    In the last days is message that my computer is not protected by a firewall. I followed the recommendations to enable the windows firewall (both through the alert procedure and the control panel); but get message that the firewall cannot be activated because a "service is not associated with running.

    I'm usually protected by the free AVG service and its protection of identity theft.

    How can I recover the windows firewall?

    How to turn on the windows firewall?

    1. Open Windows Firewall by clicking on the button start , clicking Control Panel, clicking Security, and then clickingWindows firewall.

    2. Click turn on or off Windows Firewall. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    3. Click on (recommended), and then click OK.

    If you want the firewall to block everything, including the programs selected on theExceptions tab, select theBlock all the incoming connections checkbox.

    WARNING: More than a firewall running at the same time program could lead to conflict. It is best to use a firewall program.

    If this post can help solve your problem, please click the 'Mark as answer"If you find it useful, mark it as useful by clicking the 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • What will happen with my agent and active Windows 8, I will have bought with the laptop after I swap HDD with SSD?

    Original title: replacement disk and windows.

    Hello guys.

    I am considering buying a new laptop. The model that I found and I like has a HARD drive if I want to replace it with the SSD to the format of my previous laptop. (Due to the low energy consumption, greater speed, etc.). So I have a 256 gb SSD in my previous loan of laptop replace new one HARD disk, yet what will happen with my agent and active Windows 8, I will have bought with the laptop?

    I can reinstall windows 8 on the SSD, but I don't have a key to activate their... How will I be able to get the key from previous series if the laptops will only work with a recovery partition these days here? I asked a guy in the store, I buy my laptop since and he told me that he does not know and I have to ask for help. However, to create a message of support I need a serial number of the model I did not because I have not yet bought a laptop, so I don't know what to do... I really don't want to stick with the HARD drive, but also I can't afford another model.

    Is it possible to do a recovery with my laptop disk when I get it, then replace the drive with my SSD and run the recovery disc I made?

    The laptop I want to buy is an Asus if that helps...

    Thanks in advance...

    The 'Raw' State is not necessary, it is the State of any drive (SSD drive or hard drive) would be in if you just remove a disk new in box and will need to be "initialized", since you have already used the player already initialized sound.

    Do not format the drive, rather than delete all existing partitions, (the SSD shows then as being "unallocated"). Now you are ready to restore the backup Image you created. During the restore process Acronis will recreate the partitions that were on the hard drive on your SSD.

    J W Stuart: http://www.pagestart.com

  • My macbook air running hot and the battery drains quickly can help you with this problem?

    My macbook air running hot and the battery drains fast is a 13 ", at the beginning of 2014.  Processor 1.4 GHz intel core 15Can you help with this problem?

    Apps can affect the performance of Mac, battery, temperature and fan activity - Apple Support

  • Vswitch group permissions management standard port with PowerCLI

    Hi all

    I have many groups of ports on standard as well as switches distributed on ESX 5.0.

    I would like to know if there is a way to manipulate the permissions of those groups of port with PowerCLI.

    Is it possible, or you can help automate this work?

    Thank you!

    The easiest are discussions on dvSwitches.

    For example

    $user = Get-VIAccount -Name "domain\lucd"$role = Get-VIRole -Name NetworkAdmin$dvPg = Get-VDPortgroup -Name "dvPortgroup"New-VIPermission -Principal $user -Role $role -Entity $dvPg
    

    The regular exchanges require the use of the API.

    For example

    $pgName = "VM Network"$pg = Get-VirtualPortGroup -Name "VM Network" | Select -First 1$net = Get-View (Get-View $pg.VMHostId).Network | where {$_.Name -eq $pgName}    $authMgr = Get-View AuthorizationManager$perm = New-Object VMware.Vim.Permission$perm.Principal = "domain\lucd"$perm.RoleId = $role.Id$perm.Propagate = $true$perm.Group = $false$authMgr.SetEntityPermissions($net.moref,$perm)
    

    Because the Get-VirtualPortgroup cmdlet does not have direct access to the corresponding object on the network , you have to find via the ESXi network property.

  • Anyone with crash problems today with the Muse?

    Anyone with a problem of crash with Muse today? I worked all day, then it crashed on me three times whenever I was working on the text. Then when reopened claims made to date were made when I did not have any it also lost some content?

    Accidents that you encounter are submenus of the menu police. We are painfully aware of this and is very actively working a solid solution and subsequent update.

    There is no work around of 100% to avoid the crash, but you can reduce its frequency being very deliberate when selections in the font menu or a submenu fonts. If, at the time when you click, you keep the cursor of the mouse on the element even for a slow count of 1 before you click and never click on an item in the main menu of police that contains a submenu (a gesture that would be useless, but that would trigger the crash), which should avoid the crash in most cases.

    We are sorry for the inconvenience.

  • Override the port NIC teaming with powercli group?

    Hi all

    Any chance you could lend a hand?

    I have a powercli script that goes out to all of my ESX 4.0 host and add a new port group to vswitch1 with a new VLAN ID. That works well, but I also need to override the NIC teaming on this port group, to set an active NIC and the other to be the backup. (we put NIC failover port groups not the vswitches).

    I see ways to change NIC vswitches grouping settings, but am yet to find a way to change the settings of the NIC collection for groups of ports themselves with powercli?

    Can someone shine a light?

    Thank you

    Try something like:

    Get-VirtualPortGroup-name '' | Get-NicTeamingPolicy | Game-NicTeamingPolicy - MakeNicActive "vmnic1" - MakeNicStandby "vmnic0".

    I hope this helps!

  • Verizon said I can be faced with one problem with my browser and don't charge but ATT, gmail and other

    Tried loading Verizon homepage, but it says I can be faced with a problem with my browser. ATT, gmail between other fine load and Verizon was very well for some time now, what should I do? I'm not tech savvy so please keep it simple for me, thank you.

    Try to clear your browser's cache.

    Firefox button or tools > clear recent history... - details and of course Cache hit only is selected, and then select all and click the clear now button.

  • Presario SR1463CL with drivers problems

    Please be tolerant of beginners.

    I purchased a SR1463CL to add to a DELL Dimension - old but never fails. -the HARD drive was crushed. I replaced the HDD Samsung with Western Digital. I have replace the dial-up modem. All this without problems. I installed Windows XP Pro and SP2 update. My system detects "New hardware" drivers VGA Compatible and multimedia controller. I have had no success finding the right drivers and their installation. My monitor works find, but I have no sound.

    Poster 'sounds, video controllers' Device Manager with the problems. Initial device showed sound and audio by default to the Modem. I removed which and at this point no device is indicated.

    Device Manager shows no driver found for new hardware and online search has failed. Windows Update detects any is available. I checked on the resource one manufacturing line have failed in my downloadsfrom RealTek and Nvidia.Dial - up has had major periods and material has been identified as there's no way for the system. Previous owner had made the back-ups-DVD-but they went "purple haze" and could not be read. That's why I installed XP Pro.

    My modem does not work on and additional time. It will connect and funtion but after a few minutes I'll get "Page not found" displayed.

    So, I use my Dell Dimension for internet troubleshooting. Any help is greatly appreciated.

    Respectfully.

    "Submariners do it deeper."

    Thanks for the information. Due to serious conflicts resulting from auto-updates from microsoft, which I had to reformat the HARD drive and have located since the necessary drivers to the www.sis.com for VGA and www.realtek.com for audio AC 97 readers to be precise. Manually review and choose downloads in the future.

    "Greens, all councils prepare to dive."

    Thanks again for your help. It is greatly appreciated.

    Bamabubblehead went to the abyss.

  • just installed new update for itunes. When I go to the page stoe it flashes really hurt. anyone with this problem. is there a solution?

    just installed new update of itune. When I go to store the page, it's really bad flicker.  anyone with this problem. is there a solution?

    Widely not reported, no known resolution until Apple release a new version of iTunes that affects it.

  • two drivers of PXI chassis with Configuration problem

    Hello

    I have two PXI chassis. One is PXI 1033 and works perfectly with the NI PXI-5404, 5105, 6509, 1409, installed 8336. The other is 1036 PXI with the PXI-5404 NI, 8366 installed. When I was trying wreath connect, as master 1033, 1036 as slave, I found several problems.

    1. in the Measurement & Automation Explorer, does not have my good guys in 1033. Instead, there is a sign of the Red Cross in bottom right with 6509, 5105, 5404.

    2. I can't find an another 5404 of the 1036. In fact, I can't find 1036 in MAX.

    Update BIOS. My PXI system is already identified under the name 'NOR PXI - 1033 Embedded MXI Express' and Chassis1 is identified as 'NOR PXI 1033'.

    So I made several tests as below:

    1. unscrew the 5404 1036 slave. MAX can configure 2 1036 chassis. Ok. But when I reconnect 5404 in 1036, same result happened as stated above.

    2 uninstall the driver of 5404, so the 5404 in 1033 does not either now. And then reboot again, same result happens again. Cannot detect the 1033 chassis. Other vouchers in 1036 don't work either.

    Please, any suggestion is highly appreciated.

    Sincerely,

    Bin

    Hi Ben,

    This happens sometimes with MXI-Express:

    Error code 12 with MXI-Express

    http://forums.NI.com/T5/PXI/two-PXI-chassis-connection-with-configuration-problem/m-p/1475876#M9033

    In general, you can read this error 12 means on Device Manager:

    Explanation of error codes generated by Device Manager in Windows XP Professional

    http://support.Microsoft.com/kb/310123

    If it was a problem of bandwidth, PCI or PXI side, you could pull a few cards to see if that alleviates the problem, or that the link from Microsoft over the States, you can disable the driver for other cards.

  • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    Ideas:

    • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    I tried to download the RegCure as advised, but the problem still exists...

    Who advised you to 'download... '. RegCure? Doing so could only worse issues! If you ever think that your registry database must be cleaned, repaired, boosted or optimized (it isn't), read http://aumha.net/viewtopic.php?t=28099 and draw your own conclusions.

    See http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/6e716883-7af4-4a9f-8665-2f4dd57eee8d ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

Maybe you are looking for

  • Headphones + microphone does not when plugged into the headphone jack on Macbook pro.

    Hello I have a problem that has caused me a lot of irritation just because it seems so simple to fix, but Ive tried practically everything that I can think to do better and it has really improved. I was skyping the other day and I took my headphones

  • How can I connect output optical from my Apple TV to my amp which only accepts RCA inputs?

    Currently, I connect my computer to my stereo amplifier via an Apple Airport.  I also have an Apple TV in one place which is connected to my TV.  I would like to use the optical output of the Apple TV to connect my computer to my stereo amp, so I can

  • Uninstall norton internet security

    I uninstalled norton internet security so that I can install my antivirus... but when I go to install mine it says me that norton is still installed and when I go in install and uninstall, I think it's still there. If I try and unistall it again, he

  • photos of the iPad

    I can't get photos from my iPad to my PC 2.  Someone help please

  • Windows 7 backup periods

    How we could define a period when backup is. I want to do a full backup with extra additions and changes captured, which is what Windows 7 says it does. The problem is that it defines periods of 2 days, then he decided to start a new period with a ne