Leaseweb is a Dutch cloud computing and web services company with offices in Europe, Asia, and the United States. Leaseweb is a subsidiary of OCOM, an internet services company headquartered in Amsterdam, the Netherlands

Address Management

  • From the leaseweb interface, select network in the lefthand navigation pane.
  • Under the location bar in the main pane should be a dropdown named "Select View:". Set it to VPC. 
  • Here we have one defined VPC. Let's configure it.

Adding a New Public IP Address

  1. Follow the above instructions to the above diagram. In the diagram select 'Public IPs' from the Router.
  2. In the top left of the main pane there is a button labelled 'Acquire New IPs'. Press it to see a dropdown of available IP Addresses in your subnet space.
  3. Select one and affirm.

Managing NAT Rules

  1. Select the public address from the Routers 'Public IPs' space.
  2. Select the configuration tab.
  3. Enable Static NAT.
  4. Configure the Static NAT to the desired virtual machine.


Resizing Disks

  1. Check the disk to know what size it is and how big you want it.
  2. Shut down the VM/
  3. Go to Instances and hover over the machine.
  4. Click Volumes then resize the disk accordingly.
  5. Turn machine back on and do the resize in software.

root@mysql1-lw-us:/var/log/mysql# fdisk /dev/vda

Welcome to fdisk (util-linux 2.27.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command.

Command (m for help): p Disk /dev/vda: 250 GiB, 268435456000 bytes, 524288000 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x5f0846a2

Device Boot Start End Sectors Size Id Type /dev/vda1 * 2048 41940991 41938944 20G 83 Linux

Command (m for help): d Selected partition 1 Partition 1 has been deleted.

Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): First sector (2048-524287999, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-524287999, default 524287999):

Created a new partition 1 of type 'Linux' and of size 250 GiB.

Command (m for help):

Command (m for help): w

The partition table has been altered. Calling ioctl() to re-read partition table. Re-reading the partition table failed.: Device or resource busy

The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).

root@mysql1-lw-us:/var/log/mysql# partprobe root@mysql1-lw-us:/var/log/mysql# resize2fs /dev/vda1 resize2fs 1.42.13 (17-May-2015) Filesystem at /dev/vda1 is mounted on /; on-line resizing required olddescblocks = 2, newdescblocks = 16 The filesystem on /dev/vda1 is now 65535744 (4k) blocks long.