Hi Hector,
I didn't use "advanced mode" but just "Wizard KVM", snapshot attached
in the mail. Please correct me if my operation is wrong.
Following are "onevm" command and no disk argument included.
[root@cloudmanager images]# onevm show 16
VIRTUAL MACHINE 16 INFORMATION
ID : 16
NAME : test-OMCP
STATE : ACTIVE
LCM_STATE : RUNNING
START TIME : 03/10 15:56:14
END TIME : -
DEPLOY ID: : one-16
VIRTUAL MACHINE MONITORING
USED MEMORY : 524288
USED CPU : 12
NET_TX : 0
NET_RX : 0
VIRTUAL MACHINE TEMPLATE
ARCH=i686
BOOT=hd
CPU=1
GRAPHICS=[
LISTEN=172.24.178.38,
PORT=5923,
TYPE=vnc ]
MEMORY=512
NAME=test-OMCP
RAW=[
TYPE=kvm ]
VCPU=1
VMID=16
=====================================
[root@cloudmanager one]# cat 16.log
Thu Mar 10 15:56:44 2011 [DiM][I]: New VM state is ACTIVE.
Thu Mar 10 15:56:44 2011 [LCM][I]: New VM state is PROLOG.
Thu Mar 10 15:56:44 2011 [VM][I]: Virtual Machine has no context
Thu Mar 10 15:56:44 2011 [LCM][I]: New VM state is BOOT
Thu Mar 10 15:56:44 2011 [VMM][I]: Generating deployment file:
/var/lib/one/16/deployment.0
Thu Mar 10 15:56:44 2011 [LCM][I]: New VM state is RUNNING
Thu Mar 10 15:57:05 2011 [VMM][D]: Monitor Information:
CPU : 14
Memory: 524288
Net_TX: -1
Net_RX: -1
===============================================
[root@host1 ~]# cat /var/lib/one/16/images/deployment.0
<domain type='kvm'>
<name>one-16</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='5923'/>
</devices>
<features>
<acpi/>
</features>
</domain>
-----Original Message-----
From: Héctor Sanjuán [mailto:[email protected]]
Sent: Wednesday, March 09, 2011 5:19 PM
To: GONG YONGJIE A
Cc: [email protected]
Subject: Re: [one-users] issue: sunstone can't attach OS disk
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@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@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@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@cloudmanager images]#
>
> [root@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@cloudmanager images]#
>
> [root@cloudmanager images]# rpm -qa | grep -i openNe
>
> opennebula-2.1.80-1
>
> [root@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
> [email protected]
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
--
Héctor Sanjuan
OpenNebula.org
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org