Common operations at DCLIPv6OnlyHosting » History » Revision 2
Revision 1 (Timothée Floure, 02/24/2020 11:21 AM) → Revision 2/5 (ll nu, 03/10/2020 06:13 PM)
h1. Common operations at DCLIPv6OnlyHosting
{{toc}}
h2. How to check if a customer VM is alive?
There are many ways to check if a DCL VM is running/reachable. Here's the standard workflow:
* First check: try to 'ping' the VM to see if it is up and reachable from the global Internet.
** IPv6: @ping -6 $IPV6_ADDR@ and (if available) IPv4: @ping -4 $IPV4_ADDR@
** 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.
* 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).
** If state is not @RUNNING@ and VNC is unavailable/does not show anything, assume VM is down/blocked and requires (re)boot.
* 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@.
** @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.
*** You can try to SSH if available, or to curl HTTP(S) ports (@curl http://$ADDR@).
** If @ping@ does not work and @nmap@ does not return anything, assume network is broken.
h3. NMAP example
<pre>
I ~ » nmap -6 redmine.ungleich.ch
Starting Nmap 7.80 ( https://nmap.org ) at 2020-02-24 11:16 CET
Nmap scan report for redmine.ungleich.ch (2a0a:e5c0:0:2:400:b3ff:fe39:7ba3)
Host is up (0.048s latency).
Other addresses for redmine.ungleich.ch (not scanned): 185.203.112.9
rDNS record for 2a0a:e5c0:0:2:400:b3ff:fe39:7ba3: 2a0a-e5c0-0000-0002-0400-b3ff-fe39-7ba3.loves.ipv6.at.ungleich.ch
Not shown: 996 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
80/tcp open http
443/tcp open https
Nmap done: 1 IP address (1 host up) scanned in 13.58 seconds
</pre>
h2. A. Add a new VPN manually
*setup*
https://redmine.ungleich.ch/issues/7040
*communicate with customer*
https://support.ungleich.ch/Ticket/Display.html?id=1318
h2. B. add a new rDNS manually
*setup*
https://redmine.ungleich.ch/issues/7039
*communicate with customer*
https://support.ungleich.ch/Ticket/Display.html?id=2201
h2. C. upgrade RAM or CPU manually
*setup*
<pre>
1.inform to customer about rebooting VM
2.poweroff VM
3.resize RAM or VCPU (opeenebula web --> select VM --> capacity --> resize button)
4.resume VM
5.inform to customer
</pre>
*communicate with customer*
https://support.ungleich.ch/Ticket/Display.html?id=2066
https://support.ungleich.ch/Ticket/Display.html?id=2121
h2. D. add a new extra hdd or sdd manually
*setup*
<pre>
opeenebula web --> select VM --> storage --> attach disk
--> select disk image --> advance option --> Size on instantiate
ex) 300GB HDD, VM on place6
select "datadisk-100GB-place6" --> advance option --> Size on instantiate (put in 300) --> attach
</pre>
*communicate with customer*
https://support.ungleich.ch/Ticket/Display.html?id=2335
h2. E. resize sdd manually
*setup*
<pre>
opeenebula web --> select VM --> storage --> resize button(X shape) --> put in size
</pre>
*communicate with customer*
https://support.ungleich.ch/Ticket/Display.html?id=1247
h2. F. create a customer own network manually
*setup*
https://redmine.ungleich.ch/issues/7028
*communicate with customer*
https://support.ungleich.ch/Ticket/Display.html?id=2044
h2. G. change a customer ssh pub-key manually
*setup*
<pre>
1.inform to customer about rebooting VM
2.poweroff VM
3.change ssh-key (opeenebula web --> select VM --> conf--> updated configuration --> Context --> configuration tab --> change key)
4.resume VM
5.inform to customer
</pre>
*communicate with customer*
https://support.ungleich.ch/Ticket/Display.html?id=2444
h2. H. customer's question where is his ssh-key
*communicate with customer*
https://support.ungleich.ch/Ticket/Display.html?id=2418