Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion devops/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

DRIVER = 'devops.driver.libvirt.libvirt_driver'
DRIVER_PARAMETERS = {
'connection_string': os.environ.get('CONNECTION_STRING', 'qemu:///system'),
'connection_string': os.environ.get('CONNECTION_STRING', 'qemu+tcp://127.0.0.1:16509/system'),
'storage_pool_name': os.environ.get('STORAGE_POOL_NAME', 'default'),
}

Expand Down
20 changes: 20 additions & 0 deletions docs/source/getstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,23 @@ At this point you are ready to make your first devops application.
environment.define()

This code creates environment 'myenv' with only one VM 'mynode' and attaches 10G qcow2 volume to it. It also creates libvirt network 'mynet' from the range 10.0.0.0/16.

As we use TCP connection to libvirtd we need to set it up to accept TCP.

in /etc/libvirt/libvirtd.conf:

::
listen_tls = 0
listen_tcp = 1
tcp_port = "16509"
# tls_port = "16514"
listen_addr = "127.0.0.1"
auth_tcp = "none"

And fix the init-script settings to start libvirtd with --listen option

in /etc/default/libvirt-bin:

::
# options passed to libvirtd, add "-l" to listen on tcp
libvirtd_opts="-d -l"