Re: [one-users] Migration problem

2011-03-24 Thread George L. Emigh
How can I change the machine type from the default of rhel5.4.0 to pc from 
within the VM template?

if I add to the vm template:
OS = [ ARCH = x86_64, MACHINE = pc ]

and even though onevm show reveals:
OS=[
  ARCH=x86_64,
  MACHINE=pc ]

deployment.0 still only shows:
type arch='x86_64'hvm/type

as opposed to the expected:
type arch='x86_64' machine='pc'hvm/type

On Thursday March 17 2011, George L. Emigh wrote:
   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   ACPUTMEMFMEM
   STAT 0 shag  default04004004007.6G   
   6.8G   on 1 klingon   default14004003007.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,nowai
   t -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=o
   n,format=raw -device
   virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-dis
   k0 -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-dis
   k1 -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,a
   ddr=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.13Standard PC (default)
   pc-0.12Standard PC
   pc-0.11Standard PC, qemu 0.11
   pc-0.10Standard 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

[one-users] Migration problem

2011-03-17 Thread George L. Emigh
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.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Opennebula on Gentoo

2010-11-10 Thread George L. Emigh
I was changing a beta ebuild of opennebula to build and install opennebula 2.0 
on a gentoo system (since Fedora 13 has not been usable with Opennebula), in 
gentoo the ebuild has CFLAGS set as defined in the make.conf and that gets 
applied to the compile of opennebula.

So in my instance, CFLAGS is set to -march=native -O2 -pipe -mfpmath=sse

and opennebula fails to build with:

gcc -o src/template/template_parser.o -c -march=native -O2 -pipe -mfpmath=sse 
-rdynamic -g -Wall -Werror -DSQLITE_DB -DMYSQL_DB -DHAVE_ERRNO_AS_DEFINE=1 -
DUNIV_LINUX -Iinclude -I/usr/include -I/usr/include/mysql -
I/usr/include/libxml2 src/template/template_parser.c
cc1: warnings being treated as errors
template_parser.c: In function 'template_lex':
template_parser.l:89: error: ignoring return value of 'fwrite', declared with 
attribute warn_unused_result
scons: *** [src/template/template_parser.o] Error 1
scons: building terminated because of errors.

If I remove the -O2 it builds fine, and I will just do that and move forward 
for now, but opennebula should probably not fail to build with -O2


Thank You
-- 
George L. Emigh
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Opennebula on Gentoo

2010-11-10 Thread George L. Emigh
Thank you,

 I submitted the modified working ebuild to gentoo in hopes that it may get 
included in portage.

When the maintenance release is available I can submit an updated one.

The gentoo bug report is here if it is of interest to anyone.
https://bugs.gentoo.org/show_bug.cgi?id=344969

George

On Wednesday November 10 2010, Ruben S. Montero wrote:
   Hi George,
   
   Thanks for the heads-up on this. This is basically because of Werror.
   We'll take care of this for the next maintenance release
   (http://dev.opennebula.org/issues/406)
   
   Cheers
   
   Ruben
   
   On Wed, Nov 10, 2010 at 8:42 PM, George L. Emigh
   
   george.em...@dialecticnet.com wrote:
I was changing a beta ebuild of opennebula to build and install
opennebula 2.0 on a gentoo system (since Fedora 13 has not been usable
with Opennebula), in gentoo the ebuild has CFLAGS set as defined in
the make.conf and that gets applied to the compile of opennebula.

So in my instance, CFLAGS is set to -march=native -O2 -pipe
-mfpmath=sse

and opennebula fails to build with:

gcc -o src/template/template_parser.o -c -march=native -O2 -pipe
-mfpmath=sse -rdynamic -g -Wall -Werror -DSQLITE_DB -DMYSQL_DB
-DHAVE_ERRNO_AS_DEFINE=1 - DUNIV_LINUX -Iinclude -I/usr/include
-I/usr/include/mysql -
I/usr/include/libxml2 src/template/template_parser.c
cc1: warnings being treated as errors
template_parser.c: In function 'template_lex':
template_parser.l:89: error: ignoring return value of 'fwrite',
declared with attribute warn_unused_result
scons: *** [src/template/template_parser.o] Error 1
scons: building terminated because of errors.

If I remove the -O2 it builds fine, and I will just do that and move
forward for now, but opennebula should probably not fail to build with
-O2


Thank You
--
George L. Emigh
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
   
   --
   Dr. Ruben Santiago Montero
   Associate Professor (Profesor Titular), Complutense University of Madrid
   
   URL: http://dsa-research.org/doku.php?id=people:ruben
   Weblog: http://blog.dsa-research.org/?author=7

-- 
George L. Emigh
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] oned dies within a minute after starting

2010-10-19 Thread George L. Emigh
I'm using opennebula on Fedora 13, built from git sources.

