Viswanath Thangamuthu wrote:
> As you mentioned, there are disk.img and swap.img files are there in
> /home/xen/domains/guest01 directory.But there is not config file in /etc/xen.
> Without this config file I cannot start my virtual machine.
Try creating a guest01.cfg in /etc/xen to boot it.
They are not too hard to create.
kernel = '/boot/vmlinuz-2.6.18-6-xen-amd64'
ramdisk = '/boot/initrd.img-2.6.18-6-xen-amd64'
memory = '2048'
root = '/dev/xvda2 ro'
disk = [
'tap:aio:/home/xen/domains/guest01/guest01-swap.img,xvda1,w',
'tap:aio:/home/xen/domains/guest01/guest01-disk,xvda2,w',
]
name = 'guest01'
vif = [ 'ip=172.16.0.53,mac=00:16:3E:66:94:51' ]
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
something similar to that should work.
You might need to loopmount your disk.img and fix the fstab or change
the config so its pointing at the right devices. (xvdaX or sdaX)
--
Nick Anderson <nick_at_anders0n.net>
http://www.cmdln.org
http://www.anders0n.net
Received on Tue May 06 2008 - 17:48:46 BST