[one-users] Migration problem
George L. Emigh
george at podglobal.com
Thu Mar 17 12:42:26 PDT 2011
Seems I have missed some key detail, when I attempt to migrate a vm it fails.
I can run a vm on the other host with libvirt / virt manager fine.
Any ideas come to mind or a suggestion on where to look?
Before attempted migration the image was owned by oneadmin:cloud
The image file becomes owned by root
s -l /var/lib/one/images/229ec3e88658934ce75dac63633b83a60ac48cf2
-rw-rw---- 1 root root 8589934592 Mar 17 15:08 /var/lib/one/images/229ec3e88658934ce75dac63633b83a60ac48cf2
The VM log file shows
Thu Mar 17 15:08:31 2011 [LCM][I]: New VM state is BOOT
Thu Mar 17 15:08:31 2011 [VMM][I]: Generating deployment file: /var/lib/one/49/deployment.0
Thu Mar 17 15:08:32 2011 [LCM][I]: New VM state is RUNNING
Thu Mar 17 15:09:01 2011 [LCM][I]: New VM state is SAVE_MIGRATE
Thu Mar 17 15:09:09 2011 [LCM][I]: New VM state is PROLOG_MIGRATE
Thu Mar 17 15:09:09 2011 [TM][I]: tm_mv.sh: Will not move, source and destination are equal
Thu Mar 17 15:09:09 2011 [LCM][I]: New VM state is BOOT
Thu Mar 17 15:09:12 2011 [VMM][I]: Command execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/restore" ]; then /var/tmp/one/vmm/kvm/restore
/var/lib/one//49/images/checkpoint; else exit 42; fi'
Thu Mar 17 15:09:12 2011 [VMM][I]: STDERR follows.
Thu Mar 17 15:09:12 2011 [VMM][I]: error: Failed to restore domain from /var/lib/one//49/images/checkpoint
Thu Mar 17 15:09:12 2011 [VMM][I]: error: cannot close file: Bad file descriptor
Thu Mar 17 15:09:12 2011 [VMM][I]: ExitCode: 1
Thu Mar 17 15:09:12 2011 [VMM][E]: Error restoring VM, error: Failed to restore domain from /var/lib/one//49/images/checkpoint
Thu Mar 17 15:09:13 2011 [DiM][I]: New VM state is FAILED
Thu Mar 17 15:09:13 2011 [TM][W]: Ignored: LOG - 49 tm_delete.sh: Deleting /var/lib/one//49/images
Thu Mar 17 15:09:13 2011 [TM][W]: Ignored: LOG - 49 tm_delete.sh: Executed "rm -rf /var/lib/one//49/images".
Thu Mar 17 15:09:13 2011 [TM][W]: Ignored: TRANSFER SUCCESS 49 -
The other host seems ok
onehost list
ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM FMEM STAT
0 shag default 0 400 400 400 7.6G 6.8G on
1 klingon default 1 400 400 300 7.6G 7G on
From the libvirt log on the other host
cat one-49.log
2011-03-17 15:09:09.857: starting up
LC_ALL=C PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin HOME=/ USER=root QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M rhel5.4.0 -enable-kvm -m 2048 -smp
2,sockets=2,cores=1,threads=1 -name one-49 -uuid 7b18a07e-bcc4-ceed-6ace-c31ecf90378a -nodefconfig -nodefaults -chardev
socket,id=monitor,path=/var/lib/libvirt/qemu/one-49.monitor,server,nowait -mon chardev=monitor,mode=control -rtc base=utc -no-acpi -boot c -drive
file=/var/lib/one//49/images/disk.0,if=none,id=drive-virtio-disk0,boot=on,format=raw -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 -drive
file=/var/lib/one//49/images/disk.1,if=none,id=drive-virtio-disk1,format=raw -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 -drive
file=/var/lib/one//49/images/disk.2,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -
netdev tap,fd=44,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=02:00:c0:a8:45:03,bus=pci.0,addr=0x3 -usb -vnc 127.0.0.1:49 -vga cirrus -incoming
exec:cat -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6
Supported machines are:
pc Standard PC (alias of pc-0.13)
pc-0.13 Standard PC (default)
pc-0.12 Standard PC
pc-0.11 Standard PC, qemu 0.11
pc-0.10 Standard PC, qemu 0.10
isapc ISA-only PC
2011-03-17 15:09:12.859: shutting down
From top of oned.log
DB=BACKEND=sqlite
DEBUG_LEVEL=3
DEFAULT_DEVICE_PREFIX=hd
DEFAULT_IMAGE_TYPE=OS
HM_MAD=EXECUTABLE=one_hm
HOST_MONITORING_INTERVAL=60
IMAGE_REPOSITORY_PATH=/var/lib/one//images
IM_MAD=ARGUMENTS=kvm,EXECUTABLE=one_im_ssh,NAME=im_kvm
MAC_PREFIX=02:00
MANAGER_TIMER=15
NETWORK_SIZE=254
PORT=2633
SCRIPTS_REMOTE_DIR=/var/tmp/one
TM_MAD=ARGUMENTS=tm_nfs/tm_nfs.conf,EXECUTABLE=one_tm,NAME=tm_nfs
VM_DIR=/var/lib/one/
VM_HOOK=ARGUMENTS=$VMID,COMMAND=image.rb,NAME=image,ON=DONE
VM_MAD=ARGUMENTS=kvm,DEFAULT=vmm_ssh/vmm_ssh_kvm.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_kvm,TYPE=kvm
VM_POLLING_INTERVAL=60
VNC_BASE_PORT=5900
Thanks in advance.
--
George L. Emigh
CIO
Pod Global, LLC
10 Glenwood Ave
Osprey, FL 34229
(941)806-0276
http://podglobal.com/
NOTICE: This electronic mail message and any files transmitted with it are
intended exclusively for the individual or entity to which it is addressed.
The message, together with any attachment, contain confidential and/or
privileged information. Any unauthorized review, use, printing, saving,
copying, disclosure or distribution is strictly prohibited. If you have
received this message in error, please immediately advise the sender by
reply email and delete all copies.
More information about the Users
mailing list