1. xen-create-image –hostname=apps01-mcp –ip=10.2.25.238 –netmask=255.255.255.0 –gateway=10.2.25.254 –lvm=bigraid –dist=lenny –arch=amd64 –memory=512MB –size=5GB –swap=256MB
  2. open convirt
  3. provision vm
    • xen paravirtual
    • delete existing disks, add two disks (xvda2=disk and xvda1=swap, in that order)
    • change mac on NIC and select specific bridge (br0)
    • boot params - delete existing kernel and ramdisk, browse the the xen ones in /boot, root device is /dev/xvda2 ro
    • provisioning - remove everything except VM_CONF_DIR
  4. edit vm config file
    • remove #extra = … line, remove image_conf=… line, remove image_name=… line
  5. temporarily mount vm on a directory (mkdir vm && mount -t ext3 /dev/bigraid/apps01-mcp-disk vm)
    • edit vm/etc/fstab (replace sda with xvda)
    • edit vm/etc/inittab (replace tty1 with hvc0)
    • edit vm/etc/apt/sources.list
    • edit vm/etc/network/interfaces and vm/etc/resolv.conf
    • unmount vm (umount vm && rmdir vm)
  6. start vm (via convirt)
    • vm console: login as root (no password)
    • from vm console: set root password (passwd)
    • from vm console: aptitude update && aptitude install udev
    • from vm console: aptitude purge libx11-6 libxau6 libxcb-xlib0 libxcb1 libxdmcp6 libxext6 libxmuu1 xauth x11-common libx11-data
  7. reboot vm
  8. you should be able to ssh in and use it normally now
computer/creating_debian_xen_vm.txt · Last modified: 2010/01/09 19:01 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS