[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Attaching a new VDI to a VM using the dd command in linux


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: kibirango moses <kibsmoses@xxxxxxxxx>
  • Date: Fri, 22 Oct 2010 09:07:53 +0300
  • Delivery-date: Thu, 21 Oct 2010 23:09:15 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=SXyPj8YQ2nv/VFzWsUbJ67br4rDh5vDpK5iyM1QQ8bLYAlFLOK2P9m1gOfQ0OiwI1i 0gkN2iJBKELGOXQ6HAXpy/fQ6JzvIvASi/syuF4dYZ4MJpborBSd7PrTtUwmjsLsPgm/ u6/Yr/3zApMCwPIqchJIf2gpg8175TR6vZSRs=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hullo Everbody


Below are my configuration commands


How do I attach a new VDI to a VM using the dd command in linux I order to do a direct block copy


[root@virtualintranet /]# xe vdi-create sm-config:type=raw sr-uuid=b303be09-6a32-8d94-d248-7551860fbc3f name-label="LVM VDI" virtual-size=10GiB type=user

2ec0650c-357a-40a0-825d-c6680ac8cbb8

[root@virtualintranet /]# xe vbd-create vm-uuid=99cfb147-8bce-9e95-024d-cfcc9268753a device=0 vdi-uuid=2ec0650c-357a-40a0-825d-c6680ac8cbb8 bootable=true type=disk mode=RW

95d50b83-5f3b-e917-0f3c-d93c5b871064

[root@virtualintranet /]# xe vdi-list

uuid ( RO)                : 2ec0650c-357a-40a0-825d-c6680ac8cbb8

          name-label ( RW): LVM VDI

    name-description ( RW):

             sr-uuid ( RO): b303be09-6a32-8d94-d248-7551860fbc3f

        virtual-size ( RO): 10737418240

            sharable ( RO): false

           read-only ( RO): false

uuid ( RO)                : 4ff63005-1bf0-4b58-b5bd-de62a47a25ab

          name-label ( RW): SCSI 1:0:0:0

    name-description ( RW): TSSTcorp model DVD+-RW TS-L633C rev D250 type 5

             sr-uuid ( RO): f0a1d8bb-89c9-3b37-29b9-04fd89c180b2

        virtual-size ( RO): 1073741312

            sharable ( RO): false

           read-only ( RO): true

uuid ( RO)                : 3cf9f726-79ad-4cb2-9a58-594fcf546cec

          name-label ( RW): xs-tools.iso

    name-description ( RW):

             sr-uuid ( RO): a14b828e-08cd-8f55-58c0-bf732ce4329b

        virtual-size ( RO): 66013184

            sharable ( RO): false

           read-only ( RO): true

[root@virtualintranet /]# xe vbd-list

uuid ( RO)             : 95d50b83-5f3b-e917-0f3c-d93c5b871064

          vm-uuid ( RO): 99cfb147-8bce-9e95-024d-cfcc9268753a

    vm-name-label ( RO): PVG1

         vdi-uuid ( RO): 2ec0650c-357a-40a0-825d-c6680ac8cbb8

            empty ( RO): false

           device ( RO):

Thanks
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.