[one-users] Fwd: Re: error: Failed to create domain from /var/lib/one//datastores/0/1/deployment.0 & error: unknown OS type hvm

johannes.thome at electrica.cujae.edu.cu johannes.thome at electrica.cujae.edu.cu
Fri Feb 22 07:28:54 PST 2013



-------- Originalnachricht --------
Betreff: Re: [one-users] error: Failed to create domain from 
/var/lib/one//datastores/0/1/deployment.0 & error: unknown OS type hvm
Datum: 2013-02-22 10:23
Absender: johannes.thome at electrica.cujae.edu.cu
Empfänger: Jaime Melis <jmelis at opennebula.org>

Hey Jaime

okay i use a laptop with:
Intel® Virtualization Technology (VT-x) 
(http://ark.intel.com/products/53469)
Intel® Virtualization Technology (VT-x) allows one hardware platform to 
function as multiple “virtual”
platforms. It offers improved manageability by limiting downtime and 
maintaining productivity by isolating
computing activities into separate partitions.

i use this laptop as the host i installed:

apt-get install virt-manager kvm libvirt-bin qemu

and built with the virt-manager a virutal machine and on this i 
installed opennebula and sunstone

my output on that virtual machine as oneadmin is:


oneadmin at kvmserver-vm:~$ grep -oE 'svm|vmx' /proc/cpuinfo
vmx
vmx

------------------------------------------------------------------------

oneadmin at kvmserver-vm:~$ virsh -c qemu:///system capabilities
<capabilities>

   <host>
     <uuid>12862e4e-1848-2d83-c219-94c018f82ce4</uuid>
     <cpu>
       <arch>x86_64</arch>
       <model>qemu32</model>
       <vendor>Intel</vendor>
       <topology sockets='2' cores='1' threads='1'/>
       <feature name='lahf_lm'/>
       <feature name='lm'/>
       <feature name='nx'/>
       <feature name='syscall'/>
       <feature name='hypervisor'/>
       <feature name='popcnt'/>
       <feature name='cx16'/>
       <feature name='vmx'/>
       <feature name='clflush'/>
       <feature name='pse36'/>
       <feature name='mca'/>
       <feature name='mtrr'/>
     </cpu>
     <power_management>
       <suspend_mem/>
       <suspend_disk/>
       <suspend_hybrid/>
     </power_management>
     <migration_features>
       <live/>
       <uri_transports>
         <uri_transport>tcp</uri_transport>
       </uri_transports>
     </migration_features>
     <topology>
       <cells num='1'>
         <cell id='0'>
           <cpus num='2'>
             <cpu id='0'/>
             <cpu id='1'/>
           </cpus>
         </cell>
       </cells>
     </topology>
     <secmodel>
       <model>apparmor</model>
       <doi>0</doi>
     </secmodel>
   </host>

</capabilities>

okay it seems to be a miss configuration do you know what i have to 
change...

i made this following changes:

for ssh:

Configure not to ask before adding hosts to known_hosts file.
Look into ~/.ssh/config, see man ssh_config for a complete reference.
# nano /etc/ssh/ssh_config
StrictHostKeyChecking no


and

Edit file /etc/libvirt/libvirtd.conf as make following changes:
unix_sock_group = "oneadmin" [if you have given a different name for 
the group like "cloud" , provide that]
change the unix_sock_rw_perms = "0777"
uncomment:
unix_sock_dir = "/var/run/libvirt"


Edit file /etc/libvirt/qemu.conf and make following changes:
vnc_listen = "0.0.0.0"
user = "oneadmin"
group = "cloud"
dynamic_ownership = 1

and i restarted libvirt-bin as root and opennebula and sunstone as 
oneadmin

thanks

Johannes


Am 2013-02-22 14:07, schrieb Jaime Melis:
> Hi Johannes,
>
> it seems your physical node doesn't support virtualization 
> extensions.
>
> What does the following command report?
> $ grep -oE 'svm|vmx' /proc/cpuinfo
>
> If it's not returning any output then you can't use KVM with that
> server. There are some servers where virtualization extensions can be
> enabled and disabled in the BIOS, so you should also check that. Keep
> in mind that even if you can't use KVM in the end, you will be able 
> to
> use Xen.
>
> If it's returning output, then it's a misconfiguration. In this case,
> what does "virsh -c qemu:///system capabilities" return?
>
> cheers,
>  Jaime
>
> On Fri, Feb 22, 2013 at 4:01 PM,
> <johannes.thome at electrica.cujae.edu.cu [5]> wrote:
>
>> Hello, i finally got a monitored host and i could create images and
>> the ssh seems to be working because i can clone the images but now i
>> have no idea how to solve this two errors
>>
>> somebody can help me with that?
>>
>> greetings
>>
>> Johannes
>>
>> my log file:
>>
>> Fri Feb 22 13:25:41 2013 [DiM][I]: New VM state is ACTIVE.
>> Fri Feb 22 13:25:42 2013 [LCM][I]: New VM state is PROLOG.
>> Fri Feb 22 13:25:42 2013 [VM][I]: Virtual Machine has no context
>> Fri Feb 22 13:25:43 2013 [TM][I]: clone: Cloning
>> ../../1/2ebd0d273af8c9946401952c5a3c3d85 in
>> kvmhost:/var/lib/one//datastores/0/1/disk.0
>> Fri Feb 22 13:25:43 2013 [TM][I]: ExitCode: 0
>> Fri Feb 22 13:26:13 2013 [TM][I]: clone: Cloning
>> ../../1/6c35700104934ec0b5cdaef47be00a14 in
>> kvmhost:/var/lib/one//datastores/0/1/disk.1
>> Fri Feb 22 13:26:13 2013 [TM][I]: ExitCode: 0
>> Fri Feb 22 13:26:13 2013 [LCM][I]: New VM state is BOOT
>> Fri Feb 22 13:26:13 2013 [VMM][I]: Generating deployment file:
>> /var/lib/one/1/deployment.0
>> Fri Feb 22 13:26:14 2013 [VMM][I]: ExitCode: 0
>> Fri Feb 22 13:26:14 2013 [VMM][I]: Successfully execute network
>> driver operation: pre.
>> Fri Feb 22 13:26:14 2013 [VMM][I]: Command execution fail: cat <<
>> EOT | /var/tmp/one/vmm/kvm/deploy
>> /var/lib/one//datastores/0/1/deployment.0 kvmhost 1 kvmhost
>> Fri Feb 22 13:26:14 2013 [VMM][I]: error: Failed to create domain
>> from /var/lib/one//datastores/0/1/deployment.0
>> Fri Feb 22 13:26:14 2013 [VMM][I]: error: unknown OS type hvm
>> Fri Feb 22 13:26:14 2013 [VMM][E]: Could not create domain from
>> /var/lib/one//datastores/0/1/deployment.0
>> Fri Feb 22 13:26:14 2013 [VMM][I]: ExitCode: 255
>> Fri Feb 22 13:26:14 2013 [VMM][I]: Failed to execute virtualization
>> driver operation: deploy.
>> Fri Feb 22 13:26:14 2013 [VMM][E]: Error deploying virtual machine:
>> Could not create domain from
>> /var/lib/one//datastores/0/1/deployment.0
>> Fri Feb 22 13:26:15 2013 [DiM][I]: New VM state is FAILED
>>
>> 48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de
>> diciembre de 1964 | http://cujae.edu.cu [1]
>>
>> Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
>> [2]
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org [3]
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org [4]
>
> --
> Jaime Melis
> Project Engineer
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org [6] | jmelis at opennebula.org [7]
>
> Links:
> ------
> [1] http://cujae.edu.cu
> [2] http://www.ecured.cu
> [3] mailto:Users at lists.opennebula.org
> [4] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> [5] mailto:johannes.thome at electrica.cujae.edu.cu
> [6] http://www.OpenNebula.org
> [7] mailto:jmelis at opennebula.org



48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de diciembre de 1964 | http://cujae.edu.cu

Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu


More information about the Users mailing list