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

Gordon Selisek gordon at hafnia.dk
Mon Feb 15 13:55:19 UTC 2016


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.






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





Hi! 









-----"OmniOS-discuss" <omnios-discuss-bounces at lists.omniti.com> skrev: ----- 

Till: "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 

http://lists.omniti.com/mailman/listinfo/omnios-discuss 














-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20160215/b52ed4ef/attachment.html>


More information about the OmniOS-discuss mailing list