[one-users] ubuntu-cloud boot (?) problems
Xasima
xasima at gmail.com
Fri Nov 2 03:05:18 PDT 2012
Hello. I have some problems with boot of cloud-based Ubuntu. There are two
ubuntu 12.04 server (front-end and node) with openebula upgraded up to 3.8. 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.
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.
*> sudo -u oneadmin onevm list*
ID USER GROUP NAME STAT UCPU UMEM HOST
TIME
61 oneadmin oneadmin ttylinux runn 6 64M
metrics-ba 0d 01h29
62 oneadmin oneadmin ubuntu-cloud64- runn *0 *512M*
*metrics-ba
0d 00h10
The only thing that seems strange for me in logs is the drive mapping
(available from libvirt-qemu log on the node).
*> ssh node && cat /var/log/libvirt/qemu/one-62.log*
2012-11-02 09:16:56.096+0000: starting up
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
Could anyone help to determine what is the cause of the failure and how to
resolve this?
-----------------
Here is the full information on my steps
*1. Image specific information*
Download
http://cloud-images.ubuntu.com/releases/precise/release/ubuntu-12.04-server-cloudimg-amd64-disk1.img
to
front-end. Manifest and ovf are available
http://cloud-images.ubuntu.com/releases/precise/release/ as well to check
what is installed on the image,
*2. Image file format information*
> *qemu-img info precise-server-cloudimg-amd64-disk1.img*
image: precise-server-cloudimg-amd64-disk1.img
file format: qcow2
virtual size: 2.0G (2147483648 bytes)
disk size: 222M
cluster_size: 65536
*3. Content of the image*
Using *qemu-img convert (to raw) && **kpartx -a -v precise...img && mount
/dev/mapper/loop1p1 /mnt/*
I have ensured the content of the image
*> ls /mnt/*
bin dev home lib lost+found mnt proc run selinux sys
usr *vmlinuz*
boot etc *initrd.img* lib64 media opt root sbin srv tmp
var
*> cat /mnt/etc/fstab*
LABEL=cloudimg-rootfs / ext4 defaults 0 0
*> umount && kpartx -d*
4. *Opennebula Image template*
* > cat 64base-image.one*
NAME = ubuntu-cloud64-qcow2
PATH = "/tmp/ttylinux/precise-server-cloudimg-amd64-disk1.img"
TYPE = OS
FSTYPE= "qcow2"
The state of drive on opennebula
*> sudo -u oneadmin oneimage show 12*
IMAGE 12 INFORMATION
ID : 12
NAME : ubuntu-cloud64-qcow2
USER : oneadmin
GROUP : oneadmin
DATASTORE : default
TYPE : OS
REGISTER TIME : 11/02 12:04:47
PERSISTENT : No
SOURCE : /var/lib/one/datastores/1/a4d9b6af3313f826d9113b4e3b0ac25b
PATH : /tmp/ttylinux/precise-server-cloudimg-amd64-disk1.img
SIZE : 223M
STATE : used
RUNNING_VMS : 1
PERMISSIONS
OWNER : um-
GROUP : ---
OTHER : ---
IMAGE TEMPLATE
DEV_PREFIX="hd"
FSTYPE="qcow2"
5. *Opennebula VM template*
*> cat 64base.one*
NAME = ubuntu-cloud64-on-qcow2
CPU = 0.6
MEMORY = 512
OS = [ ARCH = x86_64,
BOOT = hd,
KERNEL = /vmlinuz,
INITRD = /initrd.img ]
DISK = [ IMAGE_ID = 12,
DRIVER = qcow2,
TYPE = disk,
READONLY = no ]
NIC = [ NETWORK_ID = 9 ]
FEATURES = [ acpi = yes ]
REQUIREMENTS = "FALSE"
CONTEXT = [
HOSTNAME = "$NAME",
IP_PUBLIC = "$NIC[IP]",
DNS = "$NETWORK[DNS, NETWORK_ID=9]",
GATEWAY = "$NETWORK[GATEWAY, NETWORK_ID=9]",
NETMASK = "$NETWORK[NETWORK_MASK, NETWORK_ID=9]",
FILES = "/tmp/ttylinux/init.sh /tmp/ttylinux/id_rsa.pub",
TARGET = "hdc",
ROOT_PUBKEY = "id_rsa.pub"
]
6. *Log of VM deployment (on front-end) *
*> sudo -u oneadmin onevm deploy 62 5*
*> tail -f /var/log/one/62.log*
Fri Nov 2 12:11:01 2012 [DiM][I]: New VM state is ACTIVE.
Fri Nov 2 12:11:02 2012 [LCM][I]: New VM state is PROLOG.
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
Fri Nov 2 12:17:05 2012 [TM][I]: ExitCode: 0
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
Fri Nov 2 12:17:09 2012 [TM][I]: ExitCode: 0
Fri Nov 2 12:17:09 2012 [LCM][I]: New VM state is BOOT
Fri Nov 2 12:17:09 2012 [VMM][I]: Generating deployment file:
/var/lib/one/62/deployment.0
Fri Nov 2 12:17:11 2012 [VMM][I]: ExitCode: 0
Fri Nov 2 12:17:11 2012 [VMM][I]: Successfully execute network driver
operation: pre.
Fri Nov 2 12:17:13 2012 [VMM][I]: ExitCode: 0
Fri Nov 2 12:17:13 2012 [VMM][I]: Successfully execute virtualization
driver operation: deploy.
Fri Nov 2 12:17:13 2012 [VMM][I]: ExitCode: 0
Fri Nov 2 12:17:13 2012 [VMM][I]: Successfully execute network driver
operation: post.
Fri Nov 2 12:17:13 2012 [LCM][I]: New VM state is RUNNING
*> ssh node && cat /var/log/libvirt/qemu/one-62.log*
2012-11-02 09:16:56.096+0000: starting up
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
~
7. *Status of the machine on opennebula*
*> sudo -u oneadmin onevm list*
ID USER GROUP NAME STAT UCPU UMEM HOST
TIME
61 oneadmin oneadmin ttylinux runn 6 64M metrics-ba 0d
01h29
62 oneadmin oneadmin ubuntu-cloud64- runn *0 *512M* *metrics-ba
0d 00h10
*> sudo -u oneadmin onevm show 62*
VIRTUAL MACHINE 62 INFORMATION
ID : 62
NAME : ubuntu-cloud64-on-qcow2
USER : oneadmin
GROUP : oneadmin
STATE : ACTIVE
LCM_STATE : RUNNING
RESCHED : No
HOST : metrics-backend
START TIME : 11/02 12:08:37
END TIME : -
DEPLOY ID : one-62
VIRTUAL MACHINE MONITORING
USED CPU : 0
NET_RX : 1M
USED MEMORY : 512M
NET_TX : 0K
PERMISSIONS
OWNER : um-
GROUP : ---
OTHER : ---
VIRTUAL MACHINE TEMPLATE
CONTEXT=[
DISK_ID="1",
DNS="10.0.0.20",
FILES="/tmp/ttylinux/init.sh /tmp/ttylinux/id_rsa.pub",
GATEWAY="10.0.0.1",
HOSTNAME="ubuntu-cloud64-on-qcow2",
IP_PUBLIC="10.*.*.*" ,
NETMASK="255.128.0.0",
ROOT_PUBKEY="id_rsa.pub",
TARGET="hdc" ]
CPU="0.6"
DISK=[
CLONE="YES",
DATASTORE="default",
DATASTORE_ID="1",
DEV_PREFIX="hd",
DISK_ID="0",
DRIVER="qcow2",
IMAGE="ubuntu-cloud64-qcow2",
IMAGE_ID="12",
READONLY="NO",
SAVE="NO",
SOURCE="/var/lib/one/datastores/1/a4d9b6af3313f826d9113b4e3b0ac25b",
TARGET="hda",
TM_MAD="ssh",
TYPE="FILE" ]
FEATURES=[
ACPI="yes" ]
MEMORY="512"
NAME="ubuntu-cloud64-on-qcow2"
NIC=[
BRIDGE="br0",
IP="10.*.*.*",
MAC="02:00:0a:00:00:5d",
NETWORK="Server 10.0.0.x network with br0",
NETWORK_ID="9",
VLAN="NO" ]
OS=[
ARCH="x86_64",
BOOT="hd",
INITRD="/initrd.img",
KERNEL="/vmlinuz" ]
REQUIREMENTS="FALSE"
VMID="62"
VIRTUAL MACHINE HISTORY
SEQ HOST REASON START TIME PROLOG_TIME
0 metrics-backend none 11/02 12:11:01 0d 00h28m06s 0d 00h06m08s
Thank you.
--
Best regards,
~ Xasima ~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121102/03d061c5/attachment-0001.htm>
More information about the Users
mailing list