<div dir="ltr">Hi Robert,<div><br></div><div>I've modified disk images for oVirt virtual machines before. I mostly run servers so they all use preallocated as opposed to thin provisioned disks. I'm not sure if that matters, but it means my VM disk images are raw files (as opposed to qcow). Therefore, I used something like the following guide to get into the disk image. These directions don't use kpartx or libguestfs, but I guess those would work too. I think it goes without saying, your VM should be off before you modify its disk without its knowledge.</div><div><br></div><div><a href="https://major.io/2010/12/14/mounting-a-raw-partition-file-made-with-dd-or-dd_rescue-in-linux/">https://major.io/2010/12/14/mounting-a-raw-partition-file-made-with-dd-or-dd_rescue-in-linux/</a><br></div><div><br></div><div>For me, the biggest problem I had was the partition in the disk image was really an LVM PV. And that LVM group had the same volume group name as one on the server I was doing this modification. I had two volume groups with the same name, which made things a little tricky. But I'll leave that to you to figure out :)</div><div><br></div><div>Scott</div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Jun 25, 2016 at 11:41 PM Robert Story <<a href="mailto:rstory@tislabs.com">rstory@tislabs.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm using oVirt 3.5.x w/nfs for vm file storage. I'm trying to restore a vm<br>
from backup, which entails:<br>
<br>
- scp backup.tar to vm<br>
- untar backup on vm<br>
<br>
this means all the data makes 3 trips over the network, each of which<br>
causes a load spike on my nfs server. That nfs load, of course, affects all<br>
other vms.<br>
<br>
what I'd like to be able to do is<br>
<br>
- scp backup.tar to nfs server<br>
- stop vm<br>
- mount vm disks on nfs server<br>
- untar backup on nfs server (using ionice to minimze load impact)<br>
- unmount vm disks<br>
- start vm<br>
<br>
I remember that I used to use kpartx to mount regular KVM disks, so I'm<br>
hoping that it can also be done here. Anyone else tried to make this work?<br>
<br>
<br>
Robert<br>
<br>
--<br>
Senior Software Engineer @ Parsons<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
</blockquote></div>