Page_c76a3fcf https://linux-notes.org Unix/ Linux блог, на котором можно найти полезную информацию по настройке ОС и ПО. Mon, 20 Jan 2020 21:46:09 +0000 ru-RU hourly 1 https://wordpress.org/?v=6.7.2 Page_c76a3fcf https://linux-notes.org/konvertaciya-vmware-virtual-machine-virtualbox-v-unix-linux/ https://linux-notes.org/konvertaciya-vmware-virtual-machine-virtualbox-v-unix-linux/#respond Mon, 20 Jan 2020 21:45:26 +0000 https://linux-notes.org/?p=17589 Если честно, VMware мне больше нравится чем VirtualBox, но лицензию я не хочу покупать для домашнего использования. По этому, выбор пал на то, чтобы перейти с VMware Fusion на VirtualBox. Для этого дела, мне пришлось зарегистрироваться на официальном сайте, заполнить данные. Но сразу я скачать не смог, возникли трудности с ПО и мне нужно было обратиться в поддержку. Поддержка решала данный вопрос около недели, но все решилось и я смог загрузить DMG на свой мак.

The post Конвертация VMware virtual machine -> VirtualBox в Unix/Linux first appeared on linux-notes.org.]]>

Если честно, VMware мне больше нравится чем VirtualBox, но лицензию я не хочу покупать для домашнего использования. По этому, выбор пал на то, чтобы перейти с VMware Fusion на VirtualBox. Для этого дела, мне пришлось зарегистрироваться на официальном сайте, заполнить данные. Но сразу я скачать не смог, возникли трудности с ПО и мне нужно было обратиться в поддержку. Поддержка решала данный вопрос около недели, но все решилось и я смог загрузить DMG на свой мак.

Конвертация VMware virtual machine -> VirtualBox на MacOS

Для начала, заходим на официальный сайт и качаем утилиту под названием «ovftool».

Установить DMG на МасОС через CLI можно так:

Установка dmg пакетов через CLI (командную строку) в MacOS X

Монтирование dmg образов через CLI (командную строку) в MacOS X

При использовании мака, утилита установится по следующему пути:

/Applications/VMware\ OVF\ Tool/ovftool

Чтобы получить помощь, выполните:

$ /Applications/VMware\ OVF\ Tool/ovftool -h
Usage: ovftool [options] <source> [<target>]
where
<source>: Source URL locator to an OVF package, VMX file, or virtual machine in
          vCenter or on ESX Server.
<target>: Target URL locator which specifies either a file location, or a
          location in the vCenter inventory or on an ESX Server.

If <target> is not specified, information about the source is displayed to the
console.

