Last active
April 21, 2017 23:03
-
-
Save indriApollo/3a52f9ef0a1c05d7dac07b4ed2d45838 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install cpu-checker | |
kvm-ok | |
sudo nano /etc/apt/sources.list | |
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add - | |
sudo apt-get update | |
sudo apt update | |
sudo apt-get install linux-headers-$(uname -r) build-essential virtualbox-5.1 dkms | |
sudo adduser <user> vboxusers | |
wget http://download.virtualbox.org/virtualbox/5.1.20/Oracle_VM_VirtualBox_Extension_Pack-5.1.20-114628.vbox-extpack | |
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.1.20-114628.vbox-extpack | |
wget http://releases.ubuntu.com/16.04.2/ubuntu-16.04.2-server-amd64.iso | |
VBoxManage createvm --name "ubuntu-guest-1" --register | |
VBoxManage modifyvm "ubuntu-guest-1" --ostype Ubuntu_64 --memory 4096 --pae on --ioapic on --cpus 2 --acpi on --boot1 dvd --nic1 bridged --bridgeadapter1 enp3s0f2 --hwvirtex on --audio none --vrde on | |
VBoxManage createhd --filename /home/<user>/VirtualBox\ VMs/ubuntu-guest-1/ubuntu-guest-1.vdi --size 100000 | |
VBoxManage storagectl "ubuntu-guest-1" --name "SATA Controller" --add sata --controller IntelAhci --bootable on | |
VBoxManage storageattach "ubuntu-guest-1" --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium /home/<user>/VirtualBox\ VMs/ubuntu-guest-1/ubuntu-guest-1.vdi | |
VBoxManage storageattach "ubuntu-guest-1" --storagectl "SATA Controller" --port 1 --device 0 --type dvddrive --medium /home/<user>/ubuntu-16.04.2-server-amd64.iso | |
VBoxManage startvm "ubuntu-guest-1" --type headless | |
VBoxManage controlvm "ubuntu-guest-1" nic1 bridged on | |
rdesktop -d ubuntu-guest-1 -u <user> -p "<password>" -k fr-be -g 800x600 -a 16 -z -x l -5 -r sound:local <host_ip> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment