Also, "onehost show 1" shows RUNNING_VMS = 3<br>But in reality, the VMs are stuck in the "boot" state and not in "runn" state. So shouldn't RUNNING_VMS show 0 rather than 3. Was this a design choice?<br>
<br>onehost show 1<br>HID      = 1<br>HOSTNAME = uecB<br>IM MAD   = im_kvm<br>VMM MAD  = vmm_kvm<br>TM MAD   = tm_ssh<br>MANAGED  = 1<br>ATTRIBUTES<br><br>    ARCH=i686<br>    CPUSPEED=1000<br>    FREECPU=160.4<br>    FREEMEMORY=916328<br>
    HOSTNAME=uecB<br>    MODELNAME=Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz<br>    NETRX=<br>    NETTX=<br>    PUBKEY=ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzILPzcfds0904w/eRdYSCHev9+ZrkxWuNkNWOp9LjCi09T8tfOG6c/OlzXr1oCAH8WmMSI2VHHs1mU83ds9ezFgmQWqvPsFKHajEHw3PLyoDgoQtCgGL8KPeRiXN61bXfYEcA56R/LJO9UVhdQMxNINK9jFlJaB7RuPKzInzuYqyPYGHXkRmyamsbdBTCsgpYwHny7OrtVk71kS3TefyWYkFv6tvwggoLzatWxbA14REm4eOsQXGvAV+tiemyLAVyINTgcUCbd80uVnqNl7dxQ5ONwKlU8GvO4HwTwRtBBBkZnyfnlXHRLWXMTSjRjdBu1WSQgl+HUpbUC8VQxy36w== oneadmin@uecB<br>
    TOTALCPU=200<br>    TOTALMEMORY=1017284<br>    USEDCPU=39.6<br>    USEDMEMORY=994828<br>HOST SHARES<br>    HID          = 1<br>    ENDPOINT     = <br>    MAX_CPU      = 200<br>    MAX_MEMORY   = 1017284<br>    MAX_DISK     = 0<br>
    CPU_USAGE    = 80<br>    MEMORY_USAGE = 458752<br>    DISK_USAGE   = 0<br>    RUNNING_VMS  = 3<br><br><br>I am trying to get my pea-sized brain around open-nebula, therefore any help would be deeply appreciated.<br>
<br>Thanks.<br><br><br><br><div class="gmail_quote">On Tue, Jan 26, 2010 at 11:37 AM, Jack Jill <span dir="ltr"><<a href="mailto:jacknjill111@gmail.com">jacknjill111@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I was attempting to submit the ttylinux vm, but ran into a problem with the deployment.0 file not being generated fully. This causes the vm to remain in the "boot" state. And then all commands (onevm, onevnet, onehost) seem to hang when I try to run them.<br>

<br>Any idea what I am doing wrong?<br><br>If I try to delete one of the VM (since I think they must be in an error state), I get an error message:<br><br>$ onevm delete 10<br>Error: Wrong state to perform action<br><br>
$ onevm list<br>


  ID     NAME STAT CPU     MEM        HOSTNAME        TIME<br>
  10 ttylinux boot   0       0            uecB 00 02:35:13<br>
  11 ttylinux boot   0       0            uecB 00 02:07:07<br>
  12 ttylinux boot   0       0            uecB 00 00:27:51<br>
<br>
$ onevnet list<br>
 NID NAME              TYPE BRIDGE<br>
   2 Private LAN       Ranged    br0<br>
   3 Small network    Fixed       br0<br>
<br>$ onehost list<br> HID NAME                      RVM   TCPU   FCPU   ACPU    TMEM    FMEM STAT<br>   1 uecB                        3    200    198    170 1017284  935036   on<br><br>ttylinux.one:<br>---------------<br>

<br>NAME   = ttylinux<br>CPU    = 0.1<br>MEMORY = 64<br><br>DISK   = [<br>  source   = "/home/james/opennebula/ttylinuxTemplate/ttylinux.img",<br>  target   = "sda",<br>  readonly = "no" ]<br>

