[one-users] vm still in pending state problem

Saravanan S dearsaravanan at gmail.com
Mon Oct 25 22:25:22 PDT 2010


Hi ,

2010/10/25 Saravanan S <dearsaravanan at gmail.com>:
> # onehost list
> >   ID NAME              CLUSTER  RVM   TCPU   FCPU   ACPU    TMEM    FMEM
> > STAT
> >    6 hostx21     default    0   1600   1599   1600     32G    127M   on
>
> It shows that you have only 127MB free memory.  There are two
> possibilities which can explain it:
> - this ram is used by other VMs
> - all this ram is assigned to dom0, and opennebula doesn't support
> dom0 balloning.
>
> I think second option is more possible. To solve this add
> "dom0_mem=1024M" option to your xen boot options.
> See http://wiki.xensource.com/xenwiki/XenBestPractices for more details.
>
>
# onehost list
  ID NAME              CLUSTER  RVM   TCPU   FCPU   ACPU    TMEM    FMEM
STAT
   8 192.168.6.218     default    0   1600   1599   1600     32G   30.6G
on

Now the memory is 30.6 G. But when i create a vm with vmtest.one it doesnot
work.,

# vi vmtest.one

NAME          = "Test"
PUBLIC        = YES
DESCRIPTION   = "Centos 5.5 base image"

CPU    = 1
MEMORY = 256

# --- kernel & boot device ---

OS = [
  kernel   = "/opt/VMS/vmlinuz-2.6.18-194.17.1.el5xen",
  initrd   = "/opt/VMS/initrd-2.6.18-194.17.1.el5xen.img",
  root     = "sda" ]

# --- 3 disks ---

DISK = [
  image     = "Centos_base_image" ]

DISK = [
  type     = swap,
  size     = 512,
  readonly = "no" ]

# --- 1 NIC ---

# NIC = [ network = "Private lab 3 LAN" ]

# --- Placement options ---

RANK         = FREECPU

# --- Contextualization ---

#CONTEXT = [
#  files     = "/service/init.sh /service/certificates
/service/service.conf"  ]


# onevm create vmtest.one

# onevm list
   ID     USER     NAME STAT CPU     MEM        HOSTNAME        TIME
   20    user1     Test fail   0      0K   192.168.6.218 00 00:04:49

 Here is the log file for the VM ,

# cat /var/log/one/20.log
Tue Oct 26 10:41:48 2010 [DiM][I]: New VM state is ACTIVE.
Tue Oct 26 10:41:48 2010 [LCM][I]: New VM state is PROLOG.
Tue Oct 26 10:41:48 2010 [VM][I]: Virtual Machine has no context
Tue Oct 26 10:42:15 2010 [TM][I]: tm_clone.sh:
sios-centos-test:/var/lib/one//im
ages/b69da959cd333e52d102d871da9cacf751bccde1
192.168.6.218:/srv/cloud/one/var/2
0/images/disk.0
Tue Oct 26 10:42:15 2010 [TM][I]: tm_clone.sh: DST:
/srv/cloud/one/var/20/images
/disk.0
Tue Oct 26 10:42:15 2010 [TM][I]: tm_clone.sh: Creating directory
/srv/cloud/one
/var/20/images
Tue Oct 26 10:42:15 2010 [TM][I]: tm_clone.sh: Executed "mkdir -p
/srv/cloud/one
/var/20/images".
Tue Oct 26 10:42:15 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w
/srv/cloud/on
e/var/20/images".
Tue Oct 26 10:42:15 2010 [TM][I]: tm_clone.sh: Cloning
/var/lib/one//images/b69d
a959cd333e52d102d871da9cacf751bccde1
Tue Oct 26 10:42:15 2010 [TM][I]: tm_clone.sh: Executed "cp -r
/var/lib/one//ima
ges/b69da959cd333e52d102d871da9cacf751bccde1
/srv/cloud/one/var/20/images/disk.0
".
Tue Oct 26 10:42:15 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w
/srv/cloud/on
e/var/20/images/disk.0".
Tue Oct 26 10:46:20 2010 [TM][I]: tm_mkswap.sh: Creating directory
/srv/cloud/on
e/var/20/images
Tue Oct 26 10:46:20 2010 [TM][I]: tm_mkswap.sh: Executed "mkdir -p
/srv/cloud/on
e/var/20/images".
Tue Oct 26 10:46:20 2010 [TM][I]: tm_mkswap.sh: Executed "chmod a+w
/srv/cloud/o
ne/var/20/images".
Tue Oct 26 10:46:20 2010 [TM][I]: tm_mkswap.sh: Creating 512Mb image in
/srv/clo
ud/one/var/20/images/disk.1
Tue Oct 26 10:46:20 2010 [TM][I]: tm_mkswap.sh: Executed "/bin/dd
if=/dev/zero o
f=/srv/cloud/one/var/20/images/disk.1 bs=1 count=1 seek=512M".
Tue Oct 26 10:46:20 2010 [TM][I]: tm_mkswap.sh: Initializing swap space
Tue Oct 26 10:46:20 2010 [TM][I]: tm_mkswap.sh: Executed "/sbin/mkswap
/srv/clou
d/one/var/20/images/disk.1".
Tue Oct 26 10:46:20 2010 [TM][I]: tm_mkswap.sh: Executed "chmod a+w
/srv/cloud/o
ne/var/20/images/disk.1".
Tue Oct 26 10:46:21 2010 [LCM][I]: New VM state is BOOT
Tue Oct 26 10:46:21 2010 [VMM][I]: Generating deployment file:
/var/lib/one/20/d
eployment.0
Tue Oct 26 10:46:21 2010 [VMM][I]: Command execution fail:
/tmp/one/vmm/xen/depl
oy /srv/cloud/one/var/20/images/deployment.0
Tue Oct 26 10:46:21 2010 [VMM][I]: STDERR follows.
Tue Oct 26 10:46:21 2010 [VMM][I]: Error: Device 768 (tap) could not be
connecte                                                         d. File not
found.
Tue Oct 26 10:46:21 2010 [VMM][I]: ExitCode: 1
Tue Oct 26 10:46:21 2010 [VMM][E]: Error deploying virtual machine
Tue Oct 26 10:46:21 2010 [DiM][I]: New VM state is FAILED
Tue Oct 26 10:46:22 2010 [TM][W]: Ignored: LOG - 20 tm_delete.sh: Deleting
/srv/
cloud/one/var/20/images

Tue Oct 26 10:46:22 2010 [TM][W]: Ignored: LOG - 20 tm_delete.sh: Executed
"rm -                                                         rf
/srv/cloud/one/var/20/images".

Tue Oct 26 10:46:22 2010 [TM][W]: Ignored: TRANSFER SUCCESS 20 -


Thanks,
Saravanan Sundaramoorthy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20101026/c903d776/attachment-0003.htm>


More information about the Users mailing list