<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Steven,<div><br></div><div>It works, Great Thanks.</div><div><br></div><div>I used virtio to all device.</div><div> /dev/vda as OS image</div><div>/dev/vdb as swap</div><div>/dev/vdc as my Datablock.</div><div><br></div><div>As you have mentioned, it might be some kind of kernel issue which work with vde driver. Very appreciate for you help. </div><div><br></div><div>Besides, is it possible to make the disk available at the time it create ?</div><div><br></div><div>Inside the VM, I see that those disk does not have valid partition, fdisk -l message as follows:</div><div><br></div><div><br></div><div># fdisk -l</div><div><br></div><div><div>Disk /dev/vda: 2147 MB, 2147483648 bytes</div><div>255 heads, 63 sectors/track, 261 cylinders</div><div>Units = cylinders of 16065 * 512 = 8225280 bytes</div><div><br></div><div>   Device Boot      Start         End      Blocks   Id  System</div><div>/dev/vda1   *           1          13      104391   83  Linux</div><div>/dev/vda2              14         261     1992060   8e  Linux LVM</div><div><br></div><div>Disk /dev/vdb: 1073 MB, 1073741824 bytes</div><div>16 heads, 63 sectors/track, 2080 cylinders</div><div>Units = cylinders of 1008 * 512 = 516096 bytes</div><div><br></div><div>Disk /dev/vdb doesn't contain a valid partition table</div><div><br></div><div>Disk /dev/vdc: 5368 MB, 5368709120 bytes</div><div>16 heads, 63 sectors/track, 10402 cylinders</div><div>Units = cylinders of 1008 * 512 = 516096 bytes</div><div><br></div><div>Disk /dev/vdc doesn't contain a valid partition table</div></div><div><br></div><div><br></div><div>Cheers,</div><div><br></div><div><div>
<div><b>Leong Marco</b></div><div><a href="mailto:leong.chou.kin@usj.edu.mo">leong.chou.kin@usj.edu.mo</a></div><div><br></div><br class="Apple-interchange-newline">
</div>
<br><div><div>On Mar 4, 2011, at 11:21 PM, Steven Timm wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I've made something like this work, but I couldn't make the datablock as virtio.  If you call for a virtio datablock by default it comes up as /dev/vde, for which many kernels don't have the drivers.<br><br>So on mine, I declared OS image to be virtio / dev/vda,<br>swap to be virtio /dev/vdb<br>datablock to be ide /dev/hda<br>iso disk to be ide /dev/hdc.<br><br>Steve Timm<br><br><br><br>On Fri, 4 Mar 2011, Leong Marco wrote:<br><br><blockquote type="cite">Hi all,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I have created a CentOS which is sized 2GB. I would like to add a DATABLOCK to it. However, the DATABLOCK cannot be found with fdisk -l (in the VM). It was able to mount the swap, but no the DATABLOCK.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Here is the config file that I have. Via<br></blockquote><blockquote type="cite">dumpxml in virsh:<br></blockquote><blockquote type="cite"><domain type='kvm' id='3'><br></blockquote><blockquote type="cite"> <name>one-103</name><br></blockquote><blockquote type="cite"> <uuid>61d4e005-8fd1-c0b5-43f4-1f75596a8451</uuid><br></blockquote><blockquote type="cite"> <memory>1048576</memory><br></blockquote><blockquote type="cite"> <currentMemory>1048576</currentMemory><br></blockquote><blockquote type="cite"> <vcpu>1</vcpu><br></blockquote><blockquote type="cite"> <os><br></blockquote><blockquote type="cite">   <type arch='x86_64' machine='rhel5.4.0'>hvm</type><br></blockquote><blockquote type="cite">   <boot dev='hd'/><br></blockquote><blockquote type="cite"> </os><br></blockquote><blockquote type="cite"> <features><br></blockquote><blockquote type="cite">   <acpi/><br></blockquote><blockquote type="cite"> </features><br></blockquote><blockquote type="cite"> <clock offset='utc'/><br></blockquote><blockquote type="cite"> <on_poweroff>destroy</on_poweroff><br></blockquote><blockquote type="cite"> <on_reboot>restart</on_reboot><br></blockquote><blockquote type="cite"> <on_crash>destroy</on_crash><br></blockquote><blockquote type="cite"> <devices><br></blockquote><blockquote type="cite">   <emulator>/usr/bin/kvm</emulator><br></blockquote><blockquote type="cite">   <disk type='file' device='disk'><br></blockquote><blockquote type="cite">     <driver name='qemu' type='raw'/><br></blockquote><blockquote type="cite">     <source file='/srv/cloud/one/var/103/images/disk.0'/><br></blockquote><blockquote type="cite">     <target dev='hda' bus='virtio'/><br></blockquote><blockquote type="cite">   </disk><br></blockquote><blockquote type="cite">   <disk type='file' device='disk'><br></blockquote><blockquote type="cite">     <driver name='qemu' type='raw'/><br></blockquote><blockquote type="cite">     <source file='/srv/cloud/one/var/103/images/disk.1'/><br></blockquote><blockquote type="cite">     <target dev='hde' bus='virtio'/><br></blockquote><blockquote type="cite">   </disk><br></blockquote><blockquote type="cite">   <disk type='file' device='disk'><br></blockquote><blockquote type="cite">     <driver name='qemu' type='raw'/><br></blockquote><blockquote type="cite">     <source file='/srv/cloud/one/var/103/images/disk.2'/><br></blockquote><blockquote type="cite">     <target dev='hdd' bus='ide'/><br></blockquote><blockquote type="cite">   </disk><br></blockquote><blockquote type="cite">   <interface type='bridge'><br></blockquote><blockquote type="cite">     <mac address='02:00:ac:19:04:0c'/><br></blockquote><blockquote type="cite">     <source bridge='br0'/><br></blockquote><blockquote type="cite">     <target dev='vnet0'/><br></blockquote><blockquote type="cite">   </interface><br></blockquote><blockquote type="cite"> </devices><br></blockquote><blockquote type="cite"></domain><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The definition file.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">CPU <span class="Apple-tab-span" style="white-space:pre">       </span>= 1<br></blockquote><blockquote type="cite">MEMORY<span class="Apple-tab-span" style="white-space:pre">      </span>= 1024<br></blockquote><blockquote type="cite">NAME<span class="Apple-tab-span" style="white-space:pre">     </span>= "Web Server"<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">OS = [ ARCH = x86_64, ROOT=hda ]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">DISK = [ IMAGE = "base-centos-5.5-x86_64", bus = virtio, target = hda]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">DISK = [IMAGE = "5gb-image", bus = virtio]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">DISK = [TYPE = swap, SIZE= 1024,  target = hdd]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">FEATURES = [ACPI = yes]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">NIC = [<span class="Apple-tab-span" style="white-space:pre">  </span>NETWORK = "Network", IP=172.25.4.12]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Please, could anyone help one this. Since I have to prepare several VM on next week for other students to play inside it.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Leong Marco<br></blockquote><blockquote type="cite"><a href="mailto:leong.chou.kin@usj.edu.mo">leong.chou.kin@usj.edu.mo</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br>-- <br>------------------------------------------------------------------<br>Steven C. Timm, Ph.D  (630) 840-8525<br><a href="mailto:timm@fnal.gov">timm@fnal.gov</a>  <a href="http://home.fnal.gov/~timm/">http://home.fnal.gov/~timm/</a><br>Fermilab Computing Division, Scientific Computing Facilities,<br>Grid Facilities Department, FermiGrid Services Group, Group Leader.<br>Lead of FermiCloud project.<br></div></blockquote></div><br></div></body></html>