Hello,<div><br></div><div>I believe you are affected by the bug that incorrectly maps the context cdroms. I recommend you update to 3.8.1 where this bug is fixed.</div><div><br></div><div>More info on the problem: <a href="http://dev.opennebula.org/issues/1594">http://dev.opennebula.org/issues/1594</a></div>
<div>
<br></div><div>cheers,<br>Jaime</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 2, 2012 at 11:05 AM, Xasima <span dir="ltr"><<a href="mailto:xasima@gmail.com" target="_blank">xasima@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello. I have some p<span style="font-family:arial,sans-serif;font-size:12.727272033691406px">roblems with boot of cloud-based Ubuntu. </span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">There are two ubuntu 12.04 server (front-end and node) with openebula upgraded up to 3.8. </span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">I have successfully deployed opennebula-ttylinux with qemu / kvm for the first time to try. I want now to deploy already prepared EC2-compatible image of recent ubuntu. </span><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Actually the image and VM are deployed with no error (logs are ok), but VM doesn't consume CPU at all. I think it doesn't boot properly. </div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><div style="font-family:arial;font-size:small"><i>> sudo -u oneadmin onevm list</i></div>
<div style="font-family:arial;font-size:small"> ID USER GROUP NAME STAT UCPU UMEM HOST TIME</div><div style="font-family:arial;font-size:small"> 61 oneadmin oneadmin ttylinux runn 6 64M metrics-ba 0d 01h29</div>
<div style="font-family:arial;font-size:small"> 62 oneadmin oneadmin ubuntu-cloud64- runn <b>0 </b>512M<b> </b>metrics-ba 0d 00h10</div></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">The only thing that seems strange for me in logs is the drive mapping (available from libvirt-qemu log on the node). </div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><div style="font-family:arial;font-size:small"><i>> ssh node && cat /var/log/libvirt/qemu/one-62.log</i></div><div style="font-family:arial;font-size:small">
2012-11-02 09:16:56.096+0000: starting up</div><div style="font-family:arial;font-size:small">LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin /usr/bin/kvm -S -M pc-1.0 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name one-62 -uuid 2c15ca04-7d5f-ab4c-8bdb-43d2add1a2fe -nographic -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/one-62.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -kernel /vmlinuz -initrd /initrd.img <b>-drive file=/var/lib/one/datastores/0/62/disk.0,if=none,id=drive-ide0-0-0,format=qcow2</b> -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive <b>file=/var/lib/one/datastores/0/62/disk.0,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw</b> -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=19,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=02:00:0a:00:00:5d,bus=pci.0,addr=0x3 -usb -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4</div>
</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Could anyone help to determine what is the cause of the failure and how to resolve this?</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">-----------------</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
Here is the full information on my steps </div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><b>1. Image specific information</b></div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Download <a href="http://cloud-images.ubuntu.com/releases/precise/release/ubuntu-12.04-server-cloudimg-amd64-disk1.img" target="_blank">http://cloud-images.ubuntu.com/releases/precise/release/ubuntu-12.04-server-cloudimg-amd64-disk1.img</a> to front-end. Manifest and ovf are available <a href="http://cloud-images.ubuntu.com/releases/precise/release/" target="_blank">http://cloud-images.ubuntu.com/releases/precise/release/</a> as well to check what is installed on the image,</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><b>2. Image file format information</b></div><div><font face="arial, sans-serif">> <i>qemu-img info precise-server-cloudimg-amd64-disk1.img</i><br>
</font></div><div><font face="arial, sans-serif">image: precise-server-cloudimg-amd64-disk1.img</font></div><div><font face="arial, sans-serif">file format: qcow2</font></div><div><font face="arial, sans-serif">virtual size: 2.0G <a href="tel:%282147483648" value="+12147483648" target="_blank">(2147483648</a> bytes)</font></div>
<div><font face="arial, sans-serif">disk size: 222M</font></div><div><font face="arial, sans-serif">cluster_size: 65536</font></div><div><font face="arial, sans-serif"><br></font></div><div><b style="font-family:arial,sans-serif;font-size:12.727272033691406px">3. Content of the image</b><font face="arial, sans-serif"><br>
</font></div><div><font face="arial, sans-serif">Using <i>qemu-img convert (to raw) && </i></font><i><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">kpartx -a -v precise...img && </span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"> mount /dev/mapper/loop1p1 /mnt/</span></i></div>
<div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">I have ensured the content of the image</span></div><div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><i>> ls /mnt/</i></div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">bin dev home lib lost+found mnt proc run selinux sys usr <b>vmlinuz</b></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
boot etc <b>initrd.img</b> lib64 media opt root sbin srv tmp var</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<i>> cat /mnt/etc/fstab</i></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"> LABEL=cloudimg-rootfs / ext4 defaults 0 0</div></div><div><font face="arial, sans-serif"><br>
</font></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><i>> umount && kpartx -d</i></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div><font face="arial, sans-serif">4. <b>Opennebula Image template</b></font></div>
<div><font face="arial, sans-serif"><i> > cat 64base-image.one</i></font></div><div><font face="arial, sans-serif">NAME = ubuntu-cloud64-qcow2</font></div><div><font face="arial, sans-serif">PATH = "/tmp/ttylinux/precise-server-cloudimg-amd64-disk1.img"</font></div>
<div><font face="arial, sans-serif">TYPE = OS</font></div><div><font face="arial, sans-serif">FSTYPE= "qcow2"</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">The state of drive on opennebula</font></div>
<div><font face="arial, sans-serif"><div><i>> sudo -u oneadmin oneimage show 12</i></div><div> IMAGE 12 INFORMATION</div><div>ID : 12</div><div>NAME : ubuntu-cloud64-qcow2</div><div>USER : oneadmin</div>
<div>GROUP : oneadmin</div><div>DATASTORE : default</div><div>TYPE : OS</div><div>REGISTER TIME : 11/02 12:04:47</div><div>PERSISTENT : No</div><div>SOURCE : /var/lib/one/datastores/1/a4d9b6af3313f826d9113b4e3b0ac25b</div>
<div>PATH : /tmp/ttylinux/precise-server-cloudimg-amd64-disk1.img</div><div>SIZE : 223M</div><div>STATE : used</div><div>RUNNING_VMS : 1</div><div><br></div><div>PERMISSIONS</div><div>OWNER : um-</div>
<div>GROUP : ---</div><div>OTHER : ---</div><div><br></div><div>IMAGE TEMPLATE</div><div>DEV_PREFIX="hd"</div><div>FSTYPE="qcow2"</div></font></div><div><font face="arial, sans-serif"><br>
</font></div><div><font face="arial, sans-serif">5. <b>Opennebula VM template</b></font></div><div><font face="arial, sans-serif"><i>> cat 64base.one</i></font></div><div><font face="arial, sans-serif">NAME = ubuntu-cloud64-on-qcow2</font></div>
<div><font face="arial, sans-serif">CPU = 0.6</font></div><div><font face="arial, sans-serif">MEMORY = 512</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">OS = [ ARCH = x86_64,</font></div>
<div><font face="arial, sans-serif"> BOOT = hd,</font></div><div><font face="arial, sans-serif"> KERNEL = /vmlinuz,</font></div><div><font face="arial, sans-serif"> INITRD = /initrd.img ]</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">DISK = [ IMAGE_ID = 12,</font></div><div><font face="arial, sans-serif"> DRIVER = qcow2,</font></div><div><font face="arial, sans-serif"> TYPE = disk,</font></div>
<div><font face="arial, sans-serif"> READONLY = no ]</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">NIC = [ NETWORK_ID = 9 ]</font></div><div><font face="arial, sans-serif"><br>
</font></div><div><font face="arial, sans-serif">FEATURES = [ acpi = yes ]</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">REQUIREMENTS = "FALSE"</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">CONTEXT = [</font></div><div><font face="arial, sans-serif"> HOSTNAME = "$NAME",</font></div><div><font face="arial, sans-serif"> IP_PUBLIC = "$NIC[IP]",</font></div>
<div><font face="arial, sans-serif"> DNS = "$NETWORK[DNS, NETWORK_ID=9]",</font></div><div><font face="arial, sans-serif"> GATEWAY = "$NETWORK[GATEWAY, NETWORK_ID=9]",</font></div><div><font face="arial, sans-serif"> NETMASK = "$NETWORK[NETWORK_MASK, NETWORK_ID=9]",</font></div>
<div><font face="arial, sans-serif"> FILES = "/tmp/ttylinux/init.sh /tmp/ttylinux/id_rsa.pub",</font></div><div><font face="arial, sans-serif"> TARGET = "hdc",</font></div><div><font face="arial, sans-serif"> ROOT_PUBKEY = "id_rsa.pub"</font></div>
<div><font face="arial, sans-serif">]</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">6. <b>Log of VM deployment (on front-end) </b></font></div><div><font face="arial, sans-serif"><div>
<i>> sudo -u oneadmin onevm deploy 62 5</i></div><div><i>> tail -f /var/log/one/62.log</i></div><div>Fri Nov 2 12:11:01 2012 [DiM][I]: New VM state is ACTIVE.</div><div>Fri Nov 2 12:11:02 2012 [LCM][I]: New VM state is PROLOG.</div>
<div>Fri Nov 2 12:17:05 2012 [TM][I]: clone: Cloning metrics:/var/lib/one/datastores/1/a4d9b6af3313f826d9113b4e3b0ac25b in /var/lib/one/datastores/0/62/disk.0</div><div>Fri Nov 2 12:17:05 2012 [TM][I]: ExitCode: 0</div>
<div>Fri Nov 2 12:17:09 2012 [TM][I]: context: Generating context block device at metrics-backend:/var/lib/one/datastores/0/62/disk.1</div><div>Fri Nov 2 12:17:09 2012 [TM][I]: ExitCode: 0</div><div>Fri Nov 2 12:17:09 2012 [LCM][I]: New VM state is BOOT</div>
<div>Fri Nov 2 12:17:09 2012 [VMM][I]: Generating deployment file: /var/lib/one/62/deployment.0</div><div>Fri Nov 2 12:17:11 2012 [VMM][I]: ExitCode: 0</div><div>Fri Nov 2 12:17:11 2012 [VMM][I]: Successfully execute network driver operation: pre.</div>
<div>Fri Nov 2 12:17:13 2012 [VMM][I]: ExitCode: 0</div><div>Fri Nov 2 12:17:13 2012 [VMM][I]: Successfully execute virtualization driver operation: deploy.</div><div>Fri Nov 2 12:17:13 2012 [VMM][I]: ExitCode: 0</div>
<div>Fri Nov 2 12:17:13 2012 [VMM][I]: Successfully execute network driver operation: post.</div><div>Fri Nov 2 12:17:13 2012 [LCM][I]: New VM state is RUNNING</div><div><br></div></font></div><div><i>> ssh node && cat /var/log/libvirt/qemu/one-62.log</i></div>
<div>2012-11-02 09:16:56.096+0000: starting up</div><div>LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin /usr/bin/kvm -S -M pc-1.0 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name one-62 -uuid 2c15ca04-7d5f-ab4c-8bdb-43d2add1a2fe -nographic -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/one-62.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -kernel /vmlinuz -initrd /initrd.img -drive file=/var/lib/one/datastores/0/62/disk.0,if=none,id=drive-ide0-0-0,format=qcow2 -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive file=/var/lib/one/datastores/0/62/disk.0,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=19,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=02:00:0a:00:00:5d,bus=pci.0,addr=0x3 -usb -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4</div>
<div>~</div><div><br></div><div>7. <b>Status of the machine on opennebula</b></div><div><div><i>> sudo -u oneadmin onevm list</i></div><div> ID USER GROUP NAME STAT UCPU UMEM HOST TIME</div>
<div> 61 oneadmin oneadmin ttylinux runn 6 64M metrics-ba 0d 01h29</div><div> 62 oneadmin oneadmin ubuntu-cloud64- runn <b>0 </b>512M<b> </b>metrics-ba 0d 00h10</div></div><div><br></div><div>
<div><i>> sudo -u oneadmin onevm show 62</i></div><div>VIRTUAL MACHINE 62 INFORMATION</div><div>ID : 62</div><div>NAME : ubuntu-cloud64-on-qcow2</div><div>USER : oneadmin</div>
<div>GROUP : oneadmin</div><div>STATE : ACTIVE</div><div>LCM_STATE : RUNNING</div><div>RESCHED : No</div><div>HOST : metrics-backend</div><div>START TIME : 11/02 12:08:37</div>
<div>END TIME : -</div><div>DEPLOY ID : one-62</div><div><br></div><div>VIRTUAL MACHINE MONITORING</div><div>USED CPU : 0</div><div>NET_RX : 1M</div><div>USED MEMORY : 512M</div>
<div>NET_TX : 0K</div><div><br></div><div>PERMISSIONS</div><div>OWNER : um-</div><div>GROUP : ---</div><div>OTHER : ---</div><div><br></div><div>VIRTUAL MACHINE TEMPLATE</div>
<div>CONTEXT=[</div><div> DISK_ID="1",</div><div> DNS="10.0.0.20",</div><div> FILES="/tmp/ttylinux/init.sh /tmp/ttylinux/id_rsa.pub",</div><div> GATEWAY="10.0.0.1",</div><div> HOSTNAME="ubuntu-cloud64-on-qcow2",</div>
<div> IP_PUBLIC="10.*.*.*" ,</div><div> NETMASK="255.128.0.0",</div><div> ROOT_PUBKEY="id_rsa.pub",</div><div> TARGET="hdc" ]</div><div>CPU="0.6"</div><div>DISK=[</div>
<div> CLONE="YES",</div><div> DATASTORE="default",</div><div> DATASTORE_ID="1",</div><div> DEV_PREFIX="hd",</div><div> DISK_ID="0",</div><div> DRIVER="qcow2",</div>
<div> IMAGE="ubuntu-cloud64-qcow2",</div><div> IMAGE_ID="12",</div><div> READONLY="NO",</div><div> SAVE="NO",</div><div> SOURCE="/var/lib/one/datastores/1/a4d9b6af3313f826d9113b4e3b0ac25b",</div>
<div> TARGET="hda",</div><div> TM_MAD="ssh",</div><div> TYPE="FILE" ]</div><div>FEATURES=[</div><div> ACPI="yes" ]</div><div>MEMORY="512"</div><div>NAME="ubuntu-cloud64-on-qcow2"</div>
<div>NIC=[</div><div> BRIDGE="br0",</div><div> IP="10.*.*.*",</div><div> MAC="02:00:0a:00:00:5d",</div><div> NETWORK="Server 10.0.0.x network with br0",</div><div> NETWORK_ID="9",</div>
<div> VLAN="NO" ]</div><div>OS=[</div><div> ARCH="x86_64",</div><div> BOOT="hd",</div><div> INITRD="/initrd.img",</div><div> KERNEL="/vmlinuz" ]</div><div>REQUIREMENTS="FALSE"</div>
<div>VMID="62"</div><div><br></div><div>VIRTUAL MACHINE HISTORY</div><div> SEQ HOST REASON START TIME PROLOG_TIME</div><div> 0 metrics-backend none 11/02 12:11:01 0d 00h28m06s 0d 00h06m08s</div>
</div><div><br></div><div><br></div><div>Thank you. </div><span class="HOEnZb"><font color="#888888"><div>-- <br></div>Best regards,<br> ~ Xasima ~<br>
</font></span><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>