TinyLinux icon indicating copy to clipboard operation
TinyLinux copied to clipboard

Installing ubuntu to another disk

Open amit-bst opened this issue 3 years ago • 3 comments

Hi @niw , So using virtualization.framework we are able to boot from the .iso file. Can we attach another disk and install ubuntu so that we can just specify the new disk and boot ubuntu from there so as to keep things persistent.

Tried creating a disk using the dd command but I am not sure how can be install the ubuntu image to the new disk.

amit-bst avatar Feb 05 '22 15:02 amit-bst

This TinyLinux is intended to provide a really simple implementation (less than 100 lines of code) to boot Linux as more likely a demonstration of how to use Virtualization.framework, and not intended to provide such as a full features of virtual machine product.

For the block storage specifically, in fact, all are readonly, so it may not work without any modifications for your purpose.

Therefore, I think you need to change the code to extend this project for your goal.

niw avatar Feb 07 '22 01:02 niw

I have extended the functionality to attach the disk as read write. I can raise a PR for that. But I don't have much idea how can i copy the installation from the readonly disk to the newly attached disk. Thats what I was asking if you can guide me maybe I can add that functionality and raise PR for you to approve.

amit-bst avatar Feb 07 '22 03:02 amit-bst

Actually installing Ubuntu seems a bit difficult, at least you need to increase ram assignment, mount block storage as read-write. Also disable line discipline to make installer menu works (I described it in README now,). However, it is not limited to it but need to take extra effort to make installer works.

niw avatar Feb 13 '22 06:02 niw