New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase available storage with VMDK #169
Comments
I use VirtualBox and I had to increase the size as well. |
What were the steps you used to make it usable to HassOS after you grew the
virtual disk?
…On Mon, Aug 27, 2018 at 10:33 AM NK553 ***@***.***> wrote:
I use VirtualBox and I had to increase the size as well.
@pvizeli <https://github.com/pvizeli> can we make the default size
larger? It requires a lot of steps to increase it later.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#169 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKE3IpnSVz03RhUA6779OnTeFJ-38Kqks5uVAMpgaJpZM4WF80L>
.
|
The default size is 6GB right?
If you intend to run in the desktop version of VMware (Fusion/Workstation) then just skip steps 4 and 5. To move everything to the new install you will need to hassio snapshot your old system setup, download it and restore it on the new instance. |
Ok, but if I have already started it what can I do?
…On Tue, Aug 28, 2018, 9:02 PM mihalski ***@***.***> wrote:
The default size is 6GB right?
With VMware my process is as follows:
1. Download HassOS image and extract vmdk.
2. Create new VM in Fusion/Workstation with UEFI boot and the HassOS
vmdk.
3. Edit settings (such as disk size) to my preferences and apply.
Note: Disk must be IDE and not SCSI.
4. Export OVA (NEVER START THE VM).
5. Upload OVA to VMware ESXi server (could probably also upload via
Fusion/Worstation)
6. Start VM.
If you intend to run in the desktop version of VMware (Fusion/Workstation)
then just skip steps 4 and 5.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#169 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKE3MU5zgk9NvJkG26OIzubSlZf3G49ks5uVegngaJpZM4WF80L>
.
|
You lose nothing from starting again but potentially days of messing around without success if you try resizing an existing install. |
FYI. When you restore a snapshot the add-ons will need to download from their repositories, therefore if you have added a repository and installed an add-on from it, you will first need to re-add the repository to the new install. And don't forget to give the add-ons time to download and re-install. |
So you mean if I snapshot and restore do I need to manually reinstall the
addons or just the repo? If I'm just using the normal community repo I just
need to restore the snapshot right?
…On Wed, Aug 29, 2018 at 3:47 AM mihalski ***@***.***> wrote:
FYI. When you restore a snapshot the add-ons will need to download from
their repositories, therefore if you have added a repository and installed
an add-on from it . you will first need to re-add the repository to the new
install. And don't forget to give the add-ons time to download and
re-install.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#169 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKE3EM9GFZTVo2GUSIEh8d2JdBvuQ6Iks5uVkcFgaJpZM4WF80L>
.
|
Before you restore the snapshot, add any repo that you have installed an add-on from. If you are using the included repos then all you have to do is wait for the add-ons to redownload and install. The configs will be preserved. I learnt all this today when following my own instructions. Now my hassio install is 30GB instead of 6GB. |
Ok thanks for the help, I'll try that. I still think a method for growing
an already created disk would be beneficial though.
…On Wed, Aug 29, 2018 at 7:31 AM mihalski ***@***.***> wrote:
Before you restore the snapshot, add any repo that you have installed an
add-on from. If you are using the included repos then all you have to do is
wait for the add-ons to redownload and install. The configs will be
preserved. I learnt all this today when following my own instructions.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#169 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKE3KDqJ6IWxc_ZR_ng56BfbyUofBLCks5uVnuJgaJpZM4WF80L>
.
|
I've done it before (not in hassos though) and it's always been a major PITA. You need to resize the drive in VMware, then boot off an iso image such as parted-live and shift around partitions.. I don't think it's worth the effort as even if it was supported it would take LONGER than a snapshot and reinstall. |
It should just be a matter of expanding the partition to fill the disk and
then running resize2fs. Both of which can be done from the running system.
I just don't know how you get access to the host. I used to be able to in
ResinOS but haven't figured it out in HassOS yet.
…On Wed, Aug 29, 2018 at 7:43 AM mihalski ***@***.***> wrote:
I've done it before (not in hassos though) and it's always been a major
PITA. You need to resize the drive in VMware, then boot off an iso image
such as parted-live and shift around partitions.. I don't think it's worth
the effort as even if it was supported it would take LONGER than a snapshot
and reinstall.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#169 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKE3IAI73bjIJMWA6Djv_R9O66Jl0Tqks5uVn54gaJpZM4WF80L>
.
|
I think there at LEAST 8 partitions, and I doubt the one we want to resize is last. Therefore it's a matter of resizing the extended, moving a lot of partitions and THEN resizing the one we want to enlarge. |
Oh, i see. that does complicate things.
…On Wed, Aug 29, 2018 at 8:26 AM mihalski ***@***.***> wrote:
I think there at LEAST 8 partitions, and I doubt the one we want to resize
is last. Therefore it's a matter of resizing the extended, moving a lot go
partitions and THEN resizing the one we want to enlarge.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#169 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKE3HF3x7i2S7Fj-lc1Pid_K0m8DNW_ks5uVohhgaJpZM4WF80L>
.
|
It would be great if you could just mount a second disk that automatically
gets mapped to store data.
…On Wed, Aug 29, 2018 at 8:28 AM Nick Horvath ***@***.***> wrote:
Oh, i see. that does complicate things.
On Wed, Aug 29, 2018 at 8:26 AM mihalski ***@***.***> wrote:
> I think there at LEAST 8 partitions, and I doubt the one we want to
> resize is last. Therefore it's a matter of resizing the extended, moving a
> lot go partitions and THEN resizing the one we want to enlarge.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#169 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAKE3HF3x7i2S7Fj-lc1Pid_K0m8DNW_ks5uVohhgaJpZM4WF80L>
> .
>
|
That MAY be something that's in the works as using a USB stick on the rpi for data is something that has been hinted at. Could translate just as easily to a virtual machine. |
Yeah, instead of just detecting usb, detect /dev/sdb or something like that
and mount it the same way.
…On Wed, Aug 29, 2018 at 8:31 AM mihalski ***@***.***> wrote:
That MAY be something that's in the works as using a USB stick on the rpi
for data is something that has been hinted at. Could translate just as
easily to a virtual machine.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#169 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKE3ARgAloV8QDoE1E2sk8wupriXY5Pks5uVom-gaJpZM4WF80L>
.
|
Or just base it on volume name. |
I put this off because I didn't want to risk screwing up addons. I finally did it by resizing following these steps with no issues (instructions for virtualbox, but should translate to other vm hosts):
cd /opt/virtualbox/HassOS
vboxmanage clonemedium hassos_ova-1.9.vmdk hassos.vdi --format vdi
vboxmanage modifymedium hassos.vdi --resize 51200
vboxmanage clonemedium hassos.vdi hassos.vmdk --format vmdk Note: change 51200 to some other number if you don't want a 50GB disk. Paths and original filename will vary with your setup. I'd still like to keep this issue open as a feature request to be able to just add another VMDK that gets used as storage, or automatic resizing at boot by just expanding the size of the original VMDK. |
@nhorvath thanks for the above, worked a treat. I had the same problem and followed this guide above to fix the issue :-) |
Thanks @nhorvath, this worked for me as well, expanded to 40gb without any problems. For anyone else who ends up here I'm running Hass.io as a VM in ESXi 5.5, and in my case there was no need to go to the intermediate vdi format. I just cloned the vmdk, expanded it, then modified my VM's config to use the new disk and continued with the steps above using gparted. SSH into ESXi |
For anyone who's is struggling with step 5 and 6 of @nhorvath instructions above, on how to attach and boot Gparted:
There will be a couple of straight forward dialogs until you get to the GUI where is pretty simple to resize the partition mentioned above. Maybe this might seem unnecessary explanation, but since it took me a while to figure out, maybe some people also have the same issue. Thanks for the solution, @nhorvath :) PS: Only thing I might add is that is not necessary to convert back and forth VDMK and VDI. If you're using Virtualbox, just use VDI. (I get that the issue here is about resizing VDMK). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I think the default size should be at least 20-25 GB. New installation with some add-ons and I already have a full disk, which gives issues with the log files and unifi controller. |
I have same problem. Initial disk was 6GB. Increasing disk size in Hyper V and reboot system solve issue. |
Yep, it resize only on reboot |
I used this method using HassOS 4.14 and Home Assistant 0.116.4 and it worked well. I didn't use gparted as I read that hassos should automatically use the max harddisk size and this worked for me (at least it reports my new harddrive size now, so I guess it works). |
Thanks for documenting this! You can also do step 3 with Virtualbox's "Virtual media manager" to first "clone" and then "increase" before resizing the partition with Gparted. Also, no need to change formats from VDI to VMDK (confirmed, I just did it this way). HOWEVER, make sure to start with the latest snapshot! Probably slightly easier for noobs :)
|
It seems like these solutions assume you have VBox GUI access. I'm running it on a headless server. So I don't believe the gparted solution will work for me. Does anyone have any suggestions for how to do a resize purely via the command line? |
You could enable the vbox vnc server which lets you remote console in to
the vm.
…On Thu, Jan 13, 2022, 11:16 PM Scott Giminiani ***@***.***> wrote:
It seems like these solutions assume you have VBox GUI access. I'm running
it on a headless server. So I don't believe the gparted solution will work
for me.
Does anyone have any suggestions for how to do a resize purely via the
command line?
—
Reply to this email directly, view it on GitHub
<#169 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABIJXFRBDG3LZZPDDXX2HTUV6PS3ANCNFSM4FQXZUFQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Another option seems to be that you can just create a new VM and attach the storage to that. Using a new VM may not be an option for all, but the only issue I ran into was that the IP was different so I had to update my mqtt devices to point at the new IP (broker is installed via the add-on) and then change port forwarding on my router. That ended up being much less work for me and more importantly may be automated and as a HA user I think we can all appreciate that :) |
How do I add storage to HassOS running in VMware?
The text was updated successfully, but these errors were encountered: