[SOLVED] Impossible to install OPNSense under bhyve using iso image

Started by guest15512, December 17, 2017, 01:38:27 PM

Previous topic - Next topic
Hi all,

I want to setup a lab using two OPNSense CARP'ed firewalls under a bhyve host. But when I launch installation from iso image file (latest release 17.7.5), there is no login prompt created and it is not possible to install or to do anything ...

If I remeber well, with first 17.7.X releases there is no problem ... Is it possible to solve this?

Thanks


You need to provide more information. What happens between booting the ISO image (which one, BTW?) and the stage where you find yourself unable to do anything?

Bart...

Sure, bhyve needs the serial image as it doesn't support VGA console.


Cheers,
Franco

Thanks franco. But I have tried to boot from serial image, without luck:

Timecounters tick every 1.000 msec
nvme cam probe device init
cd0 at ahcich0 bus 0 scbus0 target 0 lun 0
cd0: <BHYVE BHYVE DVD-ROM 001> Removable CD-ROM SCSI device
cd0: Serial Number BHYVE-C11D-B272-294D
cd0: 600.000MB/s transfers (SATA 3.x, UDMA6, ATAPI 12bytes, PIO 8192bytes)
cd0: 885MB (453184 2048 byte sectors)
taskqgroup_adjust failed cnt: 1 stride: 1 mp_ncpus: 1 smp_started: 0
Timecounter "TSC" frequency 1899712977 Hz quality 1000
taskqgroup_adjust failed cnt: 1 stride: 1 mp_ncpus: 1 smp_started: 0
Trying to mount root from ufs:/dev/ufs/OPNsense_Install [ro,noatime]...
g_vfs_done():ufs/OPNsense_Install[READ(offset=294912, length=1024)]error = 22
Mounting from ufs:/dev/ufs/OPNsense_Install failed with error 22.

Loader variables:
  vfs.root.mountfrom=ufs:/dev/ufs/OPNsense_Install
  vfs.root.mountfrom.options=ro,noatime

Manual root filesystem specification:
  <fstype>:<device> [options]
      Mount <device> using filesystem <fstype>
      and with the specified (optional) option list.

    eg. ufs:/dev/da0s1a
        zfs:tank
        cd9660:/dev/cd0 ro
          (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)

  ?               List valid disk boot devices
  .               Yield 1 second (for background tasks)
  <empty line>    Abort manual input



Hi,

Not sure how you configure / run it, but I'm 99% sure this works:

https://github.com/opnsense/tools/blob/master/build/boot.sh#L43-L51

But you should bump the main memory to at least 1024 for a good clean install.


Cheers,
Franco

Ok, done. I have configured usb disk image as a ahci-hd and it works. Many thanks Franco.

Ok, great. Forgot to mention we just use this for QA so network setup et al needs to be adjusted, too. :)


Cheers,
Franco