Difference between revisions of "Virtual Private Server"

From ArchWiki
Jump to: navigation, search
(Various style changes)
(remove from Category:Networking and add to Category:Getting and installing Arch; other minor edits)
Line 1: Line 1:
[[Category:Networking (English)]]
+
[[Category:Getting and installing Arch (English)]]
 
[[Category:Virtualization]]
 
[[Category:Virtualization]]
 
{{i18n|Virtual Private Server}}
 
{{i18n|Virtual Private Server}}
 
{{Article summary start}}
 
{{Article summary start}}
{{Article summary text|This article discusses the use of Arch Linux on Virtual Private Servers. In particular, it contains some fixes and installation instructions specific to VPSes.}}
+
{{Article summary text|This article discusses the use of Arch Linux on Virtual Private Servers, and includes some fixes and installation instructions specific to VPSes.}}
 
{{Article summary heading|Related}}
 
{{Article summary heading|Related}}
 
{{Article summary wiki|Comprehensive Server Guide}}
 
{{Article summary wiki|Comprehensive Server Guide}}
Line 9: Line 9:
 
From [[Wikipedia:Virtual private server]]:
 
From [[Wikipedia:Virtual private server]]:
  
:''Virtual private server (VPS) is a term used by internet hosting services to refer to a virtual machine. The term is used for emphasizing that the virtual machine, although running in software on the same physical computer as other customers' virtual machines, is functionally equivalent to a separate physical computer, is dedicated to the individual customer's needs, has the privacy of a separate physical computer, and can be configured to run as a server computer (i.e. to run server software).''
+
:''Virtual private server (VPS) is a term used by Internet hosting services to refer to a virtual machine. The term is used for emphasizing that the virtual machine, although running in software on the same physical computer as other customers' virtual machines, is in many respects functionally equivalent to a separate physical computer, is dedicated to the individual customer's needs, has the privacy of a separate physical computer, and can be configured to run server software.''
  
 
==Providers that offer Arch Linux==
 
==Providers that offer Arch Linux==
  
 
{{Warning|We cannot vouch for the honesty or quality of any provider. Please conduct due diligence before ordering.}}
 
