[xen-tools-discuss] Re: Xen-create-image hangs

Nick Anderson nick at anders0n.net
Tue May 6 18:48:37 CEST 2008


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






More information about the xen-tools-discuss mailing list