Factor out commonalities between CentOS 6 & 7.

Additionally, added *.qcow2 to .gitignore; it's handy to be able to
create disk images when testing.