Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...





Code Block
titleBasic plugins test
collapsetrue
create a .tf file

provider "libvirt" {
    uri = "qemu:///system"
}




Code Block
titlecreate a pool
collapsetrue
jlk@ubuntu:~/Documents/github/terraform/basicubuntu$ virsh pool-list
 Name                 State      Autostart 
-------------------------------------------



jlk@ubuntu:~/Documents/github/terraform/basicubuntu$ virsh pool-define /dev/stdin <<EOF
> <pool type='dir'>
>   <name>default</name>
>   <target>
>     <path>/var/lib/libvirt/images</path>
>   </target>
> </pool>
> EOF
Pool default defined from /dev/stdin


jlk@ubuntu:~/Documents/github/terraform/basicubuntu$ virsh pool-start default
Pool default started

jlk@ubuntu:~/Documents/github/terraform/basicubuntu$ virsh pool-autostart default
Pool default marked as autostarted

jlk@ubuntu:~/Documents/github/terraform/basicubuntu$ virsh pool-list
 Name                 State      Autostart 
-------------------------------------------
 default              active     yes 



other example:

https://github.com/Klazomenai/tf-libvirt-centos7