Hey lads
I followed the following
http://mediakey.dk/~cc/installing-xen-on-debian-etch-40/ i am running etch
4.0
But can not get anything working
Where have got to.
I get to the xm list command and this outputs
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 144 1 r----- 52.7
I can create img with
xen-create-image -hostname=mailserver
What my problem is
I try xm create mailserver.cfg
Output is the following.
Using config file "/etc/xen/mailserver.cfg".
Error: (22, ''Invalid argument'')
mailserver.cfg is
# Kernel + memory size
kernel = ''/boot/vmlinuz-2.6.18-4-686''
ramdisk = ''/boot/initrd.img-2.6.18-4-686''
memory = ''64''
# Disk device(s).
root = ''/dev/sda1 ro''
disk = [
''file:/home/xen/domains/mailserver/disk.img,hdg1,w'',
''file:/home/xen/domains/mailserver/swap.img,hdg4,w'' ]
# Hostname
name = ''mailserver''
# Networking
vif = [ ''ip=192.168.0.24'' ]
# Behaviour
on_poweroff = ''destroy''
on_reboot = ''restart''
on_crash = ''restart''
xend.log shows:
[2007-07-15 23:59:23 xend 2332] DEBUG (__init__:1072) features [2007-07-15
23:59:23 xend.XendDomainInfo 2332] ERROR (__init__:1072) Domain
construction failed
Traceback (most recent call last):
File "/usr/lib/xen-3.0.3-1/lib/python/xen/xend/XendDomainInfo.py",
line
195, in create
vm.initDomain()
File "/usr/lib/xen-3.0.3-1/lib/python/xen/xend/XendDomainInfo.py",
line
1363, in initDomain
raise VmError(str(exn))
VmError: (22, ''Invalid argument'')
[2007-07-15 23:59:23 xend.XendDomainInfo 2332] DEBUG (__init__:1072)
XendDomainInfo.destroy: domid=6
[2007-07-15 23:59:23 xend.XendDomainInfo 2332] DEBUG (__init__:1072)
XendDomainInfo.destroyDomain(6)
xend-debug.log shows:
ERROR: Unrecognized image format
ERROR: Error constructing guest OS
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
namit gmail wrote:> mailserver.cfg is > # Kernel + memory size > kernel = ''/boot/vmlinuz-2.6.18-4-686'' > ramdisk = ''/boot/initrd.img-2.6.18-4-686'' > memory = ''64'' > # Disk device(s). > > xend-debug.log shows: > ERROR: Unrecognized image format > ERROR: Error constructing guest OS > >Is vmlinuz-2.6.18-4-686 a xen guest image? Normally kernels like that have ''xen'' in their name somewhere. Tony _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
THANK you
sweet that fixed that part now getting the Device 0 (vif) to work
n.b i also installed xen-hypervisor-3.0.3-1-i386 and rebooted.
I just went into /etc/xen/xend-config.sxp and enabled "(network-script
network-bridge)", and then /etc/init.d/xend restart
now when i do xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 144 1 r----- 50.6
mailserver 2 64 1 -b---- 3.3
Thanks tony it seams it was all up to the kernel now just need to figure out
how the rest works.
do you know if i can do
root = ''/mnt/hdg1 ro''
disk = [ ''file:/home/xen/domains/mailserver/disk.img,
/mnt/hdg1,w'',
''file:/home/xen/domains/mailserver/swap.img,/mnt/hdg4,w'' ]
how do i know what is mean to be in the disks section?
hdg1 and hdg4 are 80gb hard disk in my computer that i have formated to be
ext3 hard disks.
output of xm console mailmaster i get this
Begin: Waiting for root file system... ...
for a good while
then i get
Check root= bootarg cat /proc/cmdline
or missing modules, devices: cat /proc/modules ls /dev
ALERT! /mnt/hdg1 does not exist. Dropping to a shell!
But it does exist
/mnt/
|-- hdg1
| `-- lost+found
`-- hdg4
`-- lost+found
and if i change that /mnt/hdg1 to just hdg1 i get same error
Thanks again Tony
On 7/16/07, Tony Hoyle <tmh@nodomain.org> wrote:>
> namit gmail wrote:
>
> > mailserver.cfg is
> > # Kernel + memory size
> > kernel = ''/boot/vmlinuz-2.6.18-4-686''
> > ramdisk = ''/boot/initrd.img-2.6.18-4-686''
> > memory = ''64''
> > # Disk device(s).
> >
> > xend-debug.log shows:
> > ERROR: Unrecognized image format
> > ERROR: Error constructing guest OS
> >
> >
> Is vmlinuz-2.6.18-4-686 a xen guest image? Normally kernels like that
> have ''xen'' in their name somewhere.
>
> Tony
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@lists.xensource.com
> http://lists.xensource.com/xen-users
>
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
namit gmail wrote:> hdg1 and hdg4 are 80gb hard disk in my computer that i have formated to > be ext3 hard disks. > > output of xm console mailmaster i get this > Begin: Waiting for root file system... ... > for a good while > then i getWell you have: root = ''/dev/sda1 ro'' disk = [ ''file:/home/xen/domains/mailserver/disk.img,hdg1,w'', ''file:/home/xen/domains/mailserver/swap.img,hdg4,w'' ] That doesn''t make sense. Just leave the lines at the ones created by xen-create-image - don''t muck around with it until you have it working. tony _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users