getumbrel / umbrel

A beautiful home server OS for self-hosting with an app store. Buy a pre-built Umbrel Home with umbrelOS, or install on a Raspberry Pi or any x86 system.
https://umbrel.com
Other
7.56k stars 538 forks source link

Update error in Virtual Box #1884

Open LupusPluvia opened 3 months ago

LupusPluvia commented 3 months ago

Hello, I have the following problem. In my virtual box. When I want to update the umbrel OS, what is shown in the photo always appears. And then I have to reinstall everything. Can someone help me? The reason for the change is that the Pi 4 is too weak in terms of performance. I haven't started transferring the data from pi 4 yet.

20240729_202144

LupusPluvia commented 3 months ago

If I just restart it the same thing happens. 20240729_214014

a4004 commented 3 months ago

Hey @LupusPluvia 👋

It looks like there's a problem mounting the data volume for some reason. It's possible that you haven't allocated enough system resources to the virtual machine hence why you might be experiencing the issues.

Since you mentioned, you've not transferred anything the easiest and quickest thing to do in this case would be to completely reinstall umbrelOS - ideally on a new virtual machine using the latest version of the ISO.

I recommend allocating your virtual machine the following system resources to ensure you can get a decent experience:

Link to download the latest ISO: https://download.umbrel.com/1.2.2/umbrelos-amd64-usb-installer.iso

Let me know if you need any further help! 🫂

LupusPluvia commented 3 months ago

@a4004 The system has 16 GB RAM and a 2 tb hdd and 8 CPU cores provided

LupusPluvia commented 3 months ago

What I have to say is that it is not started from a virtual disk.

LupusPluvia commented 3 months ago

Screenshot_20240801_170159_TeamViewer

LupusPluvia commented 3 months ago

But you gave me an idea. I could create a virtual disk on the HDD with the same size. But I have one more question: can the data from the Pi4 be migrated there too?

LupusPluvia commented 3 months ago

Or is there a possibility like with the pi4 that two storage systems can be used. If I do that, only one storage medium is used and that is where it is installed and the second disk will be ignored.

a4004 commented 3 months ago

But you gave me an idea. I could create a virtual disk on the HDD with the same size. But I have one more question: can the data from the Pi4 be migrated there too?

Unfortunately no, the Umbrel Migration Assistant is only available on the Umbrel Home as of v1.2.2 as you can see here in this screenshot from my virtual machine running umbrelOS:

image

Or is there a possibility like with the pi4 that two storage systems can be used. If I do that, only one storage medium is used and that is where it is installed and the second disk will be ignored.

At the moment, there is no official support for external storage drives on umbrelOS.

On the Raspberry Pi variant of the system, there is support for a single external storage drive in order to allow users to have more space beyond the size of typically small SD cards - which are commonly used to boot an OS on the Raspberry Pi's.

That being said, you can mount additional storage drives on umbrelOS using this unofficial guide; however, keep in mind it's only a temporary workaround and full support will be coming in a future update.

LupusPluvia commented 3 months ago

@a4004 Thanks, I'll try it out at the weekend. I have one more question. If the OS in the box crashes and you reinstall it, is the data still there like with the Pi or is it all gone?

a4004 commented 3 months ago

The x86 version of umbrelOS uses a single drive for the OS and data so if you erase the main drive, you will lose all your data. If you set-up a second drive using the guide, then anything stored on the second drive will be safe, but it's not properly integrated yet.

LupusPluvia commented 3 months ago

As I understand it now, if I have to reinstall the system because the OS system is broken, everything is gone. Is there a way to access the virtual HDD if something like that happens... because it can't be set up as a normal physical HDD without having the problem mentioned above.

a4004 commented 3 months ago

Yes, you can open the virtual machine settings in VirtualBox, find the hard drive and look at where the .vdi file is stored.

Then go to that path and copy the VDI file to another location and start recovering.

If you ever need to recover it you can either mount it in a new VM running any Linux distro, or you can convert it to another format and mount it in your file manager to access the files.

LupusPluvia commented 3 months ago

@a4004 The system runs as a vmdk and with dynamic memory expansion. I noticed that if I were to enlarge the vmdk, the OS would not boot and I would have to reinstall it. Mounting the disk worked so far, but it's not how I wanted it. I wanted the OS to start with all the data from the pi4, since the migration doesn't work or isn't working yet. Is there a solution how else I could do this.

LupusPluvia commented 3 months ago

And if everything is to work, it should all be on a 4tb×2 m2. nvme in raid 1, that was my plan anyway. As long as I have everything together.

LupusPluvia commented 3 months ago

@a4004 If I were to transfer everything from the Pi with sfpt, which directory would it have to go to, as it is probably structured differently to the Pi, or would it all go in mnt. or directly into the umbrel directory?

a4004 commented 3 months ago

The data directory on umbrelOS is at /home/umbrel/umbrel/data.

Also, from my own experience I recommend not using any dynamic storage or memory feature in your virtual machine as it may not play nicely with the system.

LupusPluvia commented 3 months ago

@a4004 What would need to be transferred or backed up from the directory?... because not everything is possible. could you make me a list.

LupusPluvia commented 3 months ago

What would you use LND or C leitning have used lnd before.

jirielgr commented 2 months ago

If I just restart it the same thing happens. 20240729_214014

This could be fixed by this https://community.umbrel.com/t/boot-problems-failed-failed-to-mount-data-mount-data/17207/4 Boot from live distro, mount the share and "fix" the fstab --> reboot and wait :)