Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Increasing "actual size" from the VM to increase space for pfsense

    Scheduled Pinned Locked Moved Virtualization
    17 Posts 5 Posters 12.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      onlineph
      last edited by

      In relation to the oracle virtual box that has a dynamic option that never grows, i wonder if somebody in our community has experience using the gparted apps to increase their disk "actual size" to atleast 10% smaller that the virtual disk.

      I've tried to understand this : http://wtf.hijacked.us/wiki/index.php/Resizing_Partitions

      but due to the limitation of my linux/unix knowledge I just cant get over it, so I tried to research and I found "gparted". I just wonder one might have a good experience on this?

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        What are you trying to do - give pfsense more space or less space?  How much space did you give it when you created the vm and its disk?

        I am not really a freebsd guru – but there is limited shrink/grow support in the older versions - pfsense uses 8.3..

        To be honest - this is a VM, just backup your config - redo it with the size of disks you want, etc. and then restore your config.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • K
          kejianshi
          last edited by

          He doesn't want to do that because he has customized his pretty gui outside the limits of what would be backed up and restored.

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            What??  Really that is his issue?  Customized what exactly - what widgets are on the system info page?

            Your just F'ing with me right?

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • K
              kejianshi
              last edited by

              Nope - I don't think so.  He has customizations he wants to keep.
              Primarily cosmetic stuff I think.
              I understand him, but I think those sorts of customizations are fairly futile long term because of this very issue.

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by

                If all he is looking for is more space for proxy cache, this is the same guy from that thread isn't it?  I am guessing pfsense created 8GB partition no matter what size disk he gave the vm?  I know that is what esxi recommands for size when you say freebsd as virtual machine type.

                Can't he just add another Virtual disk to the VM and partition and mount and tell his cache to be there?  Why does he have to do anything with resizing anything pfsense OS disks?

                If I get some time I will fire up a new vm copy and get it a big drive and see what happens when you install pfsense about disk size..  Mine is only 4GB in esxi.  And I don't do proxy/cache on mine so its only using currently 22% of 2.9G on the web gui.. Which doesn't include the swap partition, etc..

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                1 Reply Last reply Reply Quote 0
                • K
                  kejianshi
                  last edited by

                  Actually - Yes he could.

                  1 Reply Last reply Reply Quote 0
                  • O
                    onlineph
                    last edited by

                    @johnpoz:

                    Can't he just add another Virtual disk to the VM and partition and mount and tell his cache to be there?  Why does he have to do anything with resizing anything pfsense OS disks?

                    Hi there. Thanks for taking time to look into my very concern. Yeah you're right, my very problem is the VB dynamic disk that never grows, just like now. One of my pf box already hit 100% disk space yet I have a 100G virtual disk. It never grow really.

                    I like the idea of just creating another virtual dis to the VM and mount it and tell pfsense to store the cache there. I love that idea but to iplement it, I'm in a limbp unless you'll have to guide me really. I'm not a programmer or a techie guy, I just learned some stuff from this forum and still learning from you experts so, please do help e on this.

                    Of first, I'll create another VM disk. Anyway, i'm using the oracle virtualbox. so please let's get started.

                    1 Reply Last reply Reply Quote 0
                    • S
                      Supermule Banned
                      last edited by

                      Try this:

                      Vsphere client -> log into the Esxi -> Mark the pfsense VM -> right click on datastore -> Browse datastore for Pfsense VM -> Rightclick Pfsense VM -> click on inflate -> Wait until finish -> reboot pfsense VM

                      Test if working

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator
                        last edited by

                        ^ he is using virtualbox ;)

                        So you don't know how to add a disk to a vm in virtual disk?  Or you don't know how to work with another disk in freebsd/pfsense?

                        Here is help with freebsd
                        http://www5.us.freebsd.org/doc/handbook/disks-adding.html

                        sure you can google how to add another disk to a vm in virtualbox.

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                        1 Reply Last reply Reply Quote 0
                        • O
                          onlineph
                          last edited by

                          I thought I don't know how to add a new disk. I just did created another disk in the VM. I'll try to check with the link hopefully its not that techie so I may understand it.

                          1 Reply Last reply Reply Quote 0
                          • O
                            onlineph
                            last edited by

                            Gosh! I'm totally lost!

                            I'm so sorry I can't follow those instructions. Can somebody guide me in lay man's terms?

                            I not have a IDE primary master and  IDE Secondary Master. So please just simplify a guide on how will I tell pfsense to store the cache in the IDE secondary master (virtual disk).

                            1 Reply Last reply Reply Quote 0
                            • S
                              Supermule Banned
                              last edited by

                              Just note the name of the second drive. IDE secondary is old fashioned and physical disks…

                              You just need the name of the virtual disk

                              1 Reply Last reply Reply Quote 0
                              • johnpozJ
                                johnpoz LAYER 8 Global Moderator
                                last edited by

                                Ok – so you added this disk in virtualbox

                                Can you please reboot pfsense, and then do a couple of commands so we can see that the disk is there

                                example you say your disks are IDE?  this should work then

                                [2.1-RELEASE][root@pfsense.local.lan]/root(2): atacontrol list
                                ATA channel 0:
                                    Master:      no device present
                                    Slave:      no device present
                                ATA channel 1:
                                    Master: acd0 <vmware virtual="" ide="" cdrom="" drive="" 00000001="">ATA/ATAPI revision 4
                                    Slave:      no device present

                                I don't have any disks connected via IDE in my virtual setup.. another command would be

                                [2.1-RELEASE][root@pfsense.local.lan]/root(3): sysctl kern.disks
                                kern.disks: da0

                                There is my disk da0, in your output we should see your 2 now?

                                another command you could do is
                                [2.1-RELEASE][root@pfsense.local.lan]/root(6): camcontrol devlist
                                <vmware virtual="" disk="" 1.0="">          at scbus0 target 0 lun 0 (da0,pass0)
                                [2.1-RELEASE][root@pfsense.local.lan]/root(7):

                                See there is my scsi disk at da0 again.. This would also show you usb, etc.

                                Once we see the disk we can walk you through creating a file system on it that fills the disk and mounting it so you can use it as your cache.</vmware></vmware>

                                An intelligent man is sometimes forced to be drunk to spend time with his fools
                                If you get confused: Listen to the Music Play
                                Please don't Chat/PM me for help, unless mod related
                                SG-4860 24.11 | Lab VMs 2.8, 24.11

                                1 Reply Last reply Reply Quote 0
                                • K
                                  kejianshi
                                  last edited by

                                  I'm really suprised you still have not just created a disk that isn't the dynamic / inflating type and reinstalled.

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    basitkhan
                                    last edited by

                                    hi..

                                    I was facing the same issue, but today i fixed it by using very useful tutorial and follow the steps as mentioned in the following link

                                    http://www.unibia.com/unibianet/freebsd/resize-your-existing-freebsd-root-partitionslice-safely-without-re-installing

                                    Great work!

                                    1 Reply Last reply Reply Quote 0
                                    • O
                                      onlineph
                                      last edited by

                                      @kijianshi – Yeah I did already actually I am trying the fresh installation from 203 and/or 2.1 but am having a "cp downt suport long mode" error. Dont know what to do. I have created a new thread for the error.

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post
                                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.