VirtualBox

Changes between Version 1 and Version 2 of Ticket #13537, comment 1


Ignore:
Timestamp:
Oct 21, 2014 12:35:13 PM (10 years ago)
Author:
zoullou

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13537, comment 1

    v1 v2  
    1 Test Case :
     1= Test Case =
    22
    3 HOST : Windows 7 x64
     3HOST : Windows 7 x64[[BR]]
    44Guest : CentOS 6.5 x64
    55
    6 - Create a NAT Network
     6== Create a NAT Network
    77    VBoxManage natnetwork add --netname NatNetwork --network "10.0.2.0/24" --enable --dhcp off
    88
    9 - Create a Linux guest (CentOS in my case). Install system with fixed IP (10.0.2.10 in my case)
    10     VBoxManage createvm --name "$VmName" --register
    11     # System
    12     VBoxManage modifyvm "$VmName" --ostype RedHat_64 --memory 500 --acpi on --ioapic on --boot1 disk --boot2 dvd --boot3 net --boot4 floppy
    13     # Network Card
    14     VBoxManage modifyvm "$VmName" --nic1 natnetwork --nat-network1 NatNetwork --nictype1 82540EM
    15     # Storage
    16     VBoxManage storagectl "$VmName" --name IDE --add ide --controller PIIX4 --bootable on
    17     VBoxManage storagectl "$VmName" --name SATA --add sata --controller IntelAhci --bootable on
    18     VBoxManage createhd --filename "$VIRTUALBOX_DATA_DIR\\$VmName\\$VmName.vdi" --size 50000
    19     VBoxManage storageattach "$VmName" --storagectl IDE --port 0 --device 0 --type dvddrive --medium "$INSTALL_DIR\binaires\linux\CentOS-6.5-x86_64-bin-DVD1.iso"
    20     VBoxManage storageattach "$VmName" --storagectl IDE --port 0 --device 1 --type dvddrive --medium "$INSTALL_DIR\binaires\linux\CentOS-6.5-x86_64-bin-DVD2.iso"
    21     VBoxManage storageattach "$VmName" --storagectl IDE --port 1 --device 0 --type dvddrive --medium "C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso"
    22     VBoxManage storageattach "$VmName" --storagectl SATA --port 0 --type hdd --medium "$VIRTUALBOX_DATA_DIR\\$VmName\\$VmName.vdi"
    23     # Shared Folder
    24     VBoxManage sharedfolder add "$VmName" --name "Install" --hostpath "$INSTALL_DIR" --automount
     9== Create a Linux guest (CentOS in my case). Install system with fixed IP (10.0.2.10 in my case)
     10    VBoxManage createvm --name "$VmName" --register[[BR]]
     11    # System[[BR]]
     12    VBoxManage modifyvm "$VmName" --ostype RedHat_64 --memory 500 --acpi on --ioapic on --boot1 disk --boot2 dvd --boot3 net --boot4 floppy [[BR]]
     13    # Network Card[[BR]]
     14    VBoxManage modifyvm "$VmName" --nic1 natnetwork --nat-network1 NatNetwork --nictype1 82540EM[[BR]]
     15    # Storage[[BR]]
     16    VBoxManage storagectl "$VmName" --name IDE --add ide --controller PIIX4 --bootable on[[BR]]
     17    VBoxManage storagectl "$VmName" --name SATA --add sata --controller IntelAhci --bootable on[[BR]]
     18    VBoxManage createhd --filename "$VIRTUALBOX_DATA_DIR\$VmName\$VmName.vdi" --size 50000[[BR]]
     19    VBoxManage storageattach "$VmName" --storagectl IDE --port 0 --device 0 --type dvddrive --medium "$INSTALL_DIR\binaires\linux\CentOS-6.5-x86_64-bin-DVD1.iso"[[BR]]
     20    VBoxManage storageattach "$VmName" --storagectl IDE --port 0 --device 1 --type dvddrive --medium "$INSTALL_DIR\binaires\linux\CentOS-6.5-x86_64-bin-DVD2.iso"[[BR]]
     21    VBoxManage storageattach "$VmName" --storagectl IDE --port 1 --device 0 --type dvddrive --medium "C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso"[[BR]]
     22    VBoxManage storageattach "$VmName" --storagectl SATA --port 0 --type hdd --medium "$VIRTUALBOX_DATA_DIR\$VmName\$VmName.vdi"[[BR]]
     23    # Shared Folder[[BR]]
     24    VBoxManage sharedfolder add "$VmName" --name "Install" --hostpath "$INSTALL_DIR" --automount[[BR]]
    2525
    26 - Add Network NAT Forwarding
    27     # Network NAT Forwarding
    28     VBoxManage natnetwork modify --netname NatNetwork --port-forward-4 "SSH - $VmName:tcp:[]:11010:[10.0.2.10]:22"
     26== Add Network NAT Forwarding
     27    # Network NAT Forwarding[[BR]]
     28    VBoxManage natnetwork modify --netname NatNetwork --port-forward-4 "SSH - $VmName:tcp:[]:11010:[10.0.2.10]:22"[[BR]]
    2929
    30 - SSH Connect to guest (WORK)
    31     IP : 127.0.0.1
    32     Port : 11010
     30== SSH Connect to guest (WORK)
     31    IP : 127.0.0.1[[BR]]
     32    Port : 11010[[BR]]
    3333
    34 - SSH Connect to guest (DON'T WORK)
    35     IP : host public IP
    36     Port : 11010
     34== SSH Connect to guest (DON'T WORK)
     35    IP : host public IP[[BR]]
     36    Port : 11010[[BR]]

© 2023 Oracle
ContactPrivacy policyTerms of Use