Forum Jump :

Author Message


Posts: 1
Rank:


Country: af
Location: 31°37′N 65°43′E
Occupation:
Age:
In-game name: anderson

 
#141007 Posted at 2013-03-26 14:05        
     
**Disclaimer: I run Linux in my household, I have Win7 installed on my game rig, but it is not the primary OS on that system. I wanted to build an A3 dedicated server, because that is just how I am.

So, in case there are people out there that have an Ubuntu (Linux) server and want to get a Windows server running to install Steam and A3, here's how I did it. I don't have a monitor attached to that server, so I had to do a little more work to be able to run it, it all works out in the end.

I have tested this on an Ubuntu 12.04 server (host system) with the IP address 192.168.0.100 where I'm logged in as a normal user.


To install VirtualBox 4.1 on our Ubuntu 12.04 server, we open /etc/apt/sources.list...
sudo nano /etc/apt/sources.list
Add the following line:
deb http://download.virtualbox.org/virtualbox/debian precise contrib


Download the following
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -


sudo apt-get update


Execute this command
sudo apt-get install linux-headers-$(uname -r) build-essential virtualbox-4.1 dkms
(The dkms package ensures that the VirtualBox host kernel modules are properly updated if the Linux kernel version changes.)


Get the extension pack
cd /tmp
wget http://download.virtualbox.org/virtualbox/4.1.18/Oracle_VM_VirtualBox_Extension_Pack-4.1.18-78361.vbox-extpack
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.1.18-78361.vbox-extpack

(Make sure you grab the latest version from the VirtualBox web site.)


Now we must add the user that will run VirtualBox (administrator in this example) to the vboxusers group:
sudo adduser administrator vboxusers
VirtualBox is now installed and ready to be used.

***Step by step: creating a virtual machine on a headless server***

Note that on the server machine, since we will only use the headless server, neither Qt nor SDL nor the X Window system will be needed.


On the headless server, create a new virtual machine:
VBoxManage createvm --name "A3Server" --ostype WindowsXP --register

Note that if you do not specify --register, you will have to manually use the registervm command later.


Note further that you do not need to specify --ostype, but doing so selects some sane default values for certain VM parameters, for example the RAM size and the type of the virtual network device. To get a complete list of supported operating systems you can use
VBoxManage list ostypes

Make sure the settings for this VM are appropriate for the guest operating system that we will install. For example:
VBoxManage modifyvm "A3Server" --memory 4096 --acpi on --boot1 dvd --nic1 nat

Create a virtual hard disk for the VM (in this case, 100GB in size):
VBoxManage createhd --filename "A3Server.vdi" --size 100000

Add an IDE Controller to the new VM:
VBoxManage storagectl "A3Server" --name "IDE Controller" --add ide --controller PIIX4

Set the VDI file created above as the first virtual hard disk of the new VM:
VBoxManage storageattach "A3Server" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium "A3Server.vdi"

Attach the ISO file that contains the operating system installation that you want to install later to the virtual machine, so the machine can boot from it:
VBoxManage storageattach "A3Server" --storagectl "IDE Controller" --port 0 --device 1 --type dvddrive --medium /full/path/to/iso.iso

Start the virtual machine using VBoxHeadless:
VBoxHeadless --startvm "A3Server"

If everything worked, you should see a copyright notice. If, instead, you are returned to the command line, then something went wrong. Here's what mine shows, for an example:
anderson@primus:~$ VBoxHeadless --startvm "A3Server"
Oracle VM VirtualBox Headless Interface 4.1.24
(C) 2008-2012 Oracle Corporation
All rights reserved.


VRDE server is listening on port 3389.

Connect via RDP, install your server OS and then follow the standard guide for installing an A3 dedicated server like the one on the BIS forums





This topic is locked, new posts are not allowed.