odf-nano
odf-nano copied to clipboard
Attach additional disk to CRC vm using CLI
- Find a mechanism to attach disk to CRC VM from CLI ( instead of dumping and editing XML file, and re-defining that)
[karan@beast ~]$ sudo virsh attach-disk crc ~/.crc/machines/crc/disk-100G vdd --cache none
error: Failed to attach disk
error: internal error: No more available PCI slots
[karan@beast ~]$
After trying to do the same thing and getting the same error. I forked off the odf-nano fork from tosin I created a setup script that makes 3 disk images and adds them to the vm https://github.com/geolaw/odf-nano/blob/main/setup_crc.sh#L80
after the first crc start, I shut it down, then add the 3 images via virsh attach-device