![]() |
|
[Howto] - UML to ispCP testing purposes - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Contributions Area (/forum-40.html) +--- Forum: Howtos (/forum-41.html) +--- Thread: [Howto] - UML to ispCP testing purposes (/thread-7682.html) |
[Howto] - UML to ispCP testing purposes - Nuxwin - 08-28-2009 12:46 PM Hi ; I post here a small procedure which allows to install a virtual machine ( Debian Lenny with User-Mod Linux ) for ispCP testing purposes. Here, I assume you use Debian (Etch or Lenny). I. Installing needed packages Code: # aptitude updateI.a add your normal user in the uml-net group Example : Code: # adduser nuxwin uml-netII. Creating the workspace Code: $ mkdir -p ~/ispcp_uml/toolsIII. Building the virtual drive Code: $ cd ~/ispcp_umlIV. Download netinstall iso (here, Debian lenny) Code: $ wget http://cdimage.debian.org/debian-cd/5.0.2a/i386/iso-cd/debian-502a-i386-netinst.isoV. Downloading and decompressing perl scripts to extract the files in an iso Code: $ cd toolsVI. Extraction of the Debian installer from the iso Code: $ perl -Iiso-perl-stuff iso-perl-stuff/isocat.pl ../debian-502a-i386-netinst.iso \VII. Launch of the Debian installer in a UML instance Code: $ cd ..Please, change the address Ip by your host system IP. After running this command, the window diologue Debian Installer appears in the current terminal and 3 other virtual consoles are automatically created, two of them being shell. VIII. Installation Before doing anything through the Debian installer, you must mount the UML kernel modules as follow: Select a virtual console (shell) and press enter. Then, run the following command: Code: UML# mount -o /usr/lib/uml/modules -t hostfs hostfs /lib/modulesThis being done, return to the terminal of the Debian installer and follow each step. 1. Choose language : Code: EnglishDo not select "Select a keyboard layout" step, jump to the next step. 2. Detect and mount CD-ROM : Code: No3. Load installer components from CD : Code: Yes4. Detect network hardware : Code: No5. Configure the network : Code: No6. Configure the clock : Code: Yes7. Detect disks : Code: No8. Partition disks Code: Guided - use entire disk9. Install the base system Code: none10. Setup users and passwords Code: Yes11. Configure the package manager : Code: yes12. Select and install software : Code: NoAfter this, jump to step "Continue without boot loader" 13. Continue without boot loader Code: Continue14. Finish the installation Code: YesFinally, after reboot, type "halt" to halt the UML instance. When this is done, your virtual machine is almost ready to be used. IV. Import UML Kernel Modules Start your virtual machine by running the following command:: Code: $ linux mem=512M ubd0=lenny_rootfs eth0=tuntap,,,192.168.0.110 root=/dev/ubda1 roWhen this is done, it'll just log into a virtual consoles prompt. After login, execute the following commands to import any UML kernel modules : Code: # mkdir /mnt/modulesFinally, type reboot to restart your virtual machine. Your virtual machine is ready to use. Note: It is also possible to use debootstrap instead of the debian installer and the netinstall iso image but my method has the advantage of not having to manually configure the virtual machine (swap, hostname, fstab, network ...). Thank you for your feedback. References : http://stevieo.freeshell.org/uml/adminless-uml-d-i.html http://www.debian.org/releases/stable/i386/ch05s03.html.en Todo: How to compile the UML kernel with Debian. Todo: How to applying skas3 patch to improve performance. RE: [Howto] - UML to ispCP testing purposes - kilburn - 08-28-2009 03:43 PM Great great great! I personally use VirtualBox, and store snapshots of "post base-install", "stable version", "trunk", or whatever I need atm. As a suggestion, you could use debian's intaller automation to skip all installation questions, which would simplify the process even further
RE: [Howto] - UML to ispCP testing purposes - Nuxwin - 08-28-2009 03:52 PM (08-28-2009 03:43 PM)kilburn Wrote: As a suggestion, you could use debian's intaller automation to skip all installation questions, which would simplify the process even further Thank you ![]() This is a great suggestion that I had not thought of! I'll try and make the necessary changes. ![]() I use virtualbox too. However, I think we can do much more with UML (automation) |