Multiple NICs on hosted engine?

I have installed the first node of a new oVirt 3.5 setup with a hosted engine VM. I have multiple networks: one public-accessible and one private (with storage, iDRAC/IPMI, etc.). I set the engine VM up on the public LAN, but now realize that it can't access the power control. I tried to add a second NIC to the engine VM through the web interface, but of course that doesn't work (because it isn't really managed there). How can I add a second NIC to the hosted engine VM? -- Chris Adams <cma@cmadams.net>

Hi Chris, ----- Original Message ----- > From: "Chris Adams" <cma@cmadams.net> > To: users@ovirt.org > Sent: Friday, November 14, 2014 4:11:14 PM > Subject: [ovirt-users] Multiple NICs on hosted engine? > > I have installed the first node of a new oVirt 3.5 setup with a hosted > engine VM. I have multiple networks: one public-accessible and one > private (with storage, iDRAC/IPMI, etc.). I set the engine VM up on the > public LAN, but now realize that it can't access the power control. I > tried to add a second NIC to the engine VM through the web interface, > but of course that doesn't work (because it isn't really managed there). > > How can I add a second NIC to the hosted engine VM? >From the web admin: 1. You have to select the hosted engine datacenter and than create a new logical network. 2. Select the new logical network and under the cluster tab ensure that it's associated to the hosted engine cluster 3. Select your hosted engine host and, under the network interfaces tab, select 'Setup Host Networks' to bind a physical interface of that host to the new logical network 4. At that point you can select the engine VM and add a new nic choosing the right profile to bind it to the second logical network Keep in mind that we had a bug in oVIrt 3.5.0 in that area. If you added an additional logical network to the first hosted engine host before adding the second one, you won't be able to deploy it. No problems if you deploy the second host and only than you add the second logical network configuring it on both the hosts. https://bugzilla.redhat.com/show_bug.cgi?id=1086032 We already fixed it but it will going to be released with 3.5.1 > -- > Chris Adams <cma@cmadams.net> > _______________________________________________ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users >

It’s probably unsupported, but I have found you can edit the /etc/ovirt-hosted-engine/vm.conf file to add a nic. I duplicated the existing "devices={nicModel:pv,macAddr” line and modified the macAddr and deviceId entries. Be sure you modify this file on ALL of your ha engine hosts. Then shutdown your running engine, let ha-agent restart it (hosted-engine —vm-start works fine too) and you’ve got two nics. -Darrell
On Nov 14, 2014, at 9:11 AM, Chris Adams <cma@cmadams.net> wrote:
I have installed the first node of a new oVirt 3.5 setup with a hosted engine VM. I have multiple networks: one public-accessible and one private (with storage, iDRAC/IPMI, etc.). I set the engine VM up on the public LAN, but now realize that it can't access the power control. I tried to add a second NIC to the engine VM through the web interface, but of course that doesn't work (because it isn't really managed there).
How can I add a second NIC to the hosted engine VM?
-- Chris Adams <cma@cmadams.net> _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Ah, I did this back under 3.2 or something. Glad to hear it’s supported now! I suggest ignoring my hack.
On Nov 14, 2014, at 11:17 AM, Darrell Budic <budic@onholyground.com> wrote:
It’s probably unsupported, but I have found you can edit the /etc/ovirt-hosted-engine/vm.conf file to add a nic.
I duplicated the existing "devices={nicModel:pv,macAddr” line and modified the macAddr and deviceId entries.
Be sure you modify this file on ALL of your ha engine hosts. Then shutdown your running engine, let ha-agent restart it (hosted-engine —vm-start works fine too) and you’ve got two nics.
-Darrell
On Nov 14, 2014, at 9:11 AM, Chris Adams <cma@cmadams.net> wrote:
I have installed the first node of a new oVirt 3.5 setup with a hosted engine VM. I have multiple networks: one public-accessible and one private (with storage, iDRAC/IPMI, etc.). I set the engine VM up on the public LAN, but now realize that it can't access the power control. I tried to add a second NIC to the engine VM through the web interface, but of course that doesn't work (because it isn't really managed there).
How can I add a second NIC to the hosted engine VM?
-- Chris Adams <cma@cmadams.net> _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

----- Original Message -----
From: "Darrell Budic" <budic@onholyground.com> To: "Chris Adams" <cma@cmadams.net> Cc: users@ovirt.org Sent: Friday, November 14, 2014 6:19:18 PM Subject: Re: [ovirt-users] Multiple NICs on hosted engine?
Ah, I did this back under 3.2 or something. Glad to hear it’s supported now! I suggest ignoring my hack.
On Nov 14, 2014, at 11:17 AM, Darrell Budic <budic@onholyground.com> wrote:
It’s probably unsupported, but I have found you can edit the /etc/ovirt-hosted-engine/vm.conf file to add a nic.
I duplicated the existing "devices={nicModel:pv,macAddr” line and modified the macAddr and deviceId entries.
Be sure you modify this file on ALL of your ha engine hosts. Then shutdown your running engine, let ha-agent restart it (hosted-engine —vm-start works fine too) and you’ve got two nics.
Sorry, I forgot you cannot add that nic on the engine VM from the engine UI. Please try what I explained plus Darrel's trick.

Once upon a time, Simone Tiraboschi <stirabos@redhat.com> said:
Sorry, I forgot you cannot add that nic on the engine VM from the engine UI. Please try what I explained plus Darrel's trick.
It worked. I added the network in the UI, added it to the host (so it got the bridge set up on that interface) in the UI, and then edited the vm.conf file on the host. Migrated back and forth and all appears well. Thanks. -- Chris Adams <cma@cmadams.net>

Glad it worked. Make sure you add it to the vm.conf file on all your ha hosts, otherwise you’ll drop it if ha-agent restarts it as opposed to a migration. Wasn’t clear if you’d done that or not.
On Nov 14, 2014, at 1:17 PM, Chris Adams <cma@cmadams.net> wrote:
Once upon a time, Simone Tiraboschi <stirabos@redhat.com> said:
Sorry, I forgot you cannot add that nic on the engine VM from the engine UI. Please try what I explained plus Darrel's trick.
It worked. I added the network in the UI, added it to the host (so it got the bridge set up on that interface) in the UI, and then edited the vm.conf file on the host. Migrated back and forth and all appears well.
Thanks. -- Chris Adams <cma@cmadams.net> _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Once upon a time, Darrell Budic <budic@onholyground.com> said:
Glad it worked. Make sure you add it to the vm.conf file on all your ha hosts, otherwise you’ll drop it if ha-agent restarts it as opposed to a migration. Wasn’t clear if you’d done that or not.
Based on some other notes I found via Google, here's what I did (for the archives): - Created the network in the UI - hosted-engine --set-maintenance --mode=global - edited /etc/ovirt-hosted-engine/vm.conf; duplicated the existing network line, changing the MAC, UUID, and network name (changed on all hosted-engine nodes) - hosted-engine --vm-shutdown - hosted-engine --vm-start - hosted-engine --set-maintenance --mode=none That appears to be working correctly. I did then figure out that I probably didn't need it, at least for what I thought: power management. I didn't realize that the engine doesn't talk to the IPMI devices directly, that it instead proxies through a node. -- Chris Adams <cma@cmadams.net>

Sorry to revive an old thread. I have a hosted engine setup, with ovirt-engine v3.5.2. But in the web admin, I only see the “Default” datacenter, but not the hosted engine datacenter. Any idea how I can get the hosted-engine to add or recognize the hosted-engine datacenter? Thanks.
On Nov 17, 2014, at 1:46 PM, Chris Adams <cma@cmadams.net> wrote:
Once upon a time, Darrell Budic <budic@onholyground.com> said:
Glad it worked. Make sure you add it to the vm.conf file on all your ha hosts, otherwise you’ll drop it if ha-agent restarts it as opposed to a migration. Wasn’t clear if you’d done that or not.
Based on some other notes I found via Google, here's what I did (for the archives):
- Created the network in the UI - hosted-engine --set-maintenance --mode=global - edited /etc/ovirt-hosted-engine/vm.conf; duplicated the existing network line, changing the MAC, UUID, and network name (changed on all hosted-engine nodes) - hosted-engine --vm-shutdown - hosted-engine --vm-start - hosted-engine --set-maintenance --mode=none
That appears to be working correctly.
I did then figure out that I probably didn't need it, at least for what I thought: power management. I didn't realize that the engine doesn't talk to the IPMI devices directly, that it instead proxies through a node. -- Chris Adams <cma@cmadams.net> _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (4)
-
Chris Adams
-
Darrell Budic
-
Haoyang Haven Liu
-
Simone Tiraboschi