LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   How to setup a vdi in VirtualBox in text-mode? (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/how-to-setup-a-vdi-in-virtualbox-in-text-mode-883558/)

xeon123 05-30-2011 12:55 PM

How to setup a vdi in VirtualBox in text-mode?
 
Hi,

I've vdi image with ubuntu installed, and I would like configure the VirtualBox to run this image. I can only acces VirtualBox in text mode from my PC. There's no X11 installed.

How to setup a vdi in VirtualBox in text-mode?

EricTRA 05-30-2011 12:58 PM

Hello,

Have a look at the VBoxManage command. Just type it in a console without options and you'll get all the info you need.

Kind regards,

Eric

xeon123 05-30-2011 01:08 PM

Ok.

I've created an image with the command and modified the parameters with:

VBoxManage createvm -name "Linux1" -register
VBoxManage modifyvm "Linux1" -memory "512"

Now, I would like to attach the vdi file to the image, and I don't know how to do it. What VBoxManage command should I use? Is the command VBoxManage createvdi?

xeon123 05-30-2011 01:36 PM

I think that 's the command.

VBoxManage registerimage disk ~/VirtualBox/images/Linux1/xubuntu-9.10-x86.vdi

Now I only need to attach the vdi to the vm file.

EricTRA 05-30-2011 11:57 PM

Hello,

Here's another good source of documentation:
VBoxManage

The part you're looking for is this:
Code:

VBoxManage modifyvm VMName --hda new.vdi
where VMName is the name of your virtual machine and the new.vdi should be substituted by the name of your disk.

Kind regards,

Eric


All times are GMT -5. The time now is 05:45 AM.