Options:
     --acceptAllEulas            : Accept all end-user licenses agreements
                                   without being prompted.
     --allowAllExtraConfig       : Whether we allow all the ExtraConfig
                                   options. These options are a security risk
                                   as they control low-level and potential
                                   unsafe options on the VM.
     --allowExtraConfig          : Whether we allow ExtraConfig options. These
                                   options are a security risk as they control
                                   low-level and potential unsafe options on
                                   the VM.
     --annotation                : Add annotation to vi, vmx, vapprun, vCloud,
                                   OVF, and OVA source locators
     --authdPortSource           : Use this to override default vmware authd
                                   port (902) when using a host as source.
     --authdPortTarget           : Use this to override default vmware authd
                                   port (902) when using a host as target.
     --chunkSize                 : Specifies the chunk size to use for files in
                                   a generated OVF package. The default is not
                                   to chunk. The chunk size without unit is
                                   assumed to be in megabytes. Accepted units
                                   are b, kb, mb, gb; e.g., 2gb or 100kb.
     --compress                  : Compress the disks in an OVF package. Value
                                   must be between 1 and 9. 1 is the fastest,
                                   but gives the worst compression, whereas 9
                                   is the slowest, but gives the best
                                   compression.
     --computerName              : Sets the computer name in the guest for a VM
                                   using the syntax --computerName:<VM
                                   ID>=<value>. Only applies to vCloud targets
                                   version 5.5 or newer.
     --coresPerSocket            : Specifies the distribution of the total
                                   number of CPUs over a number of virtual
                                   sockets using the syntax
                                   --coresPerSocket:<VM ID>=<value>. Only
                                   applies to vCloud targets version 5.5 or
                                   newer.
 -ds/--datastore                 : Target datastore name for a VI locator.
     --decodeBase64              : Decode option values with Base64.
     --defaultStorageProfile     : The storage profile for all VMs in the OVF
                                   package. The value should be an SPBM profile
                                   ID. Only applies to VI targets version 5.5
                                   or newer.
     --defaultStorageRawProfile  : The storage profile for all VMs in the OVF
                                   package. The value should be raw SPBM
                                   profile. The value will overwrite that in
                                   --defaultStorageProfile. Only applies to VI
                                   targets version 5.5 or newer.
     --deploymentOption          : Selects what deployment option to use (if
                                   the source OVF package supports multiple
                                   options.)
     --disableVerification       : Skip validation of signature and
                                   certificate.
 -dm/--diskMode                  : Select target disk format. Supported formats
                                   are: monolithicSparse, monolithicFlat,
                                   twoGbMaxExtentSparse, twoGbMaxExtentFlat,
                                   seSparse (VI target), eagerZeroedThick (VI
                                   target), thin (VI target), thick (VI
                                   target), sparse, and flat
     --diskSize                  : Sets the size of a VM disk in megabytes
                                   using the syntax --diskSize:<VM ID>,<disk
                                   instance ID>=<value>. Only applies to vCloud
                                   targets version 5.5 or newer.
     --eula                      : EULA to be inserted in the first virtual
                                   system or virtual system collection in the
                                   OVF. If the EULA is in a file, use the
                                   option --eula@=filename instead.
     --exportDeviceSubtypes      : Enables export of resource subtype for
                                   CD/Floppy/Parallel/Serial devices. This can
                                   limit portability as not all device backings
                                   are supported on all hypervisors. The
                                   default is false.
     --exportFlags               : Specifies one or more export flags to
                                   control what gets exported. The supported
                                   values for VI sources are mac, uuid, and
                                   extraconfig. Supported value for vCloud
                                   sources are preserveIdentity. One or more
                                   options can be provided, separated by
                                   commas.
     --extraConfig               : Sets an ExtraConfig element for all
                                   VirtualHardwareSections. The syntax is
                                   --extraConfig:<key>=<value>. Applies to vi,
                                   vmx, vapprun, vCloud, ovf, and ova source
                                   locators.
     --fencedMode                : If a parent network exists on the vCloud
                                   target, this property specifies the
                                   connectivity to the parent. Possible values
                                   are bridged, isolated, and natRouted.
 -h /--help                      : Prints this message.
     --hideEula                  : In OVF probe mode, hides the EULA.
     --ipAllocationPolicy        : IP allocation policy for a deployed OVF
                                   package.Supported values are: dhcpPolicy,
                                   transientPolicy, fixedPolicy,
                                   fixedAllocatedPolicy.
     --ipProtocol                : Select what IP protocol to use (IPv4, IPv6).
     --lax                       : Relax OVF specification conformance and
                                   virtual hardware compliance checks. Use only
                                   if you know what you are doing.
     --locale                    : Selects locale for target.
     --machineOutput             : Output OVF Tool messages in a machine
                                   friendly manner.
     --makeDeltaDisks            : Build delta disk hierarchy from the given
                                   source locator.
     --maxVirtualHardwareVersion : The maximal virtual hardware version to
                                   generate.
     --memorySize                : Sets the memory size in megabytes of a VM
                                   using the syntax --memorySize:<VM
                                   ID>=<value>. Only applies to vCloud targets
                                   version 5.5 or newer.
 -n /--name                      : Specifies target name (defaults to source
                                   name).
     --net                       : Set a network assignment in the deployed OVF
                                   package. A network assignment is set using
                                   the syntax --net:<OVF name>=<target name>.
                                   If the target is vCloud 5.5 or newer, a
                                   fence mode can also be specified using the
                                   syntax --net:<OVF name>=<target name>,<fence
                                   mode>. Possible fence mode values are:
                                   bridged, isolated, and natRouted.
 -nw/--network                   : Target network for a VI deployment.
     --nic                       : Specifies NIC configuration in a VM using
                                   the syntax --nic:<VM ID>,<index>=<OVF net
                                   name>,<isPrimary>,<ipAddressingMode>,<ipAddress>.
                                   Possible values for ipAddressingMode are:
                                   DHCP, POOL, MANUAL, and NONE. ipAddress is
                                   optional and should only be used when
                                   ipAddressingMode is set to MANUAL. Only
                                   applies to vCloud targets version 5.5 or
                                   newer.
     --noDisks                   : Disable disk conversion.
     --noImageFiles              : Do not include image files in destination.
     --noSSLVerify               : Skip SSL verification for VI connections.
     --numberOfCpus              : Sets the number of CPUs for a VM using the
                                   syntax --numberOfCpus:<VM ID>=<value>. Only
                                   applies to vCloud targets version 5.5 or
                                   newer.
 -o /--overwrite                 : Force overwrites of existing files.
     --powerOffSource            : Ensures a VM/vApp is powered off before
                                   importing from a VI source.
     --powerOffTarget            : Ensures a VM/vApp is powered off before
                                   overwriting a VI target.
     --powerOn                   : Powers on a VM/vApp deployed on a VI target.
     --privateKey                : Sign OVF package with the given private key
                                   (.pem file). The file must contain a private
                                   key and a certificate.
     --privateKeyPassword        : Password for the private key. Should be used
                                   in conjunction with privateKey if the
                                   private key requires password
                                   authentication. If required and not
                                   specified, the tool will prompt for the
                                   password.
     --prop                      : Set a property in the deployed OVF package.
                                   A property is set using the syntax
                                   --prop:<key>=<value>.
     --proxy                     : Proxy used for HTTP[S] access.
     --proxyNTLMAuth             : Enable NTLM authentication for proxy.
 -q /--quiet                     : No output to screen except errors.
     --schemaValidate            : Validate OVF descriptor against OVF schema.
     --shaAlgorithm              : Select SHA digest algorithm when creating
                                   OVF package. Supported values are SHA1,
                                   SHA256 and SHA512. Default value is SHA256.
     --skipManifestCheck         : Skip validation of OVF package manifest.
     --skipManifestGeneration    : Skip generation of OVF package manifest.
     --sourcePEM                 : File path to PEM formatted file used to
                                   verify VI connections.
     --sourceSSLThumbprint       : SSL fingerprint of SOURCE. OVF Tool verifies
                                   the SSL fingerprint it gets from SOURCE if
                                   the value is set.
 -st/--sourceType                : Explicitly express that source is OVF, OVA,
                                   VMX, VI, vCloud, ISO, FLP, vApprun
     --sslCipherList             : Use this to override default OpenSSL ciphers
                                   suite.
     --sslVersion                : Use this to set preferred TLS/SSL version
                                   for HTTPS connections. The valid values are
                                   as following:
                                     TLSv1_0: Set preferred TLS/SSL version to
                                   TLSv1.0.
                                     TLSv1_1: Set preferred TLS/SSL version to
                                   TLSv1.1.
                                     TLSv1_2: Set preferred TLS/SSL version to
                                   TLSv1.2.
     --storageProfile            : Sets the storage profile for a VM using the
                                   syntax --storageProfile:<VM ID>=<value>.
                                   Only applies to vCloud targets version 5.5
                                   or newer.
     --targetPEM                 : File path to PEM formatted file used to
                                   verify VI connections.
     --targetSSLThumbprint       : SSL fingerprint of TARGET. OVF Tool verifies
                                   the SSL fingerprint it gets from TARGET if
                                   the value is set.
 -tt/--targetType                : Explicitly express that target is OVF, OVA,
                                   VMX, VI, vCloud, ISO, FLP, vApprun
     --vCloudTemplate            : Create only a vApp template. Default value
                                   is false
     --vService                  : Set a vService assignment in the deployed
                                   OVF package. A vService assignment is set
                                   using the syntax
                                   --vService:<dependencyId>=<providerId>.
     --verifyOnly                : Do not upload the source but only verify it
                                   against the target host. Applies to VI 4
                                   targets only.
 -v /--version                   : Prints the version of this tool.
     --viCpuResource             : Specify the CPU resource settings for
                                   VI-locator targets. The syntax is
                                   --viCpuResource=<shares>:<reservation>:<limit>.
     --viMemoryResource          : Specify the CPU resource settings for
                                   VI-locator targets. The syntax is
                                   --viMemoryResource=<shares>:<reservation>:<limit>.
 -vf/--vmFolder                  : Target VM folder in VI inventory (relative
                                   to datacenter).

For more help, type: --help <topic>, where topics are:
 locators    : For detailed source and destination locator syntax
 examples    : For examples of use
 config      : For syntax of configuration files
 debug       : For debug purpose
 integration : For a list of options primarily used when ovftool is exec'ed
               from another tool or shellscript.

Использование довольно простое, например я использовал:

$ /Applications/VMware\ OVF\ Tool/ovftool /Users/captain/VirtualBox\ VMs/Windows\ 7/Windows\ 7\ x64.vmwarevm/Windows\ 7\ x64.vmx /Users/captain/VirtualBox\ VMs/Windows\ 7/Windows\ 7/windows_7.ovf
Opening VMX source: /Users/captain/VirtualBox VMs/Windows 7/Windows 7 x64.vmwarevm/Windows 7 x64.vmx
Opening OVF target: windows_7.ovf
Writing OVF package: windows_7.ovf
Disk progress: 5%

В папке которой был выполнен экспорт файлов, появятся файлы. Кликаем по файлу с «*.ovf» (у меня это windows_7.ovf):

Смотрим что хотим импортить, если что — изменяем и нажимаем на «Import». Импортинг занял 2 минуты у меня для Виндовс 7.

С приходом 64-битной ОС в МакОС, стало сложнее использование старые утилиты. Новые тоже не просто найти бесплатно. По этому, пришлось уйти с VMware…

Конвертация VMware virtual machine -> VirtualBox на Linux

В принципе — все тоже самое что я делал в МакОС, только нужно скачать бинарный файл для Linux-а. Если у кого-то возникнут трудность — смогу помочь! Пишите в комментариях возникшие ошибки и при первой возможности — отпишусь.

Вот и все, статья «Конвертация VMware virtual machine -> VirtualBox в Unix/Linux» завершена.

The post Конвертация VMware virtual machine -> VirtualBox в Unix/Linux first appeared on linux-notes.org.]]>
https://linux-notes.org/konvertaciya-vmware-virtual-machine-virtualbox-v-unix-linux/feed/ 0
Page_c76a3fcf https://linux-notes.org/ustanovka-dmg-paketov-cherez-cli-komandnuyu-stroku-v-macos-x/ https://linux-notes.org/ustanovka-dmg-paketov-cherez-cli-komandnuyu-stroku-v-macos-x/#respond Tue, 07 Feb 2017 00:02:04 +0000 http://linux-notes.org/?p=11713 Установка dmg пакетов через CLI (командную строку) в MacOS X Очень полезно знать работу командной строки (CLI) в MacOSX — это облегчает некоторые задачи в использовании. Я недавно рассказывал как можно примонтировать dmg образов через CLI (командную строку) в MacOS X в своей статье: Монтирование dmg образов через CLI (командную строку) в MacOS X Но для […]

The post Установка dmg пакетов через CLI (командную строку) в MacOS X first appeared on linux-notes.org.]]>

Установка dmg пакетов через CLI (командную строку) в MacOS X

Очень полезно знать работу командной строки (CLI) в MacOSX — это облегчает некоторые задачи в использовании.

Я недавно рассказывал как можно примонтировать dmg образов через CLI (командную строку) в MacOS X в своей статье:

Монтирование dmg образов через CLI (командную строку) в MacOS X

Но для простоты удобства, я повторю ряд действий.

Скачиваем дистрибутив с расширением *.dmg (пример взятый с virtualbox):

# cd /usr/local/src && wget http://download.virtualbox.org/virtualbox/5.1.14/VirtualBox-5.1.14-112924-OSX.dmg

Монтируем скачанный образ:

 hdiutil attach VirtualBox-5.1.14-112924-OSX.dmg 
