@dror I believe it will work either way but for sure the first one should work for you (assuming your are running this from the proxmox shell). Proxmox is already running bash so you probably don’t need to tell it to run bash again. You can run which $SHELL to verify. Also apt install bash would install this but it should already be installed by default.
I ran the first line and it worked great. I did get an error and saying “-bash: sudo: command not found” and simply reran this again without sudo in the front (since I was already logged in as root).
Thanks for the script Whiskerz007 and the great writeup Kanga!
Chris
OK, so I never even made it to first base. Proxmox would not install from the USB stick. I built a NUC using a Ryzen mobile CPU and that was the problem. Some of the proxmox install could not deal with the Ryzen. The fix was convoluted. I first had to load a recent Ubuntu distro, then open and edit some files to do with graphics processing and then install Proxmox over the top. It worked, but not without a fair bit of elephant mating. Involved many hours of googling and learning how to do a Linux install properly. That said, the box now works great and I host HA, Unifi, and Shinobi on it at the moment, and will be adding Plex soon.
I believe since you are using ryzen and linux kernel on Proxmox 6 did not able to recognize it on its early detections. I have a documentation to overcome it which is very simple and easily follow. However upon upgrading to Proxmox 7 this issue have been resolve and the USB installation is a breeze.
Yes “VirtIO SCSI” is used but the hard disk itself is created as SATA and not SCSI. Why that?
Here a quote from Proxmox 7.1 roadmap:
VMs with SATA as disk bus may show issues when used with io_uring
For now this can be worked around by switching the disk’s Async IO mode to threads (for cache = >write back/through) or native (for cache = off, none or direct sync), respectively, in the Advanced >options of the disk edit dialogue.
Note that SATA is really not the best choice for a VM’s disk bus in general, rather use (VirtIO-) SCSI >for best performance and feature set. For Windows VirtIO support is available through the Windows >VirtIO Drivers
I just migrated everything to Proxmox, and went through this. Frankly speaking, I would follow Proxmox recommendations, that states that virtio-blk is old and has been superseded. It also recommends using virtio-scsi when aiming for performance.
Not deprecated, but superseded in terms of features, and as I wrote before, they recommend virtio-scsi for performance. So I don’t see any valid reason to recommend virtio-blk and not following Proxmox official recommendations of choosing virtio-scsi with scsi disk.
Agreed. The script is using virtio-scsi controller, and it’s correct, but sata disk, which is not correct.
If you choose a SCSI controller, you want to configure a SCSI drive: it’s not perception, it’s consistency, and it’s very important in the magic world of IT, it can prevent unintended consequences.
I used this script to install Ha on a Intel Nuc running proxmox, everything worked fine and it says it is running. I am just stuck trying to get the IP adress of the Ha installation.
If i log on to the server (via console) I see that there is no IP v4 set
Firstly, thank you so much for writing and maintaining this wonderful guide. My installation experience with it was so much better than my multiple previous attempts. All seems to be working perfectly, now for the newbie question…
How do I configure a static IP address. All of my searching points me to a “Supervisor” link on the home screen of the UI. The problem is that I don’t have such a link. Any guidance would be greatly appreciated.
I found this tutorial from @kanga_who to install Proxmox 7 and HA OS on a RPi4! Thank you very much for this! I was planning to use the RPI4 as test/dev system, and when this works fine i plan to move my prod. HA on a NUC also to Proxmox.
However in Section 3, installing Home Assistant, I get at the end this error / [WARNING] message about the serial port and configuration console:
hass@RPi4-PVE-01:~ $ sudo bash -c "$(wget -qLO - https://raw.githubusercontent.com/Kanga-Who/home-assistant/master/hassos_install.sh)"
[sudo] password for hass:
[INFO] Using 'local' for storage location.
[INFO] Container ID is 100.
Getting URL for latest Home Assistant disk image...
Downloading disk image...
Checking for unzip command
Extracting disk image...
Archive: haos_ova-7.2.vmdk.zip
inflating: haos_ova-7.2.vmdk
Creating VM...
Adding serial port and configuring console...
Installing 'kpartx'...
mount: /tmp/tmp.DelaKGmQpX/mnt: /dev/mapper is not a block device.
[WARNING] Unable to configure serial port. VM is still functional.
loop deleted : /dev/loop0
[INFO] Completed Successfully! New VM ID is 100.
hass@RPi4-PVE-01:~ $
Is there something I might have forgotten, previously before starting the install script?
Kind regards, Bert
Ok, @kanga_who , My mistake. I’l try to find other info for installing on RPi4. Will keep this for when I am ready for converting my NUC.
Thank you for your swift reaction! Kind regards, Bert