- Use guestmount (
guestmount -a name.qcow2 -i --rw /mnt
) to mount the .qcow2 to a folder in /mnt (if nothing is mounted there) - copy "./vm daemon/dockghost" to /mnt/etc/init.d/ and chmod to 755
- create softlinks using
ln -s /mnt/etc/init.d/dockghost /mnt/etc/rc*.d/K01dockghost
in *={0,1,2,6,S} - create softlinks using
ln -s /mnt/etc/init.d/dockghost /mnt/etc/rc*.d/S02dockghost
in *={3,4,5} - compile
ghost.c
usingg++ -Wall ghost.c -o ghost
and copyghost
to/mnt/usr/sbin/
- chmod
ghost
to 755 - create folder
docker
in/mnt
- create files
/mnt/docker/tally
and/mnt/docker/log
(log files) umount /mnt
- the qcow2 is ready
- to check usage run ./exec.sh