Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@sys-ubuntu:~/snappy# VBoxManage createvm --name UbuntuSnappy^C^C
- root@sys-ubuntu:~/snappy# VBoxManage createhd --filename UbuntuSnappy --size 20480
- 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
- Disk image created. UUID: fa71c6a2-4b76-4975-8912-3ae09d052614
- root@sys-ubuntu:~/snappy# ls
- ubuntu-core-alpha-01.img ubuntu-core-alpha-01.vdi UbuntuSnappy.vdi
- root@sys-ubuntu:~/snappy# VBoxManage registervm^C
- root@sys-ubuntu:~/snappy# VBoxManage createvm --name UbuntuSnappy --register
- VBoxManage: error: Machine settings file '/root/VirtualBox VMs/UbuntuSnappy/UbuntuSnappy.vbox' already exists
- VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Machine, interface IMachine, callee nsISupports
- VBoxManage: error: Context: "CreateMachine(bstrSettingsFile.raw(), bstrName.raw(), ComSafeArrayAsInParam(groups), bstrOsTypeId.raw(), createFlags.raw(), machine.asOutParam())" at line 275 of file VBoxManageMisc.cpp
- root@sys-ubuntu:~/snappy# VBoxManage modifyvm UbuntuSnappy --ostype Ubuntu
- VBoxManage: error: Could not find a registered machine named 'UbuntuSnappy'
- VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
- VBoxManage: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asOutParam())" at line 464 of file VBoxManageModifyVM.cpp
- root@sys-ubuntu:~/snappy# VBoxManage modifyvm UbuntuSnappy --ostype Ubuntu^C
- root@sys-ubuntu:~/snappy# ls
- ubuntu-core-alpha-01.img ubuntu-core-alpha-01.vdi UbuntuSnappy.vdi
- root@sys-ubuntu:~/snappy# vboxmanage registervm '/root/VirtualBox VMs/UbuntuSnappy/UbuntuSnappy.vbox'
- root@sys-ubuntu:~/snappy# ls
- ubuntu-core-alpha-01.img ubuntu-core-alpha-01.vdi UbuntuSnappy.vdi
- root@sys-ubuntu:~/snappy# VBoxManage modifyvm UbuntuSnappy --ostype Ubuntu
- root@sys-ubuntu:~/snappy# VBoxManage modifyvm UbuntuSnappy --memory 4096
- root@sys-ubuntu:~/snappy# VBoxManage storagectl UbuntuSnappy --name SATA --add sata --controller IntelAhci --bootable on
- root@sys-ubuntu:~/snappy# ls
- ubuntu-core-alpha-01.img ubuntu-core-alpha-01.vdi UbuntuSnappy.vdi
- root@sys-ubuntu:~/snappy# pwd
- /root/snappy
- root@sys-ubuntu:~/snappy# VBoxManage storageattach UbuntuSnappy --storagectl SATA --port 0 --device 0 --type hdd --medium "/root/snappy/UbuntuSnappy.vdi"
- root@sys-ubuntu:~/snappy#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement