[one-users] [Fwd: Re: Please help me get VM running]

Cuong Hoang Bui bhcuong2008 at gmail.com
Fri Sep 17 10:12:12 PDT 2010


Hi Tino,

It's the IM driver and IMM driver, so it depends of transfer method 
(currently I use nfs for testing). the content of src variable is an 
shell script. Lacking of cat argument makes Opennebula execution stop 
when creating an VM (onevm create VM_template_file).

With IM driver, it can't get host infomation. When I revert my changes, 
surprisingly it succeeds. In the past, the log had the same like below. 
Note that after making dir "mkdir -p /tmp/one-im/", the cat has no 
argument. I dont know why it suceeds when I try again.
===
Sat Sep 18 00:00:50 2010 [InM][I]: Command execution fail: 'mkdir -p 
/tmp/one-im/; cat > 
/tmp/one-im//one_im-91090fd8b53b1cf7ce51f3e4215506e3; if [ "x$?" != "x0" 
]; then exit -1; fi; chmod +x 
/tmp/one-im//one_im-91090fd8b53b1cf7ce51f3e4215506e3; 
/tmp/one-im//one_im-91090fd8b53b1cf7ce51f3e4215506e3'
===

With VM (Xen, KVM) driver, it can't deploy VMs.  Here is the log when 
create 1 new VM. It failed. Note at cat command.
===
Fri Sep 17 23:47:58 2010 [VMM][D]: Message received: LOG - 35 Command 
execution fail: 'mkdir -p /srv/cloud/one/var/35/images && cat > 
/srv/cloud/one/var/35/images/deployment.0 && virsh --connect 
qemu:///system create /srv/cloud/one/var/35/images/deployment.0'
===



Tino Vazquez wrote:
> Hi Cuong,
>
> This is actually not a bug, since those script snips shown are
> intended to "cat" something coming from the stdin into a file.
>
> If you revert your changes, what is exactly the problems and what is
> shown in the logs? It is important that you state your chosen storage
> method (ssh or nfs).
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez Blanco | dsa-research.org/tinova
> Virtualization Technology Engineer / Researcher
> OpenNebula Toolkit | opennebula.org
>
>
>
> On Tue, Sep 14, 2010 at 12:12 PM, Cuong Hoang Bui <bhcuong2008 at gmail.com> wrote:
>   
>> --
>> **********************
>> Regards,
>> Cuong Hoang Bui
>> ctek at cteklab.net
>> bhcuong2008 at gmail.com
>> **********************
>>
>>
>> Same, please forward it to the opennebula mailing list.
>> --
>> Constantino Vázquez Blanco | dsa-research.org/tinova
>> Virtualization Technology Engineer / Researcher
>> OpenNebula Toolkit | opennebula.org
>>
>>
>>
>> On Fri, Sep 10, 2010 at 12:21 PM, Cuong Hoang Bui <bhcuong2008 at gmail.com>
>> wrote:
>>     
>>> Hi Tino,
>>>
>>> Below is the vm.template file in the dir /srv/cloud/one/share/examples.
>>> The
>>> document shows that it's easy to get VM running, but up to now I just add
>>> node successfully, VM not running.
>>> I'm stuck at VM definition file. That's the disk image file. Where does it
>>> come from? I want to start up an VM, then install a fresh OS inside the
>>> VM.
>>>
>>> The next thing is that, I install OpenNebula from OpenNebula Express.
>>> There're some small bugs that makes OpenNebula not function properly. I
>>> dont
>>> understand why these bugs appears
>>> 1. Bug 1 in file one_im_ssh.rb, function execute
>>> Original:
>>> src = "'mkdir -p #{@remote_dir}; cat  > #{@remote_script};" \
>>>             " if [ \"x$?\" != \"x0\" ]; then exit -1; fi;" \
>>>             " chmod +x #{@remote_script}; #{@remote_script}'"
>>>
>>> Modified:
>>> src = "'mkdir -p #{@remote_dir}; cat *#{@script}* > #{@remote_script};" \
>>>             " if [ \"x$?\" != \"x0\" ]; then exit -1; fi;" \
>>>             " chmod +x #{@remote_script}; #{@remote_script}'"
>>>
>>> 2. Bug 2 in file one_vmm_xen.rb
>>> Original:
>>> cmd = "cat   > #{remote_dfile} && #{XEN[:create]} #{remote_dfile}"
>>>
>>> Modified:
>>> cmd = "cat *#{local_dfile}*  > #{remote_dfile} && #{XEN[:create]}
>>> #{remote_dfile}"
>>>
>>> 3. Bug 3 in one_vmm_kvm.rb, the same as xen at bug 2.
>>>
>>> These makes broken operation of OpenNebula. These bugs make me crazy due
>>> to
>>> I'm a newbie to OpenNebula. I dont understand why these bugs appears up to
>>> now (from the release in 2009). I'm using version 1.4.0 on CentOS 5.4 x64.
>>>
>>> ============================================
>>> #---------------------------------------
>>> # VM definition example
>>> #---------------------------------------
>>>
>>> NAME = "vm-example"
>>>
>>> CPU    = 0.5
>>> MEMORY = 128
>>>
>>> # --- kernel & boot device ---
>>>
>>> OS = [
>>>  kernel   = "/vmlinuz",
>>>  initrd   = "/initrd.img",
>>>  root     = "sda1" ]
>>>
>>> # --- 2 disks ---
>>>
>>> DISK = [
>>>  source   = "/local/xen/domains/etch/disk.img",
>>>  target   = "sda1",
>>>  readonly = "no" ]
>>>
>>> DISK = [
>>>  source   = "/local/xen/domains/etch/swap.img",
>>>  target   = "sda2",
>>>  readonly = "no" ]
>>>
>>> # --- 1 NIC ---
>>>
>>> NIC = [ mac="00:ff:72:17:20:27"]
>>>
>>> NIC = [ NETWORK="Private LAN"]
>>>
>>>
>>> # --- VNC server ---
>>>
>>> GRAPHICS = [
>>>  type    = "vnc",              listen  = "127.0.0.1",
>>>  port    = "5"]
>>>
>>> # --- Context ---
>>>
>>> CONTEXT = [
>>>  hostname   = "$NAME",
>>>  ip_private = "$NIC[IP, NETWORK=\"Private LAN\"]",
>>>  ip_gen     = "10.0.0.$VM_ID"]
>>>
>>> --
>>> **********************
>>> Regards,
>>> Cuong Hoang Bui
>>> ctek at cteklab.net
>>> bhcuong2008 at gmail.com
>>> **********************
>>>
>>>
>>>       
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>>     

-- 
**********************
Regards,
Cuong Hoang Bui
ctek at cteklab.net
bhcuong2008 at gmail.com
**********************




More information about the Users mailing list