Hi Henry,

Henry Pepper wrote:
Hi

I get
 ERROR:  list index out of range
When trying to clone an image, please see below for the debug output.

I'm running on
  SunOS unknown 5.11 snv_117 i86pc i386 i86xpv

I'm using UFS on the HDD.

Any suggestion on what the problem/solution might be?

Can you try with >= snv_121.. It's working fine for me with
the latest bits.

: core2[1]#; virt-clone -d --original=centos5 --name=centos5-clone 
--file=/vdisks/centos5-clone2
Wed, 26 Aug 2009 07:57:46 DEBUG    Using libvirt URI 'xen'
Wed, 26 Aug 2009 07:57:46 DEBUG    Validating original guest parameters
Wed, 26 Aug 2009 07:57:46 DEBUG    Setting size for existing storage to '8.0'
Wed, 26 Aug 2009 07:57:46 DEBUG    Detected storage as type 'file'
Wed, 26 Aug 2009 07:57:46 DEBUG    Original paths: ['/vdisks/centos5']
Wed, 26 Aug 2009 07:57:46 DEBUG    Original sizes: [8.0]
Wed, 26 Aug 2009 07:57:46 DEBUG    Original idxs: [1]
Wed, 26 Aug 2009 07:57:47 DEBUG    Validating original guest parameters
Wed, 26 Aug 2009 07:57:47 DEBUG    Setting size for existing storage to '8.0'
Wed, 26 Aug 2009 07:57:47 DEBUG    Detected storage as type 'file'
Wed, 26 Aug 2009 07:57:47 DEBUG    Original paths: ['/vdisks/centos5']
Wed, 26 Aug 2009 07:57:47 DEBUG    Original sizes: [8.0]
Wed, 26 Aug 2009 07:57:47 DEBUG    Original idxs: [1]
Wed, 26 Aug 2009 07:57:47 DEBUG    Original guest xml is
<domain type='xen'>
  <name>centos5</name>
  <uuid>8fd2957e-e439-c0d8-92b4-5bdf0b6b62a8</uuid>
  <memory>524288</memory>
  <currentMemory>524288</currentMemory>
  <vcpu>1</vcpu>
  <bootloader></bootloader>
  <os>
    <type>linux</type>
    <cmdline>ro root=LABEL=/ console=xvc0 rhgb quiet</cmdline>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <disk type='file' device='disk'>
      <driver name='tap' type='vdisk'/>
      <source file='/vdisks/centos5'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <interface type='ethernet'>
      <mac address='00:16:3e:67:a7:12'/>
      <script path='/usr/lib/xen/scripts/vif-vnic'/>
      <target dev='vif-1.0'/>
    </interface>
    <console type='pty'>
      <target port='0'/>
    </console>
  </devices>
</domain>

Wed, 26 Aug 2009 07:57:47 DEBUG    Validating clone parameters.
Wed, 26 Aug 2009 07:57:47 DEBUG    Clone paths: ['/vdisks/centos5-clone2']
Wed, 26 Aug 2009 07:57:47 DEBUG    Clone guest xml is
<?xml version="1.0"?>
<domain type="xen">
  <name>centos5-clone</name>
  <uuid>0ad06a2d-e41c-a551-8cc4-8b80fc189552</uuid>
  <memory>524288</memory>
  <currentMemory>524288</currentMemory>
  <vcpu>1</vcpu>
  <bootloader/>
  <os>
    <type>linux</type>
    <cmdline>ro root=LABEL=/ console=xvc0 rhgb quiet</cmdline>
  </os>
  <clock offset="utc"/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <disk type="file" device="disk">
      <driver name="tap" type="vdisk"/>
      <source file="/vdisks/centos5-clone2"/>
      <target dev="hda" bus="ide"/>
    </disk>
    <interface type="ethernet">
      <mac address="00:16:36:56:b7:da"/>
      <script path="/usr/lib/xen/scripts/vif-vnic"/>
      <target dev="vif-1.0"/>
    </interface>
    <console type="pty">
      <target port="0"/>
    </console>
  </devices>
</domain>

Wed, 26 Aug 2009 07:57:47 DEBUG    Starting duplicate.
Wed, 26 Aug 2009 07:57:47 DEBUG    Using vdisk clone.
Cloning /vdisks/centos5   100% |=========================| 8.0 GB    07:23
Wed, 26 Aug 2009 08:05:10 DEBUG    Duplicating finished.

