Skip to content

Virtualbox

Extension Pack

download extension pack agar mode usb nambah banyak

agar usb tampak :

  1. lihat nama user : (opsional)
  2. echo $USER
  3. cek list group, biasanya grup utk virtualbox adalah vboxusers :
  4. compgen -g
  5. add group :
  6. sudo usermod -a -G vboxusers $USER
  7. kyknya perlu di reboot

Copy file host ke remote, dan sebaliknya

mengirim dari host ke remote :

    file :
    scp <file_yg_akan_dikirim> <user_remote>@<ip_remote>:<directory_tujuan>
    directory :
    scp -r <directory_yg_dikirim> <user_remote>@<ip_remote>:<directory_tujuan>

mengambil file dari remote :

    scp <user_remote>@<ip_remote>:<file_directorynya> <tujuan_di_directorymu>
    jika menghendaki ada port dan key
    scp <user_remote>@<ip_remote>:<file_directorynya> <tujuan_di_directorymu> -P <port> -i <path_key>

Windows ISO

    drive, sudah dihapus google :V

Membuat file sharing virtualbox

connect ssh :

    pc-target :
    sudo service ssh status
    sudo service ssh start
    silahkan ssh
    namun, jika masih tdk bisa :
    sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT

host :

    mkdir -p /mnt/cobafilesharing-public
    mkdir -p /mnt/cobafilesharing-data
            server :
            <ul>
sudo su
mkdir /home/public
mkdir /home/data
apt update
apt -y install samba cifs-utils
vi /etc/samba/smb.conf

diisi dengan :

    workgroup = WORKGROUP netbios name = COBAFILESHARING # dibagian bottom [public] path = /home/public available = yes browsable = yes public = yes writable = yes [data] path = /home/data available = yes browsable = yes public = yes writable = no
mkdir -p /home/public
mkdir -p /home/data
chown -Rf nobody.nogroup /home/public
chown -Rf nobody.nogroup /home/data
chmod -Rf 777 /home/public
chmod -Rf 777 /home/data
smbpasswd -a carloz

misal password : 123456

/etc/init.d/smbd restart

matikan firewall

ufw disable

host :

    cek sdh mount apa blm :
      df -h
    mount -t cifs //192.168.43.207/public/ /mnt/cobafilesharing-public/ -o password=123456,username=carloz

Done, jika ingin sharing file bisa lewat folder tersebut


Resize memory virtualbox

VBoxManage clonehd Ubuntu\ Server\ 18.04\ LTS.vdi ubuntu18_04_new4.vdi --format VDI --variant Standard
VBoxManage modifyhd ubuntu18_04_new4.vdi --resize 30000

ganti storage lewat GUI virtualbox

Error : Kernel driver not installed (rc=-1908)

sudo apt-get remove virtualbox-dkms
sudo apt-get install virtualbox-dkms
sudo apt update

reboot jika perlu