[one-users] How to create a VM through my OpenNEbula?

張德勤 cinmex91047 at gmail.com
Wed Mar 7 09:21:08 PST 2012


Dear all:

After I installed my ONE system.
There are 2 machines in my system.
one is Server : CentOS 6 + OpenNEbula
the other one is client1 : CentOS 6 + Xen-kernel

And now I want to locate a VM to Client1 through Server.
Here are my steps.
1.  I refer this website to install my VM on client1.

http://www.howtoforge.com/virtualization-with-xen-on-centos-6.2-x86_64-paravirtualization-and-hardware-virtualization-p2
     After this step, I get cinmex1.img in my client1.
2.  I copy cinemx1.img to /srv/cloud/one/cinmex1 in my ONE server. And
create a cinmex1.one file. The content is following.
     NAME   = cinmex1
     CPU    = 1
     MEMORY = 512
     OS = [ kernel     = /boot/vmlinuz-2.6.32.56-1.el6xen.x86_64,
                 initrd     =
/boot/initrd-2.6.32.56-1.el6xen.x86_64kdump.img,
                 root       = sda2]
     DISK = [ source   = /srv/cloud/one/cinmex1/cinmex1.img,
                     clone    = no,
                     target   = sda2,
                     readonly = no]
     DISK = [  type     = swap,
                     size     = 128,
                     target   = "sda1",
                     readonly = "no" ]
     NIC=[IP="XX.XX.XX.XX", MAC="00:16:01:01:01:01"]

3.  I command onevm create cinmex1.one, but the VM failed.  :(
     [oneadmin at server cinmex1]$ onevm create cinmex1.one
     ID: 6
     [oneadmin at server cinmex1]$ onevm list
      ID USER     GROUP    NAME         STAT CPU     MEM        HOSTNAME
     TIME
         6 oneadmin oneadmin cinmex1      fail   0      0K
00 00:00:02

My question is how to set the cinmex1.one file??
For example, what content should I set in the OS??
My /boot/grub/menu.lst in client1 is here.

default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32.56-1.el6xen.x86_64)
        root (hd0,0)
        kernel /xen.gz dom0_mem=1024M cpufreq=xen dom0_max_vcpus=4
dom0_vcpus_pin
        module /vmlinuz-2.6.32.56-1.el6xen.x86_64 ro
root=/dev/mapper/vg_client1-lv_root rd_NO_LUKS LANG=en_US.UTF-8
rd_LVM_LV=vg_client1/lv_root rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb
crashkernel=128M rd_LVM_LV=vg_client1/lv_swap  KEYBOARDTYPE=pc KEYTABLE=us
rd_NO_DM
        module /initramfs-2.6.32.56-1.el6xen.x86_64.img

Someone can help me??



-- 
Regards,

Te - Chin, Chang (張德勤), +886-3-4227151 #57968
Networklab, Computer Science & Information Engineering,
National Central University, Jhongli, Taiwan, R.O.C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120308/95251923/attachment-0001.htm>


More information about the Users mailing list