[virt-tools-list] edit network while running
Ratliff, John
jdratlif at iu.edu
Wed May 2 14:34:06 UTC 2018
Thanks. I thought this made sense, but I didn’t understand the docs. I found a blog post that showed some of it, though I still don't fully understand all the options.
virsh net-update default add-last ip-dhcp-host '<host name="rhel7-master" mac="52:54:00:5c:1d:d7" ip="192.168.122.2"/>' --live --config
virsh net-update default delete ip-dhcp-host '<host ip="192.168.122.2"/>' --live --config
These seem to do what I want.
John Ratliff | Pervasive Technology Institute | UITS | Research Storage - Indiana University | http://pti.iu.edu/
-----Original Message-----
From: Daniel P. Berrangé <berrange at redhat.com>
Sent: Wednesday, May 2, 2018 9:54 AM
To: Ratliff, John <jdratlif at iu.edu>
Cc: virt-tools-list at redhat.com
Subject: Re: [virt-tools-list] edit network while running
On Wed, May 02, 2018 at 01:48:23PM +0000, Ratliff, John wrote:
> Is there a way to restart dnsmasq with a new configuration in net-edit
> without destroy/start the network?
>
>
>
> I want to add host reservations when new machines are added, but if I
> do a destroy/start, all the other running hosts lose networking.
It isn't well documented, but the 'virsh net-update' command is what you wnat. It allows you add/remove DHCP host mappings on the fly
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5670 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20180502/26c5bf3f/attachment.p7s>
More information about the virt-tools-list
mailing list