Re: EISXEN HowTo

Juergen Edner <[email protected]>
Newsgroups spline.eisxen
Organization privat
Message-ID <[email protected]>
Hallo Peter,

> Und die nächste Frage:
> wie erstelle ich eine virtuelle Festplatte(ndatei), die ich an den FLI
> anlinken kann. Leider ist die von Jens angegebene Seite
> (triwa.ath.cs/index.html) nicht zu erreichen.

dies hatte ich mir seinerzeit notiert:

F: Wie stelle ich sicher, dass meine DHCP-Leases auch einen Reboot der
   FLI4L-VM überstehen?

A: Da FLI4L standardmäßig im RAM läuft werden DHCP-Leases nicht
   persistent gespeichert. Dies kann man jedoch umgehen, indem man
   eine Imagedatei eines Laufwerks anlegt. Dies macht man wie folgt:

   1. Eine 4MB grosse Imagedatei anlegen und mit Nullen füllen:
      dd if=/dev/zero of=./fli4l_boot.img bs=4M count=1

   2. Nun wird die Datei mit einem ext3-Format versehen:
      mkfs.ext3 ./fli4l_boot.img

   3. Die Imagedatei in das gewünschte Zielverzeichnis verschieben:
      mv ./fli4l_boot.img /data/xen/fli4l/fli4l/config.fli4l/etc/

   4. Nun muss noch die Xen-Konfiguration modifiziert werden um das
      die Datei als Laufwerk zur Verfügung zu stellen. Die Konfiguration
      erreicht man wie folgt: Xen Administration -> domU Administration
      -> Domain fli4l -> Edit Configuration

      DISK_N='1'
      DISK_1_TYPE='file'
      DISK_1_UNAME='/data/xen/fli4l/fli4l/config.fli4l/etc/fli4l_boot.img'
      DISK_1_MAP_TO='hda2'
      DISK_1_MODE='w'

   5. Jetzt muss noch die FLI4L-Konfiguration angepasst werden. Die
      Konfiguration erreicht man wie folgt: Xen Administration
      -> domU Administration -> Domain fli4l -> Edit Configuration

      hd
      --
      OPT_HDDRV='yes'
      HDDRV_N='0'

      opt_extmount
      ------------
      OPT_EXTMOUNT='yes'
      EXTMOUNT_N='1'
      EXTMOUNT_1_PART='/dev/hda2'
      EXTMOUNT_1_MPOINT='/boot'

Gruß Jürgen
-- 
Mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.