OPNsense Forum

Archive => 15.7 Legacy Series => Topic started by: 8191 on December 18, 2015, 02:45:04 pm

Title: Installation failure
Post by: 8191 on December 18, 2015, 02:45:04 pm
Hi,
I'd like to install OPNsense into a VM, but the installer (OPNsense-15.7.18-OpenSSL-serial-amd64.img.bz2) runs into troubles:

Code: [Select]
Flow executing -> main/install/format_disk (Format Disk)           
,-<<< Executing `/usr/local/installer/cleargpt.sh vtbd0'           
| gpart: Device busy                                               
| gpart: Invalid value for 'i' argument: Invalid argument           
| gpart: Device busy                                               
`->>> Exit status: 0                                               
,-<<< Executing `/sbin/fdisk -I vtbd0'                             
| ******* Working on device /dev/vtbd0 *******                     
| fdisk: /boot/mbr: Device not configured                           
`->>> Exit status: 1                                               
[Fri Dec 18 13:25:06 2015]                                         
,-<<< Executing `/sbin/fdisk -I vtbd0'                             
| ******* Working on device /dev/vtbd0 *******                     
| fdisk: /boot/mbr: Device not configured                           
`->>> Exit status: 1                                               
[Fri Dec 18 13:25:09 2015]                                         
,-<<< Executing `/sbin/fdisk -I vtbd0'                             
| ******* Working on device /dev/vtbd0 *******                     
| fdisk: /boot/mbr: Device not configured                           
`->>> Exit status: 1                                               

I'm using KVM, but have a similar error on VMware Workstation.
Title: Re: Installation failure
Post by: phoenix on December 18, 2015, 02:52:30 pm
It works fine for me on an ESXi VM & Workstation using the iso download, have you tried that?
Title: Re: Installation failure
Post by: weust on December 18, 2015, 03:11:42 pm
Since you're using a Virtual Machine, don't use the Serial image.
Like Phoenix mentions, use the ISO. amd64 to be specific.
Title: Re: Installation failure
Post by: 8191 on December 18, 2015, 03:36:35 pm
Since you're using a Virtual Machine, don't use the Serial image.
Why not? Is there a technical reason for this?


I've tried the ISO previously, but with similar (un)success (see attachment).
The ISO seems to be consistent, at least the bz2 file matches the SHA256 hash.
Title: Re: Installation failure
Post by: weust on December 18, 2015, 04:23:53 pm
Because you have a console connect. Why screw around with a serial cable to your hypervisor (imagine having a bunch of nodes in a cluster)?
Title: Re: Installation failure
Post by: 8191 on December 18, 2015, 04:32:42 pm
Because you have a console connect. Why screw around with a serial cable to your hypervisor (imagine having a bunch of nodes in a cluster)?

It's much easier to access a bunch of nodes via serial access (which is in fact virtual and not a physical one) than needing awkward tools like VNC to access the console of a VM... ;)


Anyway... I've skipped through the installer errors, and now the system obviously is a bit messed up. Anyone else had these error messages before? As already mentioned, it happens with KVM and also with VMware Workstation. So I'm wondering if I'm the only one having them....
Title: Re: Installation failure
Post by: 8191 on December 18, 2015, 05:00:45 pm
Seems like OPNsense has troubles with paravirt of KVM... I've changed the root disk from virtio (FreeBSD device vtbd) to sata (FreeBSD device ada) and now the installer works without any error. Generally FreeBSD has paravirt drivers for virtio, so I guess it might be related with the nanobsd(?)/OPNsense installer...