Jump to content

I want to install manjaro, but I don't have available usb/dvd drive to create bootable drive. I have dual boot with windows and is it possible, for example, install os in virtual machine and then write virtual partition to physical? And also note that I want to boot in uefi mode on gpt partition table

Link to comment
https://linustechtips.com/topic/772184-install-os-without-installation-boot-drive/
Share on other sites

Link to post
Share on other sites

Your way would work but you will hit some stumbling blocks on the way which will be hard to understand if you're not familiar with how things work underneath.

 

Another way is to add a Grub bootloader on the EFI System Partition and manually configure it to boot an ISO from a FAT32 partition. The ISO itself has to support this (like casper included with Ubuntu Live images)

 

And a third weird way but maybe the easiest for you. This is just theory in my head as I never tested such a thing, just assuming here. But I remember some virtual machines can be configured to use a real system partition instead of a file. See this image from VMware's site:

02-select_disk.png

 

So if you select the boot image as the ISO and a real partition you might succeed. Maybe you could create two unformatted partitions, and let the Linux installer configure and format them, one as ESP and the other as the root partition. And if you're really lucky and it works out you could also avoid having to manually re-configure grub.cfg and fstab entries.

Link to post
Share on other sites

@Wild Penquin

Not sure how VMware handels this sort of stuff, but similarly to what slicknux sugested, in theory you could pass the existing ESP along with a blank partition to a VM and run the installation process from the virtual environment. 

Link to post
Share on other sites

I have no idea how VMs handle whole disks. But to install GRUB, you need access to ESP and EFI variables (of the host machine), or if Legacy boot, MBR to the VM. Of course if you can expose these to the VM, then you could just install GRUB inside the VM as suggested by @Night_, but I was assuming the opposite. In that case installing GRUB natively on the host (i.e. in Windows in this case) might work better.

 

But again: which ever approach you choose, you need to know how things work "under the hood", otherwise there's high change something will be not installed correctly.

Link to post
Share on other sites

On ‎29‎/‎04‎/‎2017 at 7:18 AM, Wild Penquin said:

I have no idea how VMs handle whole disks. But to install GRUB, you need access to ESP and EFI variables (of the host machine), or if Legacy boot, MBR to the VM. Of course if you can expose these to the VM, then you could just install GRUB inside the VM as suggested by @Night_, but I was assuming the opposite. In that case installing GRUB natively on the host (i.e. in Windows in this case) might work better.

 

But again: which ever approach you choose, you need to know how things work "under the hood", otherwise there's high change something will be not installed correctly.

I once installed windows 10 on to a vhd and then booted from that, I believe they handle them just like they were a real drive. 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

On 29/04/2017 at 9:18 AM, Wild Penquin said:

In that case installing GRUB natively on the host (i.e. in Windows in this case) might work better.

That would be the ideal thing to do if it were an option. But as it stands right now (as far as i know), even if it's possible to access the ESP from Windows and get a new bootloader on it, there doesn't seem to be any available Windows utilities which allow changing uEFI settings directly (similar to "efibootmgr" on Linux), thus no option to notify the uEFI about the new bootloader.

Link to post
Share on other sites

Just now, Night_ said:

That would be the ideal thing to do if it were an option. But as it stands right now (as far as i know), even if it's possible to access the ESP from Windows and get a new bootloader on it, there doesn't seem to be any available Windows utilities which allow changing uEFI settings directly (similar to "efibootmgr" on Linux), therefore no way to notify the uEFI about the new bootloader.

there is. Called easyuefi. 

Link to post
Share on other sites

Just now, Night_ said:

@Gameborn

Huh, i forgot that ever existed. Did it work fine for you?

I haven't tried it with vm, but I have in another situation(worked not perfectly). I created fat32 partition and copied files from iso file of Ubuntu and added efi/boot/bootx64.efi file to new boot entry. It booted, but haven't installed. Said that need to unmount partition that i'm booted from. Doesn't work with arch

Link to post
Share on other sites

23 hours ago, vorticalbox said:

I once installed windows 10 on to a vhs and then booted from that, I believe they handle them just like they were a real drive. 

Heh, I at first misread your post as I've edited it above - I though you were joking xD.

 

It would be funny if one could install an OS into these things:

300px-VHS-Video-Tape-Top-Flat.jpg

Link to post
Share on other sites

On 4/27/2017 at 2:52 AM, Gameborn said:

I want to install manjaro, but I don't have available usb/dvd drive to create bootable drive. I have dual boot with windows and is it possible, for example, install os in virtual machine and then write virtual partition to physical? And also note that I want to boot in uefi mode on gpt partition table

look into virtualbox raw disk acces or pay for vmware pro or try to use the hyperv raw disk acces but that require the disk to be offline so it might not be possible. or yumi

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×