Skip to content
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

Update error in Virtual Box #1884

Open
LupusPluvia opened this issue Jul 29, 2024 · 19 comments
Open

Update error in Virtual Box #1884

LupusPluvia opened this issue Jul 29, 2024 · 19 comments

Comments

@LupusPluvia
Copy link

LupusPluvia commented Jul 29, 2024

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
Copy link
Author

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

@a4004
Copy link

a4004 commented Aug 1, 2024

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:

  • 8 GB memory at least (4 GB is the absolute minimum, but do not use a Bitcoin Node or anything dependent on it)
  • 50 GB of storage at least for a decent experience (give it more if you will store data)
  • 4 vCPU's at least
  • UEFI boot mode

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
Copy link
Author

LupusPluvia commented Aug 1, 2024

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

@LupusPluvia
Copy link
Author

LupusPluvia commented Aug 1, 2024

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

@LupusPluvia
Copy link
Author

Screenshot_20240801_170159_TeamViewer

@LupusPluvia
Copy link
Author

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
Copy link
Author

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
Copy link

a4004 commented Aug 1, 2024

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
Copy link
Author

@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
Copy link

a4004 commented Aug 1, 2024

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
Copy link
Author

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
Copy link

a4004 commented Aug 2, 2024

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
Copy link
Author

@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
Copy link
Author

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
Copy link
Author

@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
Copy link

a4004 commented Aug 3, 2024

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
Copy link
Author

@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
Copy link
Author

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

@jirielgr
Copy link

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants