<div dir="ltr">I able to modify debian-2.6.32-i686.vmdk using guestfish. <div><br></div><div><div>$ sudo guestfish -a debian-2.6.32-i686.vmdk</div><div><br></div><div>Welcome to guestfish, the guest filesystem shell for</div><div>editing virtual machine filesystems and disk images.</div><div><br></div><div>Type: 'help' for help on commands</div><div> 'man' to read the manual</div><div> 'quit' to quit the shell</div><div><br></div><div>><fs> run</div><div> 100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00</div><div>><fs> mount /dev/sda1 /</div><div>><fs> ls</div><div>ls should have 1 parameter</div><div>type 'help ls' for help on ls</div><div>><fs> help ls</div><div>NAME</div><div> ls - list the files in a directory</div><div><br></div><div>SYNOPSIS</div><div> ls directory</div><div><br></div><div>DESCRIPTION</div><div> List the files in "directory" (relative to the root directory, there is</div><div> no cwd). The '.' and '..' entries are not returned, but hidden files are</div><div> shown.</div><div><br></div><div>><fs> ls /etc/modules</div><div>modules</div><div>><fs> vi /etc/modules</div><div><span class="" style="white-space:pre"> </span>- added acpiphp module and saved </div><div>><fs> umount-all</div><div>><fs> quit</div><div><br></div><div>I just added acpiphp module in /etc/modules.<br></div><div><br></div><div>After instance launch I can see acpiphp loaded:</div><div><br></div><div><div># dmesg | grep acpiphp</div><div>[ 0.000000] BIOS-provided physical RAM map:</div><div>[ 3.131832] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5</div><div>[ 3.131906] acpiphp: Slot [32] registered</div><div>[ 3.132009] acpiphp: Slot [33] registered</div><div>[ 3.132103] acpiphp: Slot [34] registered</div><div>[ 3.132196] acpiphp: Slot [35] registered</div><div>[ 3.132289] acpiphp: Slot [36] registered</div><div><br></div><div>However, fdisk -l on the launched instance still does not show the recently attached volume.</div><div><br></div><div><div>After instance reboot I am able to see attached volume:</div><div><br></div><div># fdisk -l</div><div><br></div><div>Disk /dev/sda: 5368 MB, 5368709120 bytes</div><div>255 heads, 63 sectors/track, 652 cylinders</div><div>Units = cylinders of 16065 * 512 = 8225280 bytes</div><div>Sector size (logical/physical): 512 bytes / 512 bytes</div><div>I/O size (minimum/optimal): 512 bytes / 512 bytes</div><div>Disk identifier: 0x000ae3eb</div><div><br></div><div> Device Boot Start End Blocks Id System</div><div>/dev/sda1 * 1 119 949248 83 Linux</div><div>Partition 1 does not end on cylinder boundary.</div><div>/dev/sda2 119 131 96257 5 Extended</div><div>Partition 2 does not end on cylinder boundary.</div><div>/dev/sda5 119 131 96256 82 Linux swap / Solaris</div><div><br></div><div>Disk /dev/sdb: 1073 MB, 1073741824 bytes</div><div>255 heads, 63 sectors/track, 130 cylinders</div><div>Units = cylinders of 16065 * 512 = 8225280 bytes</div><div>Sector size (logical/physical): 512 bytes / 512 bytes</div><div>I/O size (minimum/optimal): 512 bytes / 512 bytes</div><div>Disk identifier: 0x00000000</div><div><br></div><div>Disk /dev/sdb doesn't contain a valid partition table</div><div><br></div><div>Any ideas? </div></div><div><br></div><div><br></div><div><div>-- <br><div class="gmail_signature"><div dir="ltr"><span style="color:rgb(57,51,24);line-height:20px;background-color:rgb(252,250,243)"><font size="4" face="georgia, serif">Thanks & Regards</font></span><div><div><span style="color:rgb(57,51,24);line-height:20px;background-color:rgb(252,250,243)"><font size="4" face="georgia, serif">E-Mail: <a href="mailto:thefossgeek@gmail.com" target="_blank">thefossgeek@gmail.com</a></font></span></div><div><span style="color:rgb(57,51,24);line-height:20px;background-color:rgb(252,250,243)"><font size="4" face="georgia, serif">IRC: neophy</font></span></div><div><span style="background-color:rgb(252,250,243)"><font color="#393318" size="4" face="georgia, serif"><span style="line-height:20px">Blog : <a href="http://lmohanphy.livejournal.com/" target="_blank">http://lmohanphy.livejournal.com/</a></span></font></span></div></div><div><span style="background-color:rgb(252,250,243)"><font color="#393318" size="4" face="georgia, serif"><br></font></span></div><div><span style="background-color:rgb(252,250,243)"><font color="#393318" size="4" face="georgia, serif"><br></font></span></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 6, 2014 at 7:05 PM, foss geek <span dir="ltr"><<a href="mailto:thefossgeek@gmail.com" target="_blank">thefossgeek@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Dear All,</div><div><br></div><div>I am using the Debian VMDK image for testing Cinder with VMware vCenter VMDK driver:</div><div><br></div><div><a href="http://partnerweb.vmware.com/programs/vmdkimage/debian-2.6.32-i686.vmdk" target="_blank">http://partnerweb.vmware.com/programs/vmdkimage/debian-2.6.32-i686.vmdk</a></div><div><br></div><div><a href="https://wiki.openstack.org/wiki/NovaVMware/DeveloperGuide" target="_blank">https://wiki.openstack.org/wiki/NovaVMware/DeveloperGuide</a></div><div><br></div><div>It seems by default the above debian vmdk image not configured to load "acpiphp" kernel module at boot time.<br></div><div><br></div><div>Here is /etc/module file after instance launch </div><div><br></div><div># cat /etc/modules</div><div><br></div><div># /etc/modules: kernel modules to load at boot time.</div><div>#</div><div># This file contains the names of kernel modules that should be loaded</div><div># at boot time, one per line. Lines beginning with "#" are ignored.</div><div># Parameters can be specified after the module name.</div><div><br></div><div>Loop</div><div><br></div><div># dmesg |grep acpiphp:</div><div><br></div><div>Because of this I am not able see attached volume in instance. After attaching volume I did the below steps manually and still it requires VM reboot to see attached volume.</div><div><br></div><div># modprobe -v acpiphp</div><div>insmod /lib/modules/2.6.32-5-686/kernel/drivers/pci/hotplug/acpiphp.ko</div><div><br></div><div>root@debian:~# dmesg |grep acpiphp:</div><div>[ 2614.352369] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5</div><div>[ 2614.352765] acpiphp: Slot [32] registered</div><div>[ 2614.352873] acpiphp: Slot [33] registered</div><div><br></div><div># echo “acpiphp” >> /etc/modules</div><div><br></div><div>My question is:</div><div><br></div><div>Is there any tool in Linux to edit the above VMDK and add acpiphp to load at boot time? </div><div><br></div><div>what are other kernel module required to hotplug volume to running instance?</div><span class=""><font color="#888888"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><div><div><br></div>-- <br><div><div dir="ltr"><span style="color:rgb(57,51,24);line-height:20px;background-color:rgb(252,250,243)"><font size="4" face="georgia, serif">Thanks & Regards</font></span><div><div><span style="color:rgb(57,51,24);line-height:20px;background-color:rgb(252,250,243)"><font size="4" face="georgia, serif">E-Mail: <a href="mailto:thefossgeek@gmail.com" target="_blank">thefossgeek@gmail.com</a></font></span></div><div><span style="color:rgb(57,51,24);line-height:20px;background-color:rgb(252,250,243)"><font size="4" face="georgia, serif">IRC: neophy</font></span></div><div><span style="background-color:rgb(252,250,243)"><font color="#393318" size="4" face="georgia, serif"><span style="line-height:20px">Blog : <a href="http://lmohanphy.livejournal.com/" target="_blank">http://lmohanphy.livejournal.com/</a></span></font><br></span></div><div><br></div></div></div></div>
</div></font></span></div>
</blockquote></div><div><br></div><div class="gmail_signature"><div dir="ltr"><div><div><br></div></div></div></div>
</div></div></div></div></div>