Started facing this error:
# virsh create centos7.0.xml
error: Failed to create domain from centos7.0.xml
error: internal error: process exited while connecting to monitor: 2016-12-04T16:20:01.524386Z qemu-system-x86_64: -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:2e:7b:93,bus=pci.0,addr=0x3: failed to find romfile "efi-virtio.rom"
2016-12-04T16:20:01.524477Z qemu-system-x86_64: -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:2e:7b:93,bus=pci.0,addr=0x3: Device 'virtio-net-pci' could not be initialized
Then fixed all the links of rom files as below:
root@gant qemu$ ls -l efi*.rom
lrwxrwxrwx 1 root root 24 Jun 22 20:08 efi-e1000.rom -> ../ipxe.efi/8086100e.rom
lrwxrwxrwx 1 root root 24 Jun 22 20:08 efi-ne2k_pci.rom -> ../ipxe.efi/10ec8029.rom
lrwxrwxrwx 1 root root 24 Jun 22 20:08 efi-pcnet.rom -> ../ipxe.efi/10222000.rom
lrwxrwxrwx 1 root root 24 Jun 22 20:08 efi-rtl8139.rom -> ../ipxe.efi/10ec8139.rom
lrwxrwxrwx 1 root root 24 Jun 22 20:08 efi-virtio.rom -> ../ipxe.efi/1af41000.rom
root@gant qemu$
root@gant qemu$
root@gant qemu$ ln -sf ../ipxe/8086100e.rom efi-e1000.rom
root@gant qemu$ ln -sf ../ipxe/10ec8029.rom efi-ne2k_pci.rom
root@gant qemu$ ln -sf ../ipxe/10222000.rom efi-pcnet.rom
root@gant qemu$ ln -sf ../ipxe/10ec8139.rom efi-rtl8139.rom
root@gant qemu$ ln -sf ../ipxe/1af41000.rom efi-virtio.rom
root@gant qemu$
root@gant qemu$ ls -l efi*.rom
lrwxrwxrwx 1 root root 20 Dec 4 22:32 efi-e1000.rom -> ../ipxe/8086100e.rom
lrwxrwxrwx 1 root root 20 Dec 4 22:32 efi-ne2k_pci.rom -> ../ipxe/10ec8029.rom
lrwxrwxrwx 1 root root 20 Dec 4 22:32 efi-pcnet.rom -> ../ipxe/10222000.rom
lrwxrwxrwx 1 root root 20 Dec 4 22:32 efi-rtl8139.rom -> ../ipxe/10ec8139.rom
lrwxrwxrwx 1 root root 20 Dec 4 22:32 efi-virtio.rom -> ../ipxe/1af41000.rom
root@gant qemu$
No comments:
Post a Comment