Hello is this windows?
you can use runas to manually run the tools and see where it fails. perhaps to a user without admin first. you can set a variable PACKER_LOG=1 to get more verbose messages. <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virusvrij. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Wed, Aug 9, 2017 at 10:20 AM, <andrew...@gmail.com> wrote: > I'm trying to run packer from a Teamcity agent, which means that the > packer is spawned under unprivileged service account. > > If I log in to that service account interactively and run packer build it > works. > > This is the build I'm running: https://github.com/boxcutter/ubuntu > > It also works from the service account, if I give the service account > admin rights on the box. But if it's not admin, and it's from service I'm > getting errors. > > Here are errors I'm getting with headless: false: > > ==> virtualbox-iso: Error configuring VirtualBox to suppress messages: > VBoxManage error: VBoxManage.exe: error: Failed to create the VirtualBox > object! > ==> virtualbox-iso: VBoxManage.exe: error: The object is not ready > ==> virtualbox-iso: VBoxManage.exe: error: Details: code E_ACCESSDENIED > (0x80070005), component VirtualBoxClientWrap, interface IVirtualBoxClient > ==> virtualbox-iso: Deleting output directory... > Build 'virtualbox-iso' errored: Error configuring VirtualBox to suppress > messages: VBoxManage error: VBoxManage.exe: error: Failed to create the > VirtualBox object! > VBoxManage.exe: error: The object is not ready > VBoxManage.exe: error: Details: code E_ACCESSDENIED (0x80070005), > component VirtualBoxClientWrap, interface IVirtualBoxClient > ==> vmware-iso: Error starting VM: VMware error: Error: There was an error > in communication > ==> vmware-iso: Deleting output directory... > Build 'vmware-iso' errored: Error starting VM: VMware error: Error: There > was an error in communication > > ==> Some builds didn't complete successfully and had errors: > --> virtualbox-iso: Error configuring VirtualBox to suppress messages: > VBoxManage error: VBoxManage.exe: error: Failed to create the VirtualBox > object! > VBoxManage.exe: error: The object is not ready > VBoxManage.exe: error: Details: code E_ACCESSDENIED (0x80070005), > component VirtualBoxClientWrap, interface IVirtualBoxClient > --> vmware-iso: Error starting VM: VMware error: Error: There was an error > in communication > > Here are errors I'm getting with headless true: > > ==> virtualbox-iso: Error configuring VirtualBox to suppress messages: > VBoxManage error: VBoxManage.exe: error: Failed to create the VirtualBox > object! > ==> virtualbox-iso: VBoxManage.exe: error: The object is not ready > ==> virtualbox-iso: VBoxManage.exe: error: Details: code E_ACCESSDENIED > (0x80070005), component VirtualBoxClientWrap, interface IVirtualBoxClient > ==> virtualbox-iso: Deleting output directory... > Build 'virtualbox-iso' errored: Error configuring VirtualBox to suppress > messages: VBoxManage error: VBoxManage.exe: error: Failed to create the > VirtualBox object! > VBoxManage.exe: error: The object is not ready > VBoxManage.exe: error: Details: code E_ACCESSDENIED (0x80070005), > component VirtualBoxClientWrap, interface IVirtualBoxClient > ==> vmware-iso: Error starting VM: VMware error: Error: Unknown error > ==> vmware-iso: > ==> vmware-iso: Packer detected a VMware 'Unknown Error'. Unfortunately > VMware > ==> vmware-iso: often has extremely vague error messages such as this and > Packer > ==> vmware-iso: itself can't do much about that. Please check the > vmware.log files > ==> vmware-iso: created by VMware when a VM is started (in the directory > of the > ==> vmware-iso: vmx file), which often contains more detailed error > information. > ==> vmware-iso: Deleting output directory... > Build 'vmware-iso' errored: Error starting VM: VMware error: Error: > Unknown error > > Packer detected a VMware 'Unknown Error'. Unfortunately VMware > often has extremely vague error messages such as this and Packer > itself can't do much about that. Please check the vmware.log files > created by VMware when a VM is started (in the directory of the > vmx file), which often contains more detailed error information. > > ==> Some builds didn't complete successfully and had errors: > --> virtualbox-iso: Error configuring VirtualBox to suppress messages: > VBoxManage error: VBoxManage.exe: error: Failed to create the VirtualBox > object! > VBoxManage.exe: error: The object is not ready > VBoxManage.exe: error: Details: code E_ACCESSDENIED (0x80070005), > component VirtualBoxClientWrap, interface IVirtualBoxClient > --> vmware-iso: Error starting VM: VMware error: Error: Unknown error > > Packer detected a VMware 'Unknown Error'. Unfortunately VMware > often has extremely vague error messages such as this and Packer > itself can't do much about that. Please check the vmware.log files > created by VMware when a VM is started (in the directory of the > vmx file), which often contains more detailed error information. > > > How can I configure the service account to run, so that the build does not > fail, without giving full admin rights? > > Thank you in advance, > Andrew > > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to packer-tool+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/packer-tool/0ab765e5-b65a-4a4d-9516-bef9fa5293c9%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/0ab765e5-b65a-4a4d-9516-bef9fa5293c9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Alvaro -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0ex8tKQH2P3rUuP7%3DgtG%2B4G83Y8xHmTdVcEqogSv0x-Pvw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.