Re: Creating a Btrfs subvolume

2020-12-27 Thread Patrick O'Callaghan
On Sat, 2020-12-26 at 21:59 -0500, Nate Pearlstein wrote: > virsh define vm.xml Very good, that worked. poc ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduc

Re: Creating a Btrfs subvolume

2020-12-26 Thread Nate Pearlstein
virsh define vm.xml > On Dec 26, 2020, at 20:38, Chris Murphy wrote: > > On Sat, Dec 26, 2020 at 5:29 AM Patrick O'Callaghan > wrote: >> >>> On Thu, 2020-12-24 at 16:26 -0700, Chris Murphy wrote: >>> Two other ideas: >>> >>> You could create an "original" copy of the VM that you never touch,

Re: Creating a Btrfs subvolume

2020-12-26 Thread Chris Murphy
On Sat, Dec 26, 2020 at 5:29 AM Patrick O'Callaghan wrote: > > On Thu, 2020-12-24 at 16:26 -0700, Chris Murphy wrote: > > Two other ideas: > > > > You could create an "original" copy of the VM that you never touch, > > and then clone it to restore. What I don't know is whether clone > > implies du

Re: Creating a Btrfs subvolume

2020-12-26 Thread Patrick O'Callaghan
On Thu, 2020-12-24 at 16:26 -0700, Chris Murphy wrote: > Two other ideas: > > You could create an "original" copy of the VM that you never touch, > and then clone it to restore. What I don't know is whether clone > implies duplicating all the storage too. If so then you might want the > original t

Re: Creating a Btrfs subvolume

2020-12-25 Thread Chris Murphy
On Fri, Dec 25, 2020 at 11:27 AM Sreyan Chakravarty wrote: > > Let me ask you how will snapshotting and restoration work with nested sub > volumes? They have to be moved into the new position following the rollback. This could be done either with a literal 'mv' or you could just snapshot the old

Re: Creating a Btrfs subvolume

2020-12-25 Thread Sreyan Chakravarty
On Thu, 24 Dec 2020, 8:22 am Chris Murphy, wrote: > (I did read the whole thread but I'm gonna reply three times anyway :D) > > On Wed, Dec 23, 2020 at 6:29 AM Patrick O'Callaghan > wrote: > > > > I have a directory I use to hold a Windows VM disk image > > (/home/Windows/...), and would like to

Re: Creating a Btrfs subvolume

2020-12-24 Thread Chris Murphy
Two other ideas: You could create an "original" copy of the VM that you never touch, and then clone it to restore. What I don't know is whether clone implies duplicating all the storage too. If so then you might want the original to have no file set for the virtual drive. I've gotten somewhat ade

Re: Creating a Btrfs subvolume

2020-12-24 Thread Patrick O'Callaghan
On Thu, 2020-12-24 at 14:27 -0700, Chris Murphy wrote: > You can also create a new vm from this exported xml using > > virsh create $vmname.xml > > Note that the name of the VM is in this file, so if you want to create > a new VM you need to edit the xml file and change the name of the VM > so it

Re: Creating a Btrfs subvolume

2020-12-24 Thread Patrick O'Callaghan
On Thu, 2020-12-24 at 14:27 -0700, Chris Murphy wrote: > On Thu, Dec 24, 2020 at 4:23 AM Patrick O'Callaghan > wrote: > > > > The Windows image file is in fact just an fallocated file used as a raw > > disk, not a qcow. It's on an SSD and seems quite fast, so I wouldn't > > worry overmuch about f

Re: Creating a Btrfs subvolume

2020-12-24 Thread Chris Murphy
On Thu, Dec 24, 2020 at 4:23 AM Patrick O'Callaghan wrote: > > The Windows image file is in fact just an fallocated file used as a raw > disk, not a qcow. It's on an SSD and seems quite fast, so I wouldn't > worry overmuch about fragmentation. This system is basically only used > for gaming with G

Re: Creating a Btrfs subvolume

2020-12-24 Thread Patrick O'Callaghan
On Wed, 2020-12-23 at 19:51 -0700, Chris Murphy wrote: > (I did read the whole thread but I'm gonna reply three times anyway :D) > > On Wed, Dec 23, 2020 at 6:29 AM Patrick O'Callaghan > wrote: > > > > I have a directory I use to hold a Windows VM disk image > > (/home/Windows/...), and would li

Re: Creating a Btrfs subvolume

2020-12-23 Thread Chris Murphy
On Wed, Dec 23, 2020 at 7:51 PM Chris Murphy wrote: > > mv will fail between destinations with different nodatacow settings, > hence cp. Sorry. This is wrong. mv also works. mv tries three things in order: rename, reflink copy, traditional copy. In the above case, it's the last one that works.

Re: Creating a Btrfs subvolume

2020-12-23 Thread Chris Murphy
On Wed, Dec 23, 2020 at 4:02 PM Patrick O'Callaghan wrote: > > On Wed, 2020-12-23 at 22:29 +0800, Qiyu Yan wrote: > > Patrick O'Callaghan 于2020年12月23日周三 下午9:29写道: > > > > > > I have a directory I use to hold a Windows VM disk image > > > (/home/Windows/...), and would like to snapshot it before p

Re: Creating a Btrfs subvolume

2020-12-23 Thread Chris Murphy
On Wed, Dec 23, 2020 at 7:30 AM Qiyu Yan wrote: > > Patrick O'Callaghan 于2020年12月23日周三 下午9:29写道: > > > > I have a directory I use to hold a Windows VM disk image > > (/home/Windows/...), and would like to snapshot it before playing with > > the QEMU settings. However it's already part of the /hom

Re: Creating a Btrfs subvolume

2020-12-23 Thread Chris Murphy
(I did read the whole thread but I'm gonna reply three times anyway :D) On Wed, Dec 23, 2020 at 6:29 AM Patrick O'Callaghan wrote: > > I have a directory I use to hold a Windows VM disk image > (/home/Windows/...), and would like to snapshot it before playing with > the QEMU settings. However it'

Re: Creating a Btrfs subvolume

2020-12-23 Thread Patrick O'Callaghan
On Wed, 2020-12-23 at 22:29 +0800, Qiyu Yan wrote: > Patrick O'Callaghan 于2020年12月23日周三 下午9:29写道: > > > > I have a directory I use to hold a Windows VM disk image > > (/home/Windows/...), and would like to snapshot it before playing with > > the QEMU settings. However it's already part of the /ho

Re: Creating a Btrfs subvolume

2020-12-23 Thread Qiyu Yan
Patrick O'Callaghan 于2020年12月23日周三 下午9:29写道: > > I have a directory I use to hold a Windows VM disk image > (/home/Windows/...), and would like to snapshot it before playing with > the QEMU settings. However it's already part of the /home subvolume, so > is there a way of splitting it off on its o

Creating a Btrfs subvolume

2020-12-23 Thread Patrick O'Callaghan
I have a directory I use to hold a Windows VM disk image (/home/Windows/...), and would like to snapshot it before playing with the QEMU settings. However it's already part of the /home subvolume, so is there a way of splitting it off on its own without having to create a new subvolume and sending