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] Unable to deploy a VM from a TAR file....

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Unable to deploy a VM from a TAR file....
From: "Omer Khalid" <Omer.Khalid@xxxxxxx>
Date: Fri, 22 Sep 2006 16:58:36 +0200
Cc: Andreas Unterkircher <Andreas.Unterkircher@xxxxxxx>
Delivery-date: Fri, 22 Sep 2006 08:00:47 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:mime-version:content-type:x-google-sender-auth; b=Urn1tT/zdhEtZE6jayHEr4BE5UZUcEACvIKV4WeI+mxNnbFlepMMlIzEzU6nYfw+B3CX/3+1Wznd262fhTh1QeFb8CA/O+rSd+v2tLtmJ1Hh7bPSoFIWN4wZ03KZjK2SqhVAp7DguHbtoJfj/sknEwlEpFc/iV7xixDqmAjcub0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

I have a strange problem when I launch my virtual machine. I first create a tar from a partition where Scientific Linux 4 already exist (and VM works on it), and then deploy a tar in to that partition again.

Here are the step I follow to create tar file from the SF Component:
* mkdir /tmp/dev/vg1/vol1-root
* mount /dev/vg1/vol1-root /tmp/dev/vg1/vol1-root
* cd $to_path_to_save_Tar_file
* tar -cpf $tar_name /tmp/dev/vg1/vol1-root
* sleep 4
* umount /tmp/dev/vg1/vol1-root
* sleep 2
* cd /tmp
* rm -rf dev/vg1/vol1-root

Here are the steps I follow to deploy a VM by hand:
 1048  lvremove /dev/vg1/vol1-root /dev/vg1/vol1-swap
 1050  lvcreate -L10G -n vol1-root vg1
 1051  lvcreate -L512 -n vol1-swap vg1
 1052  mkswap /dev/vg1/vol1-swap
 1053  mke2fs -j /dev/vg1/vol1-root
 1054  mkdir /tmp/dev/vg1/vol1-root
 1055  mount /dev/vg1/vol1-root /tmp/dev/vg1/vol1-root/
 1056  cd /tmp/dev/vg1/vol1-root/
 1057  tar xf ~/virtualization/imgFactory/slc4-root22820061615.tar
 1058  umount /tmp/dev/vg1/vol1-root/
 1059  cd /tmp/
 1060  umount /tmp/dev/vg1/vol1-root/
 1061  rm -Rf dev/vg1/vol1-root
 1063  xm create -c vmid="1"

The complete output for command: <xm create -c vmid="1">

[root@$$ tmp]# xm create -c vmid="1"
Using config file "/etc/xen/xmdefconfig".
Started domain generic-3
Linux version  (gcc version 3.3.6 (Debian 1:3.3.6-13)) #1 SMP Tue May 9 11:42:03 CEST 2006
BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 0000000020000000 (usable)
0MB HIGHMEM available.
520MB LOWMEM available.
ACPI in unprivileged domain disabled
IRQ lockup detection disabled
Built 1 zonelists
Kernel command line:  ip= xxx.xxx.xx.xx: xxx.xxx.x.x: root=/dev/sda1ro fastboot nousb
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 65536 bytes)
Xen reported: 2790.702 MHz processor.
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Software IO TLB disabled
vmalloc area: e1000000-fb7fe000, maxmem 34000000
Memory: 513408k/532480k available (2077k kernel code, 10432k reserved, 906k data, 184k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Security Framework v1.0.0 initialized
SELinux:  Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... disabled
Brought up 1 CPUs
checking if image is initramfs... it is
Freeing initrd memory: 614k freed
Grant table initialized
NET: Registered protocol family 16
Brought up 1 CPUs
ACPI: Subsystem revision 20050309
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
xen_mem: Initialising balloon driver.
usbcore: USB support disabled
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
PCI: System does not support PCI
PCI: System does not support PCI
IA-32 Microcode Update Driver: v1.14-xen < tigran@xxxxxxxxxxx>
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Initializing Cryptographic API
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
PNP: No PS/2 controller found. Probing ports directly.
i8042.c: No controller found.
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
Xen virtual console successfully installed as tty1
Event-channel device installed.
blkif_init: reqs=64, pages=704, mmap_vstart=0xdfc00000
netfront: Initialising virtual ethernet driver.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
Registering block device major 8
ide-floppy driver 0.99.newide
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
NET: Registered protocol family 8
NET: Registered protocol family 20
Freeing unused kernel memory: 184k freed
Red Hat nash version starting
Mounted /proc filesystem
Mounting sysfs
Loading scsi_mod.ko module
scsi_mod: no version for "struct_module" found: kernel tainted.
SCSI subsystem initialized
Loading sd_mod.ko module
register_blkdev: cannot get major 8 for sd
Loading mptbase.ko module
Fusion MPT base driver 3.01.20
Copyright (c) 1999-2004 LSI Logic Corporation
Loading mptscsih.ko module
Fusion MPT SCSI Host driver 3.01.20
Loading dm-mod.ko module
device-mapper: 4.4.0-ioctl (2005-01-12) initialised: dm-devel@xxxxxxxxxx
Loading jbd.ko module
Loading ext3.ko module

Creating block devices
Creating root device
Mounting root filesystem
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Switching to new root
WARNING: can't access (null)
exec of init ((null)) failed!!!: 14
Kernel panic - not syncing: Attempted to kill init!

Any ideas or help would be much appreciated ?


CERN – European Organization for Nuclear Research
Information Technology Department
CH-1211 Geneva 23

Phone: +41 (0) 22 767 7996
Fax:     +41 (0) 22 767 4900
E-mail : Omer.Khalid@xxxxxxx
Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Unable to deploy a VM from a TAR file...., Omer Khalid <=