WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Attaching a new VDI to a VM using the dd command in linux
From: kibirango moses <kibsmoses@xxxxxxxxx>
Date: Fri, 22 Oct 2010 09:07:53 +0300
Delivery-date: Thu, 21 Oct 2010 23:09:15 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=rpYkfLMtMo0T0AshnFnIH4U/UTFUuJRXwAdKUPPna70=; b=oKAUAk0+h1QLuIVQPVBhAV613C/Amr/0w/mVT2ptqz38surCn2XigAIWKbvEDJ9zl6 EjG8egyPwSY6yfyrM/sJy06gmh3n29ePReJCoGUVCUSZ4tOmyv+HFyokCxWbQYD1BeoI 40P4I99mLzLdoFV+bIT6qdQRfyi3Cf1oh3YEA=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Attaching a new VDI to a VM using the dd command in linux, kibirango moses <=