Ovirt 4.2. Isolated (host-only) network

----ALT--iCwgQQ0GBHTeShFo2FB3AcVI5B77QSGX1523253110 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 CgpIaSBMaXN0IQpSZWNlbnRseSBJJ3ZlIHN0YXJ0ZWQgdXNpbmcgb3ZpcnQgNC4yIGFuZCBmYWNl ZCB0aGF0IEkgY2Fubm90IGZpbmQgYW55IGd1aWRlIGhvdyB0byBkbyBpdCBpbiBvdmlydC5vcmcg ZG9jdW1lbnRhdGlvbi4KTmVlZCBoZWxwIHdpdGggY29uZmlndXJlIGlzb2xhdGVkL2hvc3Qtb25s eSAobm90IGNvbm5lY3QgdG8gcmVhbCBOSUMpIG5ldHdvcmsgdGhhdCBhbGxvd2VkIHRvIGNvbW11 bmljYXRlIHR3byBvciBtb3JlIFZNcyBpbnRvIHByaXZhdGUgbmV0d29yay4gTWF5IGJlIGV4aXN0 IGEgc29sdXRpb24/IEkgZGlkIGl0IHN1Y2g6IGxpbmtlZCBsb2dpY2FsIG5ldHdvcnQgdG8gcmVh bCBOSUMgd2l0aG91dCBjb25uZWN0IGFueXdoZXJlIChsaW5rIC0gRE9XTiksIGJ1dCB0aGlzIHNv bHV0aW9uIGlzIGEgbGl0dGxlIGJpdCBvZGQuIEhvdyB0byBleGNsdWRlIHJlYWQgTklDPwrCoAo= ----ALT--iCwgQQ0GBHTeShFo2FB3AcVI5B77QSGX1523253110 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: base64 CjxIVE1MPjxCT0RZPjxicj48YnI+PHAgc3R5bGU9ImZvbnQtZmFtaWx5OiBBcmlhbCwgVGFob21h LCBWZXJkYW5hLCBzYW5zLXNlcmlmOyIgZGF0YS1tY2Utc3R5bGU9ImZvbnQtZmFtaWx5OiBBcmlh bCwgVGFob21hLCBWZXJkYW5hLCBzYW5zLXNlcmlmOyI+SGkgTGlzdCE8L3A+PHAgc3R5bGU9ImZv bnQtZmFtaWx5OiBBcmlhbCwgVGFob21hLCBWZXJkYW5hLCBzYW5zLXNlcmlmOyIgZGF0YS1tY2Ut c3R5bGU9ImZvbnQtZmFtaWx5OiBBcmlhbCwgVGFob21hLCBWZXJkYW5hLCBzYW5zLXNlcmlmOyI+ UmVjZW50bHkgSSd2ZSBzdGFydGVkIHVzaW5nIG92aXJ0IDQuMiBhbmQgZmFjZWQgdGhhdCBJIGNh bm5vdCBmaW5kIGFueSBndWlkZSBob3cgdG8gZG8gaXQgaW4gb3ZpcnQub3JnIGRvY3VtZW50YXRp b24uPC9wPjxwIHN0eWxlPSJmb250LWZhbWlseTogQXJpYWwsIFRhaG9tYSwgVmVyZGFuYSwgc2Fu cy1zZXJpZjsiIGRhdGEtbWNlLXN0eWxlPSJmb250LWZhbWlseTogQXJpYWwsIFRhaG9tYSwgVmVy ZGFuYSwgc2Fucy1zZXJpZjsiPk5lZWQgaGVscCB3aXRoIGNvbmZpZ3VyZSBpc29sYXRlZC9ob3N0 LW9ubHkgKG5vdCBjb25uZWN0IHRvIHJlYWwgTklDKSBuZXR3b3JrIHRoYXQgYWxsb3dlZCB0byBj b21tdW5pY2F0ZSB0d28gb3IgbW9yZSBWTXMgaW50byBwcml2YXRlIG5ldHdvcmsuIE1heSBiZSBl eGlzdCBhIHNvbHV0aW9uPyBJIGRpZCBpdCBzdWNoOiBsaW5rZWQgbG9naWNhbCBuZXR3b3J0IHRv IHJlYWwgTklDIHdpdGhvdXQgY29ubmVjdCBhbnl3aGVyZSAobGluayAtIERPV04pLCBidXQgdGhp cyBzb2x1dGlvbiBpcyBhIGxpdHRsZSBiaXQgb2RkLiBIb3cgdG8gZXhjbHVkZSByZWFkIE5JQz88 L3A+PGRpdj4mbmJzcDs8L2Rpdj48YnI+PC9CT0RZPjwvSFRNTD4K ----ALT--iCwgQQ0GBHTeShFo2FB3AcVI5B77QSGX1523253110--

