Est-ce-que tu peux donner la procédure que tu suis, les paramètres que tu rentres ? Il doit y avoir un truc qu'on ne fait pas correctement par rapport à toi.proxy wrote:Je viens de récréer une nouvelle VM Centos sous KVM : aucun pb
Utilisation de KVM
J'utilise virt-manager de façon classique. Voici mon fichier XML :
<domain type='kvm'>
<name>CENTOS</name>
<uuid>28e36c27-035b-0147-7caa-a76383718008</uuid>
<memory>1048576</memory>
<currentMemory>1048576</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine='fedora-13'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/virt/vm/centos54.img'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' unit='0'/>
</disk>
<disk type='block' device='cdrom'>
<driver name='qemu'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='1' unit='0'/>
</disk>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<interface type='network'>
<mac address='52:54:00:95:2f:14'/>
<source network='default'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' keymap='fr'/>
<sound model='es1370'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</sound>
<video>
<model type='cirrus' vram='9216' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
</devices>
</domain>
rpm -qa | egrep "(virt|kvm|qemu)"
qemu-system-m68k-0.12.3-8.fc13.x86_64
qemu-img-0.12.3-8.fc13.x86_64
libvirt-0.7.7-4.fc13.x86_64
qemu-system-mips-0.12.3-8.fc13.x86_64
qemu-common-0.12.3-8.fc13.x86_64
kmod-kqemu-2.6.33.4-95.fc13.x86_64-1.4.0-0.2.pre1.fc13.22.x86_64
etherboot-zroms-kvm-5.4.4-18.fc13.noarch
kqemu-1.4.0-0.4.pre1.fc11.noarch
kmod-kqemu-1.4.0-0.2.pre1.fc13.23.x86_64
qemu-user-0.12.3-8.fc13.x86_64
python-virtinst-0.500.2-3.fc13.noarch
libvirt-client-0.7.7-4.fc13.x86_64
qemu-system-cris-0.12.3-8.fc13.x86_64
libvirt-python-0.7.7-4.fc13.x86_64
kmod-kqemu-2.6.33.5-112.fc13.x86_64-1.4.0-0.2.pre1.fc13.23.x86_64
virtuoso-opensource-6.1.1-1.fc13.x86_64
virt-manager-0.8.3-3.fc13.noarch
qemu-system-ppc-0.12.3-8.fc13.x86_64
qemu-system-x86-0.12.3-8.fc13.x86_64
qemu-system-arm-0.12.3-8.fc13.x86_64
virt-top-1.0.4-3.fc13.x86_64
qemu-0.12.3-8.fc13.x86_64
virt-viewer-0.2.1-1.fc13.x86_64
gpxe-roms-qemu-1.0.0-1.fc13.noarch
qemu-kvm-0.12.3-8.fc13.x86_64
qemu-system-sh4-0.12.3-8.fc13.x86_64
qemu-system-sparc-0.12.3-8.fc13.x86_64
pour information, keqmu n'est plus utilisé dans les version récentes de qemu proposés par fedora.
- Modifié
Voici mes paquets :
A propos de Keqmu qui est une évolution pour Qemu.
rpm -qa | egrep "(virt|kvm|qemu)"
virt-mem-0.3.1-9.fc12.i686
qemu-common-0.12.3-8.fc13.i686
python-virtkey-0.50-6.fc12.i686
qemu-system-x86-0.12.3-8.fc13.i686
virt-manager-0.8.4-1.fc13.noarch
virt-viewer-0.2.1-1.fc13.i686
qemu-img-0.12.3-8.fc13.i686
libvirt-client-0.7.7-4.fc13.i686
gpxe-roms-qemu-1.0.0-1.fc13.noarch
libvirt-0.7.7-4.fc13.i686
libvirt-python-0.7.7-4.fc13.i686
python-virtinst-0.500.3-1.fc13.noarch
Donc il semblerait qu'ils en manquent à l'appel.A propos de Keqmu qui est une évolution pour Qemu.
- Modifié
Le problème reste le même...
rpm -qa | egrep "(virt|kvm|qemu)"
publican-ovirt-0.4-5.fc12.noarch
qemu-common-0.12.3-8.fc13.i686
python-virtkey-0.50-6.fc12.i686
kqemu-1.4.0-0.4.pre1.fc11.noarch
qemu-kvm-tools-0.12.3-8.fc13.i686
kmod-kqemu-2.6.33.5-124.fc13.i686-1.4.0-0.2.pre1.fc13.21.i686
libvirt-client-0.7.7-4.fc13.i686
gpxe-roms-qemu-1.0.0-1.fc13.noarch
qemu-system-m68k-0.12.3-8.fc13.i686
libvirt-python-0.7.7-4.fc13.i686
python-virtinst-0.500.3-1.fc13.noarch
qemu-system-x86-0.12.3-8.fc13.i686
virt-manager-0.8.4-1.fc13.noarch
akmod-kqemu-1.4.0-0.2.pre1.fc13.21.i686
virt-mem-0.3.1-9.fc12.i686
kmod-kqemu-2.6.33.5-112.fc13.i686-1.4.0-0.2.pre1.fc13.23.i686
ruby-libvirt-0.1.0-5.fc12.i686
virt-viewer-0.2.1-1.fc13.i686
qemu-img-0.12.3-8.fc13.i686
libvirt-0.7.7-4.fc13.i686
qemu-kvm-0.12.3-8.fc13.i686
Mon xml :
cat /etc/libvirt/qemu/win.xml
<domain type='kqemu'>
<name>win</name>
<uuid>90dd13ed-8832-91bf-c59d-5f4916e79bc2</uuid>
<memory>524288</memory>
<currentMemory>524288</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='i686' machine='fedora-13'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='localtime'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/var/lib/libvirt/images/win.img'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' unit='0'/>
</disk>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<interface type='bridge'>
<mac address='52:54:00:29:4f:af'/>
<source bridge='virbr0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target port='0'/>
</console>
<input type='tablet' bus='usb'/>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' keymap='fr'/>
<sound model='ac97'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</sound>
<video>
<model type='vga' vram='9216' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
</devices>
</domain>
Voici var/logs/messages :
Jun 18 12:39:00 Fedo libvirtd: 12:39:00.998: error : qemudDomainLookupByName:3445 : Domain not found: no domain with matching name 'win'
Jun 18 12:39:46 Fedo libvirtd: 12:39:46.479: error : qemudDomainLookupByName:3445 : Domain not found: no domain with matching name 'win'
Jun 18 12:39:46 Fedo libvirtd: 12:39:46.673: error : storageVolumeLookupByPath:1238 : invalid storage volume pointer in no storage vol with matching path
Jun 18 12:40:23 Fedo libvirtd: 12:40:23.613: error : qemudDomainLookupByName:3445 : Domain not found: no domain with matching name 'win'
Jun 18 12:40:23 Fedo libvirtd: 12:40:23.833: error : qemudDomainLookupByName:3445 : Domain not found: no domain with matching name 'win'
Jun 18 12:40:23 Fedo libvirtd: 12:40:23.998: error : storageVolumeLookupByPath:1238 : invalid storage volume pointer in no storage vol with matching path
Jun 18 12:40:24 Fedo libvirtd: 12:40:24.113: error : storageVolumeLookupByName:1153 : Storage volume not found: no storage vol with matching name 'win.img'
Jun 18 12:40:24 Fedo libvirtd: 12:40:24.121: error : storageVolumeLookupByPath:1238 : invalid storage volume pointer in no storage vol with matching path
Jun 18 12:40:24 Fedo libvirtd: 12:40:24.188: error : storageVolumeLookupByPath:1238 : invalid storage volume pointer in no storage vol with matching path
Jun 18 12:40:24 Fedo libvirtd: 12:40:24.192: error : storageVolumeLookupByPath:1238 : invalid storage volume pointer in no storage vol with matching path
Jun 18 12:40:24 Fedo libvirtd: 12:40:24.204: error : storageVolumeLookupByName:1153 : Storage volume not found: no storage vol with matching name 'win.img'
Jun 18 12:41:09 Fedo libvirtd: 12:41:09.060: error : qemudDomainLookupByName:3445 : Domain not found: no domain with matching name 'win'
Jun 18 12:41:09 Fedo libvirtd: 12:41:09.285: error : qemudDomainLookupByName:3445 : Domain not found: no domain with matching name 'win'
Jun 18 12:41:09 Fedo libvirtd: 12:41:09.445: error : storageVolumeLookupByPath:1238 : invalid storage volume pointer in no storage vol with matching path
Jun 18 12:41:09 Fedo libvirtd: 12:41:09.548: error : storageVolumeLookupByName:1153 : Storage volume not found: no storage vol with matching name 'win.img'
Jun 18 12:41:09 Fedo libvirtd: 12:41:09.615: error : storageVolumeLookupByPath:1238 : invalid storage volume pointer in no storage vol with matching path
Jun 18 12:41:09 Fedo libvirtd: 12:41:09.620: error : storageVolumeLookupByPath:1238 : invalid storage volume pointer in no storage vol with matching path
Jun 18 12:41:09 Fedo libvirtd: 12:41:09.631: error : storageVolumeLookupByName:1153 : Storage volume not found: no storage vol with matching name 'win.img'
Jun 18 12:41:09 Fedo libvirtd: 12:41:09.771: error : qemudDomainLookupByUUID:3420 : Domain not found: no domain with matching uuid '2507cceb-3647-4a0a-a783-34586ee74532'
Jun 18 12:41:09 Fedo libvirtd: 12:41:09.870: error : storageVolumeLookupByPath:1238 : invalid storage volume pointer in no storage vol with matching path
Jun 18 12:41:09 Fedo libvirtd: 12:41:09.890: error : storageVolumeLookupByPath:1238 : invalid storage volume pointer in no storage vol with matching path
Jun 18 12:41:09 Fedo libvirtd: 12:41:09.899: error : qemudDomainLookupByName:3445 : Domain not found: no domain with matching name 'win'
Jun 18 12:41:09 Fedo libvirtd: 12:41:09.905: error : storageVolumeLookupByName:1153 : Storage volume not found: no storage vol with matching name 'win.img'
Jun 18 12:41:10 Fedo kernel: tun: Universal TUN/TAP device driver, 1.6
Jun 18 12:41:10 Fedo kernel: tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Jun 18 12:41:10 Fedo libvirtd: 12:41:10.445: error : qemudNetworkIfaceConnect:1570 : internal error Failed to add tap interface to bridge. eth0 is not a bridge device
Jun 18 12:42:01 Fedo libvirtd: 12:42:01.450: error : qemudDomainLookupByName:3445 : Domain not found: no domain with matching name 'win'
Jun 18 12:42:01 Fedo libvirtd: 12:42:01.676: error : qemudDomainLookupByName:3445 : Domain not found: no domain with matching name 'win'
Jun 18 12:42:01 Fedo libvirtd: 12:42:01.850: error : storageVolumeLookupByPath:1238 : invalid storage volume pointer in no storage vol with matching path
Jun 18 12:42:15 Fedo libvirtd: 12:42:15.455: error : qemudDomainLookupByName:3445 : Domain not found: no domain with matching name 'win'
Jun 18 12:42:15 Fedo libvirtd: 12:42:15.672: error : qemudDomainLookupByName:3445 : Domain not found: no domain with matching name 'win'
Jun 18 12:42:15 Fedo libvirtd: 12:42:15.832: error : storageVolumeLookupByPath:1238 : invalid storage volume pointer in no storage vol with matching path
Jun 18 12:42:16 Fedo libvirtd: 12:42:16.120: error : qemudDomainLookupByUUID:3420 : Domain not found: no domain with matching uuid '90dd13ed-8832-91bf-c59d-5f4916e79bc2'
Jun 18 12:42:16 Fedo libvirtd: 12:42:16.238: error : storageVolumeLookupByPath:1238 : invalid storage volume pointer in no storage vol with matching path
Jun 18 12:42:16 Fedo libvirtd: 12:42:16.262: error : storageVolumeLookupByPath:1238 : invalid storage volume pointer in no storage vol with matching path
Jun 18 12:42:16 Fedo libvirtd: 12:42:16.268: error : qemudDomainLookupByName:3445 : Domain not found: no domain with matching name 'win'
Pourquoi j'ai ce message d'erreur ?Y a un pb sur le source file du volumeStorage volume not found: no storage vol with matching name 'win.img'
5 jours plus tard
Au démarrage de Virt-manager j'ai aussi un message :
KVM not avaible or KVM modules not loaded
Mais je peux créer une VM avec toujours le même probleme du boot...
KVM not avaible or KVM modules not loaded
Mais je peux créer une VM avec toujours le même probleme du boot...
Attention, il y a un bogue sur le paquet VirtualBOx de RPMFusion qui blackliste les modules KVM alors que le kernel 2.6.33 permet d'avoir les deux en même temps...
Le bogue a été rapporté et devrait être corrigé avec la mise à jours de VirtualBOX via rpmfusion.
Le bogue a été rapporté et devrait être corrigé avec la mise à jours de VirtualBOX via rpmfusion.