Blog: 2024-01-30: Difference between revisions

From razwiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:


Weirdly that approach doesn't seem to show progress. Ok the warning is that I'm missing virt-viewer, which I guess is a gui app... hope there's a console option. Installing virt-viewer from here: https://github.com/jeffreywildman/homebrew-virt-manager
Weirdly that approach doesn't seem to show progress. Ok the warning is that I'm missing virt-viewer, which I guess is a gui app... hope there's a console option. Installing virt-viewer from here: https://github.com/jeffreywildman/homebrew-virt-manager

Finally finally after reading https://www.golinuxcloud.com/virt-install-examples-kvm-virt-commands-linux/ and <code>brew install xorriso</code>, I am getting console output on virt-install

<pre>
$ ./virt-install --name guest4-rhel7 --memory 2048 --vcpus 2 --disk size=8 --location ~/Downloads/composer-api-e7bc5d14-af20-4a19-b4a8-e98486f575f9-installer.iso --os-variant rhel9.3 --autoconsole text --graphics=none --extra-args console=ttyS0
</pre>

Revision as of 18:32, 30 January 2024

After much fussing with homebrew dependencies including a 6hr llvm 17 install, I got the source of virt-manager and it's installing alpine linux:

virt-manager $ ./virt-install --name='alpine1' --memory 2048 --vcpus 2 --disk size=8 --cdrom $HOME/Downloads/alpine-virt-3.19.1-x86_64.iso --os-variant alpinelinux3.19
WARNING  KVM acceleration not available, using 'qemu'
WARNING  Unable to connect to graphical console: virt-viewer not installed. Please install the 'virt-viewer' package.
WARNING  No console to launch for the guest, defaulting to --wait -1

Starting install...
Allocating 'alpine1.qcow2'                                                     | 8.0 GB  00:00:00     
Creating domain...                                                             |         00:00:00     

Domain is still running. Installation may be in progress.
Waiting for the installation to complete.

Well that's been going for half an hour but no output. Might see if there's a verbose mode. Meanwhile HN is hyping up https://github.com/quickemu-project/quickemu - seems like kinda what I'm trying to do with ronin, huh.

The virtualization tutorial I've been following is here: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_deployment_and_administration_guide/sect-guest_virtual_machine_installation_overview-creating_guests_with_virt_install

Weirdly that approach doesn't seem to show progress. Ok the warning is that I'm missing virt-viewer, which I guess is a gui app... hope there's a console option. Installing virt-viewer from here: https://github.com/jeffreywildman/homebrew-virt-manager

Finally finally after reading https://www.golinuxcloud.com/virt-install-examples-kvm-virt-commands-linux/ and brew install xorriso, I am getting console output on virt-install

$ ./virt-install --name guest4-rhel7 --memory 2048 --vcpus 2 --disk size=8 --location ~/Downloads/composer-api-e7bc5d14-af20-4a19-b4a8-e98486f575f9-installer.iso --os-variant rhel9.3 --autoconsole text --graphics=none --extra-args console=ttyS0