Quantcast
Channel: rtrouton – Der Flounder
Viewing all articles
Browse latest Browse all 764

Expanding available disk space on JAMF’s NetSUS VM appliance

$
0
0

Thanks to Allister, I ran across this NetSUS-related feature request at JAMF Nation. While the feature request makes sense in the context of the requester’s shop, it is possible to resize the NetSUS appliance to give it additional space.

The steps should be reasonably similar for each virtualization solution, but see below the jump for how to do this with VMware Fusion 6.x.

Pre-requisites:

The latest stable GParted Live iso file

JAMF’s NetSUS VM .ova file

In VMware Fusion 6.x:

1. Go to File: Import

Screen Shot 2013-11-16 at 3.21.08 PM

2. Choose /path/to/NetSUS.ova in the Choose an Existing Virtual Machine window.

Screen Shot 2013-11-16 at 10.49.03 AM

Screen Shot 2013-11-16 at 10.49.33 AM

3. Save the new VM in a convenient location

Screen Shot 2013-11-16 at 10.50.29 AM

4. The NetSUS .ova will import into the new VM

Screen Shot 2013-11-16 at 10.50.41 AM

5. Once the import finishes, click the Customize settings button.

Screen Shot 2013-11-16 at 10.51.21 AM

6. In the VM settings, click on the Hard Disk settings.

Screen Shot 2013-11-16 at 10.51.39 AM

7. Resize the VM to the desired size and then click the Apply button.

Screen Shot 2013-11-16 at 10.52.11 AM

8. The VM will then resize the disk.

Screen Shot 2013-11-16 at 10.52.29 AM

9. Once the resize is successful, click the OK button.

Screen Shot 2013-11-16 at 10.52.52 AM

10. Go back to the VM settings, and click on the CD/DVD settings.

Screen Shot 2013-11-16 at 10.54.24 AM copy

11. Ensure that the CD/DVD drive is enabled.

Screen Shot 2013-11-16 at 10.53.18 AM

12. Choose the GParted Live iso file.

Screen Shot 2013-11-16 at 10.53.29 AM

Screen Shot 2013-11-16 at 10.54.13 AM

13. Go back to the VM settings, and click on the Startup Disk settings.

Screen Shot 2013-11-16 at 10.54.24 AM copy 2

14. In the Startup Disk settings, select CD/DVD.

Screen Shot 2013-11-16 at 10.54.29 AM

15. Boot the VM.

While the VM is booted from the GParted Live iso file:

1. Select GParted Live (Default Settings)

Screen Shot 2013-11-16 at 10.55.02 AM

2. When prompted, select Don’t touch keymap

Screen Shot 2013-11-16 at 10.55.32 AM

3. Select your preferred language

Screen Shot 2013-11-16 at 10.55.38 AM

4. When prompted for mode, enter 0.

Screen Shot 2013-11-16 at 10.56.02 AM

5. In GParted, there should be a drive showing up with the amount of space you gave the VM. In this case, the drive ID is /dev/sda2 and the NetSUS partition is /dev/sda5

6. Right-click on /dev/sda2 and select Resize/Move.

Screen Shot 2013-11-16 at 10.59.30 AM

7. Drag the slider so that /dev/sda2 is being allocated all of the available free space.

Screen Shot 2013-11-16 at 10.59.47 AM

8. Once /dev/sda2 has been given all of the available space, click the Resize/Move button.

Screen Shot 2013-11-16 at 3.58.12 PM

9. Click the Apply button in the toolbar.

Screen Shot 2013-11-16 at 3.58.55 PM

10. At the warning window, click the Apply button.

Screen Shot 2013-11-16 at 3.59.02 PM

11. Once operations are completed, click the Close button.

Screen Shot 2013-11-16 at 3.59.08 PM

12. Right-click on /dev/sda5 and select Resize/Move.

Screen Shot 2013-11-16 at 5.00.12 PM

13. Drag the slider so that /dev/sda5 is being allocated all of the available free space.

Screen Shot 2013-11-16 at 5.00.19 PM

14. Once /dev/sda5 has been given all of the available space, click the Resize/Move button.

Screen Shot 2013-11-16 at 5.00.23 PM

15. Click the Apply button in the toolbar.

Screen Shot 2013-11-16 at 5.00.36 PM

16. At the warning window, click the Apply button.

Screen Shot 2013-11-16 at 5.01.06 PM

17. Once operations are completed, click the Close button.

Screen Shot 2013-11-16 at 5.01.15 PM

18. Go back to the VM settings, and click on the Startup Disk settings.

Screen Shot 2013-11-16 at 10.51.39 AM

19. In the Startup Disk settings, select Hard Drive.

Screen Shot 2013-11-16 at 11.03.35 AM

20. Shut down the VM.


While booted from the NetSUS VM’s boot drive:

1. Start up your NetSUS VM and hit the Enter key to get past the opening welcome screen

Screen Shot 2013-11-16 at 11.04.11 AM

2. Log in as the shell user account

Screen Shot 2013-11-16 at 11.06.50 AM

3. Run the following command to check the available disk space:

sudo fdisk -l

Screen Shot 2013-11-16 at 1.56.20 PM

4. Run the following command to check the current filesystem setup and partition sizes:

df -h

Screen Shot 2013-11-16 at 1.56.33 PM

The NetSUS partition is listed as /dev/mapper/NetSUS-root

5. To display the free space in the VM’s Linux Volume Manager, run the following command:

sudo vgdisplay

Screen Shot 2013-11-16 at 1.57.13 PM
Screen Shot 2013-11-16 at 1.57.20 PM

Note the free space in the NetSUS Volume Group which can now be assigned to a Logical Volume

6. Reassign the free space to /dev/mapper/NetSUS-root by running the following command:

sudo lvextend -l +100%FREE /dev/mapper/NetSUS-root

Screen Shot 2013-11-16 at 1.59.50 PM

7. Run the following command to verify that the free space has been reassigned:

sudo vgdisplay

Screen Shot 2013-11-16 at 2.00.08 PM

8. To perform a live resize of /dev/mapper/NetSUS-root, run the following command:

sudo resize2fs -p /dev/mapper/NetSUS-root

Screen Shot 2013-11-16 at 6.20.53 PM

9. Run the following command to check the current filesystem setup and partition sizes:

df -h

Screen Shot 2013-11-16 at 2.01.05 PM

/dev/mapper/NetSUS-root should now be listed with the additional space.

10. To make sure all changes have been committed, I recommend rebooting the NetSUS appliance at this point.



Viewing all articles
Browse latest Browse all 764

Trending Articles