Create a Fedora 20 guest from scratch using virt-builder
, fully update it, and install a couple of packages:
$ virt-builder fedora-20 -o rawhide.qcow2 --format qcow2 \ --update --selinux-relabel --size 40G\ --install "fedora-release-rawhide yum-utils"
[UPDATE: Starting Fedora-21, fedora-release-rawhide package is renamed by fedora-repos-rawhide.]
Import the disk image into libvirt:
$ virt-install --name rawhide --ram 4096 --disk \ path=/home/kashyapc/rawhide.qcow2,format=qcow2,cache=none \ --import
Login via serial console into the guest, upgrade to Rawhide:
$ yum-config-manager --disable fedora updates updates-testing $ yum-config-manager --enable rawhide $ yum --releasever=rawhide distro-sync --nogpgcheck $ reboot
Optionally, create a QCOW2 internal snapshot (live or offline) of the guest:
$ virsh snapshot-create-as rawhide snap1 \ "Clean Rawhide 19MAR2014"
Here are a couple of methods on how to upgrade to Rawhide