All,
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'>
<name>vcg</name>
<uuid>57a53972-503a-4882-bc64-0a2964102572</uuid>
<memory unit='KiB'>4194304</memory>
<currentMemory unit='KiB'>4194304</currentMemory>
<vcpu placement='static'>2</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
<type arch='x86_64' machine='pc-i440fx-1.7'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<cpu mode='host-model'>
<model fallback='forbid'/>
<topology sockets='1' cores='1' threads='2'/>
<feature policy='require' name='vmx'/>
</cpu>
<clock offset='utc'>
<timer name='rtc' tickpolicy='catchup' track='guest'>
<catchup threshold='123' slew='120' limit='10000'/>
</timer>
<timer name='pit' tickpolicy='delay'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='none'/>
<source file='/var/third-party/VCG/vcg-root.img'/>
<backingStore/>
<target dev='hda' bus='ide'/>
<alias name='ide0-0-0'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/dev/null'/>
<backingStore/>
<target dev='sdb' bus='usb'/>
<alias name='usb-disk1'/>
</disk>
<controller type='ide' index='0'>
<alias name='ide'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<controller type='usb' index='0'>
<alias name='usb'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
</controller>
<controller type='pci' index='0' model='pci-root'>
<alias name='pci.0'/>
</controller>
<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'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/3'/>
<target port='0'/>
<alias name='serial0'/>
</serial>
<console type='pty' tty='/dev/pts/3'>
<source path='/dev/pts/3'/>
<target type='serial' port='0'/>
<alias name='serial0'/>
</console>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1'>
<listen type='address' address='127.0.0.1'/>
</graphics>
<video>
<model type='cirrus' vram='16384' heads='1'/>
<alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
<memballoon model='none'>
<alias name='balloon0'/>
</memballoon>
</devices>
<seclabel type='none' model='none'/>
</domain>
"
Use or Convert KVM image for EVE-NG
Moderator: mike
-
- Posts: 5086
- Joined: Wed Mar 15, 2017 4:44 pm
- Location: London
- Contact:
Re: Use or Convert KVM image for EVE-NG
all you need rename this file to:
vcg-root.img
to
hda.qcow2
and for test create folder:
linux-yournode
you can look similar renaming is used for Juniper vMX nodes.
http://www.eve-ng.net/index.php/documen ... -16-x-17-x
UD
vcg-root.img
to
hda.qcow2
and for test create folder:
linux-yournode
you can look similar renaming is used for Juniper vMX nodes.
http://www.eve-ng.net/index.php/documen ... -16-x-17-x
UD
-
- Posts: 41
- Joined: Tue Apr 11, 2017 2:03 am
Re: Use or Convert KVM image for EVE-NG
Hi UD,
Spot on! The URL you provided was enough to help me figure it out. Sorry for the late thank you.
Spot on! The URL you provided was enough to help me figure it out. Sorry for the late thank you.