Git Product home page Git Product logo

Comments (2)

PeterMosmans avatar PeterMosmans commented on June 12, 2024

Thanks for reporting - would you mind pasting the (relevant) Ansible logs, and version numbers you're using ? That 'll help troubleshooting.

from ansible-role-virtualbox-guest.

Costallat avatar Costallat commented on June 12, 2024

@PeterMosmans I don't know if it helps, but I was having the same problem, for some reason it was not trying to download the ISO file. So I went to your code and remove this

    - name: Copy ISO file from guest to host
      copy:
        src: "{{ local_virtualbox_iso }}"
        dest: "{{ virtualbox_iso }}"
        owner: root
        group: root
        mode: "0644"
      when: local_virtualbox_iso is defined and virtualbox_iso is defined

    - name: Check if the ISO file is present on the host
      stat:
        path: "{{ virtualbox_iso }}"
      register: file_path
      ignore_errors: yes

    - name: Check if the CD is present on the host
      stat:
        path: "/dev/sr0"
      register: file_path
      ignore_errors: yes
      when: file_path.stat is not defined or not file_path.stat.exists

Then it started to work (it downloaded the file, and when I put the code back it went fine)

I don't know if it is because I don't have the cd-rom (/dev/sr0) it was thinking that it was 'okay' and was going to try to use it or something else.

I don't have the debug log (I'm learning Ansible) but I have some basic logs here, I don't know if it helps

PLAY [Install VBox Guest] ****************************************************************************************************************************************

TASK [Gathering Facts] *******************************************************************************************************************************************
ok: [lab-tftp-ftp-server-1]

TASK [PeterMosmans.virtualbox-guest : Remove OS installation of virtualbox guest additions] **********************************************************************
skipping: [lab-tftp-ftp-server-1]

TASK [PeterMosmans.virtualbox-guest : Determine the host version] ************************************************************************************************
skipping: [lab-tftp-ftp-server-1]

TASK [PeterMosmans.virtualbox-guest : Check if virtualbox_version could be determined] ***************************************************************************
skipping: [lab-tftp-ftp-server-1]

TASK [PeterMosmans.virtualbox-guest : Override virtualbox_version if defaults set to auto] ***********************************************************************
skipping: [lab-tftp-ftp-server-1]

TASK [PeterMosmans.virtualbox-guest : Determine if (the requested version of) vboxguestadditions is installed] ***************************************************
changed: [lab-tftp-ftp-server-1]

TASK [PeterMosmans.virtualbox-guest : Copy ISO file from guest to host] ******************************************************************************************
skipping: [lab-tftp-ftp-server-1]

TASK [PeterMosmans.virtualbox-guest : Check if the ISO file is present on the host] ******************************************************************************
ok: [lab-tftp-ftp-server-1]

TASK [PeterMosmans.virtualbox-guest : Check if the CD is present on the host] ************************************************************************************
ok: [lab-tftp-ftp-server-1]

TASK [PeterMosmans.virtualbox-guest : debug] *********************************************************************************************************************
skipping: [lab-tftp-ftp-server-1]

TASK [PeterMosmans.virtualbox-guest : Download ISO file when the requested version is not present on the host] ***************************************************
skipping: [lab-tftp-ftp-server-1]

TASK [PeterMosmans.virtualbox-guest : Re-check if the ISO file is present on the host] ***************************************************************************
skipping: [lab-tftp-ftp-server-1]

TASK [PeterMosmans.virtualbox-guest : Fail if CD or ISO file is still not present on the host] *******************************************************************
fatal: [lab-tftp-ftp-server-1]: FAILED! => {"changed": false, "msg": "Could not find necessary CD or ISO file on the host, nor download it"}

If you need some more logs let me know how to enable and collect then so I can try to reproduce here.

Tks

from ansible-role-virtualbox-guest.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.