User Tools

Site Tools


user:mtaft4:portfolio:vm_server

Debian VM Server Install

  1. Hit F12 for the boot menu when the system starts
  2. Go to the BIOS setup and change the option for the network controller to On w/ PXE and reboot
  3. Hit F12 and boot from the integrated NIC
  4. Choose 32-Bit Debian Lenny, text install
  5. Choose the language for the install
  6. Choose United States with American English keymap
  7. Keep the hostname and domain name the same
  8. Choose manual entry of information for mirror country and enter mirror
  9. Keep the package directory and proxy information the same
  10. Choose eastern time for the time zone
  11. Choose guided partition, use entire disk
  12. Choose the only hard drive
  13. Set the partitioning to put all files in one partition
  14. Finish partitioning and write changes to disks
  15. Set root password
  16. Set the username and password for the user
  17. Select not to participate in package usage survey
  18. Uncheck all package information in the choosing functions section and reboot once complete
  19. Delete /etc/apt/sources.list and then wget it from http://10.80.2.6/files/student/sources.list
  20. Perform aptitude update and aptitude upgrade
  21. Change the contents of /etc/modules to be 'loop max_loop=255'
  22. Perform aptitude install xen-linux-system-2.6.26-2-xen-686 xen-tools openssh-server openssh-client
  23. Confirm vif-script and vif-bridge is set and set network-bridge and network-script in /etc/xen/xend-config.sxp
  24. Add 'dom0_mem=262144' to the end of the kernel option in the first section of the grub menu in /boot/grub/menu.lst
  25. Delete the two entries directly below the first kernel section
  26. Change the contents of /etc/xen-tools/xen-tools.conf to be the same as the blocked text on the project page http://lab46.corning-cc.edu/haas/hpc0/projects/vm_server_install
  27. Create the directories /xen, /xen/images, /xen/boot, /xen/conf, and /xen/save and reboot

Creating Virtual Machines

  1. Use ssh to get into the VM Server we created in the previous project.
  2. Issue this line 'xen-create-image –hostname=vm02 –mac=00:16:3e:2e:c0:02 –role=udev –force' to create the virtual machine
  3. Issue a password for the machine and confirm it
  4. After that finishes issue the command 'xm create -c /xen/conf/vm02.cfg' to boot the virtual machine
    • Log in with root and the password you created in Step 3
    • You can list active machines with 'xm list'
    • Exit and then detach from the machine by issuing an exit command and pressing Ctrl-] to detach from it
    • You can login later by issuing the command 'xm console vm02'
user/mtaft4/portfolio/vm_server.txt · Last modified: 2011/03/22 09:46 by mtaft4