Setting up interfaces on ubuntu under bhyve
hiren panchasara
hiren at strugglingcoder.info
Wed May 11 05:05:50 UTC 2016
On 05/10/16 at 08:41P, Allan Jude wrote:
> On 2016-05-10 20:29, hiren panchasara wrote:
> > (keep me cc'd please; I am not subscribed)
> >
> > I usually create a freebsd vm with:
> > sh /usr/share/examples/bhyve/vmrun.sh -c 2 -m 2048M -t tap2 -t tap3 -t
> > tap4 -d freebsd.img -i -I freebsd.iso vm1
> >
> > and run it with:
> > sh /usr/share/examples/bhyve/vmrun.sh -c 2 -m 2048M -t tap2 -t tap3 -t
> > tap4 -d freebsd.img vm1
> >
> > I am trying to bring up an ubuntu vm and following
> > https://www.monkeybrains.net/support/bhyve (file based and not zfs vol
> > based)
> >
> > If I want to create a similar-ish vm:
> > # bhyve -c 2 -m 2048M -H -P -A -s 0:0,hostbridge -s 1:0,lpc -s
> > 2:0,virtio-net,tap2,tap3,tap4 -s
> > 3,ahci-cd,./ubuntu-13.10-server-amd64.iso -l com1,stdio -s
> > 4,virtio-blk,./linux.img linux
> >
>
> you'd have to do:
>
> -s 2:0,virtio-net,tap2
> -s 2:1,virtio-net,tap3
> -s 2:2,virtio-net,tap4
>
> to get the 3 NICs
Thanks Allan.
Now I see 3 tap devices being created on host and 3 devices in the
guest. (Also, 'ifconfig -a' to see them and not just 'ifconfig' on
ubuntu. Silly me freebsd user ;-))
Appreciate your quick help.
Cheers,
Hiren
>
> > VM comes up but I don't see vtnetN interfaces there as I would on
> > the freebsd vm. On the freebsd vm, I see vtnet0, vtnet1 and vtnet2.
> >
> > the tap interfaces are not even created on the host.
> >
> > What am I missing?
> >
> > Cheers,
> > Hiren
> >
>
>
> --
> Allan Jude
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 603 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-virtualization/attachments/20160510/3549b256/attachment.sig>
More information about the freebsd-virtualization
mailing list