[OmniOS-discuss] Ang: How to do networking between host and KVM guest?

Dominik Hassler hasslerd at gmx.li
Mon Feb 15 14:12:10 UTC 2016


there is no need for an etherstub for your setup.

I am running the same setup as you mentioned for several kvms (GZ and NGZ) in your first e-mail and no issues from guest to {host, outside} or from host {guest, outside}.

you shold not assign an address to the vnic that will be used by the kvm.
 
can you ping your guest from the host (hostname and/or IP)? might be a hostname resulution problem.

Gesendet: Montag, 15. Februar 2016 um 14:55 Uhr
Von: "Gordon Selisek" <gordon at hafnia.dk>
An: "omnios-discuss at lists.omniti.com" <omnios-discuss at lists.omniti.com>
Betreff: Re: [OmniOS-discuss] Ang: How to do networking between host and KVM guest?

Johan,
 
Thank you, i thought of that, but it's mentioned in oracle docs that Etherstubs are a pure software implementation of nics, so the can't communicate with the outside word, only and i need that both host and guest can do that, or did i misunderstand something?
 
https://docs.oracle.com/cd/E26502_01/html/E28992/gmhfi.html 
 
says:
# dladm create-etherstub etherstub
Perform this step only if you are creating a private virtual network which you want to restrict from being accessed by external systems. For a description of a private virtual network, see Overview of Network Virtualization[https://docs.oracle.com/cd/E26502_01/html/E28992/gfkbw.html#scrolltoc].

 

 

---- On Mon, 15 Feb 2016 14:47:29 +0100 Johan Kragsterman <johan.kragsterman at capvert.se[johan.kragsterman at capvert.se]>wrote ----

 
 
Hi!
 
 
 
 
-----"OmniOS-discuss" <omnios-discuss-bounces at lists.omniti.com[omnios-discuss-bounces at lists.omniti.com]> skrev: -----
Till: "omnios-discuss at lists.omniti.com[omnios-discuss at lists.omniti.com]" <omnios-discuss at lists.omniti.com[omnios-discuss at lists.omniti.com]>
Från: Gordon Selisek
Sänt av: "OmniOS-discuss"
Datum: 2016-02-15 13:28
Ärende: [OmniOS-discuss] How to do networking between host and KVM guest?
 
Hi all,
 
I ran into a problem, how to do networking between host and KVM guest?
 
I read a lot of oracle documentation, but the virtual networking seems to be enough differently implemented, so that i can't wrap my head around it and apply it to omniOS.
 
This is what i have, and the guest can communicate with the outside world and the host. The host communicate with the outside world, but not the guest. And if i assaign an address to vnic0, then the guest can not communicate with the host.
 
dladm show-link
LINK        CLASS     MTU    STATE    BRIDGE     OVER
e1000g0     phys      1500   up       --         --
vnic0       vnic      1500   up       --         e1000g0
 
ipadm show-addr
ADDROBJ           TYPE     STATE        ADDR
lo0/v4            static   ok           127.0.0.1/8
e1000g0/lan       static   ok           192.168.200.190/24
lo0/v6            static   ok           ::1/128
 
 
 
Any hints? please?
 
Cordial regards
 
Gordon
 
 
 
You need an internal virtual network, which you get with an internal virtual switch: Etherstub. To the etherstub you can connect any virtual interface from your host or your guest.
 
/Johan
 
 
 
 
 
 
_______________________________________________
OmniOS-discuss mailing list
OmniOS-discuss at lists.omniti.com[OmniOS-discuss at lists.omniti.com]
http://lists.omniti.com/mailman/listinfo/omnios-discuss
 
 
 
 _______________________________________________ OmniOS-discuss mailing list OmniOS-discuss at lists.omniti.com http://lists.omniti.com/mailman/listinfo/omnios-discuss[http://lists.omniti.com/mailman/listinfo/omnios-discuss]


More information about the OmniOS-discuss mailing list