D
D
Dmitry Logvinenko2011-08-06 00:43:53
linux
Dmitry Logvinenko, 2011-08-06 00:43:53

Installing Linux in an image file?

Windows 7 introduced the ability to install directly to VHD.
I would like to know if it is possible to install Linux in this way (let's say Ubuntu). Interested not so much in the possibility of further connection to the VM, but in the installation to a file and the ability not to bother with partitions.
I would also like to know about the performance of such systems (it is also interesting about Windows).

Answer the question

In order to leave comments, you need to log in

6 answer(s)
S
s0rr0w, 2011-08-06
@s0rr0w

It is not entirely clear what the goal is ...
To read the system from the file later, you will need a cunning boot manager that understands the system boot from this very VHD file.
In principle, the encapsulation of a file system inside a file of another file system should not degrade in speed.
Linux can be installed in a file of a virtual machine, then transferred to the host and, with a smart boot manager, booted from this
file those. if you suddenly the system does not have enough space, you will have to connect additional files. You can run into hemorrhoids.

V
Vladimir Chernyshev, 2011-08-06
@VolCh

I don't know if I understood the question correctly, but the Ubuntu LiveCD works with an ISO image on the screw. True, with all the limitations inherent in LiveCD, primarily read-only. There are tools for customizing the installation.

F
fkvf, 2011-08-06
@fkvf

Wubi Ubuntu? Or am I hopelessly behind the times and this is no longer the case?

A
asm0dey, 2011-08-06
@asm0dey

Wubi can do that.

O
ob1, 2011-08-06
@ob1

Maybe it's easier to put in a virtual machine and not bother with partitions?
By the way, once upon a time in Linux there was a driver that could store POSIX file attributes on FAT.

G
Gribozavr, 2011-08-07
@gribozavr

Nothing really complicated at all. The idea is this: GRUB reads the kernel and initrd from the FAT partition. Initrd mounts the FAT partition, finds the filesystem image, mounts it, chroots it. That's just to design it from under Windows is unlikely to succeed, LiveCD with Linux. Create an empty image, create a FS on it, install the OS there (for example, via debootstrap), take the kernel and initrd from the image, build your initrd with the necessary magic (and this is not so trivial), install GRUB.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question