`<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div>Dominik,<br></div><div><br></div><div>Thanks, but, no i can't even ping by hostname or ip. <br></div><div><br></div><div>netstat -rn -finet<br></div><div><br></div><div>Routing Table: IPv4<br></div><div> Destination Gateway Flags Ref Use Interface<br></div><div>-------------------- -------------------- ----- ----- ---------- ---------<br></div><div>default 192.168.200.1 UG 2 1 e1000g0<br></div><div>127.0.0.1 127.0.0.1 UH 2 0 lo0<br></div><div>192.168.200.0 192.168.200.190 U 8 108532 e1000g0<br></div><div><br></div><div>I read here that "By default, networking between the control domain and other domains in the
system is disabled."<br></div><div><br></div><div><a href="https://docs.oracle.com/cd/E19608-01/html/821-1485/enablenetworkbtwncsdomainandotherdomains.html">https://docs.oracle.com/cd/E19608-01/html/821-1485/enablenetworkbtwncsdomainandotherdomains.html</a><br></div><div><br></div><div>And here you need to do some etherstub plumbing with ifconfig, whcich i don't believe omniOS can do.<br></div><div><br></div><div><br></div><div class="zmail_extra"><div id="1"><div><br></div><div>---- On Mon, 15 Feb 2016 15:12:10 +0100 <b>Dominik Hassler <hasslerd@gmx.li></b>wrote ---- <br></div></div><div><br></div><blockquote style="border-left: 1px solid #cccccc; padding-left: 6px; margin:0 0 0 5px"><div>there is no need for an etherstub for your setup.
<br></div><div>
<br></div><div>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}.
<br></div><div>
<br></div><div>you shold not assign an address to the vnic that will be used by the kvm.
<br></div><div>
<br></div><div>can you ping your guest from the host (hostname and/or IP)? might be a hostname resulution problem.
<br></div><div>
<br></div><div>Gesendet: Montag, 15. Februar 2016 um 14:55 Uhr
<br></div><div>Von: "Gordon Selisek" <<a href="mailto:gordon@hafnia.dk" target="_blank">gordon@hafnia.dk</a>>
<br></div><div>An: "<a href="mailto:omnios-discuss@lists.omniti.com" target="_blank">omnios-discuss@lists.omniti.com</a>" <<a href="mailto:omnios-discuss@lists.omniti.com" target="_blank">omnios-discuss@lists.omniti.com</a>>
<br></div><div>Betreff: Re: [OmniOS-discuss] Ang: How to do networking between host and KVM guest?
<br></div><div>
<br></div><div>Johan,
<br></div><div>
<br></div><div>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?
<br></div><div>
<br></div><div><a href="https://docs.oracle.com/cd/E26502_01/html/E28992/gmhfi.html" target="_blank">https://docs.oracle.com/cd/E26502_01/html/E28992/gmhfi.html</a>
<br></div><div>
<br></div><div>says:
<br></div><div># dladm create-etherstub etherstub
<br></div><div>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[<a href="https://docs.oracle.com/cd/E26502_01/html/E28992/gfkbw.html#scrolltoc" target="_blank">https://docs.oracle.com/cd/E26502_01/html/E28992/gfkbw.html#scrolltoc</a>].
<br></div><div>
<br></div><div>
<br></div><div>
<br></div><div>
<br></div><div>
<br></div><div>---- On Mon, 15 Feb 2016 14:47:29 +0100 Johan Kragsterman <<a href="mailto:johan.kragsterman@capvert.se" target="_blank">johan.kragsterman@capvert.se</a>[<a href="mailto:johan.kragsterman@capvert.se" target="_blank">johan.kragsterman@capvert.se</a>]>wrote ----
<br></div><div>
<br></div><div>
<br></div><div>
<br></div><div>Hi!
<br></div><div>
<br></div><div>
<br></div><div>
<br></div><div>
<br></div><div>-----"OmniOS-discuss" <<a href="mailto:omnios-discuss-bounces@lists.omniti.com" target="_blank">omnios-discuss-bounces@lists.omniti.com</a>[<a href="mailto:omnios-discuss-bounces@lists.omniti.com" target="_blank">omnios-discuss-bounces@lists.omniti.com</a>]> skrev: -----
<br></div><div>Till: "<a href="mailto:omnios-discuss@lists.omniti.com" target="_blank">omnios-discuss@lists.omniti.com</a>[<a href="mailto:omnios-discuss@lists.omniti.com" target="_blank">omnios-discuss@lists.omniti.com</a>]" <<a href="mailto:omnios-discuss@lists.omniti.com" target="_blank">omnios-discuss@lists.omniti.com</a>[<a href="mailto:omnios-discuss@lists.omniti.com" target="_blank">omnios-discuss@lists.omniti.com</a>]>
<br></div><div>Från: Gordon Selisek
<br></div><div>Sänt av: "OmniOS-discuss"
<br></div><div>Datum: 2016-02-15 13:28
<br></div><div>Ärende: [OmniOS-discuss] How to do networking between host and KVM guest?
<br></div><div>
<br></div><div>Hi all,
<br></div><div>
<br></div><div>I ran into a problem, how to do networking between host and KVM guest?
<br></div><div>
<br></div><div>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.
<br></div><div>
<br></div><div>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.
<br></div><div>
<br></div><div>dladm show-link
<br></div><div>LINK CLASS MTU STATE BRIDGE OVER
<br></div><div>e1000g0 phys 1500 up -- --
<br></div><div>vnic0 vnic 1500 up -- e1000g0
<br></div><div>
<br></div><div>ipadm show-addr
<br></div><div>ADDROBJ TYPE STATE ADDR
<br></div><div>lo0/v4 static ok 127.0.0.1/8
<br></div><div>e1000g0/lan static ok 192.168.200.190/24
<br></div><div>lo0/v6 static ok ::1/128
<br></div><div>
<br></div><div>
<br></div><div>
<br></div><div>Any hints? please?
<br></div><div>
<br></div><div>Cordial regards
<br></div><div>
<br></div><div>Gordon
<br></div><div>
<br></div><div>
<br></div><div>
<br></div><div>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.
<br></div><div>
<br></div><div>/Johan
<br></div><div>
<br></div><div>
<br></div><div>
<br></div><div>
<br></div><div>
<br></div><div>
<br></div><div>_______________________________________________
<br></div><div>OmniOS-discuss mailing list
<br></div><div><a href="mailto:OmniOS-discuss@lists.omniti.com" target="_blank">OmniOS-discuss@lists.omniti.com</a>[<a href="mailto:OmniOS-discuss@lists.omniti.com" target="_blank">OmniOS-discuss@lists.omniti.com</a>]
<br></div><div><a href="http://lists.omniti.com/mailman/listinfo/omnios-discuss" target="_blank">http://lists.omniti.com/mailman/listinfo/omnios-discuss</a>
<br></div><div>
<br></div><div>
<br></div><div>
<br></div><div> _______________________________________________ OmniOS-discuss mailing list <a href="mailto:OmniOS-discuss@lists.omniti.com" target="_blank">OmniOS-discuss@lists.omniti.com</a> <a href="http://lists.omniti.com/mailman/listinfo/omnios-discuss" target="_blank">http://lists.omniti.com/mailman/listinfo/omnios-discuss</a>[<a href="http://lists.omniti.com/mailman/listinfo/omnios-discuss" target="_blank">http://lists.omniti.com/mailman/listinfo/omnios-discuss</a>]
<br></div></blockquote></div><div><br></div></div></body></html>`