[one-users] [Fwd: Re: Please help me get VM running]
Tino Vazquez
tinova at fdi.ucm.es
Fri Sep 17 08:16:18 PDT 2010
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
>
>
More information about the Users
mailing list