Common operations at DCLIPv6OnlyHosting » History » Version 5
ll nu, 03/10/2020 06:17 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 | 5 | ll nu | h1. "Similar wikipage":https://redmine.ungleich.ch/projects/datacenterlight/wiki/Support_customer's_requests |