Skip to content

Instantly share code, notes, and snippets.

@xanimo
Last active March 23, 2024 00:34
Show Gist options
  • Save xanimo/85970d3baffd1b34994379a6432601ea to your computer and use it in GitHub Desktop.
Save xanimo/85970d3baffd1b34994379a6432601ea to your computer and use it in GitHub Desktop.

First decide on your VM platform. This can be qemu, VMware Workstation 17, VirtualBox, etc. For this demonstration I am going to use VMware. You can grab VMware workstation player and SHA256 checksums here: https://www.vmware.com/go/downloadplayer

Next make sure you have gcc and build-essential:

sudo apt-get update && sudo apt-get install -y gcc build-essential

Verify the file by copying the sha256sum: image

and replace the hash below with your packages sha256sum:

bluezr@bluezr:~/Downloads$ echo "31036d3e5c107b8665f9e82e2ea0761f8ebf902e4dfea9e1db0e3295532c30e6 VMware-Player-Full-17.5.1-23298084.x86_64.bundle" | sha256sum -c
VMware-Player-Full-17.5.1-23298084.x86_64.bundle: OK

If you get something like above then you're all good, otherwise your file is not secure and you probably have someone performing a mitm attack on you.

Next steps is to allow execution permissions and run the bundle:

chmod +x ~/Downloads/VMware-Player*
sudo ~/Downloads/VMware-Player*

After installation go to https://www.dragonflybsd.org/download/ and fetch the dragonflybsd iso and perform the same steps to verify but on this time find the md5sum for your file from http://avalon.dragonflybsd.org/iso-images/md5.txt and run:

bluezr@bluezr:~/Downloads$ echo "ff4d500c7c75b1f88ca4237a6aa861d1  dfly-x86_64-6.4.0_REL.iso" | md5sum -c
dfly-x86_64-6.4.0_REL.iso: OK

Now we start configuring our machine. Select Create a New Virtual Machine: image

Browse your files for the dragon iso and click Next: image

Set the name of your VM and location you want VMware to generate files: image

Configure your Disk Size and whether you want the files split into multiple files or as a single file: image

Click Customize Hardware: image

Bump up the RAM and Processors. I'm choosing 4gb RAM, 2 Processors and a Network Connection of Bridged with Replicate physical network connection state checked: image image image

Finally click Close and Finish: image

Click Ok on the prompts: image image

After it boots login as installer: image

Install DragonFly BSD: image image

I'm choosing Legacy BIOS as it allows an option to install bootblocks: image

Choose da0:

image image image image

image image image image image image

You can configure the system and/or simply reboot and configure manually later. I'm going to just configure NIC: image

image image

Now reboot:

image image image

Login as root:

image

Check connectivity by running ping -c2 google.com: image

And there you have it, a working copy of DragonFly BSD in VMware Workstation 17 Player.

@xanimo
Copy link
Author

xanimo commented Mar 22, 2024

Note: Installing 6.4 will result in this:

image

I would recommend using one of the DragonFly BSD daily snapshots:
https://mirror-master.dragonflybsd.org/snapshots/x86_64/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment