Problems with Oracle Virtual Box

Asked by Gerardo Martínez Cabruja

Dear Mr. Hampl:

I have two little problems with my Oracle Virtual Box.

1- I should download and set the new version, but when I open the link I see a lot of different versions and I do not know which sould be te one. Actualy I have installed the: virtualbox-4.3_4.3.32-103443~Ubuntu~precise_amd64.deb.

2- I need to get more space in the virtual box HD (VDI). I need to increase fron 10 GB to 15 Gb. I do not know the to do it.

Can you help me in this two problems?

I would appreciate very much your hepl.

Thank you ver much.

Best Regards,

Gerardo Martínez Cabruja

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Gerardo Martínez Cabruja
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Just run:

sudo apt-get install virtualbox

Done. You don't need to manually download anything

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Resizing the drive is pretty simple. Make a backup of the file before you start manipulating it
https://forums.virtualbox.org/viewtopic.php?f=35&t=50661

Revision history for this message
Gerardo Martínez Cabruja (gemarca) said :
#3

The new version gave me a problem and virtual disk does not work.
Uno o más archivos de disco virtuales no están accesibles. Como resultado, no se pueden operar las máquinas virtuales que usen estos archivos hasta que estén accesibles.
Presione Comprobar para abrir la ventana del Administrador de medios virtuales y ver que medios están inaccesibles o presione Ignorar para ignorar este mensaje.
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please install virtualbox-dkms package and load the kernel module by executing

'modprobe vboxdrv'

as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

Try

sudo apt-get install virtualbox-dkms

Revision history for this message
Gerardo Martínez Cabruja (gemarca) said :
#5

gerardo@gerardo-N56VM:~$ sudo apt-get install virtualbox-dkms
[sudo] password for gerardo:
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
virtualbox-dkms ya está en su versión más reciente (5.0.40-dfsg-0ubuntu1.16.04.2).
fijado virtualbox-dkms como instalado manualmente.
Los paquetes indicados a continuación se instalaron de forma automática y ya no son necesarios.
  libllvm3.8 libllvm4.0 libqmi-glib1 libvpx1 linux-headers-4.4.0-101
  linux-headers-4.4.0-101-generic linux-headers-4.4.0-103
  linux-headers-4.4.0-103-generic linux-headers-4.4.0-104
  linux-headers-4.4.0-104-generic linux-headers-4.4.0-79
  linux-headers-4.4.0-79-generic linux-headers-4.4.0-83
  linux-headers-4.4.0-83-generic linux-headers-4.4.0-87
  linux-headers-4.4.0-87-generic linux-headers-4.4.0-89
  linux-headers-4.4.0-89-generic linux-headers-4.4.0-91
  linux-headers-4.4.0-91-generic linux-headers-4.4.0-92
  linux-headers-4.4.0-92-generic linux-headers-4.4.0-93
  linux-headers-4.4.0-93-generic linux-headers-4.4.0-96
  linux-headers-4.4.0-96-generic linux-headers-4.4.0-97
  linux-headers-4.4.0-97-generic linux-headers-4.4.0-98
  linux-headers-4.4.0-98-generic linux-image-4.4.0-101-generic
  linux-image-4.4.0-103-generic linux-image-4.4.0-104-generic
  linux-image-4.4.0-79-generic linux-image-4.4.0-83-generic
  linux-image-4.4.0-87-generic linux-image-4.4.0-89-generic
  linux-image-4.4.0-91-generic linux-image-4.4.0-92-generic
  linux-image-4.4.0-93-generic linux-image-4.4.0-96-generic
  linux-image-4.4.0-97-generic linux-image-4.4.0-98-generic
  linux-image-extra-4.4.0-101-generic linux-image-extra-4.4.0-103-generic
  linux-image-extra-4.4.0-104-generic linux-image-extra-4.4.0-79-generic
  linux-image-extra-4.4.0-83-generic linux-image-extra-4.4.0-87-generic
  linux-image-extra-4.4.0-89-generic linux-image-extra-4.4.0-91-generic
  linux-image-extra-4.4.0-92-generic linux-image-extra-4.4.0-93-generic
  linux-image-extra-4.4.0-96-generic linux-image-extra-4.4.0-97-generic
  linux-image-extra-4.4.0-98-generic linux-signed-image-4.4.0-101-generic
  linux-signed-image-4.4.0-103-generic linux-signed-image-4.4.0-104-generic
  linux-signed-image-4.4.0-79-generic linux-signed-image-4.4.0-83-generic
  linux-signed-image-4.4.0-87-generic linux-signed-image-4.4.0-89-generic
  linux-signed-image-4.4.0-91-generic linux-signed-image-4.4.0-92-generic
  linux-signed-image-4.4.0-93-generic linux-signed-image-4.4.0-96-generic
  linux-signed-image-4.4.0-97-generic linux-signed-image-4.4.0-98-generic
Utilice «sudo apt autoremove» para eliminarlos.
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 13 no actualizados.
2 no instalados del todo o eliminados.
Se utilizarán 0 B de espacio de disco adicional después de esta operación.
¿Desea continuar? [S/n] S
Configurando virtualbox (5.0.40-dfsg-0ubuntu1.16.04.2) ...
insserv: script virtualbox: service vboxdrv already provided!
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error al procesar el paquete virtualbox (--configure):
 el subproceso instalado el script post-installation devolvió el código de salida de error 1
dpkg: problemas de dependencias impiden la configuración de virtualbox-qt:
 virtualbox-qt depende de virtualbox (= 5.0.40-dfsg-0ubuntu1.16.04.2); sin embargo:
 El paquete `virtualbox' no está configurado todavía.
  El paquete `virtualbox-4.3' que provee virtualbox no está instalado.

dpkg: error al procesar el paquete virtualbox-qt (--configure):
 problemas de dependencias - se deja sin configurar
No se escribió un informe «apport» porque el mensaje de error indica que es un mensaje de error asociado a un fallo previo.
                                           Se encontraron errores al procesar:
 virtualbox
 virtualbox-qt
E: Sub-process /usr/bin/dpkg returned an error code (1)
gerardo@gerardo-N56VM:~$

It did not work. The problem is the same

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

Try

LANG=C sudo dpkg --remove virtualbox-4.3

and copy/paste all output that we can see the results.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

Also run:

sudo apt-get autoremove

We don't need the output. You just have packages you no longer need and it'll tidy up.

Revision history for this message
Gerardo Martínez Cabruja (gemarca) said :
#8

gerardo@gerardo-N56VM:~$ LANG=C sudo dpkg --remove virtualbox-4.3
[sudo] password for gerardo:
dpkg: warning: ignoring request to remove virtualbox-4.3, only the config
 files of which are on the system; use --purge to remove them too
gerardo@gerardo-N56VM:~$

Revision history for this message
Gerardo Martínez Cabruja (gemarca) said :
#9

The virtualbox has not worked again. Besides, before it said "Oracle Virual Box", and now it only says "Virtual Boz" and icon has changed

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

What is now the output of the command

dpkg -l | grep virtualb

Revision history for this message
Gerardo Martínez Cabruja (gemarca) said :
#11

this is the message:

ii unity-scope-virtualbox 0.1+13.10.20130723-0ubuntu1 all VirtualBox scope for Unity
iF virtualbox 5.0.40-dfsg-0ubuntu1.16.04.2 amd64 x86 virtualization solution - base binaries
rc virtualbox-4.3 4.3.32-103443~Ubuntu~precise amd64 Oracle VM VirtualBox
ii virtualbox-dkms 5.0.40-dfsg-0ubuntu1.16.04.2 all x86 virtualization solution - kernel module sources for dkms
iU virtualbox-qt 5.0.40-dfsg-0ubuntu1.16.04.2 amd64 x86 virtualization solution - Qt based user interface

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#12

sudo dpkg -P virtualbox-4.3
sudo apt-get -f install

Revision history for this message
Gerardo Martínez Cabruja (gemarca) said :
#13

I didi it and no result gotten.

This is the message:

gerardo@gerardo-N56VM:~$ sudo dpkg -P virtualbox-4.3
[sudo] password for gerardo:
dpkg: problemas de dependencias impiden la desinstalación de virtualbox-4.3:
 virtualbox-qt depende de virtualbox (= 5.0.40-dfsg-0ubuntu1.16.04.2); sin embargo:
 El paquete `virtualbox' no está configurado todavía.
  El paquete `virtualbox-4.3' provee `virtualbox' pero va a ser desinstalado.

dpkg: error al procesar el paquete virtualbox-4.3 (--purge):
 problemas de dependencias - no se desinstala
Se encontraron errores al procesar:
 virtualbox-4.3
gerardo@gerardo-N56VM:~$ sudo apt-get -f install
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 13 no actualizados.
2 no instalados del todo o eliminados.
Se utilizarán 0 B de espacio de disco adicional después de esta operación.
Configurando virtualbox (5.0.40-dfsg-0ubuntu1.16.04.2) ...
insserv: script virtualbox: service vboxdrv already provided!
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error al procesar el paquete virtualbox (--configure):
 el subproceso instalado el script post-installation devolvió el código de salida de error 1
dpkg: problemas de dependencias impiden la configuración de virtualbox-qt:
 virtualbox-qt depende de virtualbox (= 5.0.40-dfsg-0ubuntu1.16.04.2); sin embargo:
 El paquete `virtualbox' no está configurado todavía.
  El paquete `virtualbox-4.3' que provee virtualbox no está instalado.

dpkg: error al procesar el paquete virtualbox-qt (--configure):
 problemas de dependencias - se deja sin configurar
No se escribió un informe «apport» porque el mensaje de error indica que es un mensaje de error asociado a un fallo previo.
                                           Se encontraron errores al procesar:
 virtualbox
 virtualbox-qt
E: Sub-process /usr/bin/dpkg returned an error code (1)
gerardo@gerardo-N56VM:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#15

Try the following:

sudo dpkg --remove unity-scope-virtualbox virtualbox virtualbox-dkms virtualbox-qt
sudo dpkg --purge virtualbox-4.3
sudo

Revision history for this message
Manfred Hampl (m-hampl) said :
#16

Oops, the last command was incomplete, should have been:

LANG=C sudo dpkg --remove unity-scope-virtualbox virtualbox virtualbox-dkms virtualbox-qt
LANG=C sudo dpkg --purge virtualbox-4.3
LANG=C sudo apt-get install virtualbox virtualbox-dkms

Revision history for this message
Gerardo Martínez Cabruja (gemarca) said :
#17

It is working again!!!!!!!!
Thank you very much!!!!!!!!

Now I will try to resize the Windows Virtual disk

Revision history for this message
Gerardo Martínez Cabruja (gemarca) said :
#18

Please, can you give me the target to resize the VDI disk??

It is inside : Equipo/home/gerardo/VirtualBox VMs/WINDOWS XP VIRTUAL/WINDOWS XP VIRTUAL.vdi

Thank you very much

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#19

Do you mean the command?

Revision history for this message
Gerardo Martínez Cabruja (gemarca) said :
#20

Yes. I mean the command to erige in the terminal to reside from 10gb to 15 GB

Enviado desde mi iPhone

> El 18 feb 2018, a las 14:27, actionparsnip <email address hidden> escribió:
>
> Your question #664547 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/664547
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> Do you mean the command?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/664547
>
> You received this question notification because you asked the question.
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#21

Backup the file with

cp /home/gerardo/VirtualBox\ VMs/WINDOWS\ XP VIRTUAL/WINDOWS\ XP\ VIRTUAL.vdi /home/gerardo/VirtualBox\ VMs/WINDOWS\ XP VIRTUAL/WINDOWS\ XP\ VIRTUAL.vdi-20180218

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#22

What is the output of:

sudo updatedb
locate -i VBoxManage

Thanks

Revision history for this message
Gerardo Martínez Cabruja (gemarca) said :
#23

I meant:

Yes. I mean the command to write in the terminal to resize from 10gb to
15 GB

Enviado desde mi iPhone

> El 18 feb 2018, a las 14:27, actionparsnip <email address hidden> escribió:
>
> Your question #664547 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/664547
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> Do you mean the command?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/664547
>
> You received this question notification because you asked the question.
>

Revision history for this message
Gerardo Martínez Cabruja (gemarca) said :
#24

I have copied and paste the VDI archive.

The command for resizing did not work:

gerardo@gerardo-N56VM:~$ cp /home/gerardo/VirtualBox\ VMs/WINDOWS\ XP VIRTUAL/WINDOWS\ XP\
> VIRTUAL.vdi /home/gerardo/VirtualBox\ VMs/WINDOWS\ XP VIRTUAL/WINDOWS\
> XP\ VIRTUAL.vdi-20180218
cp: el objetivo 'VIRTUAL/WINDOWSXP VIRTUAL.vdi-20180218' no es un directorio

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#25

Just make a copy of the file. You can then manipulate the file. Knowing one is safe. It really doesn't help you've added spaces in your folder names.

Make a copy of the file to the desktop. This will make things easier. What is the output of the locate command

Revision history for this message
Gerardo Martínez Cabruja (gemarca) said :
#26

I have a copy of the Vdi disk.

Now please give me the command to resize original vdi.

Thank you

Enviado desde mi iPhone

> El 18 feb 2018, a las 15:22, actionparsnip <email address hidden> escribió:
>
> Your question #664547 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/664547
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> Just make a copy of the file. You can then manipulate the file. Knowing
> one is safe. It really doesn't help you've added spaces in your folder
> names.
>
> Make a copy of the file to the desktop. This will make things easier.
> What is the output of the locate command
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/664547
>
> You received this question notification because you asked the question.
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#27

Did you copy the file to the desktop and what is its file name please?

Revision history for this message
Gerardo Martínez Cabruja (gemarca) said :
#28

I copied the file of the virtual disk; it is: WINDOWS XP VIRTUAL.vdi

and it is inside: Equipo/home/gerardo/VirtualBox VMs/WINDOWS XP VIRTUAL/WINDOWS XP VIRTUAL.vdi

thanks a lot

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#29

What is the output of:

sudo updatedb
locate -i VBoxManage

Thanks

Revision history for this message
Gerardo Martínez Cabruja (gemarca) said :
#30

gerardo@gerardo-N56VM:~$ sudo updatedb
[sudo] password for gerardo:
Lo sentimos, vuelva a intentarlo.
[sudo] password for gerardo:

gerardo@gerardo-N56VM:~$ locate -i VBoxManage
/usr/bin/VBoxManage
/usr/bin/vboxmanage
/usr/lib/virtualbox/VBoxManage
/usr/share/man/man1/VBoxManage.1.gz
/usr/share/man/man1/vboxmanage.1.gz
gerardo@gerardo-N56VM:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#31

VBoxManage /home/gerardo/VirtualBox\ VMs/WINDOWS\ XP\ VIRTUAL/WINDOWS\ XP\ VIRTUAL.vdi --resize 15360

I thought the link I gave earlier was pretty succinct. It pretty much gives the exact command you needed......

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#32

The top block IS ONE command

Revision history for this message
Gerardo Martínez Cabruja (gemarca) said :
#33

Sorry it did not work. This is the message:

gerardo@gerardo-N56VM:~$ VBoxManage /home/gerardo/VirtualBox\ VMs/WINDOWS\ XP\ VIRTUAL/WINDOWS\ XP\ VIRTUAL.vdi --resize 15360
Oracle VM VirtualBox Command Line Management Interface Version 5.0.40_Ubuntu
(C) 2005-2017 Oracle Corporation
All rights reserved.

