Problem adding an existing xen instance

Hi all,

following problem:

i used and installed xen virtual machines on centos 5.6 manually with xm and virt-manager.

When creating virtual-machines a .spx configuration file was created at /var/lib/xend/domains/uid-number

The machines work as expected.

After installing cloudmin with the installer-script, yum updated xen, xen-libs… cloudmin starts with no virtual machine. No Error.

One of my old xen machines had also a standard config file. With thatone used i could add a cloudmin-hosted machine.

If i manually create a config file with vi, just changing the name, uid, macadress and path to the .img file, cloudmin complains: “Failed to add system : Xen configuration file does not appear to be for the selected instance” I took the uid, macadress… from the running virt-manager information panel.

Any hints what do check?

The config looks like this: (name and uid not copied
name = “foo”
uid = “xlxlxlxxx-bar”
maxmem = 1012
memory = 1012
vcpus = 1
builder = “hvm”
kernel = “/usr/lib/xen/boot/hvmloader”
boot = “c”
pae = 1
acpi = 1
apic = 1
localtime = 0
on_poweroff = “destroy”
on_reboot = “restart”
on_crash = “restart”
device_model = “/usr/lib64/xen/bin/qemu-dm”
sdl = 0
vnc = 1
vncunused = 1
disk = [ “file:/xen/terminalserver.img,hda,w”, “,hdc:cdrom,r” ]
vif = [ “mac=00:16:3e:5e:83:0d,bridge=xenbr0” ]
serial = “pty”

Any hints what to change, so cloudmin will accept this running machines?

Thanks for some tipps
Best regards
Andreas

Hi all,

Some of the standard entries have to be removed, so that cloudmin can import the config-files:
See an example file attached:

The name, uid and mac-adresses have to be changed accordingly to the values of the running xen instance.