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

Héctor Sanjuán hsanjuan at opennebula.org
Wed Mar 9 01:18:47 PST 2011


Hi,

I understand that you created the first VM pasting the template in the
"advanced mode" tab for VM creation in sunstone. (or did you use the kvm
wizard?)

In order to look better into it, I would need the Opennebula templates
showing up on both machines after you run:

onevm show VMID

or from the VM information panel in Sunstone. I could also be helpful if
you attach the full VM logs (they are as well on the information panel
in Sunstone).

Hector



El 09/03/11 04:27, GONG YONGJIE A escribió:
> Hi,
> 
>        
> 
>         I encountered one problem during VM creation tests.
> 
> Problem: VM machine created by“sunstone”with registeredOS imageis
> running without disk image.
> 
> Workaround: use“onevm create”insteadly.
> 
> From deployment file,no disk argument existed.
> 
> =============== VM created by sunstoneweb 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]# onevmlist
> 
>    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" ]
> 
>                
> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


-- 
Héctor Sanjuan
OpenNebula.org



More information about the Users mailing list