Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upLibvirt LXC: allow to check for container existence and status #585
Conversation
|
Please modify lib/specinfra/command/linux/base/lxc_container.rb like this. def check_exists(container)
[
"lxc-ls -1 | grep -w #{escape(container)}",
"virsh -c lxc:/// list --all --name | grep -w '^#{escape(container)}$'"
].join(' || ')
end |
|
@mizzy updated. |
|
Not needed when we handle LibvirtLXC in LXC as @mizzy suggested. |
|
Argh, i closed the wrong one. Meant to close the one on serverspec. Sorry |
|
Thanks! |
|
Released as v2.63.3. |


This is similar to LXC but libvirt-lxc containers are implemented
differently and need the libvirt tools to check existence and status.