xen, pri instalacii

Sekcia: Konfigurácia 02.11.2008 | 18:32
xenxen   Návštevník
Ahojte, pri instalacii virtualneho systemu na servery kde je xen, mi to vzdy skonci s chybnou hlaskou, Tu priklad log
General Information
--------------------
Hostname : xen.example.com
Distribution : gutsy
Partitions : swap 1Mb (swap)
/ 100Mb (ext3)
Image type : sparse
Memory size : 64Mb
Kernel path : /boot/vmlinuz-2.6.27-7-server
Initrd path : /boot/initrd.img-2.6.27-7-server

Networking Information
----------------------
IP Address 1 : 192.168.0.101 [MAC: 00:16:3E:10:30:E0]
Netmask : 255.255.255.0
Broadcast : 192.168.0.255
Gateway : 192.168.1.1

Creating partition image: /home/xen/domains/xen.example.com/swap.img
0+0 records in
0+0 records out
0 bytes (0 B) copied, 3.012e-05 s, 0.0 kB/s
Done

Creating swap on /home/xen/domains/xen.example.com/swap.img
Setting up swapspace version 1, size = 1020 KiB
no label, UUID=c88e1fdc-7cb4-4d81-b857-16a254abecc7
Done

Creating partition image: /home/xen/domains/xen.example.com/disk.img
0+0 records in
0+0 records out
0 bytes (0 B) copied, 3.132e-05 s, 0.0 kB/s
Done

Creating ext3 filesystem on /home/xen/domains/xen.example.com/disk.img
mke2fs 1.41.3 (12-Oct-2008)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
25688 inodes, 102400 blocks
5120 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67371008
13 block groups
8192 blocks per group, 8192 fragments per group
1976 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729

Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
Done
Installation method: debootstrap
Falling back to default debootstrap command

Copying files from host to image.
Copying files from /var/cache/apt/archives -> /tmp/91LV61f2po/var/cache/apt/archives
Done
Done
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
E: Couldn't download dists/gutsy/main/binary-i386/Packages

Copying files from new installation to host.
Copying files from /tmp/91LV61f2po/var/cache/apt/archives -> /var/cache/apt/archives
Done
Done
The installation of the new system has failed.

The system is missing the common file: /bin/ls
Done
System installation failed. Aborting

Je to len nasledok zle nastavenej siete?
    • Re: xen, pri instalacii 02.11.2008 | 21:35
      Avatar Tomáš Srnka Barz čo, už asi všetko  Administrátor
      je to mozne, inac tu mas hotove obrazy pre XEN - http://mirror.linuxos.sk/
      Dlho som robil linuxos.sk, neskôr založil vpsFree.cz, posledných pár rokov ako tech. riaditeľ vo Websupporte
    • Re: xen, pri instalacii 18.12.2008 | 13:50
      Adrian   Návštevník
      hehe, xen-tools :)

      neviem, ale mozes to spravit aj priamo cez xm-create XXXX.cfg popripade -c pre console attach...

      a vyrzeralo by to cele takto:

      vytvorit lvm
      mkfs.ext3 /dev/LVGROUP/LVNAME
      mount /dev/LVGROUP/LVNAME /mnt
      debootstrap --arch i386 etch /mnt/ http://ftp.debian.org/debian
      xm create debian.cfg

      pricom musis mat /etc/xen/debian.cfg:

      kernel = "/boot/vmlinuz-2.6.24-21-xen"
      ramdisk = "/boot/initrd.img-2.6.24-21-xen"
      builder = "linux"
      #for full virtualization use instead builder = "hvm"
      memory = 1024
      name = "MENO"
      root = "/dev/sda1 w"
      extra = "2 xencons=tty"
      disk = ['phy:/dev/LVMGROUP/LVNAME,sda1,w','phy:/dev/LVMGROUP/LVNAME_swap,sda2,w']
      vcpus = 1
      vif = [ 'bridge=eth0' ]
      vif = [ 'ip=XXXXXX,mac=00:16:3E:00:00:02' ]

      ak nedas MAC, neva, vygeneruje sa, dolezite je ci mas routed setup alebo nie, potom musis bezat cez point to point


      • Re: xen, pri instalacii 18.12.2008 | 13:52
        Adrian   Návštevník
        mno siet ci nie siet, siet asi tazko. Debootstrapujes predsa z Dom0 nie z DomU. Preto je jedno ci mas sietove nastavenia pre DomU v poho alebo nie. Cize ak by to bol sietovy problem (sietove nastavenia) tak by si sa nedostal ani na Dom0 cez ssh, alebo mi nieco podstatne uslo?