Adding a second drive

Help
James
2011-08-26
2013-04-13
  • James

    James - 2011-08-26

    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!

     
  • James

    James - 2011-09-18

    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):
    KVM_VM_DISK_X="-hdX /dev/sdX"

     
  • Matt

    Matt - 2011-09-22

    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

     
  • Matt

    Matt - 2011-11-12

    User "yuntian" was reported right now as spammer to the sf.net support team.

    many thanks and have a nice day,

    Matt Rechenburg
    Project Manager openQRM

     
  • Matt

    Matt - 2011-11-23

    The spam has been reported to the sourceforge team.

    Matt Rechenburg
    Project Manager openQRM

     
  • Matt

    Matt - 2012-01-11

    Hi,

    the spam post was just reported to the sourceforge.net team.

    many thanks and have a nice day,

    Matt Rechenburg
    Project Manager openQRM

     
  • mculibrk

    mculibrk - 2012-04-12

    @Matt:

    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?

    best regards,
    m.culibrk

     
  • Matt

    Matt - 2012-05-01

    Hi,

    please look in the VM manager not in the appliance configuration.

    many thanks and have a nice day,

    Matt Rechenburg
    Project Manager openQRM

     
  • black2kanoi

    black2kanoi - 2013-02-27

    Hi Matt.

    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?

     
  • Matt

    Matt - 2013-03-07

    Hi,

    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 …'
    + logger
    + /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.

    many thanks and have a nice day,

    Matt Rechenburg
    Project Manager openQRM

     

Log in to post a comment.