User Tools

Site Tools


computing:virtmanagerhell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computing:virtmanagerhell [2023/01/15 17:37] oemb1905computing:virtmanagerhell [2023/01/15 17:47] (current) oemb1905
Line 124: Line 124:
   dd if=/dev/urandom of=file bs=4M count=500   dd if=/dev/urandom of=file bs=4M count=500
      
-To create a backup volume inside a guest. First, add the volume location with virsh or virt-manager. Then, inside the guestOS: +To create a backup volume inside a guest you create the volume, attach it, and then shell into the guest and format, mount, and create an fstab entry. First, on the hostOS: 
 +   
 +  cd /mnt/vms/backups/vm1-backup-dir/ 
 +  qemu-img create -f qcow2 vm1-backup.qcow2 32G 
 +  virsh attach-disk guestOS.qcow2 \ 
 +    --source /mnt/vms/backups/vm1-backup-dir/vm1-backup \ 
 +    --target vdb \ 
 +    --persistent 
 +   
 +Then, on the guestOS: 
 +  
   mkdir /mnt/backup   mkdir /mnt/backup
   mkfs.ext4 /dev/vdb   mkfs.ext4 /dev/vdb
computing/virtmanagerhell.txt · Last modified: 2023/01/15 17:47 by oemb1905