=0A<div><span style=3D"font-family: arial, helvetica,sans-serif; font-s= ize: 10pt; color: #000000;">The solution is very close to your idea, so= what about connecting these VMs to a "ghost" network interface, which i= s just existing virtually and behaving like a real one but without bothe= ring you ?</span></div>=0A<div> </div>=0A<div><span style=3D"font-f= amily: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> T= his thing is called the "dummy" module, and can be configured at OS leve= l.</span></div>=0A<div> </div>=0A<div><span style=3D"font-family: a= rial, helvetica,sans-serif; font-size: 10pt; color: #000000;">* Configur= e and use the "dummy" module and create an active interface </span></div= =0A<div><span style=3D"font-family: arial, helvetica,sans-serif; font-s= ize: 10pt; color: #000000;"> -= /etc/modprobe.d/dummy.conf<br /> &nb= sp; install dummy /sbin/modprobe --ignore-instal= l dummy; ip link add dummy_1 type dummy<br /> &nb= sp; - /etc/modules-load.d/dummy.conf <br />  = ; # Dummy net driver for= internal network<br /> &= nbsp; dummy</span></div>=0A<div> </div>=0A<div><span st= yle=3D"font-family: arial, helvetica,sans-serif; font-size: 10pt; color:= #000000;">* Configure this device "dummy_1" as linked to a dedicated br= idge "smb_testing".</span></div>=0A<div><span style=3D"font-family: aria= l, helvetica,sans-serif; font-size: 10pt; color: #000000;">- /etc/syscon= fig/network-scripts/ifcfg-dummy_1 <br /> &n= bsp; # Generated by VDSM version 4.20.23-1= .el7.centos<br /> &= nbsp; DEVICE=3Ddummy_1<br /> &n= bsp; BRIDGE=3Dsmb_testing<br />  = ; ONBOOT=3Dyes<br />&nbs=
--=_4eec1c398deb5860b5f91e1107ccfc6c Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi,=0A Yes, clear informations about this are not available and I had= to try a little bit before getting a result. The thing is you can cre= ate an internal network but it has to be linked to some device, otherwis= e the network will be considered as "non functional" and your domain, se= rver or datacenter (depending at which level you decide to set ip), will= return errors. At the datacenter level, I wasn't even able to have a us= able infrastructure before correcting this. The solution is very close= to your idea, so what about connecting these VMs to a "ghost" network i= nterface, which is just existing virtually and behaving like a real one= but without bothering you ? This thing is called the "dummy" module,= and can be configured at OS level. * Configure and use the "dummy" mo= dule and create an active interface - /etc/modprobe.d/dummy.conf=0A in= stall dummy /sbin/modprobe --ignore-install dummy; ip link add dummy_1 t= ype dummy=0A - /etc/modules-load.d/dummy.conf =0A # Dummy net driver for= internal network=0A dummy * Configure this device "dummy_1" as linked= to a dedicated bridge "smb_testing". - /etc/sysconfig/network-scripts/i= fcfg-dummy_1 =0A # Generated by VDSM version 4.20.23-1.el7.centos=0A DEV= ICE=3Ddummy_1=0A BRIDGE=3Dsmb_testing=0A ONBOOT=3Dyes=0A MTU=3D1500=0A D= EFROUTE=3Dno=0A NM_CONTROLLED=3Dno=0A IPV6INIT=3Dno=0A * Classic bridg= e definition.=0A - /etc/sysconfig/network-scripts/ifcfg-smb_testing =0A= # Generated by VDSM version 4.20.23-1.el7.centos=0A DEVICE=3Dsmb_testin= g=0A TYPE=3DBridge=0A DELAY=3D0=0A STP=3Doff=0A ONBOOT=3Dyes=0A MTU=3D15= 00=0A DEFROUTE=3Dno=0A NM_CONTROLLED=3Dno=0A IPV6INIT=3Dyes=0A IPV6_AUTO= CONF=3Dyes You can now attach this network to your machines, and they= will be able to communicate through it. =0A=0AMy main concern now is := will this configuration survive if I modify things and network scripts= are regenerated by the engine ? =0A=0ARegards=0A=0A Le 09-Apr-2018 08:3= 7:23 +0200, a_shilov@inbox.ru a crit: =0A=0AHi List! =0A=0ARecently I'= ve started using ovirt 4.2 and faced that I cannot find any guide how to= do it in ovirt.org documentation. =0A=0ANeed help with configure isolat= ed/host-only (not connect to real NIC) network that allowed to communica= te two or more VMs into private network. May be exist a solution? I did= it such: linked logical networt to real NIC without connect anywhere (l= ink - DOWN), but this solution is a little bit odd. How to exclude read= NIC? =0A=0A---------------------------------------------------------= ----------------------------------------=0AFreeMail powered by mail.fr --=_4eec1c398deb5860b5f91e1107ccfc6c Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <div><span style=3D"font-family: arial, helvetica,sans-serif; font-size:= 10pt; color: #000000;">Hi,<br /></span></div>=0A<div> </div>=0A<di= v><span style=3D"font-family: arial, helvetica,sans-serif; font-size: 10= pt; color: #000000;">Yes, clear informations about this are not availabl= e and I had to try a little bit before getting a result.</span></div>=0A= <div> </div>=0A<div><span style=3D"font-family: arial, helvetica,sa= ns-serif; font-size: 10pt; color: #000000;">The thing is you can create= an internal network but it has to be linked to some device, otherwise t= he network will be considered as "non functional" and your domain, serve= r or datacenter (depending at which level you decide to set ip), will re= turn errors. At the datacenter level, I wasn't even able to have a usabl= e infrastructure before correcting this.</span></div>=0A<div> </div= p; MTU=3D150= 0<br />  = ; DEFROUTE=3Dno<br /> &nb= sp; NM_CONTROLLED=3Dno<br /> &n= bsp; IPV6INIT=3Dno<br /></span></div>=0A<d= iv> </div>=0A<div><span style=3D"font-family: arial, helvetica,sans= -serif; font-size: 10pt; color: #000000;">* Classic bridge definition.<b= r /> - /etc/sysconfig/network-= scripts/ifcfg-smb_testing <br /> &nbs= p; # Generated by VDSM version 4.20.23-1.e= l7.centos<br /> &nb= sp; DEVICE=3Dsmb_testing<br /> = TYPE=3DBridge<br /> &nbs= p; DELAY=3D0<br /> = STP=3Doff<br />&n= bsp; ONBOOT= =3Dyes<br /> = MTU=3D1500<br /> &= nbsp; DEFROUTE=3Dno<br />  = ; NM_CONTROLLED=3Dno<br /> &nbs= p; IPV6INIT=3Dyes<br />&= nbsp; IPV6_A= UTOCONF=3Dyes</span></div>=0A<div> </div>=0A<div><span style=3D"fon= t-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"=
You can now attach this network to your machines, and they will be able= to communicate through it.</span></div>=0A<p>My main concern now is : w= ill this configuration survive if I modify things and network scripts ar= e regenerated by the engine ?</p>=0A<p>Regards<br /><br /> Le 09-Apr-201= 8 08:37:23 +0200, a_shilov@inbox.ru a écrit:</p>=0A<div> </d= iv>=0A<blockquote style=3D"margin-left: 0; padding-left: 5px; border-lef= t: 2px solid navy;"><br /><br />=0A<p style=3D"font-family: Arial, Tahom= a, Verdana, sans-serif;">Hi List!</p>=0A<p style=3D"font-family: Arial,= Tahoma, Verdana, sans-serif;">Recently I've started using ovirt 4.2 and= faced that I cannot find any guide how to do it in ovirt.org documentat= ion.</p>=0A<p style=3D"font-family: Arial, Tahoma, Verdana, sans-serif;"= Need help with configure isolated/host-only (not connect to real NIC) n= etwork that allowed to communicate two or more VMs into private network.= May be exist a solution? I did it such: linked logical networt to real= NIC without connect anywhere (link - DOWN), but this solution is a litt= le bit odd. How to exclude read NIC?</p>=0A<div> </div>=0A</blockqu= ote>=0A <br/><hr>FreeMail powered by <a href=3D"https= ://mail.fr" target=3D"_blank">mail.fr</a>=0A
--=_4eec1c398deb5860b5f91e1107ccfc6c--
participants (2)
-
Anton Shilov
-
spfma.tech@e.mail.fr