<br>NIC    = [ NETWORK = "Small network" ]<br><br>FEATURES=[ acpi="no" ]<br><br>CONTEXT = [<br>    hostname    = "james",<br>    ip_public   = "192.168.5.38",<br>    files      = "/home/james/opennebula/ttylinuxTemplate/init.sh /home/james/opennebula/ttylinuxTemplate/id_rsa.pub",<br>

    target      = "hdc",<br>    root_pubkey = "id_rsa.pub",<br>    username    = "opennebula",<br>    user_pubkey = "id_rsa.pub"<br>]<br><br>where, 192.168.5.38 is an IP that is not used on my office network.<br>

<br><a href="http://small-network.net" target="_blank">small-network.net</a>:<br>------------------------<br>NAME = "Small network"<br>TYPE = FIXED<br><br>#Now we'll use the cluster private network (physical)<br>
BRIDGE = br0<br>
LEASES = [ IP="192.168.5.20"]<br>LEASES = [ IP="192.168.5.22"]<br>LEASES = [ IP="192.168.5.23"]<br><br>where, the above IPs are not used on my office network<br><br><br>As you can see from the deployment.0 file below, it doesn't seem to be generated fully.<br>

<br>deployment.0 for one-10 vm:<br>--------------------------------------<br><domain type='kvm'><br>        <name>one-10</name><br>        <vcpu>1</vcpu><br>        <memory>65536</memory><br>

        <os><br>                <type>hvm</type><br><br>10.log:<br>--------<br>Tue Jan 26 08:44:56 2010 [DiM][I]: New VM state is ACTIVE.<br>Tue Jan 26 08:44:56 2010 [LCM][I]: New VM state is PROLOG.<br>

Tue Jan 26 08:44:56 2010 [TM][I]: tm_clone.sh: uecA:/home/james/opennebula/ttylinuxTemplate/ttylinux.img uecB:/var/lib/one//10/images/disk.0<br>Tue Jan 26 08:44:56 2010 [TM][I]: tm_clone.sh: DST: /var/lib/one//10/images/disk.0<br>

Tue Jan 26 08:44:56 2010 [TM][I]: tm_clone.sh: Creating directory /var/lib/one//10/images<br>Tue Jan 26 08:44:56 2010 [TM][I]: tm_clone.sh: Executed "ssh uecB mkdir -p /var/lib/one//10/images".<br>Tue Jan 26 08:44:56 2010 [TM][I]: tm_clone.sh: Cloning uecA:/home/james/opennebula/ttylinuxTemplate/ttylinux.img<br>

Tue Jan 26 08:45:02 2010 [TM][I]: tm_clone.sh: Executed "scp uecA:/home/james/opennebula/ttylinuxTemplate/ttylinux.img uecB:/var/lib/one//10/images/disk.0".<br>Tue Jan 26 08:45:02 2010 [TM][I]: tm_clone.sh: Executed "ssh uecB chmod a+w /var/lib/one//10/images/disk.0".<br>

Tue Jan 26 08:45:02 2010 [LCM][I]: New VM state is BOOT<br>Tue Jan 26 08:45:02 2010 [VMM][I]: Generating deployment file: /var/lib/one/10/deployment.0<br><br>--------------------------------------<br><br>My setup is show below:<br>

<br>Front-end:<br><br>OS: Ubuntu Karmic<br>Running opennebula 1.2-0ubuntu6 as shown from "dpkg-query -s opennebula" command:<br><br>Package: opennebula<br>Status: install ok installed<br>Priority: extra<br>Section: utils<br>

Installed-Size: 1268<br>Maintainer: Soren Hansen <<a href="mailto:soren@ubuntu.com" target="_blank">soren@ubuntu.com</a>><br>Architecture: i386<br>Version: 1.2-0ubuntu6<br>Depends: libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libsqlite3-0 (>= 3.6.16), libstdc++6 (>= 4.1.1), libxmlrpc-c3, libxmlrpc-core-c3, ruby, adduser, libsqlite3-ruby, opennebula-common, openssh-client<br>