{{Warning|We cannot vouch for the honesty or quality of any provider. Please conduct due diligence before ordering.}}
{{Note|This list is for providers with a convenient Arch Linux image. Using Arch on other providers is probably possible, but would require loading custom ISOs or disk images or [[Change Root|changing root]].}}
+
{{Note|This list is for providers with a convenient Arch Linux image. Using Arch on other providers is probably possible, but would require loading custom ISOs or disk images or [[Installation Chroot|installing under chroot]].}}
  
 
{| border="1"
 
{| border="1"
Line 29: Line 29:
 
| [http://www.vr.org/ Host Virtual] || 2011.08 || Xen || Amsterdam, Chennai (Madras), Chicago, Dallas, Hong Kong, London, Los Angeles, New York, Paris, Reston, San Jose ||
 
| [http://www.vr.org/ Host Virtual] || 2011.08 || Xen || Amsterdam, Chennai (Madras), Chicago, Dallas, Hong Kong, London, Los Angeles, New York, Paris, Reston, San Jose ||
 
|-
 
|-
| [https://hostigation.com/ Hostigation] || 2010.05 i686 || OpenVZ, KVM || Charlotte, Los Angeles || You may be able to [[Migrating Between Architectures Without Reinstalling|migrate to x86_64]].
+
| [https://hostigation.com/ Hostigation] || 2010.05 i686 || OpenVZ, KVM || Charlotte, Los Angeles || You can [[Migrating Between Architectures Without Reinstalling|migrate to x86_64]].
 
|-
 
|-
 
| [http://www.intovps.com IntoVPS] || 2010.05 i686/x86_64 || OpenVZ || Amsterdam, Bucharest, Dallas, Fremont, London ||
 
| [http://www.intovps.com IntoVPS] || 2010.05 i686/x86_64 || OpenVZ || Amsterdam, Bucharest, Dallas, Fremont, London ||
Line 145: Line 145:
 
Some VPSes have an outdated {{ic|rc.sysinit}}. You may be able to login via serial console or with
 
Some VPSes have an outdated {{ic|rc.sysinit}}. You may be able to login via serial console or with
  
{{bc|> ssh root@<broken-server> '/bin/bash -i'}}
+
{{bc|> ssh root@broken.server '/bin/bash -i'}}
  
 
Then run the following:
 
Then run the following:
Line 156: Line 156:
 
If the above doesn’t work, take a look at
 
If the above doesn’t work, take a look at
 
http://fsk141.com/fix-pty-allocation-request-failed-on-channel-0.
 
http://fsk141.com/fix-pty-allocation-request-failed-on-channel-0.
 
==See also==
 
* [http://wiki.gotux.net/arch:vps Install Arch Linux 2010.05 on OpenVZ/SolusVM]
 

Revision as of 05:54, 13 April 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Summary help replacing me
This article discusses the use of Arch Linux on Virtual Private Servers, and includes some fixes and installation instructions specific to VPSes.
Related
Comprehensive Server Guide

From Wikipedia:Virtual private server:

Virtual private server (VPS) is a term used by Internet hosting services to refer to a virtual machine. The term is used for emphasizing that the virtual machine, although running in software on the same physical computer as other customers' virtual machines, is in many respects functionally equivalent to a separate physical computer, is dedicated to the individual customer's needs, has the privacy of a separate physical computer, and can be configured to run server software.

Providers that offer Arch Linux

Warning: We cannot vouch for the honesty or quality of any provider. Please conduct due diligence before ordering.
Note: This list is for providers with a convenient Arch Linux image. Using Arch on other providers is probably possible, but would require loading custom ISOs or disk images or installing under chroot.
Provider Arch Release Virtualization Locations Notes
AlienVPS 2010.05 Xen, KVM Los Angeles, New York
Clodo.ru  ? Xen Moscow Can pay per hour.
FanaticalVPS 2010.05 i686/x86_64 OpenVZ Nuremburg
GigaTux 2010.05 x86_64 Xen Chicago, Frankfurt, Israel, London, San Jose
Host Virtual 2011.08 Xen Amsterdam, Chennai (Madras), Chicago, Dallas, Hong Kong, London, Los Angeles, New York, Paris, Reston, San Jose
Hostigation 2010.05 i686 OpenVZ, KVM Charlotte, Los Angeles You can migrate to x86_64.
IntoVPS 2010.05 i686/x86_64 OpenVZ Amsterdam, Bucharest, Dallas, Fremont, London
Linode.com 2011.08 Xen Atlanta, Dallas, Fremont, London, Newark, Tokyo Uses a custom kernel; do not install the linux package.
Lylix 2007.08  ?  ?
OpenVZ.ca 2010.05 i686/x86_64 OpenVZ Canada
Rackspace Cloud 2011.10 Xen Chicago, Dallas, London, Hong Kong Can pay per hour.
RamHost.us 2009.10 OpenVZ, KVM Atlanta, England, Germany, Los Angeles
Tilaa 2011.08 i686/x86_64 KVM Amsterdam
TransIP 2011.08 KVM Amsterdam
XenVZ 2009.12 x86_64 OpenVZ, Xen UK?
Virpus 2010.05 x86_64 OpenVZ, Xen Kansas City
VPSLink 0.8 OpenVZ, Xen Boston

Installation

KVM

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: Are there instructions specific to VPSes? (Discuss in Talk:Virtual Private Server#)

See KVM#Preparing an (Arch) Linux guest.

OpenVZ

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: Move some of the #Troubleshooting instructions here. (Discuss in Talk:Virtual Private Server#)

Xen

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: Are there instructions specific to VPSes? (Discuss in Talk:Virtual Private Server#)

See Xen#Arch as Xen guest (PVHVM mode) and/or Xen#Arch as Xen guest (PV mode).

Troubleshooting

OpenVZ: kernel too old for glibc

Are you on a virtual private server (VPS) with an old kernel & broke your system? Are you using OpenVZ?

Arch Template Used: http://dev.archlinux.org/~ibiru/openvz/2010.05/arch-2010.05-i686-minimal.tar.gz

Try doing the following to fix it:

1) Edit /etc/pacman.conf and add the following repository ABOVE [core]:

for 32-bit:

[glibc-vps]
Server = http://dev.archlinux.org/~ibiru/openvz/glibc-vps/i686

for 64-bit:

[glibc-vps]
Server = http://dev.archlinux.org/~ibiru/openvz/glibc-vps/x86_64

2) Then run pacman -Syy followed by pacman -Syu. You will be notified to upgrade pacman first.

3) Upgrade the pacman database by running pacman-db-upgrade as root.

4) Edit /etc/pacman.conf.pacnew (new pacman config file) and add the following repository ABOVE [core]:

[glibc-vps]
Server = http://dev.archlinux.org/~ibiru/openvz/glibc-vps/$arch

5) Replace /etc/pacman.conf with /etc/pacman.conf.pacnew (run as root):

mv /etc/pacman.conf.pacnew /etc/pacman.conf

6) Upgrade your whole system with new packages again pacman -Syu

If you get the following or similar error:

initscripts: /etc/profile.d/locale.sh exists in filesystem

Simply delete that file (e.g., rm -f /etc/profile.d/locale.sh), then run pacman -Syu again. You may also try pacman -Sfyu.


If you get the following or similar error:

filesystem: /etc/mtab exists in filesystem

Run pacman -S filesystem --force


If you get the following or similar error:

libusb-compat: /usr/bin/libusb-config exists in filesystem

Run pacman -S libusb and then pacman -S libusb-compat

7) Before rebooting, you need to install the makedev package by running pacman -S makedev.

8) Add MAKEDEV to /etc/rc.local:

/usr/sbin/MAKEDEV tty
/usr/sbin/MAKEDEV pty

9) Edit /etc/inittab, comment out the following lines (otherwise you will see errors in /var/log/errors.log):

#c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
#c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
#c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
#c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
#c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
#c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux

10) To enable the use of the hostname command, install the package inetutils from the official repositories.

11) Save and reboot.

Enjoy & thank ioni if you happen to be in #archlinux

SSH fails: PTY allocation request failed on channel 0

Some VPSes have an outdated rc.sysinit. You may be able to login via serial console or with

> ssh root@broken.server '/bin/bash -i'

Then run the following:

# mv /etc/rc.sysinit.pacnew /etc/rc.sysinit
# reboot

Once it’s working, you should be able to comment out the udevd_modprobe line in rc.sysinit to save a bit of RAM the next time you reboot.

If the above doesn’t work, take a look at http://fsk141.com/fix-pty-allocation-request-failed-on-channel-0.