Usage:

  VBoxManage [<general option>] <command>

General Options:

  [-v|--version] print version number and exit
  [-q|--nologo] suppress the logo
  [--settingspw <pw>] provide the settings password
  [--settingspwfile <file>] provide a file containing the settings password

Commands:

  list [--long|-l] vms|runningvms|ostypes|hostdvds|hostfloppies|
                            intnets|bridgedifs|hostonlyifs|natnets|dhcpservers|
                            hostinfo|hostcpuids|hddbackends|hdds|dvds|floppies|
                            usbhost|usbfilters|systemproperties|extpacks|
                            groups|webcams|screenshotformats

  showvminfo <uuid|vmname> [--details]
                            [--machinereadable]
  showvminfo <uuid|vmname> --log <idx>

  registervm <filename>

  unregistervm <uuid|vmname> [--delete]

  createvm --name <name>
                            [--groups <group>, ...]
                            [--ostype <ostype>]
                            [--register]
                            [--basefolder <path>]
                            [--uuid <uuid>]

  modifyvm <uuid|vmname>
                            [--name <name>]
                            [--groups <group>, ...]
                            [--description <desc>]
                            [--ostype <ostype>]
                            [--iconfile <filename>]
                            [--memory <memorysize in MB>]
                            [--pagefusion on|off]
                            [--vram <vramsize in MB>]
                            [--acpi on|off]
                            [--pciattach 03:04.0]
                            [--pciattach 03:04.0@02:01.0]
                            [--pcidetach 03:04.0]
                            [--ioapic on|off]
                            [--hpet on|off]
                            [--triplefaultreset on|off]
                            [--paravirtprovider none|default|legacy|minimal|
                                                hyperv|kvm]
                            [--hwvirtex on|off]
                            [--nestedpaging on|off]
                            [--largepages on|off]
                            [--vtxvpid on|off]
                            [--vtxux on|off]
                            [--pae on|off]
                            [--longmode on|off]
                            [--cpuid-portability-level <0..3>
                            [--cpuidset <leaf> <eax> <ebx> <ecx> <edx>]
                            [--cpuidremove <leaf>]
                            [--cpuidremoveall]
                            [--hardwareuuid <uuid>]
                            [--cpus <number>]
                            [--cpuhotplug on|off]
                            [--plugcpu <id>]
                            [--unplugcpu <id>]
                            [--cpuexecutioncap <1-100>]
                            [--rtcuseutc on|off]
                            [--graphicscontroller none|vboxvga|vmsvga]
                            [--monitorcount <number>]
                            [--accelerate3d on|off]
                            [--accelerate2dvideo on|off]
                            [--firmware bios|efi|efi32|efi64]
                            [--chipset ich9|piix3]
                            [--bioslogofadein on|off]
                            [--bioslogofadeout on|off]
                            [--bioslogodisplaytime <msec>]
                            [--bioslogoimagepath <imagepath>]
                            [--biosbootmenu disabled|menuonly|messageandmenu]
                            [--biossystemtimeoffset <msec>]
                            [--biospxedebug on|off]
                            [--boot<1-4> none|floppy|dvd|disk|net>]
                            [--nic<1-N> none|null|nat|bridged|intnet|hostonly|
                                        generic|natnetwork]
                            [--nictype<1-N> Am79C970A|Am79C973|
                                            82540EM|82543GC|82545EM|
                                            virtio]
                            [--cableconnected<1-N> on|off]
                            [--nictrace<1-N> on|off]
                            [--nictracefile<1-N> <filename>]
                            [--nicproperty<1-N> name=[value]]
                            [--nicspeed<1-N> <kbps>]
                            [--nicbootprio<1-N> <priority>]
                            [--nicpromisc<1-N> deny|allow-vms|allow-all]
                            [--nicbandwidthgroup<1-N> none|<name>]
                            [--bridgeadapter<1-N> none|<devicename>]
                            [--hostonlyadapter<1-N> none|<devicename>]
                            [--intnet<1-N> <network name>]
                            [--nat-network<1-N> <network name>]
                            [--nicgenericdrv<1-N> <driver>
                            [--natnet<1-N> <network>|default]
                            [--natsettings<1-N> [<mtu>],[<socksnd>],
                                                [<sockrcv>],[<tcpsnd>],
                                                [<tcprcv>]]
                            [--natpf<1-N> [<rulename>],tcp|udp,[<hostip>],
                                          <hostport>,[<guestip>],<guestport>]
                            [--natpf<1-N> delete <rulename>]
                            [--nattftpprefix<1-N> <prefix>]
                            [--nattftpfile<1-N> <file>]
                            [--nattftpserver<1-N> <ip>]
                            [--natbindip<1-N> <ip>
                            [--natdnspassdomain<1-N> on|off]
                            [--natdnsproxy<1-N> on|off]
                            [--natdnshostresolver<1-N> on|off]
                            [--nataliasmode<1-N> default|[log],[proxyonly],
                                                         [sameports]]
                            [--macaddress<1-N> auto|<mac>]
                            [--mouse ps2|usb|usbtablet|usbmultitouch]
                            [--keyboard ps2|usb
                            [--uart<1-N> off|<I/O base> <IRQ>]
                            [--uartmode<1-N> disconnected|
                                             server <pipe>|
                                             client <pipe>|
                                             tcpserver <port>|
                                             tcpclient <hostname:port>|
                                             file <file>|
                                             <devicename>]
                            [--lpt<1-N> off|<I/O base> <IRQ>]
                            [--lptmode<1-N> <devicename>]
                            [--guestmemoryballoon <balloonsize in MB>]
                            [--audio none|null|oss|alsa|pulse]
                            [--audiocontroller ac97|hda|sb16]
                            [--audiocodec stac9700|ad1980|stac9221|sb16]
                            [--clipboard disabled|hosttoguest|guesttohost|
                                         bidirectional]
                            [--draganddrop disabled|hosttoguest]
                            [--vrde on|off]
                            [--vrdeextpack default|<name>
                            [--vrdeproperty <name=[value]>]
                            [--vrdeport <hostport>]
                            [--vrdeaddress <hostip>]
                            [--vrdeauthtype null|external|guest]
                            [--vrdeauthlibrary default|<name>
                            [--vrdemulticon on|off]
                            [--vrdereusecon on|off]
                            [--vrdevideochannel on|off]
                            [--vrdevideochannelquality <percent>]
                            [--usb on|off]
                            [--usbehci on|off]
                            [--usbxhci on|off]
                            [--usbrename <oldname> <newname>]
                            [--snapshotfolder default|<path>]
                            [--teleporter on|off]
                            [--teleporterport <port>]
                            [--teleporteraddress <address|empty>
                            [--teleporterpassword <password>]
                            [--teleporterpasswordfile <file>|stdin]
                            [--tracing-enabled on|off]
                            [--tracing-config <config-string>]
                            [--tracing-allow-vm-access on|off]
                            [--usbcardreader on|off]
                            [--autostart-enabled on|off]
                            [--autostart-delay <seconds>]
                            [--videocap on|off]
                            [--videocapscreens all|<screen ID> [<screen ID> ...]]
                            [--videocapfile <filename>]
                            [--videocapres <width> <height>]
                            [--videocaprate <rate>]
                            [--videocapfps <fps>]
                            [--videocapmaxtime <ms>]
                            [--videocapmaxsize <MB>]
                            [--videocapopts <key=value> [<key=value> ...]]
                            [--defaultfrontend default|<name>]

  clonevm <uuid|vmname>
                            [--snapshot <uuid>|<name>]
                            [--mode machine|machineandchildren|all]
                            [--options link|keepallmacs|keepnatmacs|
                                       keepdisknames]
                            [--name <name>]
                            [--groups <group>, ...]
                            [--basefolder <basefolder>]
                            [--uuid <uuid>]
                            [--register]

  import <ovfname/ovaname>
                            [--dry-run|-n]
                            [--options keepallmacs|keepnatmacs|importtovdi]
                            [more options]
                            (run with -n to have options displayed
                             for a particular OVF)

  export <machines> --output|-o <name>.<ovf/ova>
                            [--legacy09|--ovf09|--ovf10|--ovf20]
                            [--manifest]
                            [--iso]
                            [--options manifest|iso|nomacs|nomacsbutnat]
                            [--vsys <number of virtual system>]
                                    [--product <product name>]
                                    [--producturl <product url>]
                                    [--vendor <vendor name>]
                                    [--vendorurl <vendor url>]
                                    [--version <version info>]
                                    [--description <description info>]
                                    [--eula <license text>]
                                    [--eulafile <filename>]

  startvm <uuid|vmname>...
                            [--type gui|sdl|headless|separate]

  controlvm <uuid|vmname>
                            pause|resume|reset|poweroff|savestate|
                            acpipowerbutton|acpisleepbutton|
                            keyboardputscancode <hex> [<hex> ...]|
                            setlinkstate<1-N> on|off |
                            nic<1-N> null|nat|bridged|intnet|hostonly|generic|
                                     natnetwork [<devicename>] |
                            nictrace<1-N> on|off |
                            nictracefile<1-N> <filename> |
                            nicproperty<1-N> name=[value] |
                            nicpromisc<1-N> deny|allow-vms|allow-all |
                            natpf<1-N> [<rulename>],tcp|udp,[<hostip>],
                                        <hostport>,[<guestip>],<guestport> |
                            natpf<1-N> delete <rulename> |
                            guestmemoryballoon <balloonsize in MB> |
                            usbattach <uuid>|<address>
                                      [--capturefile <filename>] |
                            usbdetach <uuid>|<address> |
                            clipboard disabled|hosttoguest|guesttohost|
                                      bidirectional |
                            draganddrop disabled|hosttoguest |
                            vrde on|off |
                            vrdeport <port> |
                            vrdeproperty <name=[value]> |
                            vrdevideochannelquality <percent> |
                            setvideomodehint <xres> <yres> <bpp>
                                            [[<display>] [<enabled:yes|no> |
                                              [<xorigin> <yorigin>]]] |
                            screenshotpng <file> [display] |
                            videocap on|off |
                            videocapscreens all|none|<screen>,[<screen>...] |
                            videocapfile <file>
                            videocapres <width>x<height>
                            videocaprate <rate>
                            videocapfps <fps>
                            videocapmaxtime <ms>
                            videocapmaxsize <MB>
                            setcredentials <username>
                                           --passwordfile <file> | <password>
                                           <domain>
                                           [--allowlocallogon <yes|no>] |
                            teleport --host <name> --port <port>
                                     [--maxdowntime <msec>]
                                     [--passwordfile <file> |
                                      --password <password>] |
                            plugcpu <id> |
                            unplugcpu <id> |
                            cpuexecutioncap <1-100>
                            webcam <attach [path [settings]]> | <detach [path]> | <list>
                            addencpassword <id>
                                           <password file>|-
                                           [--removeonsuspend <yes|no>]
                            removeencpassword <id>
                            removeallencpasswords

  discardstate <uuid|vmname>

  adoptstate <uuid|vmname> <state_file>

  snapshot <uuid|vmname>
                            take <name> [--description <desc>] [--live]
                                 [--uniquename Number,Timestamp,Space,Force] |
                            delete <uuid|snapname> |
                            restore <uuid|snapname> |
                            restorecurrent |
                            edit <uuid|snapname>|--current
                                 [--name <name>]
                                 [--description <desc>] |
                            list [--details|--machinereadable]
                            showvminfo <uuid|snapname>

  closemedium [disk|dvd|floppy] <uuid|filename>
                            [--delete]

  storageattach <uuid|vmname>
                            --storagectl <name>
                            [--port <number>]
                            [--device <number>]
                            [--type dvddrive|hdd|fdd]
                            [--medium none|emptydrive|additions|
                                      <uuid|filename>|host:<drive>|iscsi]
                            [--mtype normal|writethrough|immutable|shareable|
                                     readonly|multiattach]
                            [--comment <text>]
                            [--setuuid <uuid>]
                            [--setparentuuid <uuid>]
                            [--passthrough on|off]
                            [--tempeject on|off]
                            [--nonrotational on|off]
                            [--discard on|off]
                            [--hotpluggable on|off]
                            [--bandwidthgroup <name>]
                            [--forceunmount]
                            [--server <name>|<ip>]
                            [--target <target>]
                            [--tport <port>]
                            [--lun <lun>]
                            [--encodedlun <lun>]
                            [--username <username>]
                            [--password <password>]
                            [--initiator <initiator>]
                            [--intnet]

  storagectl <uuid|vmname>
                            --name <name>
                            [--add ide|sata|scsi|floppy|sas]
                            [--controller LSILogic|LSILogicSAS|BusLogic|
                                          IntelAHCI|PIIX3|PIIX4|ICH6|I82078]
                            [--portcount <1-n>]
                            [--hostiocache on|off]
                            [--bootable on|off]
                            [--rename <name>]
                            [--remove]

  bandwidthctl <uuid|vmname>
                            add <name> --type disk|network
                                --limit <megabytes per second>[k|m|g|K|M|G] |
                            set <name>
                                --limit <megabytes per second>[k|m|g|K|M|G] |
                            remove <name> |
                            list [--machinereadable]
                            (limit units: k=kilobit, m=megabit, g=gigabit,
                                          K=kilobyte, M=megabyte, G=gigabyte)

  showmediuminfo [disk|dvd|floppy] <uuid|filename>

  createmedium [disk|dvd|floppy] --filename <filename>
                            [--size <megabytes>|--sizebyte <bytes>]
                            [--diffparent <uuid>|<filename>
                            [--format VDI|VMDK|VHD] (default: VDI)
                            [--variant Standard,Fixed,Split2G,Stream,ESX]

  modifymedium [disk|dvd|floppy] <uuid|filename>
                            [--type normal|writethrough|immutable|shareable|
                                    readonly|multiattach]
                            [--autoreset on|off]
                            [--property <name=[value]>]
                            [--compact]
                            [--resize <megabytes>|--resizebyte <bytes>]

  clonemedium [disk|dvd|floppy] <uuid|inputfile> <uuid|outputfile>
                            [--format VDI|VMDK|VHD|RAW|<other>]
                            [--variant Standard,Fixed,Split2G,Stream,ESX]
                            [--existing]

  mediumproperty [disk|dvd|floppy] set <uuid|filename>
                            <property> <value>

                            [disk|dvd|floppy] get <uuid|filename>
                            <property>

                            [disk|dvd|floppy] delete <uuid|filename>
                            <property>

  encryptmedium <uuid|filename>
                            [--newpassword <file>|-]
                            [--oldpassword <file>|-]
                            [--cipher <cipher identifier>]
                            [--newpasswordid <password identifier>]

  checkmediumpwd <uuid|filename>
                            <pwd file>|-

  convertfromraw <filename> <outputfile>
                            [--format VDI|VMDK|VHD]
                            [--variant Standard,Fixed,Split2G,Stream,ESX]
                            [--uuid <uuid>]
  convertfromraw stdin <outputfile> <bytes>
                            [--format VDI|VMDK|VHD]
                            [--variant Standard,Fixed,Split2G,Stream,ESX]
                            [--uuid <uuid>]

  getextradata global|<uuid|vmname>
                            <key>|enumerate

  setextradata global|<uuid|vmname>
                            <key>
                            [<value>] (no value deletes key)

  setproperty machinefolder default|<folder> |
                            hwvirtexclusive on|off |
                            vrdeauthlibrary default|<library> |
                            websrvauthlibrary default|null|<library> |
                            vrdeextpack null|<library> |
                            autostartdbpath null|<folder> |
                            loghistorycount <value>
                            defaultfrontend default|<name>
                            logginglevel <log setting>

  usbfilter add <index,0-N>
                            --target <uuid|vmname>|global
                            --name <string>
                            --action ignore|hold (global filters only)
                            [--active yes|no] (yes)
                            [--vendorid <XXXX>] (null)
                            [--productid <XXXX>] (null)
                            [--revision <IIFF>] (null)
                            [--manufacturer <string>] (null)
                            [--product <string>] (null)
                            [--remote yes|no] (null, VM filters only)
                            [--serialnumber <string>] (null)
                            [--maskedinterfaces <XXXXXXXX>]

  usbfilter modify <index,0-N>
                            --target <uuid|vmname>|global
                            [--name <string>]
                            [--action ignore|hold] (global filters only)
                            [--active yes|no]
                            [--vendorid <XXXX>|""]
                            [--productid <XXXX>|""]
                            [--revision <IIFF>|""]
                            [--manufacturer <string>|""]
                            [--product <string>|""]
                            [--remote yes|no] (null, VM filters only)
                            [--serialnumber <string>|""]
                            [--maskedinterfaces <XXXXXXXX>]

  usbfilter remove <index,0-N>
                            --target <uuid|vmname>|global

  sharedfolder add <uuid|vmname>
                            --name <name> --hostpath <hostpath>
                            [--transient] [--readonly] [--automount]

  sharedfolder remove <uuid|vmname>
                            --name <name> [--transient]

  guestproperty get <uuid|vmname>
                            <property> [--verbose]

  guestproperty set <uuid|vmname>
                            <property> [<value> [--flags <flags>]]

  guestproperty delete|unset <uuid|vmname>
                            <property>

  guestproperty enumerate <uuid|vmname>
                            [--patterns <patterns>]

  guestproperty wait <uuid|vmname> <patterns>
                            [--timeout <msec>] [--fail-on-timeout]

  guestcontrol <uuid|vmname> [--verbose|-v] [--quiet|-q]
                              [--username <name>] [--domain <domain>]
                              [--passwordfile <file> | --password <password>]

                              run [common-options]
                              [--exe <path to executable>] [--timeout <msec>]
                              [-E|--putenv <NAME>[=<VALUE>]] [--unquoted-args]
                              [--ignore-operhaned-processes] [--no-profile]
                              [--no-wait-stdout|--wait-stdout]
                              [--no-wait-stderr|--wait-stderr]
                              [--dos2unix] [--unix2dos]
                              -- <program/arg0> [argument1] ... [argumentN]]

                              start [common-options]
                              [--exe <path to executable>] [--timeout <msec>]
                              [-E|--putenv <NAME>[=<VALUE>]] [--unquoted-args]
                              [--ignore-operhaned-processes] [--no-profile]
                              -- <program/arg0> [argument1] ... [argumentN]]

                              copyfrom [common-options]
                              [--dryrun] [--follow] [-R|--recursive]
                              <guest-src0> [guest-src1 [...]] <host-dst>

                              copyfrom [common-options]
                              [--dryrun] [--follow] [-R|--recursive]
                              [--target-directory <host-dst-dir>]
                              <guest-src0> [guest-src1 [...]]

                              copyto [common-options]
                              [--dryrun] [--follow] [-R|--recursive]
                              <host-src0> [host-src1 [...]] <guest-dst>

                              copyto [common-options]
                              [--dryrun] [--follow] [-R|--recursive]
                              [--target-directory <guest-dst>]
                              <host-src0> [host-src1 [...]]

                              mkdir|createdir[ectory] [common-options]
                              [--parents] [--mode <mode>]
                              <guest directory> [...]

                              rmdir|removedir[ectory] [common-options]
                              [-R|--recursive]
                              <guest directory> [...]

                              removefile|rm [common-options] [-f|--force]
                              <guest file> [...]

                              mv|move|ren[ame] [common-options]
                              <source> [source1 [...]] <dest>

                              mktemp|createtemp[orary] [common-options]
                              [--secure] [--mode <mode>] [--tmpdir <directory>]
                              <template>

                              stat [common-options]
                              <file> [...]

  guestcontrol <uuid|vmname> [--verbose|-v] [--quiet|-q]

                              list <all|sessions|processes|files> [common-opts]

                              closeprocess [common-options]
                              < --session-id <ID>
                                | --session-name <name or pattern>
                              <PID1> [PID1 [...]]

                              closesession [common-options]
                              < --all | --session-id <ID>
                                | --session-name <name or pattern> >

                              updatega|updateguestadditions|updateadditions
                              [--source <guest additions .ISO>]
                              [--wait-start] [common-options]
                              [-- [<argument1>] ... [<argumentN>]]

                              watch [common-options]

  debugvm <uuid|vmname>
                            dumpguestcore --filename <name> |
                            info <item> [args] |
                            injectnmi |
                            log [--release|--debug] <settings> ...|
                            logdest [--release|--debug] <settings> ...|
                            logflags [--release|--debug] <settings> ...|
                            osdetect |
                            osinfo |
                            osdmesg [--lines|-n <N>] |
                            getregisters [--cpu <id>] <reg>|all ... |
                            setregisters [--cpu <id>] <reg>=<value> ... |
                            show [--human-readable|--sh-export|--sh-eval|
                                  --cmd-set]
                                <logdbg-settings|logrel-settings>
                                [[opt] what ...] |
                            statistics [--reset] [--pattern <pattern>]
                            [--descriptions]

  metrics list [*|host|<vmname> [<metric_list>]]
                                                 (comma-separated)

  metrics setup
                            [--period <seconds>] (default: 1)
                            [--samples <count>] (default: 1)
                            [--list]
                            [*|host|<vmname> [<metric_list>]]

  metrics query [*|host|<vmname> [<metric_list>]]

  metrics enable
                            [--list]
                            [*|host|<vmname> [<metric_list>]]

  metrics disable
                            [--list]
                            [*|host|<vmname> [<metric_list>]]

  metrics collect
                            [--period <seconds>] (default: 1)
                            [--samples <count>] (default: 1)
                            [--list]
                            [--detach]
                            [*|host|<vmname> [<metric_list>]]

  natnetwork add --netname <name>
                            --network <network>
                            [--enable|--disable]
                            [--dhcp on|off]
                            [--port-forward-4 <rule>]
                            [--loopback-4 <rule>]
                            [--ipv6 on|off]
                            [--port-forward-6 <rule>]
                            [--loopback-6 <rule>]

  natnetwork remove --netname <name>

  natnetwork modify --netname <name>
                            [--network <network>]
                            [--enable|--disable]
                            [--dhcp on|off]
                            [--port-forward-4 <rule>]
                            [--loopback-4 <rule>]
                            [--ipv6 on|off]
                            [--port-forward-6 <rule>]
                            [--loopback-6 <rule>]

  natnetwork start --netname <name>

  natnetwork stop --netname <name>

  hostonlyif ipconfig <name>
                            [--dhcp |
                            --ip<ipv4> [--netmask<ipv4> (def: 255.255.255.0)] |
                            --ipv6<ipv6> [--netmasklengthv6<length> (def: 64)]]
                            create |
                            remove <name>

  dhcpserver add|modify --netname <network_name> |
                                       --ifname <hostonly_if_name>
                            [--ip <ip_address>
                            --netmask <network_mask>
                            --lowerip <lower_ip>
                            --upperip <upper_ip>]
                            [--enable | --disable]

  dhcpserver remove --netname <network_name> |
                                   --ifname <hostonly_if_name>

  Introspection and guest debugging:
  VBoxManage debugvm <uuid|vmname> dumpvmcore [--filename=name]
  VBoxManage debugvm <uuid|vmname> info <item> [args...]
  VBoxManage debugvm <uuid|vmname> injectnmi
  VBoxManage debugvm <uuid|vmname> log [[--release] | [--debug]]
      [group-settings...]
  VBoxManage debugvm <uuid|vmname> logdest [[--release] | [--debug]]
      [destinations...]
  VBoxManage debugvm <uuid|vmname> logflags [[--release] | [--debug]] [flags...]
  VBoxManage debugvm <uuid|vmname> osdetect
  VBoxManage debugvm <uuid|vmname> osinfo
  VBoxManage debugvm <uuid|vmname> osdmesg [--lines=lines]
  VBoxManage debugvm <uuid|vmname> getregisters [--cpu=id] [reg-set.reg-name...]
  VBoxManage debugvm <uuid|vmname> setregisters [--cpu=id]
      [reg-set.reg-name=value...]
  VBoxManage debugvm <uuid|vmname> show [[--human-readable] | [--sh-export] |
      [--sh-eval] | [--cmd-set]] [settings-item...]
  VBoxManage debugvm <uuid|vmname> statistics [--reset] [--descriptions]
      [--pattern=pattern]
  Extension package management:

  VBoxManage extpack install [--replace] <tarball>
  VBoxManage extpack uninstall [--force] <name>
  VBoxManage extpack cleanup

Syntax error: Invalid command '/home/gerardo/VirtualBox VMs/WINDOWS XP VIRTUAL/WINDOWS XP VIRTUAL.vdi'
gerardo@gerardo-N56VM:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#34

Again. It's one command. You broke it into two commands despite me adding a post saying THE COMMAND I GAVE IS ONE COMMAND.

Revision history for this message
Manfred Hampl (m-hampl) said :
#35

It seems that the word "modifymedium" got lost from the command

Try

VBoxManage modifymedium /home/gerardo/VirtualBox\ VMs/WINDOWS\ XP\ VIRTUAL/WINDOWS\ XP\ VIRTUAL.vdi --resize 15360

Revision history for this message
Gerardo Martínez Cabruja (gemarca) said :
#36

Thank you!!!!!!!!!!!!!
This command solved the problem. Now I will use a disk manager to resize Windows inside virtual box.

This is what happened:
gerardo@gerardo-N56VM:~$ VBoxManage modifymedium /home/gerardo/VirtualBox\ VMs/WINDOWS\ XP\ VIRTUAL/WINDOWS\ XP\ VIRTUAL.vdi --resize 15360
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
gerardo@gerardo-N56VM:~$

Thank you very much.

You are a real kind person.

My best regards.