VMUbuntuCoreServer

Version 26 (molator, 03/03/2011 01:58 pm)

1 10 molator
h1. Ryzom Core Server on Ubuntu Virtual Machine
2 1 molator
3 20 molator
It's a draft document.
4 20 molator
The Virtual Machine is in testing stage.
5 20 molator
6 7 molator
{{>toc}}
7 7 molator
8 1 molator
h2. What you need
9 1 molator
10 4 molator
h3. Ubuntu basic knowledge
11 4 molator
12 4 molator
You might need Ubuntu basic knowledge to adapt the Virtual Machine to your needs.
13 4 molator
14 1 molator
h3. VirtualBox
15 1 molator
16 1 molator
> http://www.virtualbox.org/wiki/Downloads
17 1 molator
18 1 molator
h3. The Virtual Machine
19 1 molator
20 8 molator
It's an english Ubuntu Server LTS 10.04 x86 based Virtual Machine.
21 25 molator
> http://ks35074.kimsufi.com:8080/server_virtualbox-0.7.0.1351.7z
22 1 molator
23 18 molator
The file is compressed, you will need about 3.34Gb.
24 18 molator
25 1 molator
h2. Settings
26 1 molator
27 11 molator
h3. VirtualBox
28 11 molator
29 11 molator
Click on New to create your Virtual Machine.
30 15 molator
The next time, you will click on Start instead.
31 11 molator
32 17 molator
!virtualbox00b.jpg!
33 1 molator
34 13 molator
Name your Virtual Machine, select "Linux" and "Ubuntu".
35 13 molator
36 13 molator
!virtualbox01.jpg!
37 13 molator
38 1 molator
You will need about 1.5Gb of memory (RAM + swap).
39 1 molator
40 1 molator
By default, the Virtual Machine is using a 1Gb swap file, so you will need to declare at least 512Mb of RAM in VirtualBox.
41 1 molator
If you want to remove or change the swap file, follow that wiki:
42 1 molator
> http://dev.ryzom.com/wiki/ryzom/MemoryToBuildLinuxServer
43 1 molator
44 14 molator
!virtualbox02.jpg!
45 14 molator
46 19 molator
Select the file you previously downloaded, ryzom_core_server.vdi.
47 14 molator
48 14 molator
!virtualbox03.jpg!
49 14 molator
50 21 molator
Validate your Virtual Machine and click on "Settings" to change the network settings.
51 21 molator
For "Adapter 1", select Attached to "Bridged Adapter".
52 26 molator
53 26 molator
Select your ethernet adapter.
54 26 molator
55 23 molator
Click on "Advanced" to display the advanced settings.
56 21 molator
Set the "Mac Address" to:
57 21 molator
> 080027018C16
58 21 molator
59 22 molator
!virtualbox010.jpg!
60 21 molator
61 21 molator
If you don't specify the Mac Address, the Virtual Machine will detect a new network adapter and ignore the network settings.
62 21 molator
63 1 molator
h3. Logon
64 1 molator
65 1 molator
You can log on the Virtual Machine using:
66 1 molator
> user: ryzom
67 1 molator
68 1 molator
> password: ryzom
69 1 molator
70 14 molator
!virtualbox04.jpg!
71 14 molator
72 1 molator
If you need root access, use "sudo".
73 1 molator
74 1 molator
h3. Networking
75 1 molator
76 1 molator
By default, the Virtual Machine is using the following static ip:
77 1 molator
> 192.168.1.100
78 1 molator
79 4 molator
gateway:
80 4 molator
> 192.168.1.1
81 4 molator
82 4 molator
and DNS
83 4 molator
> 192.168.1.1
84 4 molator
85 1 molator
You can connect on the Virtual Machine using "ssh" and "sftp".
86 1 molator
87 4 molator
If you want to change the ip and gateway, edit:
88 24 Aztecmage
> /etc/network/interfaces
89 4 molator
90 1 molator
If you want to change the DNS, edit:
91 1 molator
> /etc/resolv.conf
92 1 molator
93 18 molator
But don't forget to update FSHost in:
94 1 molator
> /home/ryzom/ryzom/code/ryzom/server/frontend_service.cfg
95 18 molator
96 21 molator
You can use "vi" or "nano" to edit the settings.
97 3 molator
98 3 molator
h3. MySQL
99 3 molator
100 3 molator
You can access to the MySQL server using:
101 3 molator
> user: root
102 3 molator
103 3 molator
> password: ryzom
104 3 molator
105 3 molator
You can use PHPMyAdmin too:
106 3 molator
> http://192.168.1.100/phpmyadmin
107 5 molator
108 3 molator
with the default ip.
109 1 molator
110 1 molator
h2. Running the shard
111 1 molator
112 9 molator
To run the shard, connect to the Virtual Machine using the "ryzom" account, and use the following command:
113 1 molator
> shard start
114 14 molator
115 14 molator
!virtualbox05.jpg!
116 1 molator
117 16 molator
Ignore the various warnings.
118 16 molator
119 1 molator
To stop the shard:
120 1 molator
> shard stop
121 1 molator
122 16 molator
To forcefully stop the Virtual Machine, click on the "Machine" menu and "Close".
123 16 molator
124 16 molator
!virtualbox07.jpg!
125 16 molator
126 16 molator
Then "Power off the machine".
127 16 molator
128 16 molator
!virtualbox08.jpg!
129 1 molator
130 1 molator
You can monitor your shard using the webtool:
131 1 molator
> http://192.168.1.100
132 5 molator
133 1 molator
with the default ip.
134 17 molator
135 17 molator
!virtualbox09b.jpg!
136 1 molator
137 1 molator
h2. Connecting a client
138 1 molator
139 6 molator
If you don't have a client, use that one (windows):
140 1 molator
> https://docs.google.com/leaf?id=0B3LX3q7MsUEGN2UwMGY3MjAtYzlmZS00Yjg4LTljYTgtNDA3MmFiNWQ1Nzg5
141 1 molator
142 1 molator
Edit client.cfg to match your server ip:
143 1 molator
> StartupHost          = "192.168.1.100:40916";
144 5 molator
145 1 molator
with the default ip.
146 1 molator
147 1 molator
That's all folks!!!