[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Xen Error



El sáb, 28-10-2006 a las 21:34 +0200, Carlos Luis Sánchez Bocanegra
escribió:
> Tengo instalado el xen 3.0
> root@pi-:/# xm list
> Name                                      ID Mem(MiB) VCPUs State   Time(s)
> Domain-0                                   0      512     1 r-----    508.0
> 
> y con el dominio virtual de 512 M corretamente..(me sobran 512 para los
> virtuales.
> 
> El problema es que quiero instalar un dom virtual conforme detalla en
> https://wiki.ubuntu.com/XenVirtualMachine/XenOnUbuntuDapper
> 
> salvando que yo lo monto en un file
> 
> -rw-r--r--  1 root root 104857600 2006-10-28 21:01 1G-swap.img
> -rw-r--r--  1 root root 419430400 2006-10-28 21:01 dapper-base.img
> drwxr-xr-x 21 root root      1024 2006-10-28 21:09 mnt
> 
> dapper-base.img es un ext3 (montado en mnt) donde le hice un deboostrap.
> 1G-swap es la swap convenientemente formateada.
> root@pi-:/vserver# ls mnt/
> bin  boot  dev  etc  home  initrd  lib  lost+found  media  mnt  opt  proc 
> root  sbin  srv  sys  tmp  usr  var
> 
> ahora configuro el virtual en /etc/xen/vm01-webserver
> 
> root@pi-:/etc/xen# cat vm01-webserver
> ## Copy below into your xen config file (once again, edit to taste)
> kernel = "/boot/vmlinuz-2.6.17-10-generic" #this is the same kernel you made
> for dom0
> memory = 128 #Choose how much RAM it gets
> name = "webserver" # Name of the vm
> disk = [ 'file:/vserver/mnt/dapper-base.img,hda5,w', \
> 'file:/vserver/1G-swap.img,hda6,w' ] # Virtual disks
> root = "/dev/hda5" # The vm's root
> 
> # network
> # nics=1 # nics is depreciated in xen3 apparently
> vif = [ '' ] # This is for networking (virtual interface)
> dhcp ="off"
> ip="192.168.1.5"
> netmask="255.255.255.0"
> gateway="192.168.1.1"
> hostname="vpi-"
> 
> 
> Hasta aquí todo va bien hasta que intento crear el virtual
> 
> Using config file "/etc/xen/vm01-webserver".
> Error: (22, 'Invalid argument')
> root@pi-:/#
> 
> al mirar el xend.log me devuelve lo siguiente
> 
> [2006-10-28 21:27:32 xend.XendDomainInfo 4864] DEBUG (__init__:1072)
> XendDomainInfo.create(['vm', ['name', 'webserver'], ['memory', 128], ['vcpus',
> 1], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.17-10-generic'], ['ip',
> '192.168.1.5:1.2.3.4:192.168.1.1:255.255.255.0:vpi-:eth0:off'], ['root',
> '/dev/hda5']]], ['device', ['vbd', ['uname',
> 'file:/vserver/mnt/dapper-base.img'], ['dev', 'hda5'], ['mode', 'w']]],
> ['device', ['vbd', ['uname', 'file:/vserver/1G-swap.img'], ['dev', 'hda6'],
> ['mode', 'w']]], ['device', ['vif']]])
> [2006-10-28 21:27:32 xend.XendDomainInfo 4864] DEBUG (__init__:1072)
> parseConfig: config is ['vm', ['name', 'webserver'], ['memory', 128],
> ['vcpus', 1], ['image', ['linux', ['kernel',
> '/boot/vmlinuz-2.6.17-10-generic'], ['ip',
> '192.168.1.5:1.2.3.4:192.168.1.1:255.255.255.0:vpi-:eth0:off'], ['root',
> '/dev/hda5']]], ['device', ['vbd', ['uname',
> 'file:/vserver/mnt/dapper-base.img'], ['dev', 'hda5'], ['mode', 'w']]],
> ['device', ['vbd', ['uname', 'file:/vserver/1G-swap.img'], ['dev', 'hda6'],
> ['mode', 'w']]], ['device', ['vif']]]
> [2006-10-28 21:27:32 xend.XendDomainInfo 4864] DEBUG (__init__:1072)
> parseConfig: result is {'shadow_memory': None, 'uuid': None, 'on_crash': None,
> 'on_reboot': None, 'localtime': None, 'image': ['linux', ['kernel',
> '/boot/vmlinuz-2.6.17-10-generic'], ['ip',
> '192.168.1.5:1.2.3.4:192.168.1.1:255.255.255.0:vpi-:eth0:off'], ['root',
> '/dev/hda5']], 'on_poweroff': None, 'bootloader_args': None, 'cpus': None,
> 'name': 'webserver', 'backend': [], 'vcpus': 1, 'cpu_weight': None,
> 'features': None, 'vcpu_avail': None, 'memory': 128, 'device': [('vbd',
> ['vbd', ['uname', 'file:/vserver/mnt/dapper-base.img'], ['dev', 'hda5'],
> ['mode', 'w']]), ('vbd', ['vbd', ['uname', 'file:/vserver/1G-swap.img'],
> ['dev', 'hda6'], ['mode', 'w']]), ('vif', ['vif'])], 'bootloader': None,
> 'cpu': None, 'maxmem': None}
> [2006-10-28 21:27:32 xend.XendDomainInfo 4864] DEBUG (__init__:1072)
> XendDomainInfo.construct: None
> [2006-10-28 21:27:32 xend.XendDomainInfo 4864] DEBUG (__init__:1072)
> XendDomainInfo.initDomain: 4 1.0
> [2006-10-28 21:27:32 xend 4864] DEBUG (__init__:1072) Balloon: 469120 KiB
> free; need 131072; done.
> [2006-10-28 21:27:32 xend 4864] INFO (__init__:1072) buildDomain os=linux
> dom=4 vcpus=1
> [2006-10-28 21:27:32 xend 4864] DEBUG (__init__:1072) dom            = 4
> [2006-10-28 21:27:32 xend 4864] DEBUG (__init__:1072) image          =
> /boot/vmlinuz-2.6.17-10-generic
> [2006-10-28 21:27:32 xend 4864] DEBUG (__init__:1072) store_evtchn   = 1
> [2006-10-28 21:27:32 xend 4864] DEBUG (__init__:1072) console_evtchn = 2
> [2006-10-28 21:27:32 xend 4864] DEBUG (__init__:1072) cmdline        = 
> ip=192.168.1.5:1.2.3.4:192.168.1.1:255.255.255.0:vpi-:eth0:off root=/dev/hda5
> [2006-10-28 21:27:32 xend 4864] DEBUG (__init__:1072) ramdisk        =
> [2006-10-28 21:27:32 xend 4864] DEBUG (__init__:1072) vcpus          = 1
> [2006-10-28 21:27:32 xend 4864] DEBUG (__init__:1072) features       =
> [2006-10-28 21:27:32 xend.XendDomainInfo 4864] ERROR (__init__:1072) Domain
> construction failed
> Traceback (most recent call last):
>   File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line
> 195, in create
>     vm.initDomain()
>   File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line
> 1363, in initDomain
>     raise VmError(str(exn))
> VmError: (22, 'Invalid argument')
> [2006-10-28 21:27:32 xend.XendDomainInfo 4864] DEBUG (__init__:1072)
> XendDomainInfo.destroy: domid=4
> [2006-10-28 21:27:32 xend.XendDomainInfo 4864] DEBUG (__init__:1072)
> XendDomainInfo.destroyDomain(4)
> 
> 
> Hay algo que no me sale bien para esto???....gracias de antemano.
> 
> -- 
> Un saludo Carlos Luis Sánchez Bocanegra
> 
> 
> 
> 

Hace unos días estuve jugando con xen en debian y para el kernel que
tienes puesto necesitas el initramfs ya que los kernel debian/ubuntu
llevan muchas cosas como módulos, esta era mi configuración:

cat /etc/xen/vm01-config.sxp
name ="vm01"
kernel ="/boot/vmlinuz-2.6.17-2-xen-686"
ramdisk ="/boot/initrd.img-2.6.17-2-xen-686"
root ="/dev/hda1"
memory =128
disk =
['file:/vserver/images/vm01.img,hda1,w','file:/vserver/images/vm01-swap.img,hda2,w']

# network
# nics=1
vif = ""
dhcp ="off"
ip="xxx.xxx.xxx.xxx"
netmask="255.255.255.0"
gateway="xx.xx.xx.xx"
hostname="vm01.xx.xx"

extra="3"

la máquina arrancaba correctamente (quitando un fallo de los tty que
encontré después) lo que no fui capaz es de tener red ya que no había
tarjetas detectadas (no se si debe haberlas en /sys/class/net/ )

Luego intente arrancar una máquina xen parcheada con openssi y al ser
versiones distintas de xen 2 <> 3 no arrancaba con un error como ese.

Comenta líneas ( o ponlas más genéricas ) en el archivo de configuración
hasta que arranque.
-- 
http://soleup.eup.uva.es/mariodebian

Attachment: signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente


Reply to: