Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Creating linked clones

Featured Replies

Does anyone know how to create linked clones through the UI or through webvirtmgr (I have that installed in a Docker instance)

 

It should be possible to create a new VM which has a qcow2 disk based off a backing disk, i.e. the new disk only contains changes to the filesystem in the backing disk which remains "read only"

 

In VMWare world, this would be known as a linked clone and according to this chap is perfectly possible in KVM.

 

http://www.greenhills.co.uk/2013/03/24/cloning-vms-with-kvm.html

 

Just wondering if I need to jump  into the terminal to achieve this, seems maybe I just do that to get the image file created and then create the VM and point to that image through the GUI?

 

 

  • Author

Okay it was pretty easy in the end. Set up a Windows VM, get it how I want it. Sysprep it with OOTB and shutdown. Then drop into SSH, make the image file read only, and run the following command:-

 

sudo qemu-img create -f qcow2 -b /var/lib/libvirt/images/myreadonlyimage.qcow2 /var/lib/libvirt/images/mynewvm.qcow2

 

then create a new VM XML pointing at the new file (I tend to use webvirtmgr in a docker for this)

 

You do know that the files you make in /var/lib/libvirt/images is made in RAM and will be destroyed on next boot (And also fill up your RAM)?

  • 4 months later...
  • Author

Aah no I didn't actually!

 

That is the example I copied from somewhere, my actual images reside on /mnt/cache/VM

 

This sounds really cool. Do you mind sharing your use-case for this functionality? I'm new to the whole vm world and I'm fascinated by the potential :).

 

Are you using the clones as a sandbox for testing software/apps etc. or for something else?

  • 5 months later...
  • Author

Sorry I missed this and it is probably too late now but it is primarily to conserve space. I can have all the base Windows files installed in the base image file. The differences are then stored in the main VM file which points back to the base image file.

 

So you save on storage for the base Windows install. For a lot of my Windows Server VMs this works quite well, especially once they are up and running. There will be a slight performance hit but for server stuff it doesn't matter too much especially if I am running them off an NVMe drive.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.