July 12, 20196 yr 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, 20196 yr by boyd.badten found solution
July 23, 20196 yr 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, 20196 yr by scorcho99
September 25, 20196 yr 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, 20196 yr by frakman1 insert snapshot
September 25, 20196 yr 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.
September 25, 20196 yr 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, 20196 yr by frakman1
September 25, 20196 yr 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.
September 25, 20196 yr 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, 20196 yr by frakman1
September 25, 20196 yr 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.
September 25, 20196 yr 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'/>
September 25, 20196 yr 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.
March 5, 20215 yr 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.
March 5, 20215 yr 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.
March 5, 20215 yr 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.
March 5, 20215 yr 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/
March 6, 20233 yr 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?
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.