Not signed in (Sign In)
  1.  
    Administrator
    • CommentAuthoradmin
    • CommentTimeSep 24th 2008
     

    using following steps we can add secondary hard disk in xen vm:

    1. first create a new block device file:

        dd if=/dev/zero of=/path/to/diskfile.dsk bs=1024k count=50000

    this will create a +50GB file

    2. add above created file as harddisk:

    para-virtualized:

    xm block-attach 6 /vmfs/test1disk2.dsk /dev/xvdb w

    for full-virtualized:

    xm block-attach 6 file:/vmfs/test1disk2.dsk xvdb w

     

    that's it. a new block device file /dev/xvdb will be created in guest domain(Dom id 6).