[one-users] issue: sunstone can't attach OS disk

GONG YONGJIE A Yongjie.a.Gong at alcatel-sbell.com.cn
Tue Mar 8 19:27:25 PST 2011


Hi,
	
	I encountered one problem during VM creation tests.

Problem: VM machine created by "sunstone" with registered OS image is
running without disk image.
Workaround: use "onevm create" insteadly.

>From deployment file, no disk argument existed.

=============== VM created by sunstone web interface ==================
[root at host1 bin]# cat /var/lib/one/6/images/deployment.0
<domain type='kvm'>
        <name>one-6</name>
        <vcpu>1</vcpu>
        <memory>524288</memory>
        <os>
                <type arch='i686'>hvm</type>
                <boot dev='hd'/>
        </os>
        <devices>
                <emulator>/usr/libexec/qemu-kvm</emulator>
                <graphics type='vnc' listen='172.24.178.38'
port='5905'/>
        </devices>
        <features>
                <acpi/>
        </features>

</domain>


=============== VM created by onevm command ==================
[root at host1 bin]# cat /var/lib/one/7/images/deployment.0
<domain type='kvm'>
        <name>one-7</name>
        <memory>524288</memory>
        <os>
                <type arch='i686'>hvm</type>
                <boot dev='hd'/>
        </os>
        <devices>
                <emulator>/usr/libexec/qemu-kvm</emulator>
                <disk type='file' device='disk'>
                        <source file='/var/lib/one//7/images/disk.0'/>
                        <target dev='hda'/>
                        <driver name='qemu' type='raw'/>
                </disk>
        </devices>
        <features>
                <acpi/>
        </features>
</domain>

	Some info:
[root at cloudmanager images]# onevm list
   ID     USER     NAME STAT CPU     MEM        HOSTNAME        TIME
    6     root   test-5 runn  12    512M   172.24.178.38 00 00:11:12
    7     root   test-6 pend   0      0K                 00 00:00:03
[root at cloudmanager images]# 
[root at cloudmanager images]# oneimage list
  ID     USER                 NAME TYPE              REGTIME PUB PER
STAT  #VMS
   2     root test_image_register_   OS   Mar 09, 2011 02:38 Yes  No
used     1
[root at cloudmanager images]# 
[root at cloudmanager images]# rpm -qa | grep -i openNe
opennebula-2.1.80-1
[root at cloudmanager images]# cat vmtest.conf 
NAME = test-6
MEMORY = 512
CPU = 1

EMULATOR = /usr/libexec/qemu-kvm

ARCH = i686

BOOT = hd

DISK = [ IMAGE= "test_image_register_ttylinux" ]

		
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110309/4a1a81c6/attachment.htm>


More information about the Users mailing list