[Users] another networking question: ssh to VM with private dhcp addr

--Sig_/w6my2qV.PKZtGA0U_nY_H5Y Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello, I've got oVirt 3.3.x all-in-one up and running on CentOS 6.3. The IP address on the ovirtmgmt bridge is static/public. I have not done any additional network/VLAN configuration. If I create a VM and give it an address on the same subnet, I can ssh to it just fine. If I create a VM and let it use dhcp, it gets a 172.31.x.x address. Outgoing access works fine, but I can't figure out what to do to allow me to be able to ssh into those VMs. With straight KVM the VM private network was on a virtual interface on the host, making it easy. But I can't figure out how to do it with oVirt. Any help greatly appreciated. Thanks in advance. Robert --Sig_/w6my2qV.PKZtGA0U_nY_H5Y Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlLgpsIACgkQ7/fVLLY1mnj1fQCeMRXZlVEVu7TYhDOUMZptymdC upUAniuQzBrfuqKTazfNk3VjHPWozuPY =aRJj -----END PGP SIGNATURE----- --Sig_/w6my2qV.PKZtGA0U_nY_H5Y--

I assume when you're creating VMs you connect them to the ovirtmgmt network? If so, when the VM generates a DHCP request it goes out to the same physical network that the ovirtmgmt device is on. Meaning, that if the VM and the management device both generate DHCP requests they should get responses in the same subnet. As for SSH'ing into those VMs, DHCP vs static addressing shouldn't make a difference unless you end up with different subnets. If you give a VM a static address in the same range as the DHCP responses I'd imagine you wouldn't be able to SSH into it either. Assaf Muller, Cloud Networking Engineer Red Hat ----- Original Message ----- From: "Robert Story" <rstory@tislabs.com> To: "users" <users@ovirt.org> Sent: Thursday, January 23, 2014 7:21:01 AM Subject: [Users] another networking question: ssh to VM with private dhcp addr Hello, I've got oVirt 3.3.x all-in-one up and running on CentOS 6.3. The IP address on the ovirtmgmt bridge is static/public. I have not done any additional network/VLAN configuration. If I create a VM and give it an address on the same subnet, I can ssh to it just fine. If I create a VM and let it use dhcp, it gets a 172.31.x.x address. Outgoing access works fine, but I can't figure out what to do to allow me to be able to ssh into those VMs. With straight KVM the VM private network was on a virtual interface on the host, making it easy. But I can't figure out how to do it with oVirt. Any help greatly appreciated. Thanks in advance. Robert _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

--Sig_/4htGtoOzs=D9x3M1QinV6Xw Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 23 Jan 2014 05:12:31 -0500 (EST) Assaf wrote: AM> If so, when the VM generates a DHCP request it goes out to the same AM> physical network that the ovirtmgmt device is on. Meaning, that if the AM> VM and the management device both generate DHCP requests they should AM> get responses in the same subnet. Ah, ok. So oVirt doesn't automatically do DHCP like virt-manager.. Got it. All the machines in the lab use static IPs, so I wasn't aware that there was a DHCP server somewhere else handing out private addresses. I just assumed oVirt did dhcp like virt-manager. Sorry for the noise! Robert --Sig_/4htGtoOzs=D9x3M1QinV6Xw Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlLhIYkACgkQ7/fVLLY1mngvTgCeOmLGqS8/EB2h+QHdykfPzOut 2dUAn0jxbFsj1DhOxrbOtBuqI5pZ6rwq =+Fvv -----END PGP SIGNATURE----- --Sig_/4htGtoOzs=D9x3M1QinV6Xw--
participants (2)
-
Assaf Muller
-
Robert Story