Conffiles:<br> /etc/one/im_kvm/im_kvmrc 2f2e4e7f63003fd53bee4941ecf93f93<br> /etc/one/im_kvm/im_kvm.conf 4977bea99b8f200bdfe1077ec54ba758<br> /etc/one/im_xen/im_xenrc 2f2e4e7f63003fd53bee4941ecf93f93<br> /etc/one/im_xen/im_xen.conf 6475d4f1c8d61eddef7cd02e7c10145b<br>

 /etc/one/im_ec2/im_ec2rc 2f2e4e7f63003fd53bee4941ecf93f93<br> /etc/one/im_ec2/im_ec2.conf 05b02f27b37832ea88d699cf68427e7f<br> /etc/one/vmm_kvm/vmm_kvmrc d14efaf83fd202636be7c3804cb28608<br> /etc/one/vmm_kvm/vmm_kvm.conf 23d6bbc9d85f3e85c48218196d8e0a79<br>

 /etc/one/vmm_xen/vmm_xenrc 427fc1f307455ddda41a15d3e48b6a00<br> /etc/one/vmm_xen/vmm_xen.conf 90363cc7aa35e0dce357e14d698b821a<br> /etc/one/vmm_ec2/vmm_ec2rc fda2986b105e4cb4d7ab418ddbe924cc<br> /etc/one/vmm_ec2/vmm_ec2.conf ece85ae38731275a312dfb463d96e63b<br>

 /etc/one/tm_nfs/tm_nfs.conf be9fbc3832ac9d170730a3cb7e67b24d<br> /etc/one/tm_nfs/tm_nfsrc 2f2e4e7f63003fd53bee4941ecf93f93<br> /etc/one/tm_ssh/tm_ssh.conf 998bcb361052b076a0d4ddeb316f5083<br> /etc/one/tm_ssh/tm_sshrc 2f2e4e7f63003fd53bee4941ecf93f93<br>

 /etc/one/tm_dummy/tm_dummy.conf 2b4f77505ce33aa04257883feddaa126<br> /etc/one/tm_dummy/tm_dummyrc 29313c33a973b18bb9d56de77de5f924<br> /etc/one/oned.conf c17d40551f546d23dfe09b9f4617010d<br> /etc/one/defaultrc 3b712ce0e45bd4cbd24cc65655c1f942<br>

 /etc/cron.hourly/opennebula 040e5d4621af9295e98545cb704d1800<br> /etc/init.d/opennebula b25fc97e9c370c8a4b4d80358b4dd797<br>Description: OpenNebula controller<br> OpenNebula is an open source virtual infrastructure engine that enables the<br>

 dynamic deployment and re-placement of virtual machines on a pool of physical<br> resources.<br> .<br> ONE (OpenNebula) extends the benefits of virtualization platforms from a<br> single physical resource to a pool of resources, decoupling the server not<br>

 only from the physical infrastructure but also from the physical location.<br> .<br> This package contains the cloud controller.<br>Homepage: <a href="http://opennebula.org/" target="_blank">http://opennebula.org/</a><br>
<br>----------------<br>
<br>Node:<br><br>OS: Ubuntu Karmic<br>Running opennebula-node 1.2-ubuntu6<br><br>dpkg-query -s opennebula-node<br>Package: opennebula-node<br>Status: install ok installed<br>Priority: extra<br>Section: utils<br>Installed-Size: 36<br>

Maintainer: Soren Hansen <<a href="mailto:soren@ubuntu.com" target="_blank">soren@ubuntu.com</a>><br>Architecture: all<br>Source: opennebula<br>Version: 1.2-0ubuntu6<br>Depends: adduser, libvirt-bin, kvm, opennebula-common, ruby<br>

Description: OpenNebula node<br> OpenNebula is an open source virtual infrastructure engine that enables the<br> dynamic deployment and re-placement of virtual machines on a pool of physical<br> resources.<br> .<br> ONE (OpenNebula) extends the benefits of virtualization platforms from a<br>

 single physical resource to a pool of resources, decoupling the server not<br> only from the physical infrastructure but also from the physical location.<br> .<br> This package prepares the machine for being a node in an Ubuntu OpenNebula<br>

 cloud.<br>Homepage: <a href="http://opennebula.org/" target="_blank">http://opennebula.org/</a><br>-----------------<br><br> <br><br><br>
</blockquote></div><br>