Use or Convert KVM image for EVE-NG

Moderator: mike

Post Reply
Posts: 20
Joined: Tue Apr 11, 2017 2:03 am

Use or Convert KVM image for EVE-NG

Post by badgerdog » Wed Dec 06, 2017 10:01 pm


I have an image that was created with KVM and I'd like to run the image in my EVE-NG. The image, "vcg-root.img", has an xml configuration file associated with it. I've been able to get the image to start in EVE with QEMU using the following QEMU option in EVE:

"-cpu host -machine type=pc-i440fx-1.7,accel=kvm -vga std -usbdevice tablet -boot order=dc"

Althoug the image starts, it can't seem to find the boot loader/sector, it gives me a "Boot failed: could not read boot disk"; it's a Linux image. Here is the output of "file vcf-root.img" - "vcg-root.img: QEMU QCOW Image (v2), 34359738368 bytes". Does anyone know how to get this image to run in QEMU? Below is the original image's KVM XML configuration file for the image. Any help much appreciated.

"<domain type='kvm' id='12'>
<memory unit='KiB'>4194304</memory>
<currentMemory unit='KiB'>4194304</currentMemory>
<vcpu placement='static'>2</vcpu>
<type arch='x86_64' machine='pc-i440fx-1.7'>hvm</type>
<boot dev='hd'/>
<cpu mode='host-model'>
<model fallback='forbid'/>
<topology sockets='1' cores='1' threads='2'/>
<feature policy='require' name='vmx'/>
<clock offset='utc'>
<timer name='rtc' tickpolicy='catchup' track='guest'>
<catchup threshold='123' slew='120' limit='10000'/>
<timer name='pit' tickpolicy='delay'/>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='none'/>
<source file='/var/third-party/VCG/vcg-root.img'/>
<target dev='hda' bus='ide'/>
<alias name='ide0-0-0'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/dev/null'/>
<target dev='sdb' bus='usb'/>
<alias name='usb-disk1'/>
<controller type='ide' index='0'>
<alias name='ide'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
<controller type='usb' index='0'>
<alias name='usb'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
<controller type='pci' index='0' model='pci-root'>
<alias name='pci.0'/>
<interface type='bridge'>
<mac address='52:54:00:d0:59:06'/>
<source bridge='sxe0br'/>
<target dev='vnet5'/>
<model type='virtio'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
<serial type='pty'>
<source path='/dev/pts/3'/>
<target port='0'/>
<alias name='serial0'/>
<console type='pty' tty='/dev/pts/3'>
<source path='/dev/pts/3'/>
<target type='serial' port='0'/>
<alias name='serial0'/>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<graphics type='vnc' port='5900' autoport='yes' listen=''>
<listen type='address' address=''/>
<model type='cirrus' vram='16384' heads='1'/>
<alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
<memballoon model='none'>
<alias name='balloon0'/>
<seclabel type='none' model='none'/>

Uldis (UD)
Posts: 964
Joined: Wed Mar 15, 2017 4:44 pm
Location: London

Re: Use or Convert KVM image for EVE-NG

Post by Uldis (UD) » Thu Dec 07, 2017 8:37 am

all you need rename this file to:




and for test create folder:

you can look similar renaming is used for Juniper vMX nodes. ... -16-x-17-x

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests