snipt

Ctrl+h for KB shortcuts

Text only

Change uuid of a vitualbox.vdi hdd in Debian 7

1
2
3
4
5
6
7
Change uuid of an existing vdi hdd:

VBoxManage internalcommands sethduuid /ruta/al/virtualdisk.vdi

If you want to clone preserving the uuid:

VBoxManage clonevdi origen.vdi copia.vdi
https://snipt.net/embed/67cee08b7bcc71058ae1cc8fc7fe95cd/
/raw/67cee08b7bcc71058ae1cc8fc7fe95cd/
67cee08b7bcc71058ae1cc8fc7fe95cd
text
Text only
7
2019-07-13T20:27:41
True
False
False
/api/public/snipt/87889/
change-uuid-of-a-vitualboxvdi-hdd
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Change uuid of an existing vdi hdd: </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>VBoxManage internalcommands sethduuid /ruta/al/virtualdisk.vdi </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>If you want to clone preserving the uuid: </span><span id="L-6"><a name="L-6"></a> </span><span id="L-7"><a name="L-7"></a>VBoxManage clonevdi origen.vdi copia.vdi </span></pre></div> </td></tr></table>
Debian, Linux, VirtualBox, uuid, vdi

Text only

Convert from vmdk to vdi in Debian/Ubuntu

1
2
3
sudo aptitude install qemu
qemu-img convert /path/to/original.vmdk converted.bin
VBoxManage convertdd converted.bin converted.vdi
https://snipt.net/embed/8bb6932af36f5bcb1e1270a2e7237025/
/raw/8bb6932af36f5bcb1e1270a2e7237025/
8bb6932af36f5bcb1e1270a2e7237025
text
Text only
6
2019-07-22T14:16:24
True
False
False
/api/public/snipt/87651/
convert-from-vmdk-to-vdi-in-debianubuntu
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>sudo aptitude install qemu </span><span id="L-2"><a name="L-2"></a>qemu-img convert /path/to/original.vmdk converted.bin </span><span id="L-3"><a name="L-3"></a>VBoxManage convertdd converted.bin converted.vdi </span></pre></div> </td></tr></table>
Debian, Linux, Ubuntu, VirtualBox, qemu, vdi, vmdk

Text only

Resize hdd in Virtual Box vm

1
2
3
4
5
For Dynamic storage hdd's:

VBoxManage modifyhd VirtualBox\ VMs/Debian/Debian-disk1.vdi --resize 150000

This will resize the hdd to 150 Gb.
https://snipt.net/embed/4aea25a02bd8e9fc58e2f2aca7af5cc2/
/raw/4aea25a02bd8e9fc58e2f2aca7af5cc2/
4aea25a02bd8e9fc58e2f2aca7af5cc2
text
Text only
6
2019-07-13T03:51:26
True
False
False
/api/public/snipt/59969/
resize-hdd-in-virtual-box-vm
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>For Dynamic storage hdd&#39;s: </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>VBoxManage modifyhd VirtualBox\ VMs/Debian/Debian-disk1.vdi --resize 150000 </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>This will resize the hdd to 150 Gb. </span></pre></div> </td></tr></table>
Debian, Linux, Ubuntu, VirtualBox, vdi