|
||||
|
|
Build a VPS Host with Ubuntu Server 8.10 and KVM: Ubuntu Server ConfigurationOnce your new server reboots, you can log into it via SSH from your workstation to continue your configuration. Before logging in, get the ip address of the server with the following command. You want the IP address assigned to the "eth0" network adapter. ifconfig Once you're logged in, the first order of business is to install all outstanding updates. Execute the following commands. sudo apt-get update sudo apt-get upgrade --show-upgraded Next, install some required packages: sudo apt-get install virt-manager uml-utilities Now it's time to set up networking. It's a good idea to assign a static IP address to your server to make administration easier. We're also going to define a new network interface called "br0" here. This interface is a bridge, which allows other virtual network connections to share the eth0 network adapter. This is what will allow our virtual private servers to function on the network. Edit the file "/etc/network/interfaces" (using nano for example) and modify it to match the following example. Substitute settings for your own LAN where appropriate. auto lo iface lo inet loopback auto eth0 iface eth0 inet manual auto br0 iface br0 inet static address 192.168.1.110 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 bridge_ports eth0 bridge_fd 9 bridge_hello 2 bridge_maxage 12 bridge_stp off Once you've got everything set up, reboot your server to make sure everything comes back up properly. This is a good time to add the server's IP address and hostname to your LAN's DNS server, or your workstation's /etc/hosts file. Log back into it using the new static IP address or hostname to continue, this time specifying the "-X" option to enable X11 forwarding for our server administration application. ssh -X [your server ip or hostname]
|
|||
| All contents Copyright © 2007-2009 ClassHelper.org®. Please see our Privacy Policy. | ||||