.....................................................
/dev/disk2          	GUID_partition_scheme          	
/dev/disk2s1        	Apple_HFS                      	/Volumes/VirtualBox

Проверяем смонтировался ли он:

 ll /Volumes/VirtualBox
total 183208
lrwxr-xr-x  1 captain  staff        14 Jan 16 19:03 Applications -> /Applications/
-rwxr-xr-x  1 captain  staff   4358914 Jan 16 19:03 UserManual.pdf
-rw-r--r--  1 captain  staff  89418234 Jan 16 19:03 VirtualBox.pkg
-rwxr-xr-x@ 1 captain  staff     12307 Jan 16 19:03 VirtualBox_Uninstall.tool

Выполняем установку:

open /Volumes/VirtualBox/VirtualBox.pkg

Выполняем установку в графическом режиме. Чтобы произвести установку через CLI, выполните копирование программы в /Applications директорию:

# cp -R "/Volumes/Chicken of the VNC/Chicken of the VNC.app" /Applications

Это рекурсивно скопирует все необходимые данные в нужно место, однако — это не всегда работает. Если при монтировании у вас смонтировался .pkg формат, то для запуска служит следующая команда:

# installer -package /path/to/package -target "/Volumes/Macintosh HD"

Для того чтобы понимать куда производить установку, выполните:

$ ls -alh /Volumes 
total 8
lrwxr-xr-x  1 root  wheel     1B Jan 23 11:40 Macintosh HD -> /
d--x--x--x+ 3 root  admin   102B Nov 20  2014 MultiMedia_3Tb
d--x--x--x+ 3 root  admin   102B Nov 24  2014 MultiMedia_3Tb 1
d--x--x--x+ 3 root  admin   102B Dec  1  2014 Untitled

Видим что имеется символическая ссылка на «/» — корневой раздел и по этому, можно выполнить установку следующим образом:

$ sudo installer -package /Volumes/VirtualBox/VirtualBox.pkg -target /

PS: Для более подробной информации, используйте документацию:

$ man installer

И финальное действие — это размонтирование образа:

# hdiutil detach /dev/disk2s1

Вот и все! Установка dmg пакетов через CLI (командную строку) в MacOS X завершена.

The post Установка dmg пакетов через CLI (командную строку) в MacOS X first appeared on linux-notes.org.]]>
https://linux-notes.org/ustanovka-dmg-paketov-cherez-cli-komandnuyu-stroku-v-macos-x/feed/ 0
Page_c76a3fcf https://linux-notes.org/montirovanie-dmg-obrazov-cherez-cli-komandnuyu-stroku-v-macos-x/ https://linux-notes.org/montirovanie-dmg-obrazov-cherez-cli-komandnuyu-stroku-v-macos-x/#respond Mon, 06 Feb 2017 23:35:27 +0000 http://linux-notes.org/?p=11715 Монтирование dmg образов через CLI (командную строку) в MacOS X Стало интересно как можно с помощью CLI ( командной строки) выполнить монтирование или размонтирование *dmg образов. Монтирование dmg образов через CLI (командную строку) в MacOS X Приведу пример с VirtualBox: Переходим на официальный сайт, выбираем необходимую версию дистрибутива и скачиваем ее (интересует расширение *.dmg): # […]

The post Монтирование dmg образов через CLI (командную строку) в MacOS X first appeared on linux-notes.org.]]>

Монтирование dmg образов через CLI (командную строку) в MacOS X

Стало интересно как можно с помощью CLI ( командной строки) выполнить монтирование или размонтирование *dmg образов.

Монтирование dmg образов через CLI (командную строку) в MacOS X

Приведу пример с VirtualBox: Переходим на официальный сайт, выбираем необходимую версию дистрибутива и скачиваем ее (интересует расширение *.dmg):

# cd /usr/local/src && wget http://download.virtualbox.org/virtualbox/5.1.14/VirtualBox-5.1.14-112924-OSX.dmg

Монтируем:

