Bug 1369803 - virt-install should support FreeBSD
Summary: virt-install should support FreeBSD
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-manager
Version: unspecified
Hardware: x86_64
OS: FreeBSD
unspecified
unspecified
Target Milestone: ---
Assignee: Cole Robinson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-24 12:51 UTC by Khramov Anton
Modified: 2016-08-24 21:09 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-24 20:41:58 UTC


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.