[one-users] I'm confused the sunstone to create a VM on CentOS + ONE + XEN.

張德勤 cinmex91047 at gmail.com
Sat Mar 10 06:25:18 PST 2012


Dear all :

I tried to create a VM.But it failed.

[oneadmin at server one-templates]$ cat small_network.net
NAME = "Small network"
TYPE = FIXED
BRIDGE = br0
LEASES = [ IP="XXX.XXX.XXX.XXX"]
LEASES = [ IP="XXX.XXX.XXX.XXX"]
LEASES = [ IP="XXX.XXX.XXX.XXX"]
# IP is publis IP


[oneadmin at server one-templates]$ onevnet list
  ID USER     GROUP    NAME              TYPE BRIDGE PUB  LEASES
   1 oneadmin oneadmin Small network        F    br0  No       3

[oneadmin at server one-templates]$ cat ttylinux.one

NAME   = ttylinux

CPU    = 0.1

MEMORY = 512


DISK   = [

  source   = "/srv/cloud/one/one-templates/ttylinux.img",

   target   = "hda",

  readonly = "no" ]

OS=[

  INITRD=/boot//initramfs-2.6.32-220.el6.x86_64.img,

  KERNEL=/boot/vmlinuz-2.6.32-220.el6.x86_64,

  KERNEL_CMD="ro xencons=tty console=tty1",

  ROOT=sda1 ]

NIC    = [ NETWORK_ID = 1]

GRAPHICS = [ TYPE = "VNC"]

FEATURES=[ acpi="no" ]

[oneadmin at server one-templates]$ onevm list
    ID USER     GROUP    NAME         STAT CPU     MEM        HOSTNAME
   TIME

    15 oneadmin oneadmin ttylinux     fail   0      0K                 00
00:00:09

[oneadmin at server one-templates]$ cat ../var/15/vm.log
Sat Mar 10 22:14:56 2012 [DiM][I]: New VM state is ACTIVE.
Sat Mar 10 22:14:56 2012 [LCM][I]: New VM state is PROLOG.
Sat Mar 10 22:14:56 2012 [VM][I]: Virtual Machine has no context
Sat Mar 10 22:14:56 2012 [TM][D]: tm_clone.sh:
server:/srv/cloud/one/one-templates/ttylinux.img
client1:/srv/cloud/one/var//15/images/disk.0
Sat Mar 10 22:14:56 2012 [TM][D]: tm_clone.sh: DST:
/srv/cloud/one/var//15/images/disk.0
Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Creating directory
/srv/cloud/one/var//15/images
Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Executed "mkdir -p
/srv/cloud/one/var//15/images".
Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Executed "chmod a+w
/srv/cloud/one/var//15/images".
Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Cloning
/srv/cloud/one/one-templates/ttylinux.img
Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Executed "cp -r
/srv/cloud/one/one-templates/ttylinux.img
/srv/cloud/one/var//15/images/disk.0".
Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Executed "chmod a+rw
/srv/cloud/one/var//15/images/disk.0".
Sat Mar 10 22:14:56 2012 [TM][I]: ExitCode: 0
Sat Mar 10 22:14:56 2012 [LCM][I]: New VM state is BOOT
Sat Mar 10 22:14:56 2012 [VMM][I]: Generating deployment file:
/srv/cloud/one/var/15/deployment.0
Sat Mar 10 22:15:00 2012 [VMM][I]: Command execution fail: 'if [ -x
"/var/tmp/one/vmm/xen/deploy" ]; then /var/tmp/one/vmm/xen/deploy
/srv/cloud/one/var//15/images/deployment.0 client1 15 client1; else
                     exit 42; fi'
Sat Mar 10 22:15:00 2012 [VMM][I]: Error: Device 768 (tap) could not be
connected. /srv/cloud/one/var//15/images/disk.0 does not exist
Sat Mar 10 22:15:00 2012 [VMM][E]: Unable
Sat Mar 10 22:15:00 2012 [VMM][I]: ExitCode: 1
Sat Mar 10 22:15:00 2012 [VMM][E]: Error deploying virtual machine: Unable
Sat Mar 10 22:15:01 2012 [DiM][I]: New VM state is FAILED

please help me  :(



張德勤 <cinmex91047 at gmail.com> 於 2012年3月10日下午7:49 寫道:

> Dear all:
>
> I'm confused the sunstone to create a VM on CentOS + ONE + XEN.
> I create a *.img file from this website.
>
> http://www.howtoforge.com/virtualization-with-xen-on-centos-6.2-x86_64-paravirtualization-and-hardware-virtualization-p2
> But I only have *.img file without initrd* file...
> How should I create a VM Template??
> My question is in the Boot/OS options field.
> I choose "Kernel" in the Boot method. (Is it right??)
> But what should I set in the Kernel field and Inirtd field ??
> I only have a *img file....  no initrd file....
> And what's value should the Root and Kernel commadns be??
> Please help me create a VM Tamplate!!
> Please!!
>
>
> --
> Regards,
>
> Te - Chin, Chang (張德勤), +886-3-4227151 #57968
> Networklab, Computer Science & Information Engineering,
> National Central University, Jhongli, Taiwan, R.O.C
>



-- 
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/20120310/464121b3/attachment-0003.htm>


More information about the Users mailing list