WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] MiniHowto Clean domU for xen 2.0.7 debian

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] MiniHowto Clean domU for xen 2.0.7 debian
From: Robin van Leeuwen <rvl@xxxxxxxxxxxxxx>
Date: Mon, 10 Oct 2005 04:49:31 +0200
Delivery-date: Mon, 10 Oct 2005 02:46:16 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Debian Thunderbird 1.0.2 (X11/20050611)
For those interrested a mini howto to get a domu started if you use
Debian. I presume you use sarge (who doesn't :-))
I'm assuming a Xen kernel is running, and there is a partition /dev/hda5
free for use for xen. I'm using LVM, if you don't want to... well... then don't.

I don't know howto use the wiki (well actually i do, but it's very very late,
and i'm very very tired) So maybe someone is willing to put it in there...

-------------------------

- apt-get install lvm2
- pvcreate /dev/hda5
- vgcreate lvmxen /dev/hda5
- lvcreate -L1G -n domu1 lvmxen
- mke2fs /dev/lvmxen/domu1
- tune2fs -j /dev/lvmxen/domu1
- mount /dev/lv
- mxen/domu1 /mnt
- debootstrap sarge /mnt <debianserver of your choice>
- mv /mnt/lib/tls /mnt/lib/tls.disabled

put in /mnt/etc/network/interfaces:
  auto lo
  iface lo inet loopback

put in /mnt/etc/fstab:
  # /etc/fstab: static file system information.
  #
  # <file system> <mount point>   <type>  <options>       <dump>  <pass>
  proc            /proc           proc    defaults        0       0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1

modify /mnt/etc/inittab:

  the line:
  1:2345:respawn:/sbin/getty 38400 tty1

  into:
  1:2345:respawn:/sbin/getty 38400 console

  comment out 2,3,4,5 and 6 /sbin/getty's

- cd /
- umount /mnt

create a /etc/xen/domu1 file for example:
  #  -*- mode: python; -*-
  kernel = "/boot/vmlinuz-2.6.11-xenU"
  memory = 128
  name = "domu1"
  vif = [' bridge=xen-br0' ]
  disk = ['phy:/dev/lvmxen/proxy,hda1,w']
  ip="192.168.2.103"
  netmask="255.255.255.0"
  gateway="192.168.2.1"
  hostname = "domu1"
  root = "/dev/hda1 ro"
  extra = "4"

- xm create domu1 -c

log in as root, run base-config, happy xenning :-)

-------------------------


Kind regards,

Robin van Leeuwen

RLD Software
ICT Services

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>