Ejercicio: Crear un box desde una maquina virtual

  • VBoxManage list vms
  • vagrant package –base «Nombre de la MV» –output maquina.box
  • no suele ser la forma habitual para generar .box
    • son poco eficientes, muy grandes
mate@myKDE:~/.vagrant.d/Vagrant/Prueba1
$ VBoxManage  list vms
"Prueba1_default_1530475736924_80879" {7b97fa45-52aa-46a0-9b93-61c6921b1247}
mate@myKDE:~/.vagrant.d/Vagrant/Prueba1
$ vagrant package --base "Prueba1_default_1530475736924_80879" --output test.box
==> Prueba1_default_1530475736924_80879: Attempting graceful shutdown of VM...
    Prueba1_default_1530475736924_80879: Guest communication could not be established! This is usually because
    Prueba1_default_1530475736924_80879: SSH is not running, the authentication information was changed,
    Prueba1_default_1530475736924_80879: or some other networking issue. Vagrant will force halt, if
    Prueba1_default_1530475736924_80879: capable.
==> Prueba1_default_1530475736924_80879: Forcing shutdown of VM...
==> Prueba1_default_1530475736924_80879: Clearing any previously set forwarded ports...
==> Prueba1_default_1530475736924_80879: Exporting VM...
==> Prueba1_default_1530475736924_80879: Compressing package to: /home/mate.neon/.vagrant.d/Vagrant/Prueba1/test.box
mate@myKDE:~/.vagrant.d/Vagrant/Prueba1
$ ls -lah *.box
-rw-rw-r-- 1 mate mate 385M jul  1 23:34 test.box
  • info/cursos/openwebinars/vagrant/box-maquina-virtual.txt
  • Darrera modificació: 01/07/2018 14:36
  • per mate