rwxrob / fluff

# Fluff, Local cloud-init VMware VMs
21 stars 0 forks source link

libvirt VM creation command #11

Open auwsom opened 2 years ago

auwsom commented 2 years ago

apt install libvirt-daemon virtinst qemu-kvm

virt-install \ --name Alma8CloudVM \ --memory 2048 \ --vcpus 2 \ --disk https://repo.almalinux.org/almalinux/8/cloud/x86_64/imagesAlmaLinux-8-GenericCloud-8.5-20211119.x86_64.qcow2 \ \ --cdrom /path/to/cloudinit.iso \ <--------------- adjust this to your path for the iso *** --import \ --os-variant rhel8

virsh start Alma8CloudVM && virsh console Alma8CloudVM


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

--network br0 \ --extra-args "ip=192.168.1.2::192.168.1.1:255.255.255.0:test.example.com:eth0:none"

[WSL2/Win10] virt-manager for kvm on Windows | Nico Maas apt install virt-manager bridge-utils

auwsom commented 2 years ago

interesting, the backslash shows when I edit the above comment. For some reason, the "--c" removes the backslash at the end of the line above. Try pasting these 2 lines into a comment to see what I mean.

AlmaLinux \ \ --c

auwsom commented 2 years ago

This is what happens when pasting those 2 lines:

AlmaLinux \ --c

auwsom commented 2 years ago

I had to add an extra space and backslash to the first comment to get it to show up.