|
bash-3.1# VBoxManage createvm --name "windows" --register
Sun VirtualBox Command Line Management Interface Version 3.1.4_OSE
(C) 2005-2010 Sun Microsystems, Inc.
All rights reserved.
Virtual machine 'windows' is created and registered.
UUID: cd3ce699-2342-48aa-b578-7b881ec42f63
Settings file: '/root/.VirtualBox/Machines/windows/windows.xml'
=============================================================================
bash-3.1# VBoxManage createhd --filename "windows.vdi" --size 10000 --rememberSun VirtualBox Command Line Management Interface Version 3.1.4_OSE
(C) 2005-2010 Sun Microsystems, Inc.
All rights reserved.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Disk image created. UUID: f350b93b-1847-4466-8885-f0b321828672
bash-3.1#
============================================================================
root@daihu:~# VBoxManage modifyvm "windows" --memory "512" --hda "windows.vdi" --dvd /home/Downloads/windows.iso --acpi on --accelerate3d on --boot1 dvd --nic1 nat
Sun VirtualBox Command Line Management Interface Version 3.1.4_OSE
(C) 2005-2010 Sun Microsystems, Inc.
All rights reserved.
ERROR: Could not find a storage controller named 'IDE Controller'
Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component Machine, interface IMachine, callee nsISupports
Context: "AttachDevice(Bstr("IDE Controller"), 0, 0, DeviceType_HardDisk, uuid)" at line 556 of file VBoxManageModifyVM.cpp
root@daihu:~#
================================================================================
$VBoxManage storagectl windows --name "IDE Controller" --add ide --controller PIIX4
该命令创 建了一个名叫 “IDE Controller”的IDE控制器,控制器类型为PIIX4.
=========================================================================
现在,将你的虚拟磁盘连接到虚拟机:
bash-3.1# VBoxManage storageattach windows --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium windows.vdi
===============================================================================
将一个ISO镜像连接上 去,用于安装你需要的操作系统:
root@daihu:~# VBoxManage storageattach windows --storagectl "IDE Controller" --port 0 --device 1 --type dvddrive --medium /home/Downloads/windowsxpsp3cyu.iso
出错:
Sun VirtualBox Command Line Management Interface Version 3.1.4_OSE
(C) 2005-2010 Sun Microsystems, Inc.
All rights reserved.
ERROR: Could not open the medium '/home/Downloads/windowsxpsp3cyu.iso'.
VD: error VERR_VD_RAW_INVALID_HEADER opening image file '/home/Downloads/windowsxpsp3cyu.iso' (VERR_VD_RAW_INVALID_HEADER)
Details: code NS_ERROR_FAILURE (0x80004005), component Medium, interface IMedium, callee nsISupports
Context: "OpenDVDImage(Bstr(pszMedium), emptyUUID, dvdMedium.asOutParam())" at line 489 of file VBoxManageStorageController.cpp
error: Invalid UUID or filename "/home/Downloads/windowsxpsp3cyu.iso"
上面就是我的出错信息有人和我一样吗?
我所有操作全是用Root做的。
请大家告诉。为了这个问题我都已经弄了两周了 |
|