Difference between revisions of "Installing Arch Linux in Virtual Server"

From ArchWiki
Jump to: navigation, search
(Change category.)
m (use Out of date template)
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
[[Category:Getting and installing Arch]]
 
[[Category:Getting and installing Arch]]
This page describes, how to install Arch Linux on a virtual server from a webhoster. The following was tested on a [https://www.jiffybox.de/ JiffyBox] but should work also for other providers with [[Xen]] virtualisation.
+
{{Out of date|Referenced articles changed a lot since the creation of this article (March 2011), some updated (16. Dec 2012) installation instructions can be found [https://github.com/kmindi/jiffybox-archlinux-tutorial on GitHub.com]}}
 +
 
 +
This page describes, how to install Arch Linux on a virtual server from a webhoster.  
  
 
== Installing an Arch Linux server on JiffyBox ==
 
== Installing an Arch Linux server on JiffyBox ==
 +
The following was tested on a [https://www.jiffybox.de/ JiffyBox] but should work also for other providers with [[Xen]] virtualisation.
 +
 
Create an [https://www.jiffybox.de/ JiffyBox] account. I selected Ubuntu 10.04 since squashfs needed later is too old on Debian Lenny.
 
Create an [https://www.jiffybox.de/ JiffyBox] account. I selected Ubuntu 10.04 since squashfs needed later is too old on Debian Lenny.
 
I think [http://www.linode.com Linode] works similar. However, they provide Arch Linux by default.
 
I think [http://www.linode.com Linode] works similar. However, they provide Arch Linux by default.
Line 10: Line 14:
  
 
I did the stuff from:
 
I did the stuff from:
http://wiki.archlinux.org/index.php/Install_from_Existing_Linux#Preparing_the_Installation_Environment
+
https://wiki.archlinux.org/index.php/Install_from_Existing_Linux#Preparing_the_Installation_Environment
  
 
I needed to install squashfs tools:
 
I needed to install squashfs tools:
Line 25: Line 29:
  
 
Chroot in the new OS:
 
Chroot in the new OS:
http://wiki.archlinux.org/index.php/Install_from_Existing_Linux#Update_and_Install_packages_from_host_system_via_chroot
+
https://wiki.archlinux.org/index.php/Install_from_Existing_Linux#Update_and_Install_packages_from_host_system_via_chroot
  
 
Install openssh and add it in rc.conf
 
Install openssh and add it in rc.conf
  
 
Allow ssh from extern:
 
Allow ssh from extern:
http://wiki.archlinux.org/index.php/Beginners_Guide#.2Fetc.2Fhosts.deny_and_.2Fetc.2Fhosts.allow
+
https://wiki.archlinux.org/index.php/Beginners_Guide#.2Fetc.2Fhosts.deny_and_.2Fetc.2Fhosts.allow
  
 
Change /boot/grub/menu.lst to:
 
Change /boot/grub/menu.lst to:

Revision as of 08:43, 8 August 2013

Tango-view-refresh-red.pngThis article or section is out of date.Tango-view-refresh-red.png

Reason: Referenced articles changed a lot since the creation of this article (March 2011), some updated (16. Dec 2012) installation instructions can be found on GitHub.com (Discuss in Talk:Installing Arch Linux in Virtual Server#)

This page describes, how to install Arch Linux on a virtual server from a webhoster.

Installing an Arch Linux server on JiffyBox

The following was tested on a JiffyBox but should work also for other providers with Xen virtualisation.

Create an JiffyBox account. I selected Ubuntu 10.04 since squashfs needed later is too old on Debian Lenny. I think Linode works similar. However, they provide Arch Linux by default.

  • Create additional hard disk (i.e. 20GB)
  • Add hard disk to the current profile

I did the stuff from: https://wiki.archlinux.org/index.php/Install_from_Existing_Linux#Preparing_the_Installation_Environment

I needed to install squashfs tools:

apt-get install squashfs-tools

Mount the empty arch partition:

 mount /dev/xvdc /mnt/arch/

aif does not find the partitions (/dev/xvdc) You have to mount it manually and do the following hack to aif: http://colinux.wikia.com/wiki/Howto:_ArchLinux_install_from_iso_with_rescue_fs#Stage_2:_Prepare_the_final_filesystem_and_install_ArchLinux_on_it

Copy /etc/resolf.conf

Chroot in the new OS: https://wiki.archlinux.org/index.php/Install_from_Existing_Linux#Update_and_Install_packages_from_host_system_via_chroot

Install openssh and add it in rc.conf

Allow ssh from extern: https://wiki.archlinux.org/index.php/Beginners_Guide#.2Fetc.2Fhosts.deny_and_.2Fetc.2Fhosts.allow

Change /boot/grub/menu.lst to:

# (0) Arch Linux
title  Arch Linux  [/boot/vmlinuz26]
root   (hd0)
kernel /boot/vmlinux root=/dev/xvda ro
initrd /boot/kernel26.img

Add the following to /etc/fstab:

/dev/xvdb swap swap defaults 0 0                                                
/dev/xvda / ext3 defaults 0 1 

Uncomment the following line in /etc/inittab:

h0:2345:respawn:/sbin/agetty -8 38400 hvc0 linux

Create an new JiffyBox Profile with kernel pvgrub64

pvgrub does not know lzma compression of the kernel. Thus booting will fail. Thus the "raw" kernel hast to be copied to /boot form /usr/src/linux-*/vmlinux

Note: I had problems using the current 2.6.37 kernel and switched back to 2.6.36.