Changes

Jump to: navigation, search

Package:VirtualBox

1,609 bytes added, 2 years ago
no edit summary
== Headless ==
To be able to use VRDP you have to install {{c|app-emulation/virtualbox-extpack-oracle. }}
To verify if extpack installed and usable:
{{console|body=
Why unusable:
}}
 
Create a testvm using this command:
{{console|body=
###i## VBoxManage createvm --name "testvm"
Virtual machine 'testvm' is created.
UUID: 7b19dc85-2991-4e6a-b1e9-e8e6704e75b4
Settings file: '/root/.VirtualBox/Machines/testvm/testvm.vbox'
###i## VBoxManage registervm /root/.VirtualBox/Machines/testvm/testvm.vbox
###i## VBoxManage list vms
"testvm" {7b19dc85-2991-4e6a-b1e9-e8e6704e75b4}
}}
 
Specify the hardware configurations of the VM:
{{console|body=
###i## VBoxManage modifyvm testvm --memory 1024 --acpi on --boot1 dvd --nic1 bridged --bridgeadapter1 eth0 --ostype Linux_64
}}
 
Create disk image:
{{console|body=
###i## VBoxManage createvdi --filename ~/VirtualBox\ VMs/testvm/testvm-disk01.vdi --size 10000
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Medium created. UUID: 0234cd8e-617a-435b-bed4-9aee99a0f34a
}}
 
Add a SCSI controller:
{{console|body=
###i## VBoxManage storagectl testvm --name "SCSI Controller" --add scsi
}}
 
Attach install CD-ROM iso image and disk image:
{{console|body=
###i## VBoxManage storageattach "testvm" --storagectl "SCSI Controller" --port 0 --device 0 --type hdd --medium /root/VirtualBox\ VMs/testvm/testvm-disk01.vdi
###i## VBoxManage storageattach "testvm" --storagectl "SCSI Controller" --port 1 --device 0 --type dvddrive --medium /root/iso/systemrescuecd-x86-5.1.0.iso
}}
 
{{console|body=
VBoxHeadless --startvm "testvm" &
}}
 
The above command will launch the VM, as well as VRDE remote desktop server. The remote desktop server is needed to access the headless VM's console. By default, the VRDE server is listening on TCP port 3389.
== Tips and Tricks ==
wiki-staff
387
edits

Navigation menu