Fix - Invalid Configuration For Device '0' - 9to5IT
Fix - Invalid Configuration For Device '0' - 9to5IT
com/aboutme/)
(http://9to5it.com) IT Blog (http://9to5it.com/itblog/) Hire (http://9to5it.com/hireme/)
Contact (http://9to5it.com/contact/)
VMware
You have a VM that is part of a port group on a distributed switch, however the network adapter is disconnected. When
attempting to enable the network adapter for the VM by ticking Connected in Edit Settings, it fails and you get the error
message of: Invalid Configuration for device '0'.
Scenario
First let me explain the situation I was in.
A few days ago, my Synology DS1813+ NAS decided to stop presenting iSCSI paths to both my hosts in my test lab and hence
all of my VMs were not accessible and both hosts had no datastores available.
Having narrowed down the issue to the NAS, I deleted the existing iSCSI targets from the Synology NAS and recreated them
in an attempt to resolve the issue. I then rescanned for datastores on both hosts and found that only one of my hosts could see
the storage and not the other.
Assuming it was a host issue, I decided to delete the entire iSCSI configuration from the host and reconfigure it from scratch.
The only thing was my port group used on my iSCSI software adapter was a distributed switch (vDS) port group and hence
requiring vCenter Server to be operational before I could reconnect the vDS port group to the iSCSI software adapter.
To get vCenter Server running again, I needed to remove it (and a few other VMs) from the broken host and then add to
inventory on the working host. I then powered them up and thought I was ready to roll.
I soon discovered that none of the VMs I manually migrated had network connection because their virtual NICs were not
connected.
Now when attempting to connect the network adapter on each VM (Edit Settings on VM >> Network Adapter >> tick
Now when attempting to connect the network adapter on each VM (Edit Settings on VM >> Network Adapter >> tick
Connected), they all failed with the error of: Invalid Configuration for device '0'.
(http://9to5it.com/wpcontent/uploads/2015/03/InvalidConfigurationForDevice0.png)
Solution
Ok now that you have heard my story, here is how I fixed it:
Home (http://9to5IT.com)
1. On the host running the VMs, enable SSH
(http://9to5it.com) About (http://9to5it.com/aboutme/)
1. Host Configuration tab
2. Software >>ITSecurity
Blog (http://9to5it.com/itblog/)
Profile
3. Services Properties
Hire (http://9to5it.com/hireme/)
4. SSH >> Options
Contact (http://9to5it.com/contact/)
5. Click Start
3. Get the VMID for the virtual machine that has the issue. To do this, run the following command, replacing VMNAME with the
name of the VM that has the issue:
5. Next we need to reload the configuration of the VM on the host by running the following command and replacing VMID with
the VMID of the affected VM (e.g. in my example this would be 9):
6. Now connect the NIC on the virtual machine (VM >> Edit Settings >> Network Adapter >> tick Connected)
7. At this point, your network adapter should have connected successfully and your VM now has network access again
After the storage migration fails you cannot access the network from the VM and you discover that the NIC is not connected.
When attempting to connect the network adapter on the VM of a failed Storage vMotion you receive the error: Invalid
Configuration for device '0'.
Alternative Solutions
The solution documented above is the way I decided to resolve the error message, however there are a few alternative
options.
If you don’t like to get your hands dirty via SSH or want to use one of the other options, then have a look at VMware KB2014469
(http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2014469).
Thanks
Luca
0 Likes
Related Articles.
Citrix PVS 7.6 Install – Part 13: Testing Published Applications (http://9to5it.com/citrixpvs76installpart13testingpublished
applications/) 2006 views
Citrix PVS 7.6 Install – Part 12: Creating a Delivery Group (http://9to5it.com/citrixpvs76installpart12creatingadelivery
group/) 1784 views
Citrix PVS 7.6 Install – Part 11: Creating a PVSEnabled Machine Catalog (http://9to5it.com/citrixpvs76installpart11
creatingapvsenabledmachinecatalog/) 1791 views
Citrix PVS 7.6 Install – Part 10: Creating new PVS Target Devices (http://9to5it.com/citrixpvs76installpart10creatingnew
pvstargetdevices/) 2194 views
Newsletter.
Did you find this useful? Don't miss any new content by subscribing to my newsletter below.
Submit Comment
(http://www.twitter.com/9to5it)
(http://facebook.com/9to5itcom)
(http://plus.google.com/u/0/b/116127039264914199462/116127039264914199462/posts)
(http://au.linkedin.com/pub/luca
(http://pinterest.com/9to5it)
(http://github.com/9to5IT)
(mailto:[email protected])
(http://feeds.feedburner.com/9to5ITBlog)
sturlese/75/3b6/765)