# \[Errno 8\] Exec format error on Ubuntu VBox guest on Win 10 Host

**URL:** <https://forum.ansible.com/t/errno-8-exec-format-error-on-ubuntu-vbox-guest-on-win-10-host/19732>\
**Category:** Ansible Project\
**Tags:** windows, ubuntu\
**Created:** [November 11, 2015, 5:59am UTC](https://forum.ansible.com/t/errno-8-exec-format-error-on-ubuntu-vbox-guest-on-win-10-host/19732 "2015-11-11T05:59:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheRealPapa](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@TheRealPapa](https://forum.ansible.com/u/TheRealPapa)\
**Post date:** [November 11, 2015, 5:59am UTC](https://forum.ansible.com/t/errno-8-exec-format-error-on-ubuntu-vbox-guest-on-win-10-host/19732/1 "2015-11-11T05:59:33Z")

</div>

Hi,  
This is my first time with Ansible so forgive me if I missed something. I am trying to set up an Ansible script to run from my Ubuntu guest that allows me to provision Wordpress and all dependencies.

The host machine is a Windows 10 PC and I am running latest VBox with Ubuntu 14.04 as guest. I am also sharing a folder from host to guest and this is where I am creating the scripts.

I am following the [instructions here](https://www.digitalocean.com/community/tutorials/how-to-automate-installing-wordpress-on-ubuntu-14-04-using-ansible) on how to create the scripts. I have hit a problem at first testing the script. When I run (from the Ubuntu guest folder which contains the playbook.yml file, the shared folder with Win 10 host):

`ansible-playbookplaybook.yml-i hosts`

I get the error:

`/media/sf_wpan/hosts--list([Errno8]Exec format error)`

Researching this issue I have found a few places where the suggestion is to remove the executable attribute from the offending file. So on the Ubuntu guest at the folder with playbook.yml I ran:

`

```auto
chmod -R -x *

```

`

But the error persists. My files are:

PLAYBOOK.YML

`

- hosts: wordpress

roles:

- server
- php
- mysql
- wordpress

`

HOSTS

`

[wordpress]  
10.0.0.76

`

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [November 11, 2015, 3:54pm UTC](https://forum.ansible.com/t/errno-8-exec-format-error-on-ubuntu-vbox-guest-on-win-10-host/19732/2 "2015-11-11T15:54:48Z")

</div>

You are using a static hosts file, you cannot execute it nor use the  
--hosts parameter. that is only for dynamic hosts files (scripts). You  
should remove the executable bits you added `chmod a-x  
/media/sf\_wpan/hosts`.

if you want to list the hosts in the file do:

ansible -i /media/sf\_wpan/hosts --list-hosts
