Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach additional disk to CRC vm using CLI #17

Open
ksingh7 opened this issue Jul 4, 2021 · 1 comment
Open

Attach additional disk to CRC vm using CLI #17

ksingh7 opened this issue Jul 4, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@ksingh7
Copy link
Owner

ksingh7 commented Jul 4, 2021

  • 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 ksingh7 added the enhancement New feature or request label Jul 4, 2021
@geolaw
Copy link

geolaw commented Apr 27, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants