[xen-tools-discuss] Using image-dev with correct output in xen-config
W3SERVE John
john at weserve.nl
Tue May 6 16:06:38 CEST 2008
All,
We are using xen with xen-tools and xen-shell. Now we use LVM disks to
accommodate our domU's. But we are trying to change to an iSCSI system.
Creating the file system through xen-create-image works correct.
We are using this input to generate the domU. With the -lvm=foo, otherwise
it doesn't do much.
/usr/bin/xen-create-image --ip=xxx.xxx.xxx.xxx --vifname=viftest
--image-dev=/dev/mapper/EMC4-part1 --memory=128m
--swap-dev=/mnt/xen/EMC4-swap --hostname=test --dist=hardy
--install-method=debootstrap --force --template=/etc/xen-tools/xm.tmpl
--lvm=foo
We use iSCSI-disk for the root partition and img file for swap files.
Now the question is, why do I get corrupt xen config files.
Output of the test.cfg file in /etc/xen
______________________________________________________________
#
# Configuration file for the Xen instance test, created
# by xen-tools 3.9 on Tue May 6 15:21:59 2008.
#
#
# Kernel + memory size
#
kernel = '/boot/vmlinuz-2.6.24-16-xen'
ramdisk = '/boot/initrd.img-2.6.24-16-xen'
memory = '128'
#
# Disk device(s).
#
disk = [
',sda1,w',
]
#
# Hostname
#
name = 'test'
#
# Networking
#
vif = [ 'ip=xxx.xxx.xxx.xxx, mac=###################' ]
#
# Behaviour
#
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
_______________________________________________________________
The config file is missing:
root = '/dev/sda2 ro'
disk = [
'phy:/dev/mapper/EMC4-part1,sda2,w',
'phy:/mnt/xen/EMC4-swap,sda1,w',
]
Does anybody have a idea how this problem is fixed.
Yours sincerely,
John Brand
W3SERVE
--
Dit bericht is gescanned op virussen en andere gevaarlijke
inhoud door MailScanner en lijkt schoon te zijn.
More information about the xen-tools-discuss
mailing list