Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-06 Thread Richard W.M. Jones
On Thu, Apr 05, 2012 at 10:14:06PM +0100, Dale Amon wrote: > I've passed your info on to the Ubuntu-devel group > to see if anyone picks up on it. Thanks -- we do want it to work well on Ubuntu, and hillu is doing a great job on Debian. Rich. -- Richard Jones, Virtualization Group, Red Hat htt

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-05 Thread Dale Amon
I've passed your info on to the Ubuntu-devel group to see if anyone picks up on it. ___ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-05 Thread Richard W.M. Jones
On Thu, Apr 05, 2012 at 08:10:59PM +0100, Dale Amon wrote: > On Wed, Apr 04, 2012 at 09:09:03PM +0100, Richard W.M. Jones wrote: > > Unfortunately we found out today that Ubuntu 12.04's libguestfs > > package is largely broken. For more information, see: > > > > https://www.redhat.com/archives/li

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-05 Thread Dale Amon
On Wed, Apr 04, 2012 at 09:09:03PM +0100, Richard W.M. Jones wrote: > Unfortunately we found out today that Ubuntu 12.04's libguestfs > package is largely broken. For more information, see: > > https://www.redhat.com/archives/libguestfs/2012-April/msg00028.html > > There is no solution to the ke

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-04 Thread Dale Amon
On Wed, Apr 04, 2012 at 04:08:05PM -0400, Brian K. White wrote: > Also rsync does not do anything magical/differential when dealing > with local copies. Even an update is still a full normal copy But it isn't a local copy. It's from a dirvish backup server that might not even be in the same data

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-04 Thread Richard W.M. Jones
[grub] You can run grub from the guest (assuming it's a Linux guest), by doing in guestfish: sh "grub-install [other parameters]" There are some provisos which you can read about here: http://libguestfs.org/guestfs.3.html#running_commands We also provide a grub-install command which runs t

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-04 Thread Brian K. White
On 4/4/2012 4:45 AM, Richard W.M. Jones wrote: Then I created my blank 'disk' file and tried to run virt-rescue on it. It crashed out with an error from febootstrap. First of all, debug this properly: (1) What is the full error message? (2) What is the complete, unedited output of 'libguestfs

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-04 Thread Richard W.M. Jones
On Wed, Apr 04, 2012 at 07:53:26PM +0100, Dale Amon wrote: > On Wed, Apr 04, 2012 at 09:45:18AM +0100, Richard W.M. Jones wrote: > > > Then I created my blank 'disk' file and tried to > > > run virt-rescue on it. It crashed out with an > > > error from febootstrap. > > > > First of all, debug thi

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-04 Thread Dale Amon
On Wed, Apr 04, 2012 at 09:45:18AM +0100, Richard W.M. Jones wrote: > > Then I created my blank 'disk' file and tried to > > run virt-rescue on it. It crashed out with an > > error from febootstrap. > > First of all, debug this properly: ==

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-04 Thread Richard W.M. Jones
On Wed, Apr 04, 2012 at 09:45:18AM +0100, Richard W.M. Jones wrote: > # 9GB sda1 > part-add /dev/sda p 64 $(( 9*1024*1024*2 )) > # remainder in sda2 > part-add /dev/sda p $(( 9*1024*1024*2 + 1 )) -64 This leaves the swap partition unaligned :-( If you care about alignment (and you probabl

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-04 Thread Richard W.M. Jones
> Then I created my blank 'disk' file and tried to > run virt-rescue on it. It crashed out with an > error from febootstrap. First of all, debug this properly: (1) What is the full error message? (2) What is the complete, unedited output of 'libguestfs-test-tool'? (3) What version of libguestf

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-03 Thread Dale Amon
Eric: Perhaps you can help. I'm at the point of screaming frustration. First, I had to search for a machine on which I could install guestfish and virt-rescue. None of the production machines were safe for this as the closest I could come was either adding a backports line to an apt sources file

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-03-31 Thread Dale Amon
On Sat, Mar 31, 2012 at 04:37:54PM -0600, Eric Blake wrote: > On 03/31/2012 01:39 PM, Dale Amon wrote: > > > I need to define a procedure for last resort disaster > > recovery from an incremental file level backup of the > > root partition (and any others that are critical.) > > > > Now it is e

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-03-31 Thread Eric Blake
On 03/31/2012 01:39 PM, Dale Amon wrote: > I need to define a procedure for last resort disaster > recovery from an incremental file level backup of the > root partition (and any others that are critical.) > > Now it is easy enough to create a raw virtual disk > with dd, then to losetup and do

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-03-31 Thread Dale Amon
Here's how far I've progressed this evening: $ dd if=/dev/zero of=/recover2.my.net.raw count=20M $ losetup /dev/loop0 recover2.my.net.raw $ cfdisk /dev/loop0 create a 9G bootable linux partition and a 1G swap $ kpartx -a -v /dev/loop0 $ mkfs.ext4 /dev/mapper/loop0p1 -m 0.01 -L "RecoverTest

[libvirt-users] Suggestions on building VM disks from scratch

2012-03-31 Thread Dale Amon
This may not be the best forum to ask, but it does seem to be one where it is as likely as anywhere that someone will have dealt with a similar problem. I need to define a procedure for last resort disaster recovery from an incremental file level backup of the root partition (and any others that