Before I start over I thould I'd ask if anyone has seen anything like this:

onead...@klingon ~ $  one start 
  
Stale .lock detected. Erasing it.   
  
oned and scheduler started  
  
onead...@klingon ~ $  onehost list  
 
  ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEMFMEM STAT   
  
   0 klingon   default0  0  0100  0K  0K  err   
  
   1 shag  default04003544007.6G4.5G   on   
  
onead...@klingon ~ $  onehost list
Error: Connection refused - connect(2)



From the oned.log
Tue Oct 19 15:30:32 2010 [InM][I]: Monitoring host klingon (0)  
  
Tue Oct 19 15:30:32 2010 [InM][I]: Monitoring host shag (1) 
  
Tue Oct 19 15:30:35 2010 [InM][D]: Host 0 successfully monitored.   
  
Tue Oct 19 15:30:35 2010 [ONE][E]: syntax error, unexpected EQUAL, expecting 
$end or VARIABLE at line 1, columns 126:128 
   
Tue Oct 19 15:30:35 2010 [InM][E]: Error parsing host information: ARCH=x86_64 
MODELNAME=AMD Phenom(tm) II X4 965 Processor 
HOSTNAME=klingon.earthcookie.net HYPERVISOR=kvm TOTALCPU= CPUSPEED= 
TOTALMEMORY= USEDMEMORY=7864392 FREEMEMORY=6944660 FREECPU=0.0 USEDCPU=0.0 
NETRX= NETTX=   
 

  
Tue Oct 19 15:30:35 2010 [InM][D]: Host 1 successfully monitored.


Thank you.

-- 
George L. Emigh
CIO
Dialectic Networks, LLC
10 Glenwood Ave
Osprey, FL 34229
(941)806-0276
http://dialecticnet.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.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Problem building opennebula 2.0 RC1 from source on fedora 13

2010-10-12 Thread George L. Emigh
I guess it only needed this:

$  diff -u SConstruct.orig SConstruct   
 
--- SConstruct.orig 2010-10-12 18:10:45.824754684 -0400 
  
+++ SConstruct  2010-10-12 18:33:45.585754639 -0400 
  
@@ -40,6 +40,8 @@   
  
 if os.environ.has_key('LDFLAGS'):  
  
 main_env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS'])   
  

  
+main_env['LINKFLAGS'] += ['-pthread']  
  
+   
  
 # Add builders for flex and bison  
  
 add_lex(main_env)  
  
 add_bison(main_env)





On Monday October 11 2010, George L. Emigh wrote:
   when attempting to build OpenNebula 2.0 RC1 from source on Fedora 13 I am
   getting this error:
   
   scons: done reading SConscript files.
   scons: Building targets ...
   g++ -o src/nebula/oned -g src/nebula/oned.o -Lsrc/common -Lsrc/log
   -Lsrc/sql - Lsrc/host -Lsrc/mad -Lsrc/nebula -Lsrc/pool -Lsrc/template
   -Lsrc/vm -Lsrc/vmm -Lsrc/lcm -Lsrc/tm -Lsrc/dm -Lsrc/im -Lsrc/image
   -Lsrc/rm -Lsrc/vnm -Lsrc/hm - Lsrc/um -Lsrc/authm -lxmlrpc_client++
   -lnebula_core -lnebula_vmm -lnebula_lcm -lnebula_im -lnebula_hm
   -lnebula_rm -lnebula_dm -lnebula_tm -lnebula_um - lnebula_authm
   -lnebula_mad -lnebula_template -lnebula_image -lnebula_pool -
   lnebula_host -lnebula_vnm -lnebula_vm -lnebula_common -lnebula_sql -
   lnebula_log -lcrypto -lsqlite3 -lxmlrpc_server_abyss++ -lxmlrpc_server++
   - lxmlrpc_server_abyss -lxmlrpc++ -lxmlrpc_server -lxmlrpc_abyss
   -lxmlrpc -lxml2 -lz -lm -lxmlrpc_util
   /usr/bin/ld: src/nebula/libnebula_core.a(Nebula.o): undefined reference
   to symbol 'pthread_sigmask@@GLIBC_2.2.5'
   /usr/bin/ld: note: 'pthread_sigmask@@GLIBC_2.2.5' is defined in DSO
   /lib64/libpthread.so.0 so try adding it to the linker command line
   /lib64/libpthread.so.0: could not read symbols: Invalid operation
   collect2: ld returned 1 exit status
   scons: *** [src/nebula/oned] Error 1
   scons: building terminated because of errors.
   
   
   Has anyone already solved this problem?
   
   Thanks in advance.
   
   George
   ___
   Users mailing list
   Users@lists.opennebula.org
   http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

-- 
George L. Emigh
CIO
Dialectic Networks, LLC
10 Glenwood Ave
Osprey, FL 34229
(941)806-0276
http://dialecticnet.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.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org