qemu based virtualization
Steps to follow:
- make sure libvirtd is started:
systemctl enable libvirtd
systemctl start libvirtd
- download qemu image (109 MiB):
wget -c -O /var/lib/libvirt/images/rocketgit1-master.qcow2.xz
http://downloads.rocketgit.com/vm/v2/rocketgit1.qcow2.xz
- download libvirt vm description file (4 KiB):
wget -c -O /var/lib/libvirt/images/rocketgit.xml
http://downloads.rocketgit.com/vm/rocketgit.xml
- decompress qemu image:
cd /var/lib/libvirt/images/
xz -v -d rocketgit1-master.qcow2.xz
- create a clone of the image to be able to start over or to make
multiple instances:
qemu-img create -f qcow2 -b rocketgit1-master.qcow2 rocketgit1.qcow2
- add the rocketgit1 virtual machine:
virsh define --file /var/lib/libvirt/images/rocketgit.xml
- make it start at boot:
virsh autostart rocketgit1
- now, you may want to change some virtual machine parameters using
virt-manager or 'virsh edit rocketgit1' command; pay attention to
the network definition
- make sure no other virtualization system is running (like VirtualBox)
- start the virtual machine:
virsh start rocketgit1
- attach to the console to find out the ip address:
virsh console rocketgit1
# login as root with password 'aaaa'
ip ad li
- now, point your browser to the ip address found, using http or
https and create an admin account
If you want to create a new RocketGit instance, you can create a new
image based on rocketgit1-master:
cd /var/lib/libvirt/images/
qemu-img create -f qcow2 -b rocketgit1-master.qcow2 rocketgit2.qcow2
# edit rocketgit.xml and replace any reference of rocketgit1 to
# rocketgit2; leave alone the reference to rocketgit1-master.qcow2
virsh define --file rocketgit.xml
virsh edit rocketgit2
virsh autostart rocketgit2
virsh start rocketgit2
virsh console rocketgit2
Now, please follow the
common section below to
finish the installation.