Форум русскоязычного сообщества Ubuntu


Следите за новостями русскоязычного сообщества Ubuntu в Twitter-ленте @ubuntu_ru_loco

Автор Тема: Прошу совета: как в VirtualBox сделать экспорт машины из командной строки  (Прочитано 2982 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн roman-info01

  • Автор темы
  • Новичок
  • *
  • Сообщений: 1
    • Просмотр профиля
Задачка в следующем: Хочется выполнить экспорт виртуальной машины (VirtualBox 4.2) через командную строку.
Вообще то задача состоит в том, что бы:
1. Выключить виртуальную машину командой
2. Выполнить экспорт
3. Включить ее
Все через shell. Нужно для организации резервного копирования.

Дистрибутив - Ubuntu 12.04

Нужно ли ставить для этого SDK? Вроде как можно сделать это командами...

Большое спасибо всем откликнувшимся!

Pilot6

  • Гость
roman-info01,
Что скрывается за словами "экспорт виртуальной машины"?

Оффлайн staso

  • Активист
  • *
  • Сообщений: 437
    • Просмотр профиля
Все эти операции подробно описанв в справочной системе к Virtual Box
Например -
Цитировать
8.11. VBoxManage export
This command exports one or more virtual machines from VirtualBox into a virtual appliance in OVF format, including copying their virtual disk images to compressed VMDK. See Section 1.14, “Importing and exporting virtual machines” for an introduction to appliances.
The export command is simple to use: list the machine (or the machines) that you would like to export to the same OVF file and specify the target OVF file after an additional --output or -o option. Note that the directory of the target OVF file will also receive the exported disk images in the compressed VMDK format (regardless of the original format) and should have enough disk space left for them.
Beside a simple export of a given virtual machine, you can append several product information to the appliance file. Use --product, --producturl, --vendor, --vendorurl and --version to specify this additional information. For legal reasons you may add a license text or the content of a license file by using the --eula and --eulafile option respectively. As with OVF import, you must use the --vsys X option to direct the previously mentioned options to the correct virtual machine.
For virtualization products which aren't fully compatible with the OVF standard 1.0 you can enable a OVF 0.9 legacy mode with the --legacy09 option.

Оффлайн rayanAyar

  • Старожил
  • *
  • Сообщений: 1027
  • Да пребудет с вами совпавшая контрольная сумма
    • Просмотр профиля
Ещё как вариант можно использовать virtualbox-fuse. Или просто копировать контейнер виртуалки - это пожалуй будет самый быстрый способ.

Оффлайн Виктор Перестукин

  • Старожил
  • *
  • Сообщений: 2171
    • Просмотр профиля
Все эти операции подробно описаны в справочной системе к Virtual Box ...

А здесь то же самое, но уже на русском:
http://mirspo.narod.ru/vbox4/ch08.html#vboxmanage-export

 

Страница сгенерирована за 0.116 секунд. Запросов: 25.