1

i've copied a Linux System Rootfolder (/) using Rsync to a local Folder. (Excluding 500GB Data)

Is it possible to create a Bootable System Image that boots in Virt-manager?

Rsync Command: Rsync -aAXv

Rsync excluding /dev/* /proc/* /sys/* /tmp/* /usr/tmp/* /run/* /mnt/* /media/* /var/cache/* /lost+found /var/www/ /root/

2
  • What rsync command (and options) did you use? Please add this to your question Commented Feb 4 at 13:23
  • 1
    ok, i get it work! Commented Feb 4 at 20:55

1 Answer 1

0

It Works (Debian 9):

  1. first build a qcow2 Image (first attempt Img Raw)

  2. format it in ext4 (parted)

  3. mount as NetBlockDevice to /mnt/example

  4. Rsync -aAXv to /mnt/example

  5. Copy /boot/initrd and /boot/vmlinuz from Image to local File system.

  6. unmount it

  7. create new virt-manager Device (Generic OS), uefi x86_64, Image as SCSI Disk

7.1 copy /boot/initrd and /boot/vmlinuz file to local file system

7.2 Add boot-Options -> direct Kernel-> the initrd and vmlinuz file

7.3 add kernel boot parameters : root=/dev/sda1

8.0 in First booted system:

8.1 mount -o remount,rw /dev/sda1 /

8.2 cat blkid >> /etc/fstab

8.3 comment out old root Mount and build same line with new UUID

It works!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .