Live mode with GUI problems

Started by bsprings, August 08, 2024, 06:54:48 PM

Previous topic - Next topic
August 08, 2024, 06:54:48 PM Last Edit: August 08, 2024, 08:55:57 PM by bsprings
Hello everyone.

I am wanting to run in a LIVE GUI mode to test out Opnsense on my Windows 11 laptop before using it in production. I have d/l'd the VGA image and extracted out the IMG file and have used Daemon Tools to burn to a USB drive.

I am able to boot from the USB. But after taking the default boot mode, and also going back through and looking for options, I am not able to find a LIVE GUI mode. Questions:

- Is there a LIVE GUI mode I can use to run as a trial?
- And if yes, how do I get to it?

Enclosed are some printscreens of what I am seeing at bootup.

NOTE: I tried also d/l'ing the DVD image. But when I tried to extract it out, I get a catastrophic error message from Windows. I tried d/l'ing from a couple of different mirrors and got the same thing.

Thank you ahead of time for your time and assistance today. Very excited about demo'ing the product.

OPNsense is a firewall appliance that is managed via a web UI from a second system. There is no UI on the system itself.

You can install in a VM on your regular desktop OS if you just want to give it a spin to see what it looks like.

There's a Vagrant project to deploy a VM with a single command:
https://github.com/punktDe/vagrant-opnsense

HTH,
Patrick
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Thank you very much Patrick! I'll give that a whirl...  8)

So, I'm having some problems. I wasn't familiar with Vagrant, so asked AI and was able to make some progress, but then I get to a stopping point.

For others looking at this thread, I d/l'd the Windows binary below:
https://developer.hashicorp.com/vagrant/install

Then I saved the Vagrantfile.txt file Patrick references to my local hdd. It had to be run w/o the extention, and run from the directory where the renamed Vagrantfile is located in. This is what I had to type to get the output below:

vagrant up

(Side note: 1st time running this, I was prompted to go into Program Features and turn on Hyper-V)

@Patrick: after the above reboot and I type in "vagrant up", here is my output. What do I need to do now?

C:\!Tech\Opnsense>vagrant up
Bringing machine 'default' up with 'hyperv' provider...
==> default: Verifying Hyper-V is enabled...
==> default: Verifying Hyper-V is accessible...
==> default: Box 'punktde/freebsd-141-ufs' could not be found. Attempting to find and install...
    default: Box Provider: hyperv
    default: Box Version: >= 0
==> default: Loading metadata for box 'punktde/freebsd-141-ufs'
    default: URL: https://vagrantcloud.com/api/v2/vagrant/punktde/freebsd-141-ufs
The box you're attempting to add doesn't support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn't
simply misspell it.

If you're adding a box from HashiCorp's Vagrant Cloud, make sure the box is
released.

Name: punktde/freebsd-141-ufs
Address: https://vagrantcloud.com/api/v2/vagrant/punktde/freebsd-141-ufs
Requested provider: hyperv (amd64)

My boxes need VirtualBox installed to run. It's at the top of the documentation under "Requirements". Since I don't run Windows, I cannot produce boxes for Hyper-V.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

This is a new process for me and i'm stumbling around. Thank you for additional info Patrick.

I installed Virtualbox like you said and was able to get further.

But then I get a NFS error message. It says:

"If you're on Windows, NFS isn't supported."

Any suggestions?

Here's my output:

C:\!Tech\Opnsense>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'punktde/freebsd-141-ufs' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'punktde/freebsd-141-ufs'
    default: URL: https://vagrantcloud.com/api/v2/vagrant/punktde/freebsd-141-ufs
==> default: Adding box 'punktde/freebsd-141-ufs' (v14.1.0) for provider: virtualbox (amd64)
    default: Downloading: https://vagrantcloud.com/punktde/boxes/freebsd-141-ufs/versions/14.1.0/providers/virtualbox/amd64/vagrant.box
    default:
    default: Calculating and comparing box checksum...
==> default: Successfully added box 'punktde/freebsd-141-ufs' (v14.1.0) for 'virtualbox (amd64)'!
It appears your machine doesn't support NFS, or there is not an
adapter to enable NFS on this machine for Vagrant. Please verify
that `nfsd` is installed on your machine, and try again. If you're
on Windows, NFS isn't supported. If the problem persists, please
contact Vagrant support.

August 08, 2024, 09:24:41 PM #6 Last Edit: August 08, 2024, 09:28:46 PM by Patrick M. Hausen
I'll probably have to refactor the project to get along without the use of NFS - sorry. Windows is just ...

Edit the Vagrantfile, line 17. Change from:
  config.vm.synced_folder '.', "#{$vagrant_mount_path}", :nfs => true, :nfs_version => 3
to:
  config.vm.synced_folder '.', "#{$vagrant_mount_path}"

and try again. I cannot guarantee it will work, but there is a good chance. I'd love to hear back.

EDIT: puzzled by your remark about "Vagrantfile.txt" vs. "Vagrantfile" - did you only copy that single file? That is not going to work, you need to use git to clone the entire project as documented.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

August 08, 2024, 10:03:50 PM #7 Last Edit: August 08, 2024, 10:12:15 PM by bsprings
That was EXACTLY what I needed Patrick. Great job!

I was initially prompted that there was not a "files" directory and the setup dropped out again. So I created the "files" directory right under where I had the "Vagrantfile" located and it went all the way to completion. See below:

    default: Please reboot.
    default: #####################################################
    default: #                                                   #
    default: #  OPNsense provisioning finished - shutting down.  #
    default: #  Use `vagrant up` to start your OPNsense.         #
    default: #                                                   #
    default: #####################################################
    default: shutdown: [pid 7031]
    default: Shutdown NOW!
    default: Shutdown NOW!
    default:
    default: System shutdown time has arrived

C:\!Tech\Opnsense>vagrant up

I logged in as root / opnsense and got a console.

Thanks again for taking the time out to help a noob to Opnsense. Have a great day!

Billy

EDIT: I didn't have to use git to d/l the Vagrantfile. I saved it to my computer like I would any other file and was able to edit as needed when you prompted me to. Thanks again for the assistance.

August 08, 2024, 10:16:48 PM #8 Last Edit: August 08, 2024, 10:18:22 PM by Patrick M. Hausen
But you need all the other files in the project, too - specifically all the contents in the "files" directory ...

I'll try to come up with a way to detect Windows automatically and adjust the synced_folder configuration.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

August 08, 2024, 10:30:11 PM #9 Last Edit: August 08, 2024, 10:32:44 PM by bsprings
I am just now seeing what you mean. There are 5 files that didn't get copied over to the files directory for installation.

idk if that limits the functionality of what is there or not. At the end of the day, we were able to get it installed and functioning on a Windows system and for that I am grateful. I just wanted to be able to play around with the console and it was able to get me to that point.

Thanks again for taking your time to be of assistance.

EDIT: Please feel free to let me know if you get that automated the way you want and I'll be more than glad to test it on my end.