boyd.badten Posted July 12, 2019 Share Posted July 12, 2019 (edited) Virt-Manager docker install worked fine for me---running well. The main reason I wanted to run Virt-Manager is for ***snapshots***. I do a lot of development on my VM's that are sometimes risky and the only way to protect myself from my risky moves is frequent, manual snapshots---which I cannot do easily with the UNRAID supplied system. The snapshot feature works as I would like---except that the snapshots are all gone if I have to reboot the UNRAID host. I kinda-sorta understand why.....(probably unsuported VM data which lives in the ram file system) .....but I really don't understand how to prevent this from happening. Anyone figure out how to make Virt-Manager snapshots persist between UNRAID host reboots? Thanks so much in advance for any help!! ........later.... Found this and got it to work--sorry I didn't find this earlier: I am noticing though that the script creates a seemingly infinite nesting of /mnt/cache/domains/save/save/save/save/save -- and the same for the same for the "snapshot" folder. I'm not a scripting expert. Anyone see why this might be happening and how to stop it? The script does what it is supposed to do---my snapshots are persistent now. Hurray and thank you! Edited July 12, 2019 by boyd.badten found solution Quote Link to comment
scorcho99 Posted July 23, 2019 Share Posted July 23, 2019 (edited) On 7/11/2019 at 8:46 PM, boyd.badten said: Virt-Manager docker install worked fine for me---running well. The main reason I wanted to run Virt-Manager is for ***snapshots***. I do a lot of development on my VM's that are sometimes risky and the only way to protect myself from my risky moves is frequent, manual snapshots---which I cannot do easily with the UNRAID supplied system. The snapshot feature works as I would like---except that the snapshots are all gone if I have to reboot the UNRAID host. I kinda-sorta understand why.....(probably unsuported VM data which lives in the ram file system) .....but I really don't understand how to prevent this from happening. Anyone figure out how to make Virt-Manager snapshots persist between UNRAID host reboots? Thanks so much in advance for any help!! ........later.... Found this and got it to work--sorry I didn't find this earlier: I am noticing though that the script creates a seemingly infinite nesting of /mnt/cache/domains/save/save/save/save/save -- and the same for the same for the "snapshot" folder. I'm not a scripting expert. Anyone see why this might be happening and how to stop it? The script does what it is supposed to do---my snapshots are persistent now. Hurray and thank you! I'll have to check my script at home. I've been running that for awhile. I suspect it just had a bug in it that I probably fixed at some point. Edit: I updated the original post with my new script, I think it corrects the error or at least its different. Edited July 25, 2019 by scorcho99 1 Quote Link to comment
frakman1 Posted September 25, 2019 Share Posted September 25, 2019 (edited) I've installed this docker container :djaydev/docker-virt-manager I can open its WebUI and connect to my Unraid server and view my VM. I don't see anywhere to save a snapshot of my VM. Can you tell me where that feature is? Edited September 25, 2019 by frakman1 insert snapshot Quote Link to comment
scorcho99 Posted September 25, 2019 Share Posted September 25, 2019 9 hours ago, frakman1 said: I've installed this docker container :djaydev/docker-virt-manager I can open its WebUI and connect to my Unraid server and view my VM. I don't see anywhere to save a snapshot of my VM. Can you tell me where that feature is? Its not in front of me, but IIRC you have to open the virtual machine itself, not the host overview and its under one of the menu bar items. Quote Link to comment
frakman1 Posted September 25, 2019 Share Posted September 25, 2019 (edited) I've opened the VM and looked through all the menus and I don't see any mention of a snapshot or backup manager. See screenshots below. Edited September 25, 2019 by frakman1 Quote Link to comment
scorcho99 Posted September 25, 2019 Share Posted September 25, 2019 45 minutes ago, frakman1 said: ... This might help. https://blog.wikichoon.com/2014/03/snapshot-support-in-virt-manager.html It looks like your snapshot manager button is disabled, and you're using raw format disks rather than qcow2. It might be possible to snapshot with raw but I'm not sure how that would work. Quote Link to comment
frakman1 Posted September 25, 2019 Share Posted September 25, 2019 (edited) Thank you for the link. Does this mean that I can change the "Storage format" field from raw to qcow2 and continue to use the VM ? That storage format option was not available within the Unraid VM settings page when I created it, Actually, I just answered my own question when attempting to change it. So it looks like I would need to have created the VM from within virt-manager to start with and use a qcow2 storage format in order to use the snapshot manager. Is that how you use it? Edited September 25, 2019 by frakman1 Quote Link to comment
scorcho99 Posted September 25, 2019 Share Posted September 25, 2019 5 minutes ago, frakman1 said: Thank you for the link. Does this mean that I can change the "Storage format" field from raw to qcow2 and continue to use the VM ? That storage format option was not available within the Unraid VM settings page when I created it, Actually, I just answered my own question when attempting to change it. So it looks like I would need to have created the VM from within virt-manager to start with and use a qcow2 storage format in order to use the snapshot manager. Is that how you use it? I personally usually create the VM in unraid webUI and then use the command line to convert the disk type. Then I modify the XML to change the type from raw to qcow2. But qcow2 support in the webUI wasn't always available. If you already have a disk it will need to be converted, if starting fresh you probably wouldn't need to do this conversion. Quote Link to comment
frakman1 Posted September 25, 2019 Share Posted September 25, 2019 Thank you for the hints @scorcho99 Is this the command you would use to do the conversion? qemu-img convert -f raw -O qcow2 /path/to/your/hdd/vm01.img /path/to/your/hdd/vm01.qcow2 and is this the XML line to change it from raw to qcow2? <driver name='qemu' type='raw' cache='writeback'/> Quote Link to comment
scorcho99 Posted September 25, 2019 Share Posted September 25, 2019 7 minutes ago, frakman1 said: Thank you for the hints @scorcho99 Is this the command you would use to do the conversion? qemu-img convert -f raw -O qcow2 /path/to/your/hdd/vm01.img /path/to/your/hdd/vm01.qcow2 and is this the XML line to change it from raw to qcow2? <driver name='qemu' type='raw' cache='writeback'/> I don't have my notes that I use for this, but the command at least looks right at first glance to me. And that looks like the XML line. Quote Link to comment
TDA Posted March 5, 2021 Share Posted March 5, 2021 Hello, I've configured SSH Key to connect to my UNRAID Server. How/where do I have to put my SSH Key? Because I can't connect. Quote Link to comment
frakman1 Posted March 5, 2021 Share Posted March 5, 2021 3 hours ago, TDA said: How/where do I have to put my SSH Key? Because I can't connect. You would need to put your public key in: /root/.ssh/authorized_keys However, in order to survive a reboot, you'll have to put it in the USB flash drive too. That location is: /boot/config/ssh/authorized_keys Note that if you do this, you won't be able to use Virt Manager because that requires a username/password to login with. Quote Link to comment
TDA Posted March 5, 2021 Share Posted March 5, 2021 2 minutes ago, frakman1 said: You would need to put your public key in: /root/.ssh/authorized_keys However, in order to survive a reboot, you'll have to put it in the USB flash drive too. That location is: /boot/config/ssh/authorized_keys Note that if you do this, you won't be able to use Virt Manager because that requires a username/password to login with. My Unraid is already configured with SSH Key. So VirtManager don't work when you have this setup. Ok good to know will then uninstall it. Quote Link to comment
JonathanM Posted March 5, 2021 Share Posted March 5, 2021 5 hours ago, frakman1 said: Note that if you do this, you won't be able to use Virt Manager because that requires a username/password to login with. Apparently that's not an absolute, just a limitation of this implementation. https://fabianlee.org/2019/02/16/kvm-virt-manager-to-connect-to-a-remote-console-using-qemussh/ Quote Link to comment
Ancalagon Posted March 6, 2023 Share Posted March 6, 2023 I find that this app always requires a "force update" in order to update. Is this because the Docker repository seems to delete older images and only keeps a single latest? Is there any way to avoid this? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.