odf-nano icon indicating copy to clipboard operation
odf-nano copied to clipboard

Attach additional disk to CRC vm using CLI

Open ksingh7 opened this issue 4 years ago • 1 comments

  • 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 ~]$

ksingh7 avatar Jul 04 '21 17:07 ksingh7

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

geolaw avatar Apr 27 '23 20:04 geolaw