# hdiutil attach VirtualBox-5.1.14-112924-OSX.dmg 
Подсчет контрольной суммы Protective Master Boot Record (MBR : 0)…
Protective Master Boot Record (MBR :: проверено   CRC32 $149837AB
Подсчет контрольной суммы GPT Header (Primary GPT Header : 1)…
 GPT Header (Primary GPT Header : 1): проверено   CRC32 $ADA08C96
Подсчет контрольной суммы GPT Partition Data (Primary GPT Table : 2)…
GPT Partition Data (Primary GPT Tabl: проверено   CRC32 $82DC9662
Подсчет контрольной суммы  (Apple_Free : 3)…
                    (Apple_Free : 3): проверено   CRC32 $00000000
Подсчет контрольной суммы disk image (Apple_HFS : 4)…
..........................................................................................................................................................................................................
          disk image (Apple_HFS : 4): проверено   CRC32 $A63821CE
Подсчет контрольной суммы  (Apple_Free : 5)…
                    (Apple_Free : 5): проверено   CRC32 $00000000
Подсчет контрольной суммы GPT Partition Data (Backup GPT Table : 6)…
GPT Partition Data (Backup GPT Table: проверено   CRC32 $82DC9662
Подсчет контрольной суммы GPT Header (Backup GPT Header : 7)…
  GPT Header (Backup GPT Header : 7): проверено   CRC32 $AA18D6E6
проверено   CRC32 $4E27938E
/dev/disk2          	GUID_partition_scheme          	
/dev/disk2s1        	Apple_HFS                      	/Volumes/VirtualBox

Проверяем маунт:

# ll /Volumes/VirtualBox
total 183208
lrwxr-xr-x  1 captain  staff        14 Jan 16 19:03 Applications -> /Applications/
-rwxr-xr-x  1 captain  staff   4358914 Jan 16 19:03 UserManual.pdf
-rw-r--r--  1 captain  staff  89418234 Jan 16 19:03 VirtualBox.pkg
-rwxr-xr-x@ 1 captain  staff     12307 Jan 16 19:03 VirtualBox_Uninstall.tool

Можно приступать к установки данной утилиты. Но об этом я расскажу в следующей статье.

ДЕМонтирование dmg образов через CLI (командную строку) в MacOS X

Проверяем имеется ли смонтированные образы на MacOS X с помощью следующей команды:

captain@Macbook: /usr/local/src $ hdiutil info
framework       : 444.30.5
driver          : 10.12v444.30.5
================================================
image-path      : /usr/local/src/VirtualBox-5.1.14-112924-OSX.dmg
image-alias     : /usr/local/src/VirtualBox-5.1.14-112924-OSX.dmg
shadow-path     : <none>
icon-path       : /System/Library/PrivateFrameworks/DiskImages.framework/Resources/CDiskImage.icns
image-type      : UDIF, только для чтения, сжатый (bzip2)
system-image    : false
blockcount      : 201504
blocksize       : 512
writeable       : false
autodiskmount   : TRUE
removable       : TRUE
image-encrypted : false
mounting user   : captain
mounting mode   : <unknown>
process ID      : 34185
/dev/disk2	GUID_partition_scheme	
/dev/disk2s1	48465300-0000-11AA-AA11-00306543ECAC	/Volumes/VirtualBox
 captain@Macbook: /usr/local/src $ 

Видно что у меня смонтированный образ с ViryualBox примонтирован к /dev/disk2s1

С помощью следующей команды, с легкостью демонтируем (розмонтируем) раздел:

$ hdiutil detach /dev/disk2s1
"disk2" unmounted.
"disk2" ejected.
$

Для уверенности, проверяем снова:

$ hdiutil info               
framework       : 444.30.5
driver          : 10.12v444.30.5

И видим ничего смонтированного с ОС нет! Статья «Монтирование dmg образов через CLI (командную строку) в MacOS X» завершена.

The post Монтирование dmg образов через CLI (командную строку) в MacOS X first appeared on linux-notes.org.]]>
https://linux-notes.org/montirovanie-dmg-obrazov-cherez-cli-komandnuyu-stroku-v-macos-x/feed/ 0
Page_c76a3fcf https://linux-notes.org/ispravlyaem-there-was-an-error-while-executing-vboxmanage-a-cli-used-by-vagrant-v-virtualbox-i-vagrant/ https://linux-notes.org/ispravlyaem-there-was-an-error-while-executing-vboxmanage-a-cli-used-by-vagrant-v-virtualbox-i-vagrant/#respond Sun, 22 Jan 2017 17:33:26 +0000 http://linux-notes.org/?p=11565 Исправляем «There was an error while executing `VBoxManage`, a CLI used by Vagrant» в VirtualBox и Vagrant При работе с vagrant, получил ошибку и в своей статье я расскажу как можно ее исправить. Ошибка выглядит следующим образом: $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Clearing any previously set network interfaces... […]

The post Исправляем «There was an error while executing `VBoxManage`, a CLI used by Vagrant» в VirtualBox и Vagrant first appeared on linux-notes.org.]]>

