I have an Ubuntu 10.04 server installed on a kvm-storage vm. I have a drive (already containing data) on the host that I would like to add to this vm as a secondary data drive. What is the best way to do this?
Thanks everyone…especially Matt for the work he puts in on these forums!
After hours of trial and error and googling I answered my own question.
In (at least on ubuntu server) /var/lib/kvm-storage/openqrm//disk you can define the location to a second hard drive, just like you would if you were starting a kvm vm from command line.
In one of those files it would look like this (replace X with appropriate values):
Hi again James,
sorry for the delay and great that you found out yourself.
Actually you can stop a vm, then configure it and add a second disk via the UI.
many thanks and have a nice day,
Project Manager openQRM
User "yuntian" was reported right now as spammer to the sf.net support team.
The spam has been reported to the sourceforge team.
the spam post was just reported to the sourceforge.net team.
2011-09-22 04:44:51 PDT
Hi again James, sorry for the delay and great that you found out yourself. Actually you can stop a vm, then configure it and add a second disk via the UI. many thanks and have a nice day, Matt Rechenburg Project Manager openQRM
HOW can a second disk be added via the GUI?
In the VM configuration there is no mention of "disks". The only way I know is to use an Image and to assign that to a VM and pinally create an appliance of the VM using the beforementioned imag as the "image"/disk.
And here you can only specify just one Image, not any more.
Please, advise HOW to add secondary drives via GUI?
please look in the VM manager not in the appliance configuration.
Project Manager openQRM
Where can I find or see any settings to add second dirve on KVM VM?
In KVM VM manager screen I have only Name, CPU, RAM, Network, and Boot fields.
When I added existing LV into config /var/lib/kvm-storage/…./disk2 then i got error: Resource 1 is in error state. And I can't start Appliance. I use openQRM 5.0.2
Can you help me?
adding the device path to an existing lvol into the disk2 file should work.
When the vm gets into error please run :
bash -x /var/lib/kvm-storage//.kvm
This will show you the full KVM commandline openQRM is running in the background via screen.
You will see something like :
+ echo 'KVM vm opensim starting up …'
+ /usr/bin/screen -dmS xx:xx:xx:xx:xx /usr/bin/kvm -m 1024 -smp 2 -boot c -net nic,vlan………………………………………
So remove the screen and run just run the command starting with /usr/bin/kvm …….
-> this will then show you the exact error why in your case the 2 disk breaks the VM.
Log in to post a comment.