Project

General

Profile

Common operations at DCLIPv6OnlyHosting » History » Version 2

ll nu, 03/10/2020 06:13 PM

1 1 Timothée Floure
h1. Common operations at DCLIPv6OnlyHosting
2
3
{{toc}}
4
5
h2. How to check if a customer VM is alive?
6
7
There are many ways to check if a DCL VM is running/reachable. Here's the standard workflow:
8
9
* First check: try to 'ping' the VM to see if it is up and reachable from the global Internet.
10
** IPv6: @ping -6 $IPV6_ADDR@ and (if available) IPv4: @ping -4 $IPV4_ADDR@
11
** The VM is up and running if you get an answer, *but* ICMP requests (= ping) might be blocked by a firewall on the target or the target's networking might be broken: you'll have to switch to the next check.
12
* Second check: find the VM on "OpenNebula SunStone":https://opennebula.ungleich.ch (= OpenNebula Web interface) under _the Instances > VM_ tab and check its _LCM State_, which should be @RUNNING@ if everything's alright. Try to open the VNC display (top-left VNC button once you have selected the VM) to see what's currently on screen (likely TTY login, which means the VM is up but does not say anything on networking).
13
** If state is not @RUNNING@ and VNC is unavailable/does not show anything, assume VM is down/blocked and requires (re)boot.
14
* If the VM is up but does not answer to ICMP requests (= ping), try to see if there is any other open port with @nmap@.
15
** @nmap -6 $IPV6_ADDR@ (might take some time) will try to find open ports on the target. Try IPv6 and IPv4 (replace @-6@ by @-4@) if available, since some software/firewall default to IPv4-only. See the example below for a healthy service.
16
*** You can try to SSH if available, or to curl HTTP(S) ports (@curl http://$ADDR@).
17
** If @ping@ does not work and @nmap@ does not return anything, assume network is broken.
18
19
h3. NMAP example
20
21
<pre>
22
I ~ » nmap -6 redmine.ungleich.ch
23
Starting Nmap 7.80 ( https://nmap.org ) at 2020-02-24 11:16 CET
24
Nmap scan report for redmine.ungleich.ch (2a0a:e5c0:0:2:400:b3ff:fe39:7ba3)
25
Host is up (0.048s latency).
26
Other addresses for redmine.ungleich.ch (not scanned): 185.203.112.9
27
rDNS record for 2a0a:e5c0:0:2:400:b3ff:fe39:7ba3: 2a0a-e5c0-0000-0002-0400-b3ff-fe39-7ba3.loves.ipv6.at.ungleich.ch
28
Not shown: 996 closed ports
29
PORT    STATE SERVICE
30
22/tcp  open  ssh
31
25/tcp  open  smtp
32
80/tcp  open  http
33
443/tcp open  https
34
35
Nmap done: 1 IP address (1 host up) scanned in 13.58 seconds
36
</pre>
37 2 ll nu
38
39
h2. A. Add a new VPN manually
40
41
*setup*
42
https://redmine.ungleich.ch/issues/7040
43
*communicate with customer*
44
https://support.ungleich.ch/Ticket/Display.html?id=1318
45
46
h2. B. add a new rDNS manually
47
48
*setup*
49
https://redmine.ungleich.ch/issues/7039
50
*communicate with customer*
51
https://support.ungleich.ch/Ticket/Display.html?id=2201
52
53
h2. C. upgrade RAM or CPU manually
54
55
*setup*
56
<pre>
57
1.inform to customer about rebooting VM
58
2.poweroff VM
59
3.resize RAM or VCPU (opeenebula web -->  select VM --> capacity --> resize button)
60
4.resume VM
61
5.inform to customer 
62
</pre>
63
64
*communicate with customer*
65
https://support.ungleich.ch/Ticket/Display.html?id=2066
66
https://support.ungleich.ch/Ticket/Display.html?id=2121
67
68
h2. D. add a new extra hdd or sdd manually
69
70
*setup*
71
<pre>
72
opeenebula web -->  select VM --> storage --> attach disk 
73
--> select disk image --> advance option --> Size on instantiate
74
75
ex) 300GB HDD, VM on place6
76
select "datadisk-100GB-place6" --> advance option --> Size on instantiate (put in 300) --> attach
77
</pre>
78
*communicate with customer*
79
https://support.ungleich.ch/Ticket/Display.html?id=2335
80
 
81
h2. E. resize sdd manually
82
83
*setup*
84
<pre>
85
opeenebula web -->  select VM --> storage --> resize button(X shape) --> put in size
86
</pre>
87
88
*communicate with customer*
89
https://support.ungleich.ch/Ticket/Display.html?id=1247
90
 
91
h2. F. create a customer own network manually
92
93
*setup*
94
https://redmine.ungleich.ch/issues/7028
95
*communicate with customer*
96
https://support.ungleich.ch/Ticket/Display.html?id=2044
97
98
h2. G. change a customer ssh pub-key manually
99
100
*setup*
101
<pre>
102
1.inform to customer about rebooting VM
103
2.poweroff VM
104
3.change ssh-key (opeenebula web -->  select VM --> conf--> updated configuration --> Context --> configuration tab --> change key)
105
4.resume VM
106
5.inform to customer 
107
</pre>
108
109
*communicate with customer*
110
https://support.ungleich.ch/Ticket/Display.html?id=2444
111
112
h2. H. customer's question where is his ssh-key
113
114
*communicate with customer*
115
https://support.ungleich.ch/Ticket/Display.html?id=2418
116