Installing from USB Drive issues

Mar 8, 2016
22
0
1
49
Hi ... Today I copied (via dd) the Proxmox installer is 5.3.1 iso to a hard drive like /dev/vdb. I rebooted from that device and the Proxmox installer booted up. However, then I hit this issue where the installer is looking for a particular device /dev/sr0 and sr1 as others have mentioned. Clearly, the data is available to the installer which has booted, but I guess not at /dev/sr0. It would be nice if the installer logic could be re-written so that it looks for other places for the files in question.

My reason to do it this way on this occasion is unusual -- I have a hosted KVM machine (which happens to be running under Proxmox as hypervisor!) and I wanted to try a nested virtualization setup. The provider does not have the latest Proxmox iso in their list, so I was trying to use the installer I downloaded and copied over to a secondary (virtual) drive. It would have worked I think except for this issue. I guess next step is to ask the provider to make the iso available so it will be mounted as a normal virtual CD-Rom device.

Anyone figure out a work-around yet? Thanks.
 

Jweier80

New Member
Jan 2, 2019
2
0
1
39
New here, so it's possible I'm just missing something. Downloaded 5.3.1 today, and initially threw it on an Easy2Boot stick. Got the "searching for cd-rom" message and started googleing. Stumbled upon this thread after reading several others. Looks like there are quite a few folks not familiar with multi-boot sticks as far back as two years ago...which is surprising.

Regardless I've followed the instructions on the Proxmox "Install from a USB" page and still no love. Here are the steps taken so far:

-Copied .iso onto Easy2Boot stick, booted to Grub menu, selected, booted to install menu, proceeded until "searching for cd-rom" /"unable to continue" message

-Imaged different USB using Win32Diskimager, freshly downloaded 5.3-1 iso, booted to install menu, proceeded until "searching for cd-rom" /"unable to continue" message

-Downloaded Etcher per "install from USB page", imaged, booted to install menu, proceeded until "searching for cd-rom" /"unable to continue" message

-Downloaded imageUSB per "install from USB page" (the link on the page is out of date BTW) imaged, booted to install menu, proceeded until "searching for cd-rom" /"unable to continue" message

-Renamed file to .img extension and reimaged using Win32Diskimager, booted to install menu, proceeded until "searching for cd-rom" /"unable to continue" message

-Fired up Linux Mint laptop (downloaded fresh copy of iso), wiped stick in Gparted. Followed DD instructions on "Install from USB page" booted to install menu, proceeded until "searching for cd-rom" /"unable to continue" message:confused:

That's the end of my testing. I've got a USB DVD-Rom drive, just no burnable media on hand. I'll grab some from work tomorrow and check back.

I have 6 or 8 other Debian/Ubuntu based .isos on my 32GB and 64GB E2B sticks that all boot fine. That's not counting PFSense, OpenSense, Untangle, OMV, and a half dozen Turnkey Linux .isos. All of them just work. Fact is this is my second try with Proxmox. Ran into this exact same scenario a couple of years back and had to move on with a different option. Hopefully burning it the old fashioned way works. Last time it didn't.
 

SteveSi

New Member
Mar 20, 2014
6
0
1
Easy2Boot has instructions for ProxMox - see the List of Tested ISOs page and follow the link to the blog post.
 

kappclark

Member
Feb 13, 2019
54
5
8
58
www.clark-hart.us
Ditto this -- Have decided to bail on Xen Server and switch to PM .. I was having a terrible time getting a new build to start using a usb stick created with Rufus ... I have always relied on Rufus (in Windows 10) for making bootable USB sticks... before giving up on setup, I did searching on this forum --

I changed the program to imageUSB, created bootable USB on same Cruzer stick, and 20 minutes later, I have a running Promox host...

Thank You PM forum !

Bill Clark, Windham, VT
 

Jweier80

New Member
Jan 2, 2019
2
0
1
39
@SteveSi I followed those instructions with the same results as above. I never did get it working on a USB with out the "searching for cd-rom" /"unable to continue" error. I bit the bullet and made the trip to Walmart to buy some fresh DVD's. ISO burned perfectly, and I had the system up in a few minutes with a USB DVD Rom. Bottom line; There is a large group of people who say USB "works fine" and a large group complaining that USB "does not work at all" (on this forum and elsewhere). Might be worth a closer look by the devs.
 

SteveSi

New Member
Mar 20, 2014
6
0
1
I just tried it again using the latest version and the instructions in the 2nd part of the blog for v5 definitely work.
I got to the ProxMox desktop with no issues after using the lvm2root extra text on an NTFS E2B USB drive.
 
Last edited:

s-y-d

New Member
Apr 6, 2019
1
0
1
29
Hi

For those of you who had issues creating an bootable USB whit proxmox on it, here my Tip use the BalenaEtcher.
Hope this could finally help you

Kind regards
 

mysky

New Member
May 8, 2019
2
0
1
38
Using BalenaEtcher/imgburn/dd will work for single bootable USB, for multiboot USB, there has to be a workaround to mount CD/DVD drive with this ISO?, or when it gives # prompt can we mount or create links to /mnt so that the proxmox can look into it?. any idea let me know.
 

mysky

New Member
May 8, 2019
2
0
1
38
Finally found the temporary solution for multiboot and the porxmox team should look into this to correct the path or some script to auto load iso from the USB.

My findings
When the proxmox installation stops at below boot error
unable to continue (type exit or CTRL-D to reboot)
/ #
Mount the USB to /mnt with below command
Note: AFIK it will mount FAT/EXT partitions, and not NTFS/ExFAT/HPFS etc.. and your disk number could change (/dev/sd*) depending upon the number of disks attached to the system.

Code:
mount -t vfat  /dev/sdb1  /mnt
Then locate the proxmox iso file under /mnt which you just mounted, for me it was in "/etc/iso/proxmox.iso"

Then edit "init" file which is in /
Code:
cd /
vi init
Look for "cdrom" word and just below that you will find the path for ISO file is /proxmox.iso as shown in the attachment, just replace that path with "/etc/iso/proxmox.iso" then save the file.

proxmox-init-code-new.jpg

Now you just execute the init script as below

Code:
./init
That's it now you can continue with installation.


PS: Not sure in what intention they wrote this path in the init script!, perhaps proxmox team could explain this.
 

maxamar

New Member
Jun 22, 2019
4
0
1
25
Same error - Dell T7610, Legacy & UEFI, both 5.4-1 & 5.3-2, can't mount sdb1 (my one is different) - tells invalid argument, can only mount entire disk (sdb) however in disk editors it shows 3 partitions. Here there are pve-installer.squashfs & pve-base.squashfs, mount pve-installer.squashfs - there is sbin/unconfigured.sh - try run - tells /bin/sh: ./unconfigured.sh: not found.
 

SteveSi

New Member
Mar 20, 2014
6
0
1
I think the init script may contain a clue as to why it works for some people but not others.
The script only searches for the ISO on Removable drives (such as most but not all Flash drives). So it won't find a named ISO if you are booting from a USB HDD or non-Removable type of USB Flash drive.
 

maxamar

New Member
Jun 22, 2019
4
0
1
25
where do you even find your init scripts, I don't see any on my ISO & squashfs'...
 

SteveSi

New Member
Mar 20, 2014
6
0
1
There is a screenshot of some of it in the post #29
https://forum.proxmox.com/threads/installing-from-usb-drive-issues.18115/page-2#post-250726

Also, if you use Easy2Boot, this should work...
1. Copy the .ISO file to \_ISO\LINUX on your E2B drive
2. Boot to the proxmox boot menu from the ISO
3. Select the first install option in the menu and press e for edit
4. Add the string lvm2root=/dev/sdX4 where X is the drive letter for your USB drive.
5. Press Ctrl+X to run it

Tested with proxmox-ve_5.4-1.iso on an NTFS USB HDD.

Strangely, on a laptop which contained an internal hard disk, /dev/sda4 worked but not /dev/sdb4 !!!
 

maxamar

New Member
Jun 22, 2019
4
0
1
25
Yeah finally started the installer. Init script was in initrd image. What I did:
1. Format USB as MBR with main partition UNTITLED.
2. Copy iso files to USB via unetbootin to first USB partition.
3. Copy ISO to USB as proxmox.iso.
4. Boot into legacy.
5. Mkdir /mnt2 & mount /dev/sde1 /mnt2 (not /mnt important!)
6. Edit /init - replace /proxmox.iso as /mnt2/proxmox.iso
7. Run /init
 

maxamar

New Member
Jun 22, 2019
4
0
1
25
However it didn't boot. So I found out a better way that works with UEFI: raw dd iso to usb, then replace in "/init" /proxmox.iso by /dev/sde (put here your device), then lower replace check "-f" (file) with "-b" (block device) - and it runs.
 

SteveSi

New Member
Mar 20, 2014
6
0
1
You should simply be able the edit the \boot\grub\grub.cfg file and add in a lvm2root=/dev/sde string.
???
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!