Clone 'centos5-clone' created successfully.
Wed, 26 Aug 2009 08:05:10 DEBUG    end clone
: core2[1]#;


: core2[1]#; virsh start --console centos5-clone
Domain centos5-clone started
Connected to domain centos5-clone
Escape character is '^]'
Bootdata ok (command line is ro root=/dev/VolGroup00/LogVol00 console=xvc0)
Linux version 2.6.18-128.4.1.el5xen (mockbu...@builder10.centos.org) (gcc 
version 4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Tue Aug 4 20:51:12 EDT 2009
BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 0000000020800000 (usable)
No mptable found.
Built 1 zonelists.  Total pages: 133120
Kernel command line: ro root=/dev/VolGroup00/LogVol00 console=xvc0
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 byCalibrating delay using timer 
specific routine.. 5335.95 BogoMIPS (lpj=10671904)

                                                 Security Framework v1.0.0 
initialized

      SELinux:  Initializing.

                             selinux_register_security:  Registering secondary 
module capability

                Capability LSM initialized as secondary
Mount-cache hash table entries: 256
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 2048K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
(SMP-)alternatives turned off
Brought up 1 CPUs
checking if image is initramfs... it is
Grant table initialized
NET: Registered protocol family 16
ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread 1E7A0 could not acquire 
Mutex [2] [20060707]
No dock devices found.
ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread 1E7A0 could not acquire 
Mutex [2] [20060707]
Brought up 1 CPUs
PCI: setting up Xen PCI frontend stub
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
xen_mem: Initialising balloon driver.
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: System does not support PCI
PCI: System does not support PCI
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
audit: initializing netlink socket (disabled)
type=2000 audit(1251288419.543:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Initializing Cryptographic API
alg: No test for crc32c (crc32c-generic)
ksign: Installing public key data
Loading keyring
- Added public key 655BE048CB915546
- User ID: CentOS (Kernel Module GPG key)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
rtc: IRQ 8 is not free.
Non-volatile memory driver v1.2
Linux agpgart interface v0.101 (c) Dave Jones
RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize
Xen virtual console successfully installed as xvc0
Bootdata ok (command line is ro root=/dev/VolGroup00/LogVol00 console=xvc0)
Linux version 2.6.18-128.4.1.el5xen (mockbu...@builder10.centos.org) (gcc 
version 4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Tue Aug 4 20:51:12 EDT 2009
BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 0000000020800000 (usable)
No mptable found.
Built 1 zonelists.  Total pages: 133120
Kernel command line: ro root=/dev/VolGroup00/LogVol00 console=xvc0
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
Xen reported: 2133.332 MHz processor.
Console: colour dummy device 80x25
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Software IO TLB disabled
Memory: 499712k/532480k available (2447k kernel code, 23980k reserved, 1367k 
data, 180k init)
Calibrating delay using timer specific routine.. 5335.95 BogoMIPS (lpj=10671904)
Security Framework v1.0.0 initialized
SELinux:  Initializing.
selinux_register_security:  Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 256
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 2048K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
(SMP-)alternatives turned off
Brought up 1 CPUs
checking if image is initramfs... it is
Grant table initialized
NET: Registered protocol family 16
ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread 1E7A0 could not acquire 
Mutex [2] [20060707]
No dock devices found.
ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread 1E7A0 could not acquire 
Mutex [2] [20060707]
Brought up 1 CPUs
PCI: setting up Xen PCI frontend stub
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
xen_mem: Initialising balloon driver.
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: System does not support PCI
PCI: System does not support PCI
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
audit: initializing netlink socket (disabled)
type=2000 audit(1251288419.543:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Initializing Cryptographic API
alg: No test for crc32c (crc32c-generic)
ksign: Installing public key data
Loading keyring
- Added public key 655BE048CB915546
- User ID: CentOS (Kernel Module GPG key)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
rtc: IRQ 8 is not free.
Non-volatile memory driver v1.2
Linux agpgart interface v0.101 (c) Dave Jones
RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize
Xen virtual console successfully installed as xvc0
Event-channel device installed.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
ide-floppy driver 0.99.newide
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
PNP: No PS/2 controller found. Probing ports directly.
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
TCP bic registered
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
XENBUS: Device with no driver: device/vbd/768
XENBUS: Device with no driver: device/vif/0
XENBUS: Device with no driver: device/console/0
Write protecting the kernel read-only data: 467k
Red Hat nash version 5.1.19.6 starting
Mounting proc filesystem
Mounting sysfs filesystem
Creating /dev
Creating initial device nodes
Setting up hotplug.
Creating block device nodes.
Loading ehci-hcd.ko module
Loading ohci-hcd.ko module
Loading uhci-hcd.ko module
USB Universal Host Controller Interface driver v3.0
Loading jbd.ko module
Loading ext3.ko module
Loading xenblk.ko module
Registering block device major 3
 hda: hda1 hda2
Loading dm-mod.ko module
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.11.5-ioctl (2007-12-12) initialised: dm-de...@redhat.com
Loading dm-log.ko module
Loading dm-mirror.ko module
Loading dm-zero.ko module
Loading dm-snapshot.ko module
Loading dm-mem-cache.ko module
Loading dm-region_hash.ko module
Loading dm-message.ko module
Loading dm-raid45.ko module
device-mapper: dm-raid45: initialized v0.2429
Scanning and configuring dmraid supported devices
Scanning logical volumes
  Reading all physical volumes.  This may take a while...
  Found volume group "VolGroup00" using metadata type lvm2
Activating logical volumes
  2 logical volume(s) in volume group "VolGroup00" now active
Creating root device.
Mounting root filesystem.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Setting up other filesystems.
Setting up new root fs
no fstab.sys, mounting internal defaults
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
SELinux:  Disabled at runtime.
type=1404 audit(1251288428.348:2): selinux=0 auid=4294967295 ses=4294967295
INIT: version 2.86 booting
                Welcome to  CentOS release 5.3 (Final)
                Press 'I' to enter interactive startup.
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Setting clock  (utc): Wed Aug 26 08:07:13 EDT 2009 [  OK  ]
Starting udev: [  OK  ]
Loading default keymap (us): [  OK  ]
Setting hostname localhost.localdomain:  [  OK  ]
Setting up Logical Volume Management:   2 logical volume(s) in volume group 
"VolGroup00" now active
[  OK  ]
Checking filesystems
Checking all file systems.
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/VolGroup00/LogVol00
/dev/VolGroup00/LogVol00: clean, 45171/1532576 files, 412781/1531904 blocks
[/sbin/fsck.ext3 (1) -- /boot] fsck.ext3 -a /dev/hda1
/boot: clean, 43/26104 files, 24373/104388 blocks
[  OK  ]
Remounting root filesystem in read-write mode:  [  OK  ]
Mounting local filesystems:  [  OK  ]
Enabling local filesystem quotas:  [  OK  ]
Enabling /etc/fstab swaps:  [  OK  ]
INIT: Entering runlevel: 3
Entering non-interactive startup
Applying Intel CPU microcode update: [FAILED]
Starting monitoring for VG VolGroup00:   2 logical volume(s) in volume group 
"VolGroup00" monitored
[  OK  ]
Starting background readahead: [  OK  ]
Checking for hardware changes [  OK  ]
Bringing up loopback interface:  [  OK  ]
Bringing up interface eth0:
Determining IP information for eth0... done.
[  OK  ]
Starting auditd: [  OK  ]
Starting system logger: [  OK  ]
Starting kernel logger: [  OK  ]
Starting irqbalance: [  OK  ]
Starting portmap: [  OK  ]
Starting NFS statd: [  OK  ]
Starting RPC idmapd: [  OK  ]
Starting system message bus: [  OK  ]
[  OK  ] Bluetooth services:[  OK  ]
Mounting other filesystems:  [  OK  ]
Starting PC/SC smart card daemon (pcscd): [  OK  ]
Starting hidd: [  OK  ]
Starting autofs:  Loading autofs4: [  OK  ]
Starting automount: [  OK  ]
[  OK  ]
Starting sshd: [  OK  ]
Starting cups: [  OK  ]
Starting xinetd: [  OK  ]
Starting sendmail: [  OK  ]
Starting sm-client: [  OK  ]
Starting console mouse services: [  OK  ]
Starting crond: [  OK  ]
Starting anacron: [  OK  ]
Starting atd: [  OK  ]
Starting yum-updatesd: [  OK  ]
Starting Avahi daemon... [  OK  ]
Starting HAL daemon: [  OK  ]
Starting smartd: [  OK  ]

CentOS release 5.3 (Final)
Kernel 2.6.18-128.4.1.el5xen on an x86_64

localhost.localdomain login:






MRJ



_______________________________________________
xen-discuss mailing list
xen-discuss@opensolaris.org

Reply via email to