This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-users] creating a DomU from tar

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] creating a DomU from tar
From: "Sven Neukirchner" <s.neukirchner@xxxxxxxxx>
Date: Tue, 5 Apr 2011 09:07:03 +0200
Delivery-date: Tue, 05 Apr 2011 00:08:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcvzX9oOT/Iz/hiWTfaikRBYnBZ+EQ==
I am new with XEN.

I have installed XEN 4 on Debian 6.0.
I am using LVM with XEN.
I created a new DomU with Debian 6.0

Now I am planning a backup solution.

So I made a lvm snapshot:
lvcreate --snapshot --name=samba-snapshot -L 10G

after I mounted the snapshot:
mkdir -p /mnt/samba-snapshot
mount /dev/XEN-Server/samba-snapshot /mnt/samba-snapshot

and made a tar archive:
tar -pczf /opt/backups/samba.tar.gz /mnt/samba-snapshot

So far so good.

Now my plan is using the tar archive to create a new DomU.
So I  changed the xen-tools.conf using tar instead of debootstrap:

install-method = tar
install-source = /opt/backups/samba.tar.gz
tar-cmd  = /bin/tar --numeric-owner -xzvf $sr

The hole xen-tools.conf can be found here:

Now I am trying to create a new DomU with this command:
xen-create-image --size=5Gb --memory=254Mb --hostname=VM-samba-restore

and get the following error:

General Information
Hostname       :  VM-samba-restore
Distribution   :  squeeze
Mirror         :  http://ftp.de.debian.org/debian/
Partitions     :  swap            256Mb (swap)
                  /               5Gb   (ext3)
Image type     :  full
Memory size    :  254Mb
Kernel path    :  /boot/vmlinuz-2.6.32-5-xen-686
Initrd path    :  /boot/initrd.img-2.6.32-5-xen-686

Networking Information
IP Address 1   : [MAC: 00:16:3E:2B:43:B7]
Netmask        :
Broadcast      :
Gateway        :

Creating swap on /dev/XEN-Server/VM-samba-restore-swap

Creating ext3 filesystem on /dev/XEN-Server/VM-samba-restore-disk
Installation method: tar
(Source: /opt/backups/samba.tar.gz)
System installation failed.  Aborting
/tmp/KxbTNiPltf/etc/ssh/ssh_host_rsa_key.pub: No such file or directory

Logfile produced at:
Removing swap volume
Removing LVM disk volume

The log file can be found here: http://pastebin.com/4WvsRhSy

I am thankfully for any help.

Xen-users mailing list

<Prev in Thread] Current Thread [Next in Thread>