Bug 1369803

Summary: virt-install should support FreeBSD
Product: [Community] Virtualization Tools Reporter: Khramov Anton <kay.diam>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: berrange, crobinso, gscrivan, rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: FreeBSD   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-24 20:41:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Khramov Anton 2016-08-24 12:51:32 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:

virt-install --connect bhyve:///system --import --name myos --ram 512 --vcpus1 --os-type=linux --os-variant=virtio26 --disk path=/root/myimg/img.qcow2,format=qcow2,bus=sata --vnc --noautoconsole

ERROR    Error: --network default: [Errno 2] No such file or directory: '/proc/net/route'

Actual results:

ERROR    Error: --network default: [Errno 2] No such file or directory: '/proc/net/route'

Expected results:

Everything should work fine

Additional info:

freebsd 10.3

Comment 1 Khramov Anton 2016-08-24 12:53:33 UTC
virt-install --version
1.3.2

Comment 2 Khramov Anton 2016-08-24 13:58:14 UTC
Also even when I use --network bridge=bridge0, I get these error messages:


    --graphics none \
    --console nmdm,master=/dev/nmdm0A

ERROR    Unknown options ['master']


when I use only:

    --console nmdm

I receive "ERROR    internal error: Missing master path attribute for nmdm device"

Comment 3 Cole Robinson 2016-08-24 20:41:58 UTC
Thanks for the report. Fixed the first bit with:

commit 927be95b95d0d345cda23db1cddf3b500c557404
Author: Cole Robinson <crobinso>
Date:   Wed Aug 24 16:00:46 2016 -0400

    util: default_route: Handle lack of /proc/net/route
    
    Which doesn't exist on freebsd for example
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1369803


And the --console nvdm,source.master=X,source.slave=Y with

commit c84c2cfd58e85779ceea83d9755bdda11ea98241
Author: Cole Robinson <crobinso>
Date:   Wed Aug 24 16:37:36 2016 -0400

    devicechar: Support source_master and source_slave
    
    Needed for type=nvdm for *bsd
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1369803

Comment 4 Khramov Anton 2016-08-24 21:09:40 UTC
you goddamn fast