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">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">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/">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">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/">http://opennebula.org/</a><br>-----------------<br><br> <br><br><br>