Giter VIP home page Giter VIP logo

Comments (5)

gyf304 avatar gyf304 commented on May 31, 2024

Would you mind posting your modified vmbuilders/ubuntu.sh?

from vmcli.

heywoodlh avatar heywoodlh commented on May 31, 2024

I ran into this same issue. My problem is that I am using nix as my package manager which is using the GNU version of dd instead of the FreeBSD version.

~ $ which dd
/etc/profiles/per-user/heywoodlh/bin/dd

The FreeBSD version of dd uses lower case letters for the block size (i.e. 1m) vs the GNU version using caps (1M).

I fixed my issue by modifying vmbuilders/ubuntu.sh to point to the MacOS-included /bin/dd:

# expand disk to 4GB
/bin/dd if=/dev/null of=disk.img bs=1m count=0 seek="$disk_size"

On a related note: I also had to modify vmbuilders/ubuntu.sh to use /usr/bin/uname instead of the uname in my PATH because Nix included an x86_64 version of uname so vmbuilders/ubuntu.sh was grabbing the x86_64 bit version of Ubuntu vs the arm64 version.

Maybe a fix for this would be to point the tools reliant on the included MacOS binaries by using their full path rather than relying on the user's $PATH to find those commands. I can submit a pull request if desired?

from vmcli.

gyf304 avatar gyf304 commented on May 31, 2024

@heywoodlh That'd be great!

from vmcli.

gyf304 avatar gyf304 commented on May 31, 2024

Thanks @heywoodlh !

from vmcli.

ruschein avatar ruschein commented on May 31, 2024

I second that: thanks @heywoodlh using the explicit paths for dd and uname also fixed my problem. I have the GNU binutils from MacPorts installed.

from vmcli.

Related Issues (20)

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.