[virt-tools-list] problems creating VMs from remote

Michael Menge michael.menge at zdv.uni-tuebingen.de
Fri Jan 27 09:16:04 UTC 2012


Quoting "Richard W.M. Jones" <rjones at redhat.com>:

> On Wed, Jan 25, 2012 at 11:05:09AM +0100, Michael Menge wrote:
>> Dear list,
>>
>> I try to manage my kvm environment from one virtual server with
>> virt-manager. Virt-manager accesses the kvm-hypervisors with ssh.
>>
>> I discovered one problem creating new virtual servers:
>>
>> -------
>> A hypervisor is not running.  For kvm, load the kvm kernel modules.
>> If you want to run xen, reboot and load the xen kernel.
>>
>>
>> Traceback (most recent call last):
>>   File "/usr/share/virt-manager/virtManager/engine.py", line 661, in
>> show_create
>>     create = vmmCreate(virtman=True,key=0)
>>   File
>> "/usr/lib64/python2.6/site-packages/vminstall/gtk/interface.py",
>> line 120, in __init__
>>     raise HypervisorError(HypervisorError.E_NO_HYPERVISOR)
>> HypervisorError: A hypervisor is not running.  For kvm, load the kvm
>> kernel modules.  If you want to run xen, reboot and load the xen
>> kernel.
>> -------
>>
>> The error message is correct, as the management-server is a virtual server
>> and there is no hypervisor running. But as i wanted to create the vm
>> on the remote server. The vminstall script should check the remote server
>> and not the local server virt-manager is running on.
>>
>> Is this a known bug? Is ist fied in recent versions?
>>
>> I am using SLES 11 which uses old versions, libvirt-python 0.7.6-1.27.5,
>> virt-manager 0.8.4-1.7.11, virt-utils 1.1.3-1.3.3, libvirt 0.7.6-1.27.5,
>> virt-viewer 0.2.0-1.5.65, vm-install 0.4.32-0.3.6
>
> It's quite an old version of libvirt, but I don't think that matters.
> Is virt-manager using a remote URI?

All other actions (starting, stopping, live migrate and viewing works fine
form the management-server.

>  Try doing:
>
>   virsh -c <remote-URI> capabilities
>

/root# virsh -c "qemu+ssh://root@hpb020101/system" capabilities
<capabilities>

   <host>
     <cpu>
       <arch>x86_64</arch>
       <model>core2duo</model>
       <topology sockets='4' cores='4' threads='1'/>
       <feature name='lahf_lm'/>
       <feature name='rdtscp'/>
       <feature name='pdpe1gb'/>
       <feature name='popcnt'/>
       <feature name='dca'/>
       <feature name='xtpr'/>
       <feature name='cx16'/>
       <feature name='tm2'/>
       <feature name='est'/>
       <feature name='vmx'/>
       <feature name='ds_cpl'/>
       <feature name='pbe'/>
       <feature name='tm'/>
       <feature name='ht'/>
       <feature name='ss'/>
       <feature name='acpi'/>
       <feature name='ds'/>
     </cpu>
     <migration_features>
       <live/>
       <uri_transports>
         <uri_transport>tcp</uri_transport>
       </uri_transports>
     </migration_features>
     <topology>
       <cells num='2'>
         <cell id='0'>
           <cpus num='8'>
             <cpu id='1'/>
             <cpu id='2'/>
             <cpu id='5'/>
             <cpu id='7'/>
             <cpu id='9'/>
             <cpu id='10'/>
             <cpu id='13'/>
             <cpu id='15'/>
           </cpus>
         </cell>
         <cell id='1'>
           <cpus num='8'>
             <cpu id='0'/>
             <cpu id='3'/>
             <cpu id='4'/>
             <cpu id='6'/>
             <cpu id='8'/>
             <cpu id='11'/>
             <cpu id='12'/>
             <cpu id='14'/>
           </cpus>
         </cell>
       </cells>
     </topology>
   </host>

   <guest>
     <os_type>hvm</os_type>
     <arch name='i686'>
       <wordsize>32</wordsize>
       <emulator>/usr/bin/qemu-kvm</emulator>
       <machine>pc-0.12</machine>
       <machine canonical='pc-0.12'>pc</machine>
       <machine>pc-0.11</machine>
       <machine>pc-0.10</machine>
       <machine>isapc</machine>
       <machine>mac</machine>
       <domain type='qemu'>
       </domain>
       <domain type='kvm'>
         <emulator>/usr/bin/qemu-kvm</emulator>
       </domain>
     </arch>
     <features>
       <cpuselection/>
       <pae/>
       <nonpae/>
       <acpi default='on' toggle='yes'/>
       <apic default='on' toggle='no'/>
     </features>
   </guest>

   <guest>
     <os_type>hvm</os_type>
     <arch name='x86_64'>
       <wordsize>64</wordsize>
       <emulator>/usr/bin/qemu-kvm</emulator>
       <machine>pc-0.12</machine>
       <machine canonical='pc-0.12'>pc</machine>
       <machine>pc-0.11</machine>
       <machine>pc-0.10</machine>
       <machine>isapc</machine>
       <machine>mac</machine>
       <domain type='qemu'>
       </domain>
       <domain type='kvm'>
         <emulator>/usr/bin/qemu-kvm</emulator>
       </domain>
     </arch>
     <features>
       <cpuselection/>
       <acpi default='on' toggle='yes'/>
       <apic default='on' toggle='no'/>
     </features>
   </guest>

</capabilities>




    Michael Menge




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

M.Menge                                Tel.: (49) 7071/29-70316
Universität Tübingen                   Fax.: (49) 7071/29-5912
Zentrum für Datenverarbeitung          mail:  
michael.menge at zdv.uni-tuebingen.de
Wächterstraße 76
72074 Tübingen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5267 bytes
Desc: S/MIME Signatur
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20120127/dadeede7/attachment.p7s>


More information about the virt-tools-list mailing list