Nuno L. Ferreira
2010-Mar-27 21:52 UTC
[Xen-users] Dump an image based domU to a logical volume
Dear all, I sent an e-mail some days back ... but no answer. Probably it was a bit too confusing. Going to rephrase it, since I need an insight to solve this. Part I ++++ How to dump a domU paravirtualized image into a logical volume? I usually create a domU image because its very portable, and I use it as a pristine image to create my production domU''s. Based on the Xen book, I''ve doing doing this by using "kpartx" to expose the partitions inside the image, and then I copy their content to logical volumes (LV) previously created. After some edition on the configuration files (fstab, grub.conf and the domU xen config file) domU is ready to boot from the LV. Both the domU images I''ve been creating till now and the LVM based domU''s are working just fine. I always used CentOS or Scientific Linux (till version 4.x) as OS for guests. The host is always x86_64, also with a RedHat like OS. I''m moving now to the latest 5.4 OS version. I have a new AMD server (CentOS x86_64 5.4) with xen up and running from the standard repos, thus version 3.something After successfully creating my domU pristine image (CentOS 54 x86_64 / or x86; the image domU''s work just great), I''m simply not able to boot successfully the LV domU originated from the image. I tried both in intel/AMD servers with x86 or x86_64 paravirt LV domU''s, and having problems during boot: restorecon: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory Can someone shed some light on this? Part II +++++ I also tryed instead of creating a pristine image file, install the pristine domU directly into a LV based. But, how do I mount the LV to edit configuration files inside of it? Because now there is a partition table inside the domU, and I don''t know how to handle with it. Any link on how to do it? Many thanks, N. P.S. Some more detailed info about dom0, xen log, xm info ... dom0 specs ++++++++ # cat /proc/cpuinfo | grep "model name" | uniq model name : Quad-Core AMD Opteron(tm) Processor 2352 # more /etc/issue CentOS release 5.4 (Final) # uname -a Linux xxx 2.6.18-164.15.1.el5xen #1 SMP Wed Mar 17 12:04:23 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux # xm info host : labberdaan.chem.uu.nl release : 2.6.18-164.15.1.el5xen version : #1 SMP Wed Mar 17 12:04:23 EDT 2010 machine : x86_64 nr_cpus : 4 nr_nodes : 1 sockets_per_node : 1 cores_per_socket : 4 threads_per_core : 1 cpu_mhz : 2110 hw_caps : 178bfbff:efd3fbff:00000000:00000110:00802009:00000000:000007ff total_memory : 16383 free_memory : 0 node_to_cpu : node0:0-3 xen_major : 3 xen_minor : 1 xen_extra : .2-164.15.1.el5 xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64 xen_pagesize : 4096 platform_params : virt_start=0xffff800000000000 xen_changeset : unavailable cc_compiler : gcc version 4.1.2 20080704 (Red Hat 4.1.2-46) cc_compile_by : mockbuild cc_compile_domain : centos.org cc_compile_date : Wed Mar 17 11:22:38 EDT 2010 xend_config_format : 2 # cat /var/log/xen/xend.log ... snip ... [2010-03-27 20:47:23 xend.XendDomainInfo 3462] DEBUG (XendDomainInfo:206) XendDomainInfo.create([''vm'', [''name'', ''test1''], [''memory'', 512], [''maxmem'', 512], [''on_poweroff'', ''destroy''], [''on_reboot'', ''restart''], [''on_crash'', ''restart''], [''vcpus'', 1], [''bootloader'', ''/usr/bin/pygrub''], [''image'', [''linux'', [''ramdisk'', ''/var/lib/xen/boot_ramdisk.Ti-OFI''], [''kernel'', ''/var/lib/xen/boot_kernel.RCLBJl''], [''args'', ''ro root=/dev/xvda1 console=xvc0 rhgb quiet'']]], [''device'', [''vbd'', [''uname'', ''phy:/dev/vg1/test1''], [''dev'', ''xvda1''], [''mode'', ''w'']]], [''device'', [''vif'', [''bridge'', ''xenbr0'']]]]) [2010-03-27 20:47:23 xend.XendDomainInfo 3462] DEBUG (XendDomainInfo:328) parseConfig: config is [''vm'', [''name'', ''test1''], [''memory'', 512], [''maxmem'', 512], [''on_poweroff'', ''destroy''], [''on_reboot'', ''restart''], [''on_crash'', ''restart''], [''vcpus'', 1], [''bootloader'', ''/usr/bin/pygrub''], [''image'', [''linux'', [''ramdisk'', ''/var/lib/xen/boot_ramdisk.Ti-OFI''], [''kernel'', ''/var/lib/xen/boot_kernel.RCLBJl''], [''args'', ''ro root=/dev/xvda1 console=xvc0 rhgb quiet'']]], [''device'', [''vbd'', [''uname'', ''phy:/dev/vg1/test1''], [''dev'', ''xvda1''], [''mode'', ''w'']]], [''device'', [''vif'', [''bridge'', ''xenbr0'']]]] [2010-03-27 20:47:23 xend.XendDomainInfo 3462] DEBUG (XendDomainInfo:445) parseConfig: result is {''features'': None, ''image'': [''linux'', [''ramdisk'', ''/var/lib/xen/boot_ramdisk.Ti-OFI''], [''kernel'', ''/var/lib/xen/boot_kernel.RCLBJl''], [''args'', ''ro root=/dev/xvda1 console=xvc0 rhgb quiet'']], ''cpus'': None, ''vcpu_avail'': None, ''backend'': [], ''uuid'': None, ''on_reboot'': ''restart'', ''cpu_weight'': None, ''memory'': 512, ''cpu_cap'': None, ''localtime'': None, ''timer_mode'': None, ''start_time'': None, ''on_poweroff'': ''destroy'', ''on_crash'': ''restart'', ''device'': [(''vbd'', [''vbd'', [''uname'', ''phy:/dev/vg1/test1''], [''dev'', ''xvda1''], [''mode'', ''w'']]), (''vif'', [''vif'', [''bridge'', ''xenbr0'']])], ''bootloader'': ''/usr/bin/pygrub'', ''maxmem'': 512, ''shadow_memory'': None, ''name'': ''test1'', ''bootloader_args'': None, ''vcpus'': 1, ''cpu'': None} [2010-03-27 20:47:23 xend.XendDomainInfo 3462] DEBUG (XendDomainInfo:1774) XendDomainInfo.construct: None [2010-03-27 20:47:23 xend 3462] DEBUG (balloon:145) Balloon: 524768 KiB free; need 4096; done. [2010-03-27 20:47:23 xend.XendDomainInfo 3462] DEBUG (XendDomainInfo:1900) XendDomainInfo.initDomain: 17 256 [2010-03-27 20:47:23 xend.XendDomainInfo 3462] DEBUG (XendDomainInfo:1941) _initDomain:shadow_memory=0x0, maxmem=0x200, memory=0x200. [2010-03-27 20:47:23 xend 3462] DEBUG (balloon:145) Balloon: 524760 KiB free; need 524288; done. [2010-03-27 20:47:23 xend 3462] INFO (image:139) buildDomain os=linux dom=17 vcpus=1 [2010-03-27 20:47:23 xend 3462] DEBUG (image:208) domid = 17 [2010-03-27 20:47:23 xend 3462] DEBUG (image:209) memsize = 512 [2010-03-27 20:47:23 xend 3462] DEBUG (image:210) image = /var/lib/xen/boot_kernel.RCLBJl [2010-03-27 20:47:23 xend 3462] DEBUG (image:211) store_evtchn = 1 [2010-03-27 20:47:23 xend 3462] DEBUG (image:212) console_evtchn = 2 [2010-03-27 20:47:23 xend 3462] DEBUG (image:213) cmdline = ro root=/dev/xvda1 console=xvc0 rhgb quiet [2010-03-27 20:47:23 xend 3462] DEBUG (image:214) ramdisk = /var/lib/xen/boot_ramdisk.Ti-OFI [2010-03-27 20:47:23 xend 3462] DEBUG (image:215) vcpus = 1 [2010-03-27 20:47:23 xend 3462] DEBUG (image:216) features [2010-03-27 20:47:23 xend.XendDomainInfo 3462] DEBUG (XendDomainInfo:633) Checking for duplicate for uname: /dev/vg1/test1 [phy:/dev/vg1/test1], dev: xvda1, mode: w [2010-03-27 20:47:23 xend 3462] DEBUG (blkif:27) exception looking up device number for xvda1: [Errno 2] No such file or directory: ''/dev/xvda1'' [2010-03-27 20:47:23 xend 3462] DEBUG (blkif:27) exception looking up device number for xvda1: [Errno 2] No such file or directory: ''/dev/xvda1'' [2010-03-27 20:47:23 xend 3462] DEBUG (DevController:114) DevController: writing {''virtual-device'': ''51713'', ''device-type'': ''disk'', ''protocol'': ''x86_64-abi'', ''backend-id'': ''0'', ''state'': ''1'', ''backend'': ''/local/domain/0/backend/vbd/17/51713''} to /local/domain/17/device/vbd/51713. [2010-03-27 20:47:23 xend 3462] DEBUG (DevController:116) DevController: writing {''domain'': ''test1'', ''frontend'': ''/local/domain/17/device/vbd/51713'', ''format'': ''raw'', ''dev'': ''xvda1'', ''state'': ''1'', ''params'': ''/dev/vg1/test1'', ''mode'': ''w'', ''online'': ''1'', ''frontend-id'': ''17'', ''type'': ''phy''} to /local/domain/0/backend/vbd/17/51713. [2010-03-27 20:47:23 xend 3462] DEBUG (DevController:114) DevController: writing {''mac'': ''00:16:3e:55:fc:97'', ''handle'': ''0'', ''protocol'': ''x86_64-abi'', ''backend-id'': ''0'', ''state'': ''1'', ''backend'': ''/local/domain/0/backend/vif/17/0''} to /local/domain/17/device/vif/0. [2010-03-27 20:47:23 xend 3462] DEBUG (DevController:116) DevController: writing {''bridge'': ''xenbr0'', ''domain'': ''test1'', ''handle'': ''0'', ''script'': ''/etc/xen/scripts/vif-bridge'', ''state'': ''1'', ''frontend'': ''/local/domain/17/device/vif/0'', ''mac'': ''00:16:3e:55:fc:97'', ''online'': ''1'', ''frontend-id'': ''17''} to /local/domain/0/backend/vif/17/0. [2010-03-27 20:47:23 xend.XendDomainInfo 3462] DEBUG (XendDomainInfo:992) Storing VM details: {''shadow_memory'': ''0'', ''uuid'': ''3d9ff430-6438-6281-55b6-572f3e40c3ab'', ''on_crash'': ''restart'', ''on_reboot'': ''restart'', ''start_time'': ''1269719243.75'', ''on_poweroff'': ''destroy'', ''name'': ''test1'', ''xend/restart_count'': ''0'', ''vcpus'': ''1'', ''vcpu_avail'': ''1'', ''memory'': ''512'', ''bootloader'': ''/usr/bin/pygrub'', ''image'': "(linux (ramdisk /var/lib/xen/boot_ramdisk.Ti-OFI) (kernel /var/lib/xen/boot_kernel.RCLBJl) (args ''ro root=/dev/xvda1 console=xvc0 rhgb quiet''))", ''maxmem'': ''512''} [2010-03-27 20:47:23 xend.XendDomainInfo 3462] DEBUG (XendDomainInfo:1027) Storing domain details: {''console/ring-ref'': ''3109303'', ''console/port'': ''2'', ''name'': ''test1'', ''console/limit'': ''1048576'', ''vm'': ''/vm/3d9ff430-6438-6281-55b6-572f3e40c3ab'', ''domid'': ''17'', ''cpu/0/availability'': ''online'', ''memory/target'': ''524288'', ''store/ring-ref'': ''3109304'', ''store/port'': ''1''} [2010-03-27 20:47:23 xend 3462] DEBUG (DevController:158) Waiting for devices vif. [2010-03-27 20:47:23 xend.XendDomainInfo 3462] DEBUG (XendDomainInfo:1249) XendDomainInfo.handleShutdownWatch [2010-03-27 20:47:23 xend 3462] DEBUG (DevController:164) Waiting for 0. [2010-03-27 20:47:23 xend 3462] DEBUG (DevController:509) hotplugStatusCallback /local/domain/0/backend/vif/17/0/hotplug-status. [2010-03-27 20:47:24 xend 3462] DEBUG (DevController:509) hotplugStatusCallback /local/domain/0/backend/vif/17/0/hotplug-status. [2010-03-27 20:47:24 xend 3462] DEBUG (DevController:523) hotplugStatusCallback 1. [2010-03-27 20:47:24 xend 3462] DEBUG (DevController:158) Waiting for devices usb. [2010-03-27 20:47:24 xend 3462] DEBUG (DevController:158) Waiting for devices vbd. [2010-03-27 20:47:24 xend 3462] DEBUG (DevController:164) Waiting for 51713. [2010-03-27 20:47:24 xend 3462] DEBUG (DevController:509) hotplugStatusCallback /local/domain/0/backend/vbd/17/51713/hotplug-status. [2010-03-27 20:47:24 xend 3462] DEBUG (DevController:509) hotplugStatusCallback /local/domain/0/backend/vbd/17/51713/hotplug-status. [2010-03-27 20:47:24 xend 3462] DEBUG (DevController:523) hotplugStatusCallback 1. [2010-03-27 20:47:24 xend 3462] DEBUG (DevController:158) Waiting for devices irq. [2010-03-27 20:47:24 xend 3462] DEBUG (DevController:158) Waiting for devices vkbd. [2010-03-27 20:47:24 xend 3462] DEBUG (DevController:158) Waiting for devices vfb. [2010-03-27 20:47:24 xend 3462] DEBUG (DevController:158) Waiting for devices pci. [2010-03-27 20:47:24 xend 3462] DEBUG (DevController:158) Waiting for devices ioports. [2010-03-27 20:47:24 xend 3462] DEBUG (DevController:158) Waiting for devices tap. [2010-03-27 20:47:24 xend 3462] DEBUG (DevController:158) Waiting for devices vtpm. [2010-03-27 20:47:24 xend 3462] INFO (XendDomain:389) Domain test1 (17) unpaused. # xm create -c test1.xen Using config file "./test1.xen". Started domain test1 rtc: IRQ 8 is not free. rtc: IRQ 8 is not free. i8042.c: No controller found. Red Hat nash version 5.1.19.6 starting Welcome to Scientific Linux SL Press ''I'' to enter interactive startup. Setting clock (utc): Sat Mar 27 20:47:40 CET 2010 [ OK ] Starting udev: MAKEDEV: mkdir: File exists [ OK ] Loading default keymap (us): [ OK ] Setting hostname c155160.chem.uu.nl: [ OK ] No devices found Setting up Logical Volume Management: [ OK ] Checking filesystems Checking all file systems. [/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/xvda1 /dev/xvda1: clean, 50654/655360 files, 354859/1310720 blocks [ OK ] Remounting root filesystem in read-write mode: [ OK ] Mounting local filesystems: [ OK ] Enabling local filesystem quotas: [ OK ] restorecon: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory Enabling /etc/fstab swaps: [ OK ] INIT: Entering runlevel: 3 Entering non-interactive startup Starting background readahead: [ OK ] Checking for hardware changes [ OK ] Applying ip6tables firewall rules: ip6tables-restore: error while loading shared libraries: libdl.so.2: cannot open shared object file: Permission denied [FAILED] Applying iptables firewall rules: iptables-restore: error while loading shared libraries: libdl.so.2: cannot open shared object file: Permission denied [FAILED] Starting mcstransd: mcstransd: error while loading shared libraries: libselinux.so.1: cannot open shared object file: Permission denied [FAILED] Bringing up loopback interface: ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied Device lo does not seem to be present, delaying initialization. [FAILED] Bringing up interface eth0: ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied xennet device eth0 does not seem to be present, delaying initialization. [FAILED] /sbin/ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied /sbin/ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied /sbin/ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied /sbin/ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied /sbin/ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied /sbin/ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied /sbin/ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied /sbin/ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied /sbin/ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied Starting auditd: auditd: error while loading shared libraries: libwrap.so.0: cannot open shared object file: Permission denied [FAILED] Starting restorecond: /usr/sbin/restorecond: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory [FAILED] Starting system logger: syslogd: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied [FAILED] Starting kernel logger: klogd: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied [FAILED] Starting irqbalance: irqbalance: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: Permission denied [FAILED] Starting portmap: portmap: error while loading shared libraries: libnsl.so.1: cannot open shared object file: Permission denied [FAILED] Starting NFS statd: rpc.statd: error while loading shared libraries: libwrap.so.0: cannot open shared object file: No such file or directory [FAILED] Starting RPC idmapd: rpc.idmapd: error while loading shared libraries: libevent-1.1a.so.1: cannot open shared object file: Permission denied [FAILED] Starting system message bus: dbus-daemon: error while loading shared libraries: libexpat.so.0: cannot open shared object file: Permission denied [FAILED] Starting setroubleshootd: /usr/bin/python: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory [FAILED] Starting Bluetooth services:/usr/sbin/hcid: error while loading shared libraries: libdbus-1.so.3: cannot open shared object file: Permission denied /usr/sbin/sdpd: error while loading shared libraries: libbluetooth.so.2: cannot open shared object file: Permission denied rfcomm: error while loading shared libraries: libbluetooth.so.2: cannot open shared object file: Permission denied Mounting other filesystems: [ OK ] Starting PC/SC smart card daemon (pcscd): pcscd: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: Permission denied [FAILED] Starting HAL daemon: [FAILED] Starting hidd: /usr/bin/hidd: error while loading shared libraries: libbluetooth.so.2: cannot open shared object file: Permission denied [FAILED] Starting autofs: Loading autofs4: [ OK ] /sbin/restorecon: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory Starting automount: automount: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory [FAILED] [FAILED] Enabling nightly yum update: [ OK ] Generating SSH1 RSA host key: [FAILED] Starting cups: cupsd: error while loading shared libraries: libz.so.1: cannot open shared object file: Permission denied [FAILED] Starting xinetd: [ OK ] Starting sendmail: [ OK ] Starting sm-client: /sbin/restorecon: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory [ OK ] Starting console mouse services: gpm: error while loading shared libraries: libm.so.6: cannot open shared object file: Permission denied [FAILED] Starting crond: [ OK ] Starting xfs: /sbin/restorecon: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory xfs: error while loading shared libraries: libFS.so.6: cannot open shared object file: Permission denied [FAILED] Starting anacron: [ OK ] Starting atd: [ OK ] Starting Avahi daemon... /usr/sbin/avahi-daemon: error while loading shared libraries: libavahi-common.so.3: cannot open shared object file: Permission denied [FAILED] Starting smartd: /usr/sbin/smartd: error while loading shared libraries: libselinux.so.1: cannot open shared object file: Permission denied [FAILED] /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied INIT: Id "co" respawning too fast: disabled for 5 minutes INIT: no more processes left in this runlevel /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied INIT: Id "co" respawning too fast: disabled for 5 minutes /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied INIT: Id "co" respawning too fast: disabled for 5 minutes /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied INIT: Id "co" respawning too fast: disabled for 5 minutes /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied /sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied INIT: Id "co" respawning too fast: disabled for 5 minutes -- =============================================Nuno Ricardo Santos Loureiro da Silva Ferreira NMR Spectroscopy Research Group Bijvoet Center for Biomolecular Research Utrecht University Bloembergen gebouw Padualaan 8, 3584 CH Utrecht The Netherlands P: +31.(0)30.253 9932 F: +31.(0)30.253 2652 E:n.l.ferreira@uu.nl W:http://nmr.chem.uu.nl ============================================= _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Simon Hobson
2010-Mar-27 23:26 UTC
Re: [Xen-users] Dump an image based domU to a logical volume
Nuno L. Ferreira wrote:>Part II >+++++ >I also tryed instead of creating a pristine image file, install the >pristine domU directly into a LV based. But, how do I mount the LV >to edit configuration files inside of it? Because now there is a >partition table inside the domU, and I don''t know how to handle with >it. Any link on how to do it?xm block-attach has been suggested to attach the LV to the Dom0 and then you can access the partitions the same as you''d do on a real disk. -- Simon Hobson WANTED: "Software CD ROM Kit" for Canon CLBP 360-PS printer (Canon part no RH6-3612, or possibly RH6-3810, or RH6-3610 might do). I''ve a dead HD and need this CD so I can replace the disk and re-install the printer OS on it. This is NOT the same thing as the printer drivers to load on the computer - there''s no problem there. If anyone knows where I might get hold of one I''d be grateful - requests to Canon drew a blank, it''s been out of support for years. Alternatively, if anyone has one of these and would let me image their hard disk ... Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nuno L. Ferreira
2010-Mar-28 10:16 UTC
Re: [Xen-users] Dump an image based domU to a logical volume
Dear Simon, Thanks. I just found out that ... kpartx tool is also able to work with logical volumes (I thought that it was meant only for file based stuff like images). Thus, even if the LV based domU has several partitions (in the same LV) they can be accessed individually and file edition is possible for fine configuration of the domU if needed. Cheers, N. Simon Hobson wrote:> Nuno L. Ferreira wrote: > >> Part II >> +++++ >> I also tryed instead of creating a pristine image file, install the >> pristine domU directly into a LV based. But, how do I mount the LV to >> edit configuration files inside of it? Because now there is a >> partition table inside the domU, and I don''t know how to handle with >> it. Any link on how to do it? > > xm block-attach has been suggested to attach the LV to the Dom0 and > then you can access the partitions the same as you''d do on a real disk. >-- =============================================Nuno Ricardo Santos Loureiro da Silva Ferreira NMR Spectroscopy Research Group Bijvoet Center for Biomolecular Research Utrecht University Bloembergen gebouw Padualaan 8, 3584 CH Utrecht The Netherlands P: +31.(0)30.253 9932 F: +31.(0)30.253 2652 E: n.l.ferreira@uu.nl W: http://nmr.chem.uu.nl ============================================= _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2010-Mar-28 11:54 UTC
Re: [Xen-users] Dump an image based domU to a logical volume
On Sat, Mar 27, 2010 at 11:26:40PM +0000, Simon Hobson wrote:> Nuno L. Ferreira wrote: > >> Part II >> +++++ >> I also tryed instead of creating a pristine image file, install the >> pristine domU directly into a LV based. But, how do I mount the LV to >> edit configuration files inside of it? Because now there is a >> partition table inside the domU, and I don''t know how to handle with >> it. Any link on how to do it? > > xm block-attach has been suggested to attach the LV to the Dom0 and then > you can access the partitions the same as you''d do on a real disk. >Easier with kpartx. See: http://wiki.xensource.com/xenwiki/XenCommonProblems -- Pasi> -- > Simon Hobson > > WANTED: "Software CD ROM Kit" for Canon CLBP 360-PS printer (Canon part > no RH6-3612, or possibly RH6-3810, or RH6-3610 might do). I''ve a dead HD > and need this CD so I can replace the disk and re-install the printer OS > on it. > This is NOT the same thing as the printer drivers to load on the > computer - there''s no problem there. > If anyone knows where I might get hold of one I''d be grateful - requests > to Canon drew a blank, it''s been out of support for years. > Alternatively, if anyone has one of these and would let me image their > hard disk ... > > Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed > author Gladys Hobson. Novels - poetry - short stories - ideal as > Christmas stocking fillers. Some available as e-books. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
James Harper
2010-Mar-28 12:32 UTC
RE: [Xen-users] Dump an image based domU to a logical volume
> > Easier with kpartx. > See: http://wiki.xensource.com/xenwiki/XenCommonProblems >In my experience, losetup with an offset is safer for some ntfs operations than kpartx. Kpartx seems to get some of the metrics wrong and has toasted my ntfs filesystems before. James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users