Исправляем «There was an error while executing `VBoxManage`, a CLI used by Vagrant» в VirtualBox и Vagrant

При работе с vagrant, получил ошибку и в своей статье я расскажу как можно ее исправить. Ошибка выглядит следующим образом:

$ vagrant up          

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set network interfaces...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["hostonlyif", "create"]

Stderr: 0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 71 of file VBoxManageHostonly.cpp

Т.е при вызове «vagrant up» отказался собираться VagrantFile.

Исправляем «There was an error while executing `VBoxManage`, a CLI used by Vagrant» в VirtualBox и Vagrant

У меня ОС — Mac OS X и я использую Vagrant с подключенной виртуализацией VirtualBox. Но иногда не все проходит гладко.

Решение простое — это перезапустить службу VirtualBox, статья как это можно сделать тут:
Перезапуск VirtualBox в Unix/Linux

Вот таким образом я решил и устранил свою проблему.

The post Исправляем «There was an error while executing `VBoxManage`, a CLI used by Vagrant» в VirtualBox и Vagrant first appeared on linux-notes.org.]]>
https://linux-notes.org/ispravlyaem-there-was-an-error-while-executing-vboxmanage-a-cli-used-by-vagrant-v-virtualbox-i-vagrant/feed/ 0
Page_c76a3fcf https://linux-notes.org/perezapusk-virtualbox-v-unix-linux/ https://linux-notes.org/perezapusk-virtualbox-v-unix-linux/#respond Mon, 24 Oct 2016 00:11:13 +0000 http://linux-notes.org/?p=11190 Перезапуск VirtualBox в Unix/Linux Не понятно почему, но у меня перестал работать virtualbox при попытке собрать образ centos через Vagrant. Потребовалось некоторое время на гугление и решение данной проблемы. Перезапуск VirtualBox в Linux Чтобы исправить данную проблему, нужно запустить: $ sudo /Library/StartupItems/VirtualBox/VirtualBox restart Или: $ sudo launchctl load /Library/LaunchDaemons/org.virtualbox.startup.plist Так же, можно попробовать: # modprobe vboxnetadp […]

The post Перезапуск VirtualBox в Unix/Linux first appeared on linux-notes.org.]]>

Перезапуск VirtualBox в Unix/Linux

Не понятно почему, но у меня перестал работать virtualbox при попытке собрать образ centos через Vagrant. Потребовалось некоторое время на гугление и решение данной проблемы.

Перезапуск VirtualBox в Linux

Чтобы исправить данную проблему, нужно запустить:

$ sudo /Library/StartupItems/VirtualBox/VirtualBox restart

Или:

$ sudo launchctl load /Library/LaunchDaemons/org.virtualbox.startup.plist

Так же, можно попробовать:

# modprobe vboxnetadp

Перезапуск VirtualBox в MacOSX.

Я решил проблему следующим образом:

$ sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart
Unloading VBoxDrv.kext
Loading VBoxDrv.kext
Loading VBoxUSB.kext
Loading VBoxNetFlt.kext
Loading VBoxNetAdp.kext
$

Вот и все, статья «Перезапуск VirtualBox в Unix/Linux» завершена.

The post Перезапуск VirtualBox в Unix/Linux first appeared on linux-notes.org.]]>
https://linux-notes.org/perezapusk-virtualbox-v-unix-linux/feed/ 0