Tengo instalado el xen 3.0 [EMAIL PROTECTED]:/# 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. [EMAIL PROTECTED]:/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 [EMAIL PROTECTED]:/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') [EMAIL PROTECTED]:/# 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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]