Creating a network with libvirt

176 views
Skip to first unread message

Andrew Martin

unread,
Jan 15, 2014, 1:05:02 PM1/15/14
to ansible...@googlegroups.com
Hello,

As part of a playbook I'm writing for creating a KVM virtualization server, I'd also like to create a new virtual network for VMs to use. The commands I would normally run to do this are:
virsh net-define /path/to/mynetwork-config.xml
virsh net-autostart mynetwork
virsh net-start mynetwork

Is there a way that I can run these commands with the virt Ansible module? It says that it can support other libvirt commands, but I am unsure how to execute them?

Thanks,

Andrew

Michael DeHaan

unread,
Jan 15, 2014, 1:44:11 PM1/15/14
to ansible...@googlegroups.com
No, the virt ansible module originated from code in Func long ago and is pretty basic.   It predates libvirt's configuration of networking, storage, thermostats, and ability to facetweet to instatube.

I'd welcome additions however, though I'd question if maybe it needs to be in a 'libvirt_network' module to keep the arguments from intermixing.




--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Michael DeHaan <mic...@ansibleworks.com>
CTO, AnsibleWorks, Inc.
http://www.ansibleworks.com/

Andrew Martin

unread,
Jan 15, 2014, 3:04:01 PM1/15/14
to ansible...@googlegroups.com
Okay, thanks for the clarification!


--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/ll6Hs9CaRdY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages