質問
私を変えようとしているTCP/UDPの仮想マシンを使用VBoxManage setextradata.
またタイプのコマンド:
sudo VBoxManage setextradata Windows_7 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestEmule_TCP/Protocol" TCP
を取得します以下のようなエラー:
VirtualBox Command Line Management Interface Version 2.1.4 (C) 2005-2009 Sun Microsystems, Inc. All rights reserved. [!] FAILED calling a->virtualBox->FindMachine(Bstr(a->argv[0]), machine.asOutParam()) at line 3688! [!] Primary RC = VBOX_E_OBJECT_NOT_FOUND (0x80BB0001) - Object corresponding to the supplied arguments does not exist [!] Full error info present: true , basic error info present: true [!] Result Code = VBOX_E_OBJECT_NOT_FOUND (0x80BB0001) - Object corresponding to the supplied arguments does not exist [!] Text = Could not find a registered machine named 'Windows_7' [!] Component = VirtualBox, Interface: IVirtualBox, {339abca2-f47a-4302-87f5-7bc324e6bbde} [!] Callee = IVirtualBox, {339abca2-f47a-4302-87f5-7bc324e6bbde}
の仮想マシンが作成されたGUIを利用.ずっと面白いアイデアないか?
$ cd /Users/marco/Library/VirtualBox/Machines/Windows_7 $ ls Logs Windows_7.xml Windows 7.xml.1.5-macosx.bak $ sudo vboxmanage registervm Windows_7.xml VirtualBox Command Line Management Interface Version 2.1.4 (C) 2005-2009 Sun Microsystems, Inc. All rights reserved. [!] FAILED calling a->virtualBox->OpenMachine(Bstr(a->argv[0]), machine.asOutParam()) at line 762! [!] Primary RC = NS_ERROR_FAILURE (0x80004005) - Operation failed [!] Full error info present: true , basic error info present: true [!] Result Code = NS_ERROR_FAILURE (0x80004005) - Operation failed [!] Text = Could not lock the settings file '/var/root/Library/VirtualBox/Windows_7.xml' (VERR_FILE_NOT_FOUND) [!] Component = Machine, Interface: IMachine, {ea6fb7ea-1993-4642-b113-f29eb39e0df0} [!] Callee = IVirtualBox, {339abca2-f47a-4302-87f5-7bc324e6bbde}
解決
あなたはsudoを使用しているため、
これは失敗します。 VirtualBoxのは(vboxusers
グループ内)の任意のユーザによって実行されるように設計されており、須藤はVirtualBoxの構成空であるrootユーザとしてコマンドを実行している。
あなたが入力しているを確認することができます:
sudo VBoxManage -nologo list vms # Should print only a newline
VBoxManage -nologo list vms # Detailled information about all your VMs
他のヒント
未直接の答えが、ちょうど他の人がそれを探すためにそこにそれを置くために
での例えばもし、あなたがsudo
を使用してrootユーザーとしてのVirtualBoxを実行している場合、ファイルのアクセス権がそれを許可、または提供、他のユーザのホームディレクトリからVMをロードするためにVirtualBoxを伝えることができます。のマックOS X(あなたは絶対に)、ポート80上のホストのWebサーバにアクセスする必要があります。
これを行う方法は、例えば、適切VBOX_USER_HOME
を設定することです。
VBOX_USER_HOME=/Users/the_other_user/Library/VirtualBox
あなたはルートの下にVBoxHeadless
を実行したい場合は、使用します:
sudo VBOX_USER_HOME=/Users/your_user_id/Library/VirtualBox nohup \
VBoxHeadless -s "IE10 - Win7" </dev/null &>/dev/null &
私はsudo
を開始するためにVBoxSDL
を使用するたびに同様のエラーメッセージを、持っていた。
Error: machine with the given name not found!
Check if this VM has been corrupted and is now inaccessible.
と ypocat のの答えと同様に、私は小さなを使用しての Ubuntuののためにそれを解決しましたこのようなスクリプトます:
#!/bin/bash
export VBOX_USER_HOME=/home/username/.config/VirtualBox
VBoxSDL --startvm nameOfVM
あなたがVM
としてあなたroot
を開始する必要があるとき、あなたはそれを使用することができます。
所属していません StackOverflow