ubs Ubuntu
Change Hostname¶
ubs187 shows this Static hostname: ubs1-bct
Icon name: computer-vm
Chassis: vm
Machine ID: 376134073c9545d0a88f9b375d8b09fe
Boot ID: 3bcbcb9ebdbe400dba9ff72cf0ad3eab
Virtualization: vmware
Operating System: Ubuntu 16.04.1 LTS
Kernel: Linux 4.4.0-184-generic
Architecture: x86-64
Install VMWare Tools¶
Install MSSQL Server¶
Restore Backup to MSSQL¶
Expand Ubuntu Volume¶
To increase the size of your VMware Virtual Machine, you need to do 2 major steps. First, you need to increase the disk’s size in your vSphere Client or through the CLI. This will increase the “hardware” disk that your Virtual Machine can see. Then, you need to utilize that extra space by partitioning it. If you’re interested in just resizing your Linux LVM, please proceed to step 2. In this example, I’m increasing a 3GB disk to a 10GB disk (so you can follow using the examples). I would advise you to read the excellent documention on Logical Volume Management on tldp.org. Just a small note beforehand; if your server supports hot adding new disks, you can just as easily add a new Hard Disk to your Virtual Machine. You can increase the LVM volume without rebooting your Virtual Machine by rescanning the SCSI bus, more on that later in this article.
(1) Checking if you can extend the current disk or need to add a new one¶
This is rather important step, because a disk that has been partitioned in 4 primary partitions already can not be extended any more. To check this, log into your server and run fdisk -l at the command line.
Disk /dev/sda: 187.9 GB, 187904819200 bytes
255 heads, 63 sectors/track, 22844 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 2636 20972857+ 8e Linux LVM
Disk /dev/sda: 187.9 GB, 187904819200 bytes
255 heads, 63 sectors/track, 22844 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 2636 20972857+ 8e Linux LVM
/dev/sda3 2637 19581 136110712+ 8e Linux LVM
/dev/sda4 19582 22844 26210047+ 8e Linux LVM
It will show you that there are already 4 primary partitions on the system, and you need to add a new Virtual Disk to your Virtual Machine. You can still use that extra Virtual Disk to increase your LVM size, so don’t worry.
(2) The “hardware” part, “physically” adding diskspace to your VM¶
Increasing the disk size can be done via the vSphere Client, by editing the settings of the VM (right click > Settings). 
Now, depending on the first step, if there aren’t four primary partitions yet, you can increasing the privisioned disk space.
If the “Provisioned Size” area (top right corner) is greyed out, consider turning off the VM first (if it does not allow “hot adding” of disks/sizes), and check if you have any snapshots made of that VM. You can not increase the disk size, as long as there are available snapshots. Alternatively, if you already have 4 primary paritions, you can also choose “Add…” to add new Hardware “Virtual Disk” to your VM, with the desired extra space.
(3) Partitioning the unallocated space: if you’ve increased the disk size¶
Once you’ve changed the disk’s size in VMware, boot up your VM again if you had to shut it down to increase the disk size in vSphere. If you’ve rebooted the server, you won’t have to rescan your SCSI devices as that happens on boot. If you did not reboot your server, rescan your SCSI devices as such. First, check the name(s) of your scsi devices.
Then rescan the scsi bus. Below you can replace the ‘0:0:0:0’ with the actual scsi bus name found with the previous command. Each colon is prefixed with a slash, which is what makes it look weird.That will rescan the current scsi bus and the disk size that has changed will show up.
(3) Partitioning the unalloced space: if you’ve added a new disk¶
If you’ve added a new disk on the server, the actions are similar to those described above. But instead of rescanning an already existing scsi bus like show earlier, you have to rescan the host to detect the new scsi bus as you’ve added a new disk.
total 0
drwxr-xr-x 3 root root 0 Feb 13 02:55 .
drwxr-xr-x 39 root root 0 Feb 13 02:57 ..
drwxr-xr-x 2 root root 0 Feb 13 02:57 host0
Your host device is called ‘host0’, rescan it as such:
Create the new partition¶
Once the rescan is done (should only take a few seconds), you can check if the extra space can be seen on the disk.
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 391 3036285 8e Linux LVM
The number of cylinders for this disk is set to 1305.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
Now enter ‘n’, to create a new partition.
Command action
e extended
p primary partition (1-4)
Note: the cylinder values will vary on your system. It should be safe to just hint enter, as fdisk will give you a default value for the first and last cylinder (and for this, it will use the newly added diskspace).
Now type t to change the partition type. When prompted, enter the number of the partition you’ve just created in the previous steps. When you’re asked to enter the “Hex code”, enter 8e, and confirm by hitting enter. Once you get back to the main command within fdisk, type w to write your partitions to the disk. You’ll get a message about the kernel still using the old partition table, and to reboot to use the new table. The reboot is not needed as you can also rescan for those partitions using partprobe. Run the following to scan for the newly created partition. If that does not work for you, you can try to use “partx” to rescan the device and add the new partitions. In the command below, change /dev/sda to the disk on which you’ve just added a new partition.
(3) Extend your Logical Volume with the new partition¶
Now, create the physical volume as a basis for your LVM. Please replace /dev/sda3 with the newly created partition.
Now find out how your Volume Group is called. Let’s extend that Volume Group by adding the newly created physical volume to it. With pvscan, we can see our newly added physical volume, and the usable space (7GB in this case).PV /dev/sda2 VG VolGroup00 lvm2 [2.88 GB / 0 free]
PV /dev/sda3 VG VolGroup00 lvm2 [7.00 GB / 7.00 GB free]
Total: 2 [9.88 GB] / in use: 2 [9.88 GB] / in no VG: 0 [0 ]
If you’re running this on Ubuntu, use the following.
All that remains now, it to resize the file system to the volume group, so we can use the space. Replace the path to the correct /dev device if you’re on ubuntu/debian like systems.And we’re good to go!
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 9.1G 1.8G 6.9G 21% /
/dev/sda1 99M 18M 77M 19% /boot
tmpfs 125M 0 125M 0% /dev/shm
Original Article
https://ma.ttias.be/increase-a-vmware-disk-size-vmdk-formatted-as-linux-lvm-without-rebooting/
Univention Corporate Server¶
VMWare Settings¶
4GB CPU 4 RAM
Change Port to 8649¶
System - Registry
sudo ucr set sshd/port=8649
sudo ucr set security/packetfilter/package/univention-base-files/tcp/8649/all=ACCEPT
sudo ucr set security/packetfilter/package/univention-base-files/tcp/8649/all/en=SSH
sudo reboot
Add user vnyx¶
Users
Install Letsencrypt¶
Favorites - App Center - Let’s Encrypt
Upgrading¶
** DO NOT UPGRADE ONLYOFFICE to 5.5.1.76 ****
ONLYOFFICE¶
Reinstall Fonts¶
Check
If there is no Microsoft folder, continue:
Clear the browser cache and reopen the page.