{"action":"created","issue":{"url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/309","repository_url":"https://api.github.com/repos/chef-partners/knife-vsphere","labels_url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/309/comments","events_url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/309/events","html_url":"https://github.com/chef-partners/knife-vsphere/issues/309","id":187646965,"number":309,"title":"knife vsphere vm vmdk add","user":{"login":"bathenme","id":16195117,"avatar_url":"https://avatars.githubusercontent.com/u/16195117?v=3","gravatar_id":"","url":"https://api.github.com/users/bathenme","html_url":"https://github.com/bathenme","followers_url":"https://api.github.com/users/bathenme/followers","following_url":"https://api.github.com/users/bathenme/following{/other_user}","gists_url":"https://api.github.com/users/bathenme/gists{/gist_id}","starred_url":"https://api.github.com/users/bathenme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bathenme/subscriptions","organizations_url":"https://api.github.com/users/bathenme/orgs","repos_url":"https://api.github.com/users/bathenme/repos","events_url":"https://api.github.com/users/bathenme/events{/privacy}","received_events_url":"https://api.github.com/users/bathenme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-07T08:01:12Z","updated_at":"2016-11-08T02:20:31Z","closed_at":null,"body":"Hi,\r\ni am trying to run this command:\r\n`knife vsphere vm vmdk add $MachineName 25 --vshost $VCenter --vsdc $Datacenter --vsuser $vcUser --vspass $VCPassword --vsinsecure`\r\n\r\nand its works fine and add disk to the virtual machine .\r\nbut if i run the command from powershell i get this error :\r\n\r\n> ```\r\n> knife : Creating VMDK\r\n> At C:\\Source\\Repos\\chef-repo\\Scripts\\newVm.ps1:131 char:5\r\n> +     knife vsphere vm vmdk add $MachineName 25 --vshost $VCenter --vsd ...\r\n> +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n>     + CategoryInfo          : NotSpecified: (Creating VMDK:String) [], RemoteException\r\n>     + FullyQualifiedErrorId : NativeCommandError\r\n>  \r\n> Capacity: 25 GB\r\n> Disk: [DataStore] bhchef3/bhchef3_2.vmdk\r\n> Attaching VMDK to bhchef3\r\n> ```\r\n\r\nthe command works fine but still puts out the error.(just from powershell command line)\r\n\r\nany ideas?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/comments/259026297","html_url":"https://github.com/chef-partners/knife-vsphere/issues/309#issuecomment-259026297","issue_url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/309","id":259026297,"user":{"login":"swalberg","id":221368,"avatar_url":"https://avatars.githubusercontent.com/u/221368?v=3","gravatar_id":"","url":"https://api.github.com/users/swalberg","html_url":"https://github.com/swalberg","followers_url":"https://api.github.com/users/swalberg/followers","following_url":"https://api.github.com/users/swalberg/following{/other_user}","gists_url":"https://api.github.com/users/swalberg/gists{/gist_id}","starred_url":"https://api.github.com/users/swalberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swalberg/subscriptions","organizations_url":"https://api.github.com/users/swalberg/orgs","repos_url":"https://api.github.com/users/swalberg/repos","events_url":"https://api.github.com/users/swalberg/events{/privacy}","received_events_url":"https://api.github.com/users/swalberg/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T02:20:31Z","updated_at":"2016-11-08T02:20:31Z","body":"I don't suppose it gives you a stack trace or the output of the command? Can you try running with `-VV` for more output, please? Maybe also give the output of the first command you sent so I can see what it's sending?\r\n\r\nMy guess is that `knife` is writing something to the error stream which is not really an error, but powershell is interpreting as a problem. If I were a betting man it would be https://github.com/chef-partners/knife-vsphere/blob/master/lib/chef/knife/vsphere_vm_vmdk_add.rb#L63 "}}
{"actor":{"display_login":"swalberg"}}