daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Aug 3rd, 2017 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1.  VBoxManage createvm --name $VM --ostype "Ubuntu_64" --register
  2. 2.  VBoxManage createhd --filename $VM.vdi --size 10000
  3. 3.  mv ubuntu-server.vdi ubuntu-server/
  4. 4.  VBoxManage storagectl $VM --name "IDE Controller" --add ide
  5. 5.  VBoxManage storageattach $VM --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium $VM.vdi
  6. 6.  VBoxManage storageattach $VM --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium ~/Downloads/ubuntu-16.04.2-desktop-amd64.iso
  7. 7.  VBoxManage modifyvm $VM --ioapic on
  8. 8.  VBoxManage modifyvm $VM --boot1 dvd --boot2 disk --boot3 none --boot4 none
  9. 9.  VBoxManage modifyvm $VM --memory 1024 --vram 128
  10. 10. VBoxManage modifyvm $VM --nic1 bridged --bridgeadapter1 eth0
  11. 11. VBoxHeadless --startvm $VM &
  12.  
  13. ERROR:
  14.  
  15. Oracle VM VirtualBox Headless Interface 5.0.40_Ubuntu
  16. (C) 2008-2017 Oracle Corporation
  17. All rights reserved.
  18.  
  19. Error: failed to start machine. Error message: Could not open the medium '/home/bipul/VirtualBox VMs/ubuntu-server.vdi'.
  20. VD: error VERR_FILE_NOT_FOUND opening image file '/home/bipul/VirtualBox VMs/ubuntu-server.vdi' (VERR_FILE_NOT_FOUND)
RAW Paste Data
Top